OSDN Git Service

config/ChangeLog:
[pf3gnuchains/gcc-fork.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_SOL2_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
630 OPT_LDFLAGS
631 SECTION_LDFLAGS
632 libtool_VERSION
633 ac_ct_FC
634 FCFLAGS
635 FC
636 MAINT
637 MAINTAINER_MODE_FALSE
638 MAINTAINER_MODE_TRUE
639 enable_static
640 enable_shared
641 lt_host_flags
642 CPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 EGREP
656 GREP
657 SED
658 LIBTOOL
659 BUILD_INFO_FALSE
660 BUILD_INFO_TRUE
661 PERL
662 RANLIB
663 AR
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 toolexeclibdir
681 toolexecdir
682 multi_basedir
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
688 AWK
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 target_os
707 target_vendor
708 target_cpu
709 target
710 host_os
711 host_vendor
712 host_cpu
713 host
714 build_os
715 build_vendor
716 build_cpu
717 build
718 GENINSRC_FALSE
719 GENINSRC_TRUE
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_version_specific_runtime_libs
762 enable_generated_files_in_srcdir
763 enable_multilib
764 enable_dependency_tracking
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 enable_libtool_lock
771 enable_maintainer_mode
772 enable_linux_futex
773 enable_tls
774 enable_symvers
775 '
776       ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CPP
780 CPPFLAGS
781 FC
782 FCFLAGS
783 LDFLAGS
784 LIBS'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839   # If the previous option needs an argument, assign it.
840   if test -n "$ac_prev"; then
841     eval $ac_prev=\$ac_option
842     ac_prev=
843     continue
844   fi
845
846   case $ac_option in
847   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848   *)    ac_optarg=yes ;;
849   esac
850
851   # Accept the important Cygnus configure options, so we can diagnose typos.
852
853   case $ac_dashdash$ac_option in
854   --)
855     ac_dashdash=yes ;;
856
857   -bindir | --bindir | --bindi | --bind | --bin | --bi)
858     ac_prev=bindir ;;
859   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860     bindir=$ac_optarg ;;
861
862   -build | --build | --buil | --bui | --bu)
863     ac_prev=build_alias ;;
864   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865     build_alias=$ac_optarg ;;
866
867   -cache-file | --cache-file | --cache-fil | --cache-fi \
868   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869     ac_prev=cache_file ;;
870   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872     cache_file=$ac_optarg ;;
873
874   --config-cache | -C)
875     cache_file=config.cache ;;
876
877   -datadir | --datadir | --datadi | --datad)
878     ac_prev=datadir ;;
879   -datadir=* | --datadir=* | --datadi=* | --datad=*)
880     datadir=$ac_optarg ;;
881
882   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883   | --dataroo | --dataro | --datar)
884     ac_prev=datarootdir ;;
885   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887     datarootdir=$ac_optarg ;;
888
889   -disable-* | --disable-*)
890     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891     # Reject names that are not valid shell variable names.
892     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893       as_fn_error "invalid feature name: $ac_useropt"
894     ac_useropt_orig=$ac_useropt
895     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896     case $ac_user_opts in
897       *"
898 "enable_$ac_useropt"
899 "*) ;;
900       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901          ac_unrecognized_sep=', ';;
902     esac
903     eval enable_$ac_useropt=no ;;
904
905   -docdir | --docdir | --docdi | --doc | --do)
906     ac_prev=docdir ;;
907   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908     docdir=$ac_optarg ;;
909
910   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911     ac_prev=dvidir ;;
912   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913     dvidir=$ac_optarg ;;
914
915   -enable-* | --enable-*)
916     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917     # Reject names that are not valid shell variable names.
918     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919       as_fn_error "invalid feature name: $ac_useropt"
920     ac_useropt_orig=$ac_useropt
921     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922     case $ac_user_opts in
923       *"
924 "enable_$ac_useropt"
925 "*) ;;
926       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927          ac_unrecognized_sep=', ';;
928     esac
929     eval enable_$ac_useropt=\$ac_optarg ;;
930
931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933   | --exec | --exe | --ex)
934     ac_prev=exec_prefix ;;
935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937   | --exec=* | --exe=* | --ex=*)
938     exec_prefix=$ac_optarg ;;
939
940   -gas | --gas | --ga | --g)
941     # Obsolete; use --with-gas.
942     with_gas=yes ;;
943
944   -help | --help | --hel | --he | -h)
945     ac_init_help=long ;;
946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947     ac_init_help=recursive ;;
948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949     ac_init_help=short ;;
950
951   -host | --host | --hos | --ho)
952     ac_prev=host_alias ;;
953   -host=* | --host=* | --hos=* | --ho=*)
954     host_alias=$ac_optarg ;;
955
956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957     ac_prev=htmldir ;;
958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959   | --ht=*)
960     htmldir=$ac_optarg ;;
961
962   -includedir | --includedir | --includedi | --included | --include \
963   | --includ | --inclu | --incl | --inc)
964     ac_prev=includedir ;;
965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966   | --includ=* | --inclu=* | --incl=* | --inc=*)
967     includedir=$ac_optarg ;;
968
969   -infodir | --infodir | --infodi | --infod | --info | --inf)
970     ac_prev=infodir ;;
971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972     infodir=$ac_optarg ;;
973
974   -libdir | --libdir | --libdi | --libd)
975     ac_prev=libdir ;;
976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
977     libdir=$ac_optarg ;;
978
979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980   | --libexe | --libex | --libe)
981     ac_prev=libexecdir ;;
982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983   | --libexe=* | --libex=* | --libe=*)
984     libexecdir=$ac_optarg ;;
985
986   -localedir | --localedir | --localedi | --localed | --locale)
987     ac_prev=localedir ;;
988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989     localedir=$ac_optarg ;;
990
991   -localstatedir | --localstatedir | --localstatedi | --localstated \
992   | --localstate | --localstat | --localsta | --localst | --locals)
993     ac_prev=localstatedir ;;
994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996     localstatedir=$ac_optarg ;;
997
998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999     ac_prev=mandir ;;
1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001     mandir=$ac_optarg ;;
1002
1003   -nfp | --nfp | --nf)
1004     # Obsolete; use --without-fp.
1005     with_fp=no ;;
1006
1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008   | --no-cr | --no-c | -n)
1009     no_create=yes ;;
1010
1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013     no_recursion=yes ;;
1014
1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017   | --oldin | --oldi | --old | --ol | --o)
1018     ac_prev=oldincludedir ;;
1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022     oldincludedir=$ac_optarg ;;
1023
1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025     ac_prev=prefix ;;
1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027     prefix=$ac_optarg ;;
1028
1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030   | --program-pre | --program-pr | --program-p)
1031     ac_prev=program_prefix ;;
1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034     program_prefix=$ac_optarg ;;
1035
1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037   | --program-suf | --program-su | --program-s)
1038     ac_prev=program_suffix ;;
1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041     program_suffix=$ac_optarg ;;
1042
1043   -program-transform-name | --program-transform-name \
1044   | --program-transform-nam | --program-transform-na \
1045   | --program-transform-n | --program-transform- \
1046   | --program-transform | --program-transfor \
1047   | --program-transfo | --program-transf \
1048   | --program-trans | --program-tran \
1049   | --progr-tra | --program-tr | --program-t)
1050     ac_prev=program_transform_name ;;
1051   -program-transform-name=* | --program-transform-name=* \
1052   | --program-transform-nam=* | --program-transform-na=* \
1053   | --program-transform-n=* | --program-transform-=* \
1054   | --program-transform=* | --program-transfor=* \
1055   | --program-transfo=* | --program-transf=* \
1056   | --program-trans=* | --program-tran=* \
1057   | --progr-tra=* | --program-tr=* | --program-t=*)
1058     program_transform_name=$ac_optarg ;;
1059
1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061     ac_prev=pdfdir ;;
1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063     pdfdir=$ac_optarg ;;
1064
1065   -psdir | --psdir | --psdi | --psd | --ps)
1066     ac_prev=psdir ;;
1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068     psdir=$ac_optarg ;;
1069
1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071   | -silent | --silent | --silen | --sile | --sil)
1072     silent=yes ;;
1073
1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075     ac_prev=sbindir ;;
1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077   | --sbi=* | --sb=*)
1078     sbindir=$ac_optarg ;;
1079
1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082   | --sharedst | --shareds | --shared | --share | --shar \
1083   | --sha | --sh)
1084     ac_prev=sharedstatedir ;;
1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088   | --sha=* | --sh=*)
1089     sharedstatedir=$ac_optarg ;;
1090
1091   -site | --site | --sit)
1092     ac_prev=site ;;
1093   -site=* | --site=* | --sit=*)
1094     site=$ac_optarg ;;
1095
1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097     ac_prev=srcdir ;;
1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099     srcdir=$ac_optarg ;;
1100
1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102   | --syscon | --sysco | --sysc | --sys | --sy)
1103     ac_prev=sysconfdir ;;
1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106     sysconfdir=$ac_optarg ;;
1107
1108   -target | --target | --targe | --targ | --tar | --ta | --t)
1109     ac_prev=target_alias ;;
1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111     target_alias=$ac_optarg ;;
1112
1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114     verbose=yes ;;
1115
1116   -version | --version | --versio | --versi | --vers | -V)
1117     ac_init_version=: ;;
1118
1119   -with-* | --with-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error "invalid package name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval with_$ac_useropt=\$ac_optarg ;;
1134
1135   -without-* | --without-*)
1136     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139       as_fn_error "invalid package name: $ac_useropt"
1140     ac_useropt_orig=$ac_useropt
1141     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142     case $ac_user_opts in
1143       *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147          ac_unrecognized_sep=', ';;
1148     esac
1149     eval with_$ac_useropt=no ;;
1150
1151   --x)
1152     # Obsolete; use --with-x.
1153     with_x=yes ;;
1154
1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156   | --x-incl | --x-inc | --x-in | --x-i)
1157     ac_prev=x_includes ;;
1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160     x_includes=$ac_optarg ;;
1161
1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164     ac_prev=x_libraries ;;
1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167     x_libraries=$ac_optarg ;;
1168
1169   -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1171     ;;
1172
1173   *=*)
1174     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175     # Reject names that are not valid shell variable names.
1176     case $ac_envvar in #(
1177       '' | [0-9]* | *[!_$as_cr_alnum]* )
1178       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179     esac
1180     eval $ac_envvar=\$ac_optarg
1181     export $ac_envvar ;;
1182
1183   *)
1184     # FIXME: should be removed in autoconf 3.0.
1185     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189     ;;
1190
1191   esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196   as_fn_error "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200   case $enable_option_checking in
1201     no) ;;
1202     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204   esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209                 datadir sysconfdir sharedstatedir localstatedir includedir \
1210                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211                 libdir localedir mandir
1212 do
1213   eval ac_val=\$$ac_var
1214   # Remove trailing slashes.
1215   case $ac_val in
1216     */ )
1217       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218       eval $ac_var=\$ac_val;;
1219   esac
1220   # Be sure to have absolute directory names.
1221   case $ac_val in
1222     [\\/$]* | ?:[\\/]* )  continue;;
1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224   esac
1225   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used." >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   as_fn_error "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262   ac_srcdir_defaulted=yes
1263   # Try the directory containing this script, then the parent directory.
1264   ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266          X"$as_myself" : 'X\(//\)[^/]' \| \
1267          X"$as_myself" : 'X\(//\)$' \| \
1268          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)[^/].*/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\).*/{
1283             s//\1/
1284             q
1285           }
1286           s/.*/./; q'`
1287   srcdir=$ac_confdir
1288   if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290   fi
1291 else
1292   ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301         pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304   srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_env_${ac_var}_value=\$${ac_var}
1315   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323   # Omit some internal or obsolete options to make the list less imposing.
1324   # This message is too long to be a string in the A/UX 3.1 sh.
1325   cat <<_ACEOF
1326 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336   -h, --help              display this help and exit
1337       --help=short        display options specific to this package
1338       --help=recursive    display the short help of all the included packages
1339   -V, --version           display version information and exit
1340   -q, --quiet, --silent   do not print \`checking...' messages
1341       --cache-file=FILE   cache test results in FILE [disabled]
1342   -C, --config-cache      alias for \`--cache-file=config.cache'
1343   -n, --no-create         do not create output files
1344       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347   --prefix=PREFIX         install architecture-independent files in PREFIX
1348                           [$ac_default_prefix]
1349   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                           [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360   --bindir=DIR            user executables [EPREFIX/bin]
1361   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362   --libexecdir=DIR        program executables [EPREFIX/libexec]
1363   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366   --libdir=DIR            object code libraries [EPREFIX/lib]
1367   --includedir=DIR        C header files [PREFIX/include]
1368   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371   --infodir=DIR           info documentation [DATAROOTDIR/info]
1372   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373   --mandir=DIR            man documentation [DATAROOTDIR/man]
1374   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgomp]
1375   --htmldir=DIR           html documentation [DOCDIR]
1376   --dvidir=DIR            dvi documentation [DOCDIR]
1377   --pdfdir=DIR            pdf documentation [DOCDIR]
1378   --psdir=DIR             ps documentation [DOCDIR]
1379 _ACEOF
1380
1381   cat <<\_ACEOF
1382
1383 Program names:
1384   --program-prefix=PREFIX            prepend PREFIX to installed program names
1385   --program-suffix=SUFFIX            append SUFFIX to installed program names
1386   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
1388 System types:
1389   --build=BUILD     configure for building on BUILD [guessed]
1390   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391   --target=TARGET   configure for building compilers for TARGET [HOST]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396   case $ac_init_help in
1397      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1398    esac
1399   cat <<\_ACEOF
1400
1401 Optional Features:
1402   --disable-option-checking  ignore unrecognized --enable/--with options
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-version-specific-runtime-libs
1406                           Specify that runtime libraries should be installed
1407                           in a compiler-specific directory [default=no]
1408   --enable-generated-files-in-srcdir
1409                           put copies of generated files in source dir intended
1410                           for creating source tarballs for users without
1411                           texinfo bison or flex. [default=no]
1412   --enable-multilib       build many library versions (default)
1413   --disable-dependency-tracking  speeds up one-time build
1414   --enable-dependency-tracking   do not reject slow dependency extractors
1415   --enable-shared[=PKGS]  build shared libraries [default=yes]
1416   --enable-static[=PKGS]  build static libraries [default=yes]
1417   --enable-fast-install[=PKGS]
1418                           optimize for fast installation [default=yes]
1419   --disable-libtool-lock  avoid locking (might break parallel builds)
1420   --enable-maintainer-mode  enable make rules and dependencies not useful
1421                           (and sometimes confusing) to the casual installer
1422   --enable-linux-futex    use the Linux futex system call [default=default]
1423   --enable-tls            Use thread-local storage [default=yes]
1424   --enable-symvers=STYLE  enables symbol versioning of the shared library
1425                           [default=yes]
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-pic              try to use only PIC/non-PIC objects [default=use
1431                           both]
1432   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433
1434 Some influential environment variables:
1435   CC          C compiler command
1436   CFLAGS      C compiler flags
1437   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438               nonstandard directory <lib dir>
1439   LIBS        libraries to pass to the linker, e.g. -l<library>
1440   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441               you have headers in a nonstandard directory <include dir>
1442   CPP         C preprocessor
1443   FC          Fortran compiler command
1444   FCFLAGS     Fortran compiler flags
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to the package provider.
1450 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1451 General help using GNU software: <http://www.gnu.org/gethelp/>.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457   # If there are subdirs, report their specific --help.
1458   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459     test -d "$ac_dir" ||
1460       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461       continue
1462     ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468   # A ".." for each directory in $ac_dir_suffix.
1469   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470   case $ac_top_builddir_sub in
1471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473   esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481   .)  # We are building in place.
1482     ac_srcdir=.
1483     ac_top_srcdir=$ac_top_builddir_sub
1484     ac_abs_top_srcdir=$ac_pwd ;;
1485   [\\/]* | ?:[\\/]* )  # Absolute name.
1486     ac_srcdir=$srcdir$ac_dir_suffix;
1487     ac_top_srcdir=$srcdir
1488     ac_abs_top_srcdir=$srcdir ;;
1489   *) # Relative name.
1490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491     ac_top_srcdir=$ac_top_build_prefix$srcdir
1492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496     cd "$ac_dir" || { ac_status=$?; continue; }
1497     # Check for guested configure.
1498     if test -f "$ac_srcdir/configure.gnu"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501     elif test -f "$ac_srcdir/configure"; then
1502       echo &&
1503       $SHELL "$ac_srcdir/configure" --help=recursive
1504     else
1505       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506     fi || ac_status=$?
1507     cd "$ac_pwd" || { ac_status=$?; break; }
1508   done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513   cat <<\_ACEOF
1514 GNU OpenMP Runtime Library configure 1.0
1515 generated by GNU Autoconf 2.64
1516
1517 Copyright (C) 2009 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521   exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534   rm -f conftest.$ac_objext
1535   if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538   *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542   (eval "$ac_compile") 2>conftest.err
1543   ac_status=$?
1544   if test -s conftest.err; then
1545     grep -v '^ *+' conftest.err >conftest.er1
1546     cat conftest.er1 >&5
1547     mv -f conftest.er1 conftest.err
1548   fi
1549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550   test $ac_status = 0; } && {
1551          test -z "$ac_c_werror_flag" ||
1552          test ! -s conftest.err
1553        } && test -s conftest.$ac_objext; then :
1554   ac_retval=0
1555 else
1556   $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559         ac_retval=1
1560 fi
1561   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562   return $ac_retval
1563
1564 } # ac_fn_c_try_compile
1565
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_link ()
1570 {
1571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572   rm -f conftest.$ac_objext conftest$ac_exeext
1573   if { { ac_try="$ac_link"
1574 case "(($ac_try" in
1575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576   *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580   (eval "$ac_link") 2>conftest.err
1581   ac_status=$?
1582   if test -s conftest.err; then
1583     grep -v '^ *+' conftest.err >conftest.er1
1584     cat conftest.er1 >&5
1585     mv -f conftest.er1 conftest.err
1586   fi
1587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588   test $ac_status = 0; } && {
1589          test -z "$ac_c_werror_flag" ||
1590          test ! -s conftest.err
1591        } && test -s conftest$ac_exeext && {
1592          test "$cross_compiling" = yes ||
1593          $as_test_x conftest$ac_exeext
1594        }; then :
1595   ac_retval=0
1596 else
1597   $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600         ac_retval=1
1601 fi
1602   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604   # interfere with the next link command; also delete a directory that is
1605   # left behind by Apple's compiler.  We do this before executing the actions.
1606   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608   return $ac_retval
1609
1610 } # ac_fn_c_try_link
1611
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622   $as_echo_n "(cached) " >&6
1623 else
1624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h.  */
1626 $4
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630   eval "$3=yes"
1631 else
1632   eval "$3=no"
1633 fi
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 fi
1636 eval ac_res=\$$3
1637                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640
1641 } # ac_fn_c_check_header_compile
1642
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_cpp ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } >/dev/null && {
1665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666          test ! -s conftest.err
1667        }; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673     ac_retval=1
1674 fi
1675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676   return $ac_retval
1677
1678 } # ac_fn_c_try_cpp
1679
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_c_try_run ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_link") 2>&5
1695   ac_status=$?
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698   { { case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_try") 2>&5
1705   ac_status=$?
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; }; }; then :
1708   ac_retval=0
1709 else
1710   $as_echo "$as_me: program exited with status $ac_status" >&5
1711        $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714        ac_retval=$ac_status
1715 fi
1716   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718   return $ac_retval
1719
1720 } # ac_fn_c_try_run
1721
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731   $as_echo_n "(cached) " >&6
1732 else
1733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h.  */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1737 #define $2 innocuous_$2
1738
1739 /* System header to define __stub macros and hopefully few prototypes,
1740     which can conflict with char $2 (); below.
1741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742     <limits.h> exists even on freestanding compilers.  */
1743
1744 #ifdef __STDC__
1745 # include <limits.h>
1746 #else
1747 # include <assert.h>
1748 #endif
1749
1750 #undef $2
1751
1752 /* Override any GCC internal prototype to avoid an error.
1753    Use char because int might match the return type of a GCC
1754    builtin and then its argument prototype would still apply.  */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 ();
1759 /* The GNU C library defines this for functions which it implements
1760     to always fail with ENOSYS.  Some functions are actually named
1761     something starting with __ and the normal name is an alias.  */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1765
1766 int
1767 main ()
1768 {
1769 return $2 ();
1770   ;
1771   return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"; then :
1775   eval "$3=yes"
1776 else
1777   eval "$3=no"
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext \
1780     conftest$ac_exeext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786
1787 } # ac_fn_c_check_func
1788
1789 # ac_fn_fc_try_compile LINENO
1790 # ---------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_fc_try_compile ()
1793 {
1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795   rm -f conftest.$ac_objext
1796   if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799   *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803   (eval "$ac_compile") 2>conftest.err
1804   ac_status=$?
1805   if test -s conftest.err; then
1806     grep -v '^ *+' conftest.err >conftest.er1
1807     cat conftest.er1 >&5
1808     mv -f conftest.er1 conftest.err
1809   fi
1810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811   test $ac_status = 0; } && {
1812          test -z "$ac_fc_werror_flag" ||
1813          test ! -s conftest.err
1814        } && test -s conftest.$ac_objext; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820         ac_retval=1
1821 fi
1822   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823   return $ac_retval
1824
1825 } # ac_fn_fc_try_compile
1826
1827 # ac_fn_fc_try_link LINENO
1828 # ------------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_fc_try_link ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   rm -f conftest.$ac_objext conftest$ac_exeext
1834   if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841   (eval "$ac_link") 2>conftest.err
1842   ac_status=$?
1843   if test -s conftest.err; then
1844     grep -v '^ *+' conftest.err >conftest.er1
1845     cat conftest.er1 >&5
1846     mv -f conftest.er1 conftest.err
1847   fi
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } && {
1850          test -z "$ac_fc_werror_flag" ||
1851          test ! -s conftest.err
1852        } && test -s conftest$ac_exeext && {
1853          test "$cross_compiling" = yes ||
1854          $as_test_x conftest$ac_exeext
1855        }; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861         ac_retval=1
1862 fi
1863   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865   # interfere with the next link command; also delete a directory that is
1866   # left behind by Apple's compiler.  We do this before executing the actions.
1867   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869   return $ac_retval
1870
1871 } # ac_fn_fc_try_link
1872
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1877 # accordingly.
1878 ac_fn_c_check_header_mongrel ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885   $as_echo_n "(cached) " >&6
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 else
1891   # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h.  */
1896 $4
1897 #include <$2>
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900   ac_header_compiler=yes
1901 else
1902   ac_header_compiler=no
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1907
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_cpp "$LINENO"; then :
1916   ac_header_preproc=yes
1917 else
1918   ac_header_preproc=no
1919 fi
1920 rm -f conftest.err conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1923
1924 # So?  What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926   yes:no: )
1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931     ;;
1932   no:yes:* )
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943     ;;
1944 esac
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948   $as_echo_n "(cached) " >&6
1949 else
1950   eval "$3=\$ac_header_compiler"
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 fi
1956   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958 } # ac_fn_c_check_header_mongrel
1959
1960 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961 # -------------------------------------------
1962 # Tests whether TYPE exists after having included INCLUDES, setting cache
1963 # variable VAR accordingly.
1964 ac_fn_c_check_type ()
1965 {
1966   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970   $as_echo_n "(cached) " >&6
1971 else
1972   eval "$3=no"
1973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h.  */
1975 $4
1976 int
1977 main ()
1978 {
1979 if (sizeof ($2))
1980          return 0;
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 if (sizeof (($2)))
1993             return 0;
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999
2000 else
2001   eval "$3=yes"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 eval ac_res=\$$3
2008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011
2012 } # ac_fn_c_check_type
2013
2014 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2015 # --------------------------------------------
2016 # Tries to find the compile-time value of EXPR in a program that includes
2017 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2018 # computed
2019 ac_fn_c_compute_int ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   if test "$cross_compiling" = yes; then
2023     # Depending upon the size, compute the lo and hi bounds.
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 int
2028 main ()
2029 {
2030 static int test_array [1 - 2 * !(($2) >= 0)];
2031 test_array [0] = 0
2032
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   ac_lo=0 ac_mid=0
2039   while :; do
2040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047 test_array [0] = 0
2048
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054   ac_hi=$ac_mid; break
2055 else
2056   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2057                         if test $ac_lo -le $ac_mid; then
2058                           ac_lo= ac_hi=
2059                           break
2060                         fi
2061                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064   done
2065 else
2066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h.  */
2068 $4
2069 int
2070 main ()
2071 {
2072 static int test_array [1 - 2 * !(($2) < 0)];
2073 test_array [0] = 0
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080   ac_hi=-1 ac_mid=-1
2081   while :; do
2082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2089 test_array [0] = 0
2090
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096   ac_lo=$ac_mid; break
2097 else
2098   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2099                         if test $ac_mid -le $ac_hi; then
2100                           ac_lo= ac_hi=
2101                           break
2102                         fi
2103                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106   done
2107 else
2108   ac_lo= ac_hi=
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 # Binary search between lo and hi bounds.
2114 while test "x$ac_lo" != "x$ac_hi"; do
2115   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h.  */
2118 $4
2119 int
2120 main ()
2121 {
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 test_array [0] = 0
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130   ac_hi=$ac_mid
2131 else
2132   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 done
2136 case $ac_lo in #((
2137 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2138 '') ac_retval=1 ;;
2139 esac
2140   else
2141     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 static long int longval () { return $2; }
2145 static unsigned long int ulongval () { return $2; }
2146 #include <stdio.h>
2147 #include <stdlib.h>
2148 int
2149 main ()
2150 {
2151
2152   FILE *f = fopen ("conftest.val", "w");
2153   if (! f)
2154     return 1;
2155   if (($2) < 0)
2156     {
2157       long int i = longval ();
2158       if (i != ($2))
2159         return 1;
2160       fprintf (f, "%ld", i);
2161     }
2162   else
2163     {
2164       unsigned long int i = ulongval ();
2165       if (i != ($2))
2166         return 1;
2167       fprintf (f, "%lu", i);
2168     }
2169   /* Do not output a trailing newline, as this causes \r\n confusion
2170      on some platforms.  */
2171   return ferror (f) || fclose (f) != 0;
2172
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_run "$LINENO"; then :
2178   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2179 else
2180   ac_retval=1
2181 fi
2182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2183   conftest.$ac_objext conftest.beam conftest.$ac_ext
2184 rm -f conftest.val
2185
2186   fi
2187   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188   return $ac_retval
2189
2190 } # ac_fn_c_compute_int
2191 cat >config.log <<_ACEOF
2192 This file contains any messages produced by compilers while
2193 running configure, to aid debugging if configure makes a mistake.
2194
2195 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2196 generated by GNU Autoconf 2.64.  Invocation command line was
2197
2198   $ $0 $@
2199
2200 _ACEOF
2201 exec 5>>config.log
2202 {
2203 cat <<_ASUNAME
2204 ## --------- ##
2205 ## Platform. ##
2206 ## --------- ##
2207
2208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2213
2214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2215 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2216
2217 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2218 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2220 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2221 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2222 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2223 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2224
2225 _ASUNAME
2226
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232     $as_echo "PATH: $as_dir"
2233   done
2234 IFS=$as_save_IFS
2235
2236 } >&5
2237
2238 cat >&5 <<_ACEOF
2239
2240
2241 ## ----------- ##
2242 ## Core tests. ##
2243 ## ----------- ##
2244
2245 _ACEOF
2246
2247
2248 # Keep a trace of the command line.
2249 # Strip out --no-create and --no-recursion so they do not pile up.
2250 # Strip out --silent because we don't want to record it for future runs.
2251 # Also quote any args containing shell meta-characters.
2252 # Make two passes to allow for proper duplicate-argument suppression.
2253 ac_configure_args=
2254 ac_configure_args0=
2255 ac_configure_args1=
2256 ac_must_keep_next=false
2257 for ac_pass in 1 2
2258 do
2259   for ac_arg
2260   do
2261     case $ac_arg in
2262     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2263     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2264     | -silent | --silent | --silen | --sile | --sil)
2265       continue ;;
2266     *\'*)
2267       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268     esac
2269     case $ac_pass in
2270     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2271     2)
2272       as_fn_append ac_configure_args1 " '$ac_arg'"
2273       if test $ac_must_keep_next = true; then
2274         ac_must_keep_next=false # Got value, back to normal.
2275       else
2276         case $ac_arg in
2277           *=* | --config-cache | -C | -disable-* | --disable-* \
2278           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2279           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2280           | -with-* | --with-* | -without-* | --without-* | --x)
2281             case "$ac_configure_args0 " in
2282               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283             esac
2284             ;;
2285           -* ) ac_must_keep_next=true ;;
2286         esac
2287       fi
2288       as_fn_append ac_configure_args " '$ac_arg'"
2289       ;;
2290     esac
2291   done
2292 done
2293 { ac_configure_args0=; unset ac_configure_args0;}
2294 { ac_configure_args1=; unset ac_configure_args1;}
2295
2296 # When interrupted or exit'd, cleanup temporary files, and complete
2297 # config.log.  We remove comments because anyway the quotes in there
2298 # would cause problems or look ugly.
2299 # WARNING: Use '\'' to represent an apostrophe within the trap.
2300 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2301 trap 'exit_status=$?
2302   # Save into config.log some information that might help in debugging.
2303   {
2304     echo
2305
2306     cat <<\_ASBOX
2307 ## ---------------- ##
2308 ## Cache variables. ##
2309 ## ---------------- ##
2310 _ASBOX
2311     echo
2312     # The following way of writing the cache mishandles newlines in values,
2313 (
2314   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2315     eval ac_val=\$$ac_var
2316     case $ac_val in #(
2317     *${as_nl}*)
2318       case $ac_var in #(
2319       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2320 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2321       esac
2322       case $ac_var in #(
2323       _ | IFS | as_nl) ;; #(
2324       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2325       *) { eval $ac_var=; unset $ac_var;} ;;
2326       esac ;;
2327     esac
2328   done
2329   (set) 2>&1 |
2330     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2331     *${as_nl}ac_space=\ *)
2332       sed -n \
2333         "s/'\''/'\''\\\\'\'''\''/g;
2334           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2335       ;; #(
2336     *)
2337       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2338       ;;
2339     esac |
2340     sort
2341 )
2342     echo
2343
2344     cat <<\_ASBOX
2345 ## ----------------- ##
2346 ## Output variables. ##
2347 ## ----------------- ##
2348 _ASBOX
2349     echo
2350     for ac_var in $ac_subst_vars
2351     do
2352       eval ac_val=\$$ac_var
2353       case $ac_val in
2354       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355       esac
2356       $as_echo "$ac_var='\''$ac_val'\''"
2357     done | sort
2358     echo
2359
2360     if test -n "$ac_subst_files"; then
2361       cat <<\_ASBOX
2362 ## ------------------- ##
2363 ## File substitutions. ##
2364 ## ------------------- ##
2365 _ASBOX
2366       echo
2367       for ac_var in $ac_subst_files
2368       do
2369         eval ac_val=\$$ac_var
2370         case $ac_val in
2371         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372         esac
2373         $as_echo "$ac_var='\''$ac_val'\''"
2374       done | sort
2375       echo
2376     fi
2377
2378     if test -s confdefs.h; then
2379       cat <<\_ASBOX
2380 ## ----------- ##
2381 ## confdefs.h. ##
2382 ## ----------- ##
2383 _ASBOX
2384       echo
2385       cat confdefs.h
2386       echo
2387     fi
2388     test "$ac_signal" != 0 &&
2389       $as_echo "$as_me: caught signal $ac_signal"
2390     $as_echo "$as_me: exit $exit_status"
2391   } >&5
2392   rm -f core *.core core.conftest.* &&
2393     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394     exit $exit_status
2395 ' 0
2396 for ac_signal in 1 2 13 15; do
2397   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398 done
2399 ac_signal=0
2400
2401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2402 rm -f -r conftest* confdefs.h
2403
2404 $as_echo "/* confdefs.h */" > confdefs.h
2405
2406 # Predefined preprocessor variables.
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_NAME "$PACKAGE_NAME"
2410 _ACEOF
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_STRING "$PACKAGE_STRING"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_URL "$PACKAGE_URL"
2430 _ACEOF
2431
2432
2433 # Let the site file select an alternate cache file if it wants to.
2434 # Prefer an explicitly selected file to automatically selected ones.
2435 ac_site_file1=NONE
2436 ac_site_file2=NONE
2437 if test -n "$CONFIG_SITE"; then
2438   ac_site_file1=$CONFIG_SITE
2439 elif test "x$prefix" != xNONE; then
2440   ac_site_file1=$prefix/share/config.site
2441   ac_site_file2=$prefix/etc/config.site
2442 else
2443   ac_site_file1=$ac_default_prefix/share/config.site
2444   ac_site_file2=$ac_default_prefix/etc/config.site
2445 fi
2446 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2447 do
2448   test "x$ac_site_file" = xNONE && continue
2449   if test -r "$ac_site_file"; then
2450     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2452     sed 's/^/| /' "$ac_site_file" >&5
2453     . "$ac_site_file"
2454   fi
2455 done
2456
2457 if test -r "$cache_file"; then
2458   # Some versions of bash will fail to source /dev/null (special
2459   # files actually), so we avoid doing that.
2460   if test -f "$cache_file"; then
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2462 $as_echo "$as_me: loading cache $cache_file" >&6;}
2463     case $cache_file in
2464       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2465       *)                      . "./$cache_file";;
2466     esac
2467   fi
2468 else
2469   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2470 $as_echo "$as_me: creating cache $cache_file" >&6;}
2471   >$cache_file
2472 fi
2473
2474 # Check that the precious variables saved in the cache have kept the same
2475 # value.
2476 ac_cache_corrupted=false
2477 for ac_var in $ac_precious_vars; do
2478   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2479   eval ac_new_set=\$ac_env_${ac_var}_set
2480   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2481   eval ac_new_val=\$ac_env_${ac_var}_value
2482   case $ac_old_set,$ac_new_set in
2483     set,)
2484       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2486       ac_cache_corrupted=: ;;
2487     ,set)
2488       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2490       ac_cache_corrupted=: ;;
2491     ,);;
2492     *)
2493       if test "x$ac_old_val" != "x$ac_new_val"; then
2494         # differences in whitespace do not lead to failure.
2495         ac_old_val_w=`echo x $ac_old_val`
2496         ac_new_val_w=`echo x $ac_new_val`
2497         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2498           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2499 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2500           ac_cache_corrupted=:
2501         else
2502           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2503 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2504           eval $ac_var=\$ac_old_val
2505         fi
2506         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2507 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2508         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2509 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2510       fi;;
2511   esac
2512   # Pass precious variables to config.status.
2513   if test "$ac_new_set" = set; then
2514     case $ac_new_val in
2515     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2516     *) ac_arg=$ac_var=$ac_new_val ;;
2517     esac
2518     case " $ac_configure_args " in
2519       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2520       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2521     esac
2522   fi
2523 done
2524 if $ac_cache_corrupted; then
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2528 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2529   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2530 fi
2531 ## -------------------- ##
2532 ## Main body of script. ##
2533 ## -------------------- ##
2534
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
2542
2543
2544
2545 ac_config_headers="$ac_config_headers config.h"
2546
2547
2548 # -------
2549 # Options
2550 # -------
2551
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2553 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2554  # Check whether --enable-version-specific-runtime-libs was given.
2555 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2556   enableval=$enable_version_specific_runtime_libs;
2557       case "$enableval" in
2558        yes|no) ;;
2559        *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2560                           esac
2561
2562 else
2563   enable_version_specific_runtime_libs=no
2564 fi
2565
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2568 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2569
2570 # We would like our source tree to be readonly. However when releases or
2571 # pre-releases are generated, the flex/bison generated files as well as the
2572 # various formats of manuals need to be included along with the rest of the
2573 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
2574 # just that.
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2576 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2577  # Check whether --enable-generated-files-in-srcdir was given.
2578 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2579   enableval=$enable_generated_files_in_srcdir;
2580       case "$enableval" in
2581        yes|no) ;;
2582        *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2583                           esac
2584
2585 else
2586   enable_generated_files_in_srcdir=no
2587 fi
2588
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2591 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2592  if test "$enable_generated_files_in_srcdir" = yes; then
2593   GENINSRC_TRUE=
2594   GENINSRC_FALSE='#'
2595 else
2596   GENINSRC_TRUE='#'
2597   GENINSRC_FALSE=
2598 fi
2599
2600
2601
2602 # -------
2603 # -------
2604
2605 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2606 #
2607 # You will slowly go insane if you do not grok the following fact:  when
2608 # building this library, the top-level /target/ becomes the library's /host/.
2609 #
2610 # configure then causes --target to default to --host, exactly like any
2611 # other package using autoconf.  Therefore, 'target' and 'host' will
2612 # always be the same.  This makes sense both for native and cross compilers
2613 # just think about it for a little while.  :-)
2614 #
2615 # Also, if this library is being configured as part of a cross compiler, the
2616 # top-level configure script will pass the "real" host as $with_cross_host.
2617 #
2618 # Do not delete or change the following two lines.  For why, see
2619 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2620 ac_aux_dir=
2621 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2622   for ac_t in install-sh install.sh shtool; do
2623     if test -f "$ac_dir/$ac_t"; then
2624       ac_aux_dir=$ac_dir
2625       ac_install_sh="$ac_aux_dir/$ac_t -c"
2626       break 2
2627     fi
2628   done
2629 done
2630 if test -z "$ac_aux_dir"; then
2631   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2632 fi
2633
2634 # These three variables are undocumented and unsupported,
2635 # and are intended to be withdrawn in a future Autoconf release.
2636 # They can cause serious problems if a builder's source tree is in a directory
2637 # whose full name contains unusual characters.
2638 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2639 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2640 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2641
2642
2643 # Make sure we can run config.sub.
2644 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2645   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2646
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2648 $as_echo_n "checking build system type... " >&6; }
2649 if test "${ac_cv_build+set}" = set; then :
2650   $as_echo_n "(cached) " >&6
2651 else
2652   ac_build_alias=$build_alias
2653 test "x$ac_build_alias" = x &&
2654   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2655 test "x$ac_build_alias" = x &&
2656   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2659
2660 fi
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2664 *-*-*) ;;
2665 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2666 esac
2667 build=$ac_cv_build
2668 ac_save_IFS=$IFS; IFS='-'
2669 set x $ac_cv_build
2670 shift
2671 build_cpu=$1
2672 build_vendor=$2
2673 shift; shift
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2676 build_os=$*
2677 IFS=$ac_save_IFS
2678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2679
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2682 $as_echo_n "checking host system type... " >&6; }
2683 if test "${ac_cv_host+set}" = set; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   if test "x$host_alias" = x; then
2687   ac_cv_host=$ac_cv_build
2688 else
2689   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2690     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2691 fi
2692
2693 fi
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2696 case $ac_cv_host in
2697 *-*-*) ;;
2698 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2699 esac
2700 host=$ac_cv_host
2701 ac_save_IFS=$IFS; IFS='-'
2702 set x $ac_cv_host
2703 shift
2704 host_cpu=$1
2705 host_vendor=$2
2706 shift; shift
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2709 host_os=$*
2710 IFS=$ac_save_IFS
2711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2712
2713
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2715 $as_echo_n "checking target system type... " >&6; }
2716 if test "${ac_cv_target+set}" = set; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test "x$target_alias" = x; then
2720   ac_cv_target=$ac_cv_host
2721 else
2722   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2723     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2724 fi
2725
2726 fi
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2728 $as_echo "$ac_cv_target" >&6; }
2729 case $ac_cv_target in
2730 *-*-*) ;;
2731 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2732 esac
2733 target=$ac_cv_target
2734 ac_save_IFS=$IFS; IFS='-'
2735 set x $ac_cv_target
2736 shift
2737 target_cpu=$1
2738 target_vendor=$2
2739 shift; shift
2740 # Remember, the first character of IFS is used to create $*,
2741 # except with old shells:
2742 target_os=$*
2743 IFS=$ac_save_IFS
2744 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2745
2746
2747 # The aliases save the names the user supplied, while $host etc.
2748 # will get canonicalized.
2749 test -n "$target_alias" &&
2750   test "$program_prefix$program_suffix$program_transform_name" = \
2751     NONENONEs,x,x, &&
2752   program_prefix=${target_alias}-
2753
2754 target_alias=${target_alias-$host_alias}
2755
2756 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2757 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2758 #  1.9.0:  minimum required version
2759 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2760 #              of other PACKAGE_* variables will, however, and there's nothing
2761 #              we can do about that; they come from AC_INIT).
2762 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2763 #            file in the top srcdir, etc, etc), so stop complaining.
2764 #  no-dist:  we don't want 'dist' and related rules.
2765 #  -Wall:  turns on all automake warnings...
2766 #  -Wno-portability:  ...except this one, since GNU make is required.
2767 #  -Wno-override: ... and this one, since we do want this in testsuite.
2768 am__api_version='1.11'
2769
2770 # Find a good install program.  We prefer a C program (faster),
2771 # so one script is as good as another.  But avoid the broken or
2772 # incompatible versions:
2773 # SysV /etc/install, /usr/sbin/install
2774 # SunOS /usr/etc/install
2775 # IRIX /sbin/install
2776 # AIX /bin/install
2777 # AmigaOS /C/install, which installs bootblocks on floppy discs
2778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2781 # OS/2's system install, which has a completely different semantic
2782 # ./install, which can be erroneously created by make from ./install.sh.
2783 # Reject install programs that cannot install multiple files.
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2785 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2786 if test -z "$INSTALL"; then
2787 if test "${ac_cv_path_install+set}" = set; then :
2788   $as_echo_n "(cached) " >&6
2789 else
2790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795     # Account for people who put trailing slashes in PATH elements.
2796 case $as_dir/ in #((
2797   ./ | .// | /[cC]/* | \
2798   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2799   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2800   /usr/ucb/* ) ;;
2801   *)
2802     # OSF1 and SCO ODT 3.0 have their own names for install.
2803     # Don't use installbsd from OSF since it installs stuff as root
2804     # by default.
2805     for ac_prog in ginstall scoinst install; do
2806       for ac_exec_ext in '' $ac_executable_extensions; do
2807         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2808           if test $ac_prog = install &&
2809             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2810             # AIX install.  It has an incompatible calling convention.
2811             :
2812           elif test $ac_prog = install &&
2813             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2814             # program-specific install script used by HP pwplus--don't use.
2815             :
2816           else
2817             rm -rf conftest.one conftest.two conftest.dir
2818             echo one > conftest.one
2819             echo two > conftest.two
2820             mkdir conftest.dir
2821             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2822               test -s conftest.one && test -s conftest.two &&
2823               test -s conftest.dir/conftest.one &&
2824               test -s conftest.dir/conftest.two
2825             then
2826               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2827               break 3
2828             fi
2829           fi
2830         fi
2831       done
2832     done
2833     ;;
2834 esac
2835
2836   done
2837 IFS=$as_save_IFS
2838
2839 rm -rf conftest.one conftest.two conftest.dir
2840
2841 fi
2842   if test "${ac_cv_path_install+set}" = set; then
2843     INSTALL=$ac_cv_path_install
2844   else
2845     # As a last resort, use the slow shell script.  Don't cache a
2846     # value for INSTALL within a source directory, because that will
2847     # break other packages using the cache if that directory is
2848     # removed, or if the value is a relative name.
2849     INSTALL=$ac_install_sh
2850   fi
2851 fi
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2853 $as_echo "$INSTALL" >&6; }
2854
2855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2856 # It thinks the first close brace ends the variable substitution.
2857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2858
2859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2860
2861 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2864 $as_echo_n "checking whether build environment is sane... " >&6; }
2865 # Just in case
2866 sleep 1
2867 echo timestamp > conftest.file
2868 # Reject unsafe characters in $srcdir or the absolute working directory
2869 # name.  Accept space and tab only in the latter.
2870 am_lf='
2871 '
2872 case `pwd` in
2873   *[\\\"\#\$\&\'\`$am_lf]*)
2874     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2875 esac
2876 case $srcdir in
2877   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2878     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2879 esac
2880
2881 # Do `set' in a subshell so we don't clobber the current shell's
2882 # arguments.  Must try -L first in case configure is actually a
2883 # symlink; some systems play weird games with the mod time of symlinks
2884 # (eg FreeBSD returns the mod time of the symlink's containing
2885 # directory).
2886 if (
2887    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2888    if test "$*" = "X"; then
2889       # -L didn't work.
2890       set X `ls -t "$srcdir/configure" conftest.file`
2891    fi
2892    rm -f conftest.file
2893    if test "$*" != "X $srcdir/configure conftest.file" \
2894       && test "$*" != "X conftest.file $srcdir/configure"; then
2895
2896       # If neither matched, then we have a broken ls.  This can happen
2897       # if, for instance, CONFIG_SHELL is bash and it inherits a
2898       # broken ls alias from the environment.  This has actually
2899       # happened.  Such a system could not be considered "sane".
2900       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2901 alias in your environment" "$LINENO" 5
2902    fi
2903
2904    test "$2" = conftest.file
2905    )
2906 then
2907    # Ok.
2908    :
2909 else
2910    as_fn_error "newly created file is older than distributed files!
2911 Check your system clock" "$LINENO" 5
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2914 $as_echo "yes" >&6; }
2915 test "$program_prefix" != NONE &&
2916   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2917 # Use a double $ so make ignores it.
2918 test "$program_suffix" != NONE &&
2919   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2920 # Double any \ or $.
2921 # By default was `s,x,x', remove it if useless.
2922 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2923 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2924
2925 # expand $ac_aux_dir to an absolute path
2926 am_aux_dir=`cd $ac_aux_dir && pwd`
2927
2928 if test x"${MISSING+set}" != xset; then
2929   case $am_aux_dir in
2930   *\ * | *\     *)
2931     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2932   *)
2933     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2934   esac
2935 fi
2936 # Use eval to expand $SHELL
2937 if eval "$MISSING --run true"; then
2938   am_missing_run="$MISSING --run "
2939 else
2940   am_missing_run=
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2942 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2943 fi
2944
2945 if test x"${install_sh}" != xset; then
2946   case $am_aux_dir in
2947   *\ * | *\     *)
2948     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2949   *)
2950     install_sh="\${SHELL} $am_aux_dir/install-sh"
2951   esac
2952 fi
2953
2954 # Installed binaries are usually stripped using `strip' when the user
2955 # run `make install-strip'.  However `strip' might not be the right
2956 # tool to use in cross-compilation environments, therefore Automake
2957 # will honor the `STRIP' environment variable to overrule this program.
2958 if test "$cross_compiling" != no; then
2959   if test -n "$ac_tool_prefix"; then
2960   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2961 set dummy ${ac_tool_prefix}strip; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_STRIP+set}" = set; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test -n "$STRIP"; then
2968   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975     for ac_exec_ext in '' $ac_executable_extensions; do
2976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982   done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 STRIP=$ac_cv_prog_STRIP
2988 if test -n "$STRIP"; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2990 $as_echo "$STRIP" >&6; }
2991 else
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 fi
2998 if test -z "$ac_cv_prog_STRIP"; then
2999   ac_ct_STRIP=$STRIP
3000   # Extract the first word of "strip", so it can be a program name with args.
3001 set dummy strip; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   if test -n "$ac_ct_STRIP"; then
3008   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     for ac_exec_ext in '' $ac_executable_extensions; do
3016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017     ac_cv_prog_ac_ct_STRIP="strip"
3018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3028 if test -n "$ac_ct_STRIP"; then
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3030 $as_echo "$ac_ct_STRIP" >&6; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036   if test "x$ac_ct_STRIP" = x; then
3037     STRIP=":"
3038   else
3039     case $cross_compiling:$ac_tool_warned in
3040 yes:)
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043 ac_tool_warned=yes ;;
3044 esac
3045     STRIP=$ac_ct_STRIP
3046   fi
3047 else
3048   STRIP="$ac_cv_prog_STRIP"
3049 fi
3050
3051 fi
3052 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3053
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3055 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3056 if test -z "$MKDIR_P"; then
3057   if test "${ac_cv_path_mkdir+set}" = set; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065     for ac_prog in mkdir gmkdir; do
3066          for ac_exec_ext in '' $ac_executable_extensions; do
3067            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3068            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3069              'mkdir (GNU coreutils) '* | \
3070              'mkdir (coreutils) '* | \
3071              'mkdir (fileutils) '4.1*)
3072                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3073                break 3;;
3074            esac
3075          done
3076        done
3077   done
3078 IFS=$as_save_IFS
3079
3080 fi
3081
3082   if test "${ac_cv_path_mkdir+set}" = set; then
3083     MKDIR_P="$ac_cv_path_mkdir -p"
3084   else
3085     # As a last resort, use the slow shell script.  Don't cache a
3086     # value for MKDIR_P within a source directory, because that will
3087     # break other packages using the cache if that directory is
3088     # removed, or if the value is a relative name.
3089     test -d ./--version && rmdir ./--version
3090     MKDIR_P="$ac_install_sh -d"
3091   fi
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3094 $as_echo "$MKDIR_P" >&6; }
3095
3096 mkdir_p="$MKDIR_P"
3097 case $mkdir_p in
3098   [\\/$]* | ?:[\\/]*) ;;
3099   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3100 esac
3101
3102 for ac_prog in gawk mawk nawk awk
3103 do
3104   # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if test "${ac_cv_prog_AWK+set}" = set; then :
3109   $as_echo_n "(cached) " >&6
3110 else
3111   if test -n "$AWK"; then
3112   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119     for ac_exec_ext in '' $ac_executable_extensions; do
3120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121     ac_cv_prog_AWK="$ac_prog"
3122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126   done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 AWK=$ac_cv_prog_AWK
3132 if test -n "$AWK"; then
3133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3134 $as_echo "$AWK" >&6; }
3135 else
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141   test -n "$AWK" && break
3142 done
3143
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3146 set x ${MAKE-make}
3147 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3148 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   cat >conftest.make <<\_ACEOF
3152 SHELL = /bin/sh
3153 all:
3154         @echo '@@@%%%=$(MAKE)=@@@%%%'
3155 _ACEOF
3156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3158   *@@@%%%=?*=@@@%%%*)
3159     eval ac_cv_prog_make_${ac_make}_set=yes;;
3160   *)
3161     eval ac_cv_prog_make_${ac_make}_set=no;;
3162 esac
3163 rm -f conftest.make
3164 fi
3165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168   SET_MAKE=
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172   SET_MAKE="MAKE=${MAKE-make}"
3173 fi
3174
3175 rm -rf .tst 2>/dev/null
3176 mkdir .tst 2>/dev/null
3177 if test -d .tst; then
3178   am__leading_dot=.
3179 else
3180   am__leading_dot=_
3181 fi
3182 rmdir .tst 2>/dev/null
3183
3184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186   # is not polluted with repeated "-I."
3187   am__isrc=' -I$(srcdir)'
3188   # test to see if srcdir already configured
3189   if test -f $srcdir/config.status; then
3190     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3191   fi
3192 fi
3193
3194 # test whether we have cygpath
3195 if test -z "$CYGPATH_W"; then
3196   if (cygpath --version) >/dev/null 2>/dev/null; then
3197     CYGPATH_W='cygpath -w'
3198   else
3199     CYGPATH_W=echo
3200   fi
3201 fi
3202
3203
3204 # Define the identity of the package.
3205  PACKAGE='libgomp'
3206  VERSION='1.0'
3207
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE "$PACKAGE"
3211 _ACEOF
3212
3213
3214 cat >>confdefs.h <<_ACEOF
3215 #define VERSION "$VERSION"
3216 _ACEOF
3217
3218 # Some tools Automake needs.
3219
3220 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3221
3222
3223 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3224
3225
3226 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3227
3228
3229 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3230
3231
3232 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233
3234 # We need awk for the "check" target.  The system "awk" is bad on
3235 # some platforms.
3236 # Always define AMTAR for backward compatibility.
3237
3238 AMTAR=${AMTAR-"${am_missing_run}tar"}
3239
3240 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3241
3242
3243
3244
3245
3246 # Default to --enable-multilib
3247 # Check whether --enable-multilib was given.
3248 if test "${enable_multilib+set}" = set; then :
3249   enableval=$enable_multilib; case "$enableval" in
3250   yes) multilib=yes ;;
3251   no)  multilib=no ;;
3252   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3253  esac
3254 else
3255   multilib=yes
3256 fi
3257
3258
3259 # We may get other options which we leave undocumented:
3260 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3261 # See config-ml.in if you want the gory details.
3262
3263 if test "$srcdir" = "."; then
3264   if test "$with_target_subdir" != "."; then
3265     multi_basedir="$srcdir/$with_multisrctop../.."
3266   else
3267     multi_basedir="$srcdir/$with_multisrctop.."
3268   fi
3269 else
3270   multi_basedir="$srcdir/.."
3271 fi
3272
3273
3274 # Even if the default multilib is not a cross compilation,
3275 # it may be that some of the other multilibs are.
3276 if test $cross_compiling = no && test $multilib = yes \
3277    && test "x${with_multisubdir}" != x ; then
3278    cross_compiling=maybe
3279 fi
3280
3281 ac_config_commands="$ac_config_commands default-1"
3282
3283
3284 # Calculate toolexeclibdir
3285 # Also toolexecdir, though it's only used in toolexeclibdir
3286 case ${enable_version_specific_runtime_libs} in
3287   yes)
3288     # Need the gcc compiler version to know where to install libraries
3289     # and header files if --enable-version-specific-runtime-libs option
3290     # is selected.
3291     toolexecdir='$(libdir)/gcc/$(target_alias)'
3292     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3293     ;;
3294   no)
3295     if test -n "$with_cross_host" &&
3296        test x"$with_cross_host" != x"no"; then
3297       # Install a library built with a cross compiler in tooldir, not libdir.
3298       toolexecdir='$(exec_prefix)/$(target_alias)'
3299       toolexeclibdir='$(toolexecdir)/lib'
3300     else
3301       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3302       toolexeclibdir='$(libdir)'
3303     fi
3304     multi_os_directory=`$CC -print-multi-os-directory`
3305     case $multi_os_directory in
3306       .) ;; # Avoid trailing /.
3307       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3308     esac
3309     ;;
3310 esac
3311
3312
3313
3314 # Check the compiler.
3315 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3316 # We must force CC to /not/ be precious variables; otherwise
3317 # the wrong, non-multilib-adjusted value will be used in multilibs.
3318 # As a side effect, we have to subst CFLAGS ourselves.
3319
3320
3321
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 if test -n "$ac_tool_prefix"; then
3328   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if test "${ac_cv_prog_CC+set}" = set; then :
3333   $as_echo_n "(cached) " >&6
3334 else
3335   if test -n "$CC"; then
3336   ac_cv_prog_CC="$CC" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343     for ac_exec_ext in '' $ac_executable_extensions; do
3344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350   done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3359 else
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 fi
3363
3364
3365 fi
3366 if test -z "$ac_cv_prog_CC"; then
3367   ac_ct_CC=$CC
3368   # Extract the first word of "gcc", so it can be a program name with args.
3369 set dummy gcc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3373   $as_echo_n "(cached) " >&6
3374 else
3375   if test -n "$ac_ct_CC"; then
3376   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383     for ac_exec_ext in '' $ac_executable_extensions; do
3384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385     ac_cv_prog_ac_ct_CC="gcc"
3386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390   done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3396 if test -n "$ac_ct_CC"; then
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3398 $as_echo "$ac_ct_CC" >&6; }
3399 else
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404   if test "x$ac_ct_CC" = x; then
3405     CC=""
3406   else
3407     case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411 ac_tool_warned=yes ;;
3412 esac
3413     CC=$ac_ct_CC
3414   fi
3415 else
3416   CC="$ac_cv_prog_CC"
3417 fi
3418
3419 if test -z "$CC"; then
3420           if test -n "$ac_tool_prefix"; then
3421     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}cc; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_CC+set}" = set; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   if test -n "$CC"; then
3429   ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436     for ac_exec_ext in '' $ac_executable_extensions; do
3437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438     ac_cv_prog_CC="${ac_tool_prefix}cc"
3439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440     break 2
3441   fi
3442 done
3443   done
3444 IFS=$as_save_IFS
3445
3446 fi
3447 fi
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3455 fi
3456
3457
3458   fi
3459 fi
3460 if test -z "$CC"; then
3461   # Extract the first word of "cc", so it can be a program name with args.
3462 set dummy cc; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if test "${ac_cv_prog_CC+set}" = set; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   if test -n "$CC"; then
3469   ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471   ac_prog_rejected=no
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477     for ac_exec_ext in '' $ac_executable_extensions; do
3478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3480        ac_prog_rejected=yes
3481        continue
3482      fi
3483     ac_cv_prog_CC="cc"
3484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488   done
3489 IFS=$as_save_IFS
3490
3491 if test $ac_prog_rejected = yes; then
3492   # We found a bogon in the path, so make sure we never use it.
3493   set dummy $ac_cv_prog_CC
3494   shift
3495   if test $# != 0; then
3496     # We chose a different compiler from the bogus one.
3497     # However, it has the same basename, so the bogon will be chosen
3498     # first if we set CC to just the basename; use the full file name.
3499     shift
3500     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3501   fi
3502 fi
3503 fi
3504 fi
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 fi
3513
3514
3515 fi
3516 if test -z "$CC"; then
3517   if test -n "$ac_tool_prefix"; then
3518   for ac_prog in cl.exe
3519   do
3520     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_CC+set}" = set; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   if test -n "$CC"; then
3528   ac_cv_prog_CC="$CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533   IFS=$as_save_IFS
3534   test -z "$as_dir" && as_dir=.
3535     for ac_exec_ext in '' $ac_executable_extensions; do
3536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539     break 2
3540   fi
3541 done
3542   done
3543 IFS=$as_save_IFS
3544
3545 fi
3546 fi
3547 CC=$ac_cv_prog_CC
3548 if test -n "$CC"; then
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3551 else
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557     test -n "$CC" && break
3558   done
3559 fi
3560 if test -z "$CC"; then
3561   ac_ct_CC=$CC
3562   for ac_prog in cl.exe
3563 do
3564   # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy $ac_prog; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3569   $as_echo_n "(cached) " >&6
3570 else
3571   if test -n "$ac_ct_CC"; then
3572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577   IFS=$as_save_IFS
3578   test -z "$as_dir" && as_dir=.
3579     for ac_exec_ext in '' $ac_executable_extensions; do
3580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581     ac_cv_prog_ac_ct_CC="$ac_prog"
3582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583     break 2
3584   fi
3585 done
3586   done
3587 IFS=$as_save_IFS
3588
3589 fi
3590 fi
3591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3592 if test -n "$ac_ct_CC"; then
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3594 $as_echo "$ac_ct_CC" >&6; }
3595 else
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 fi
3599
3600
3601   test -n "$ac_ct_CC" && break
3602 done
3603
3604   if test "x$ac_ct_CC" = x; then
3605     CC=""
3606   else
3607     case $cross_compiling:$ac_tool_warned in
3608 yes:)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned=yes ;;
3612 esac
3613     CC=$ac_ct_CC
3614   fi
3615 fi
3616
3617 fi
3618
3619
3620 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error "no acceptable C compiler found in \$PATH
3623 See \`config.log' for more details." "$LINENO" 5; }
3624
3625 # Provide some information about the compiler.
3626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3627 set X $ac_compile
3628 ac_compiler=$2
3629 for ac_option in --version -v -V -qversion; do
3630   { { ac_try="$ac_compiler $ac_option >&5"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3638   ac_status=$?
3639   if test -s conftest.err; then
3640     sed '10a\
3641 ... rest of stderr output deleted ...
3642          10q' conftest.err >conftest.er1
3643     cat conftest.er1 >&5
3644     rm -f conftest.er1 conftest.err
3645   fi
3646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647   test $ac_status = 0; }
3648 done
3649
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 ac_clean_files_save=$ac_clean_files
3662 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3663 # Try to create an executable without -o first, disregard a.out.
3664 # It will help us diagnose broken compilers, and finding out an intuition
3665 # of exeext.
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3667 $as_echo_n "checking for C compiler default output file name... " >&6; }
3668 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3669
3670 # The possible output files:
3671 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3672
3673 ac_rmfiles=
3674 for ac_file in $ac_files
3675 do
3676   case $ac_file in
3677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3679   esac
3680 done
3681 rm -f $ac_rmfiles
3682
3683 if { { ac_try="$ac_link_default"
3684 case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690   (eval "$ac_link_default") 2>&5
3691   ac_status=$?
3692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693   test $ac_status = 0; }; then :
3694   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3695 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3696 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3697 # so that the user can short-circuit this test for compilers unknown to
3698 # Autoconf.
3699 for ac_file in $ac_files ''
3700 do
3701   test -f "$ac_file" || continue
3702   case $ac_file in
3703     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3704         ;;
3705     [ab].out )
3706         # We found the default executable, but exeext='' is most
3707         # certainly right.
3708         break;;
3709     *.* )
3710         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3711         then :; else
3712            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713         fi
3714         # We set ac_cv_exeext here because the later test for it is not
3715         # safe: cross compilers may not add the suffix if given an `-o'
3716         # argument, so we may need to know it at that point already.
3717         # Even if this section looks crufty: it has the advantage of
3718         # actually working.
3719         break;;
3720     * )
3721         break;;
3722   esac
3723 done
3724 test "$ac_cv_exeext" = no && ac_cv_exeext=
3725
3726 else
3727   ac_file=''
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3730 $as_echo "$ac_file" >&6; }
3731 if test -z "$ac_file"; then :
3732   $as_echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 { as_fn_set_status 77
3738 as_fn_error "C compiler cannot create executables
3739 See \`config.log' for more details." "$LINENO" 5; }; }
3740 fi
3741 ac_exeext=$ac_cv_exeext
3742
3743 # Check that the compiler produces executables we can run.  If not, either
3744 # the compiler is broken, or we cross compile.
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3746 $as_echo_n "checking whether the C compiler works... " >&6; }
3747 # If not cross compiling, check that we can run a simple program.
3748 if test "$cross_compiling" != yes; then
3749   if { ac_try='./$ac_file'
3750   { { case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756   (eval "$ac_try") 2>&5
3757   ac_status=$?
3758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759   test $ac_status = 0; }; }; then
3760     cross_compiling=no
3761   else
3762     if test "$cross_compiling" = maybe; then
3763         cross_compiling=yes
3764     else
3765         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details." "$LINENO" 5; }
3770     fi
3771   fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3774 $as_echo "yes" >&6; }
3775
3776 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 # Check that the compiler produces executables we can run.  If not, either
3779 # the compiler is broken, or we cross compile.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3781 $as_echo_n "checking whether we are cross compiling... " >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3783 $as_echo "$cross_compiling" >&6; }
3784
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3786 $as_echo_n "checking for suffix of executables... " >&6; }
3787 if { { ac_try="$ac_link"
3788 case "(($ac_try" in
3789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790   *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794   (eval "$ac_link") 2>&5
3795   ac_status=$?
3796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797   test $ac_status = 0; }; then :
3798   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3799 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3800 # work properly (i.e., refer to `conftest.exe'), while it won't with
3801 # `rm'.
3802 for ac_file in conftest.exe conftest conftest.*; do
3803   test -f "$ac_file" || continue
3804   case $ac_file in
3805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807           break;;
3808     * ) break;;
3809   esac
3810 done
3811 else
3812   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error "cannot compute suffix of executables: cannot compile and link
3815 See \`config.log' for more details." "$LINENO" 5; }
3816 fi
3817 rm -f conftest$ac_cv_exeext
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3819 $as_echo "$ac_cv_exeext" >&6; }
3820
3821 rm -f conftest.$ac_ext
3822 EXEEXT=$ac_cv_exeext
3823 ac_exeext=$EXEEXT
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825 $as_echo_n "checking for suffix of object files... " >&6; }
3826 if test "${ac_cv_objext+set}" = set; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835
3836   ;
3837   return 0;
3838 }
3839 _ACEOF
3840 rm -f conftest.o conftest.obj
3841 if { { ac_try="$ac_compile"
3842 case "(($ac_try" in
3843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844   *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848   (eval "$ac_compile") 2>&5
3849   ac_status=$?
3850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851   test $ac_status = 0; }; then :
3852   for ac_file in conftest.o conftest.obj conftest.*; do
3853   test -f "$ac_file" || continue;
3854   case $ac_file in
3855     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857        break;;
3858   esac
3859 done
3860 else
3861   $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error "cannot compute suffix of object files: cannot compile
3867 See \`config.log' for more details." "$LINENO" 5; }
3868 fi
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872 $as_echo "$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3874 ac_objext=$OBJEXT
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3878   $as_echo_n "(cached) " >&6
3879 else
3880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h.  */
3882
3883 int
3884 main ()
3885 {
3886 #ifndef __GNUC__
3887        choke me
3888 #endif
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895   ac_compiler_gnu=yes
3896 else
3897   ac_compiler_gnu=no
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905 if test $ac_compiler_gnu = yes; then
3906   GCC=yes
3907 else
3908   GCC=
3909 fi
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3914 if test "${ac_cv_prog_cc_g+set}" = set; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   ac_save_c_werror_flag=$ac_c_werror_flag
3918    ac_c_werror_flag=yes
3919    ac_cv_prog_cc_g=no
3920    CFLAGS="-g"
3921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933   ac_cv_prog_cc_g=yes
3934 else
3935   CFLAGS=""
3936       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948
3949 else
3950   ac_c_werror_flag=$ac_save_c_werror_flag
3951          CFLAGS="-g"
3952          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h.  */
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_prog_cc_g=yes
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971    ac_c_werror_flag=$ac_save_c_werror_flag
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974 $as_echo "$ac_cv_prog_cc_g" >&6; }
3975 if test "$ac_test_CFLAGS" = set; then
3976   CFLAGS=$ac_save_CFLAGS
3977 elif test $ac_cv_prog_cc_g = yes; then
3978   if test "$GCC" = yes; then
3979     CFLAGS="-g -O2"
3980   else
3981     CFLAGS="-g"
3982   fi
3983 else
3984   if test "$GCC" = yes; then
3985     CFLAGS="-O2"
3986   else
3987     CFLAGS=
3988   fi
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   ac_cv_prog_cc_c89=no
3996 ac_save_CC=$CC
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h.  */
3999 #include <stdarg.h>
4000 #include <stdio.h>
4001 #include <sys/types.h>
4002 #include <sys/stat.h>
4003 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4004 struct buf { int x; };
4005 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4006 static char *e (p, i)
4007      char **p;
4008      int i;
4009 {
4010   return p[i];
4011 }
4012 static char *f (char * (*g) (char **, int), char **p, ...)
4013 {
4014   char *s;
4015   va_list v;
4016   va_start (v,p);
4017   s = g (p, va_arg (v,int));
4018   va_end (v);
4019   return s;
4020 }
4021
4022 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4023    function prototypes and stuff, but not '\xHH' hex character constants.
4024    These don't provoke an error unfortunately, instead are silently treated
4025    as 'x'.  The following induces an error, until -std is added to get
4026    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4027    array size at least.  It's necessary to write '\x00'==0 to get something
4028    that's true only with -std.  */
4029 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030
4031 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4032    inside strings and character constants.  */
4033 #define FOO(x) 'x'
4034 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035
4036 int test (int i, double x);
4037 struct s1 {int (*f) (int a);};
4038 struct s2 {int (*f) (double a);};
4039 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4040 int argc;
4041 char **argv;
4042 int
4043 main ()
4044 {
4045 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4051         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 do
4053   CC="$ac_save_CC $ac_arg"
4054   if ac_fn_c_try_compile "$LINENO"; then :
4055   ac_cv_prog_cc_c89=$ac_arg
4056 fi
4057 rm -f core conftest.err conftest.$ac_objext
4058   test "x$ac_cv_prog_cc_c89" != "xno" && break
4059 done
4060 rm -f conftest.$ac_ext
4061 CC=$ac_save_CC
4062
4063 fi
4064 # AC_CACHE_VAL
4065 case "x$ac_cv_prog_cc_c89" in
4066   x)
4067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4068 $as_echo "none needed" >&6; } ;;
4069   xno)
4070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4071 $as_echo "unsupported" >&6; } ;;
4072   *)
4073     CC="$CC $ac_cv_prog_cc_c89"
4074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4075 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4076 esac
4077 if test "x$ac_cv_prog_cc_c89" != xno; then :
4078
4079 fi
4080
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 DEPDIR="${am__leading_dot}deps"
4087
4088 ac_config_commands="$ac_config_commands depfiles"
4089
4090
4091 am_make=${MAKE-make}
4092 cat > confinc << 'END'
4093 am__doit:
4094         @echo this is the am__doit target
4095 .PHONY: am__doit
4096 END
4097 # If we don't find an include directive, just comment out the code.
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4099 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4100 am__include="#"
4101 am__quote=
4102 _am_result=none
4103 # First try GNU make style include.
4104 echo "include confinc" > confmf
4105 # Ignore all kinds of additional output from `make'.
4106 case `$am_make -s -f confmf 2> /dev/null` in #(
4107 *the\ am__doit\ target*)
4108   am__include=include
4109   am__quote=
4110   _am_result=GNU
4111   ;;
4112 esac
4113 # Now try BSD make style include.
4114 if test "$am__include" = "#"; then
4115    echo '.include "confinc"' > confmf
4116    case `$am_make -s -f confmf 2> /dev/null` in #(
4117    *the\ am__doit\ target*)
4118      am__include=.include
4119      am__quote="\""
4120      _am_result=BSD
4121      ;;
4122    esac
4123 fi
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4127 $as_echo "$_am_result" >&6; }
4128 rm -f confinc confmf
4129
4130 # Check whether --enable-dependency-tracking was given.
4131 if test "${enable_dependency_tracking+set}" = set; then :
4132   enableval=$enable_dependency_tracking;
4133 fi
4134
4135 if test "x$enable_dependency_tracking" != xno; then
4136   am_depcomp="$ac_aux_dir/depcomp"
4137   AMDEPBACKSLASH='\'
4138 fi
4139  if test "x$enable_dependency_tracking" != xno; then
4140   AMDEP_TRUE=
4141   AMDEP_FALSE='#'
4142 else
4143   AMDEP_TRUE='#'
4144   AMDEP_FALSE=
4145 fi
4146
4147
4148
4149 depcc="$CC"   am_compiler_list=
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4152 $as_echo_n "checking dependency style of $depcc... " >&6; }
4153 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4157   # We make a subdir and do the tests there.  Otherwise we can end up
4158   # making bogus files that we don't know about and never remove.  For
4159   # instance it was reported that on HP-UX the gcc test will end up
4160   # making a dummy file named `D' -- because `-MD' means `put the output
4161   # in D'.
4162   mkdir conftest.dir
4163   # Copy depcomp to subdir because otherwise we won't find it if we're
4164   # using a relative directory.
4165   cp "$am_depcomp" conftest.dir
4166   cd conftest.dir
4167   # We will build objects and dependencies in a subdirectory because
4168   # it helps to detect inapplicable dependency modes.  For instance
4169   # both Tru64's cc and ICC support -MD to output dependencies as a
4170   # side effect of compilation, but ICC will put the dependencies in
4171   # the current directory while Tru64 will put them in the object
4172   # directory.
4173   mkdir sub
4174
4175   am_cv_CC_dependencies_compiler_type=none
4176   if test "$am_compiler_list" = ""; then
4177      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4178   fi
4179   am__universal=false
4180   case " $depcc " in #(
4181      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4182      esac
4183
4184   for depmode in $am_compiler_list; do
4185     # Setup a source with many dependencies, because some compilers
4186     # like to wrap large dependency lists on column 80 (with \), and
4187     # we should not choose a depcomp mode which is confused by this.
4188     #
4189     # We need to recreate these files for each test, as the compiler may
4190     # overwrite some of them when testing with obscure command lines.
4191     # This happens at least with the AIX C compiler.
4192     : > sub/conftest.c
4193     for i in 1 2 3 4 5 6; do
4194       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4195       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4196       # Solaris 8's {/usr,}/bin/sh.
4197       touch sub/conftst$i.h
4198     done
4199     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200
4201     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4202     # mode.  It turns out that the SunPro C++ compiler does not properly
4203     # handle `-M -o', and we need to detect this.  Also, some Intel
4204     # versions had trouble with output in subdirs
4205     am__obj=sub/conftest.${OBJEXT-o}
4206     am__minus_obj="-o $am__obj"
4207     case $depmode in
4208     gcc)
4209       # This depmode causes a compiler race in universal mode.
4210       test "$am__universal" = false || continue
4211       ;;
4212     nosideeffect)
4213       # after this tag, mechanisms are not by side-effect, so they'll
4214       # only be used when explicitly requested
4215       if test "x$enable_dependency_tracking" = xyes; then
4216         continue
4217       else
4218         break
4219       fi
4220       ;;
4221     msvisualcpp | msvcmsys)
4222       # This compiler won't grok `-c -o', but also, the minuso test has
4223       # not run yet.  These depmodes are late enough in the game, and
4224       # so weak that their functioning should not be impacted.
4225       am__obj=conftest.${OBJEXT-o}
4226       am__minus_obj=
4227       ;;
4228     none) break ;;
4229     esac
4230     if depmode=$depmode \
4231        source=sub/conftest.c object=$am__obj \
4232        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4233        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4234          >/dev/null 2>conftest.err &&
4235        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4236        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4237        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4238        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4239       # icc doesn't choke on unknown options, it will just issue warnings
4240       # or remarks (even with -Werror).  So we grep stderr for any message
4241       # that says an option was ignored or not supported.
4242       # When given -MP, icc 7.0 and 7.1 complain thusly:
4243       #   icc: Command line warning: ignoring option '-M'; no argument required
4244       # The diagnosis changed in icc 8.0:
4245       #   icc: Command line remark: option '-MP' not supported
4246       if (grep 'ignoring option' conftest.err ||
4247           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4248         am_cv_CC_dependencies_compiler_type=$depmode
4249         break
4250       fi
4251     fi
4252   done
4253
4254   cd ..
4255   rm -rf conftest.dir
4256 else
4257   am_cv_CC_dependencies_compiler_type=none
4258 fi
4259
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4262 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4263 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4264
4265  if
4266   test "x$enable_dependency_tracking" != xno \
4267   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4268   am__fastdepCC_TRUE=
4269   am__fastdepCC_FALSE='#'
4270 else
4271   am__fastdepCC_TRUE='#'
4272   am__fastdepCC_FALSE=
4273 fi
4274
4275
4276
4277
4278
4279
4280 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4281 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4282 # in both places for now and restore CFLAGS at the end of config.
4283 save_CFLAGS="$CFLAGS"
4284
4285 # Add -Wall -Werror if we are using GCC.
4286 if test "x$GCC" = "xyes"; then
4287   XCFLAGS="$XCFLAGS -Wall -Werror"
4288 fi
4289
4290 # Find other programs we need.
4291 if test -n "$ac_tool_prefix"; then
4292   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4293 set dummy ${ac_tool_prefix}ar; ac_word=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if test "${ac_cv_prog_AR+set}" = set; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   if test -n "$AR"; then
4300   ac_cv_prog_AR="$AR" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307     for ac_exec_ext in '' $ac_executable_extensions; do
4308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309     ac_cv_prog_AR="${ac_tool_prefix}ar"
4310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314   done
4315 IFS=$as_save_IFS
4316
4317 fi
4318 fi
4319 AR=$ac_cv_prog_AR
4320 if test -n "$AR"; then
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4322 $as_echo "$AR" >&6; }
4323 else
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4326 fi
4327
4328
4329 fi
4330 if test -z "$ac_cv_prog_AR"; then
4331   ac_ct_AR=$AR
4332   # Extract the first word of "ar", so it can be a program name with args.
4333 set dummy ar; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339   if test -n "$ac_ct_AR"; then
4340   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345   IFS=$as_save_IFS
4346   test -z "$as_dir" && as_dir=.
4347     for ac_exec_ext in '' $ac_executable_extensions; do
4348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349     ac_cv_prog_ac_ct_AR="ar"
4350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351     break 2
4352   fi
4353 done
4354   done
4355 IFS=$as_save_IFS
4356
4357 fi
4358 fi
4359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4362 $as_echo "$ac_ct_AR" >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4368   if test "x$ac_ct_AR" = x; then
4369     AR=""
4370   else
4371     case $cross_compiling:$ac_tool_warned in
4372 yes:)
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375 ac_tool_warned=yes ;;
4376 esac
4377     AR=$ac_ct_AR
4378   fi
4379 else
4380   AR="$ac_cv_prog_AR"
4381 fi
4382
4383 if test -n "$ac_tool_prefix"; then
4384   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4389   $as_echo_n "(cached) " >&6
4390 else
4391   if test -n "$RANLIB"; then
4392   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406   done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 RANLIB=$ac_cv_prog_RANLIB
4412 if test -n "$RANLIB"; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4414 $as_echo "$RANLIB" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$ac_cv_prog_RANLIB"; then
4423   ac_ct_RANLIB=$RANLIB
4424   # Extract the first word of "ranlib", so it can be a program name with args.
4425 set dummy ranlib; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4429   $as_echo_n "(cached) " >&6
4430 else
4431   if test -n "$ac_ct_RANLIB"; then
4432   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439     for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_prog_ac_ct_RANLIB="ranlib"
4442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446   done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4452 if test -n "$ac_ct_RANLIB"; then
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4454 $as_echo "$ac_ct_RANLIB" >&6; }
4455 else
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459
4460   if test "x$ac_ct_RANLIB" = x; then
4461     RANLIB="ranlib-not-found-in-path-error"
4462   else
4463     case $cross_compiling:$ac_tool_warned in
4464 yes:)
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467 ac_tool_warned=yes ;;
4468 esac
4469     RANLIB=$ac_ct_RANLIB
4470   fi
4471 else
4472   RANLIB="$ac_cv_prog_RANLIB"
4473 fi
4474
4475 # Extract the first word of "perl", so it can be a program name with args.
4476 set dummy perl; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_path_PERL+set}" = set; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482   case $PERL in
4483   [\\/]* | ?:[\\/]*)
4484   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4485   ;;
4486   *)
4487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490   IFS=$as_save_IFS
4491   test -z "$as_dir" && as_dir=.
4492     for ac_exec_ext in '' $ac_executable_extensions; do
4493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4494     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496     break 2
4497   fi
4498 done
4499   done
4500 IFS=$as_save_IFS
4501
4502   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4503   ;;
4504 esac
4505 fi
4506 PERL=$ac_cv_path_PERL
4507 if test -n "$PERL"; then
4508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4509 $as_echo "$PERL" >&6; }
4510 else
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 $as_echo "no" >&6; }
4513 fi
4514
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4517 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4518 set x ${MAKE-make}
4519 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4520 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   cat >conftest.make <<\_ACEOF
4524 SHELL = /bin/sh
4525 all:
4526         @echo '@@@%%%=$(MAKE)=@@@%%%'
4527 _ACEOF
4528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4529 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4530   *@@@%%%=?*=@@@%%%*)
4531     eval ac_cv_prog_make_${ac_make}_set=yes;;
4532   *)
4533     eval ac_cv_prog_make_${ac_make}_set=no;;
4534 esac
4535 rm -f conftest.make
4536 fi
4537 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539 $as_echo "yes" >&6; }
4540   SET_MAKE=
4541 else
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544   SET_MAKE="MAKE=${MAKE-make}"
4545 fi
4546
4547
4548
4549 # See if makeinfo has been installed and is modern enough
4550 # that we can use it.
4551
4552   # Extract the first word of "makeinfo", so it can be a program name with args.
4553 set dummy makeinfo; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   if test -n "$MAKEINFO"; then
4560   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567     for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_prog_MAKEINFO="makeinfo"
4570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574   done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 MAKEINFO=$ac_cv_prog_MAKEINFO
4580 if test -n "$MAKEINFO"; then
4581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4582 $as_echo "$MAKEINFO" >&6; }
4583 else
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4587
4588
4589   if test -n "$MAKEINFO"; then
4590     # Found it, now check the version.
4591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4592 $as_echo_n "checking for modern makeinfo... " >&6; }
4593 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4597                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4598
4599                     case $ac_prog_version in
4600                       '')  gcc_cv_prog_makeinfo_modern=no;;
4601                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4602                       *)   gcc_cv_prog_makeinfo_modern=no;;
4603                     esac
4604
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4607 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4608   else
4609     gcc_cv_prog_makeinfo_modern=no
4610   fi
4611   if test $gcc_cv_prog_makeinfo_modern = no; then
4612     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4613   fi
4614
4615  if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4616   BUILD_INFO_TRUE=
4617   BUILD_INFO_FALSE='#'
4618 else
4619   BUILD_INFO_TRUE='#'
4620   BUILD_INFO_FALSE=
4621 fi
4622
4623
4624
4625 # Configure libtool
4626 case `pwd` in
4627   *\ * | *\     *)
4628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4629 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4630 esac
4631
4632
4633
4634 macro_version='2.2.7a'
4635 macro_revision='1.3134'
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649 ltmain="$ac_aux_dir/ltmain.sh"
4650
4651 # Backslashify metacharacters that are still active within
4652 # double-quoted strings.
4653 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4654
4655 # Same as above, but do not quote variable references.
4656 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4657
4658 # Sed substitution to delay expansion of an escaped shell variable in a
4659 # double_quote_subst'ed string.
4660 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4661
4662 # Sed substitution to delay expansion of an escaped single quote.
4663 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4664
4665 # Sed substitution to avoid accidental globbing in evaled expressions
4666 no_glob_subst='s/\*/\\\*/g'
4667
4668 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4670 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4673 $as_echo_n "checking how to print strings... " >&6; }
4674 # Test print first, because it will be a builtin if present.
4675 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4676    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4677   ECHO='print -r --'
4678 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4679   ECHO='printf %s\n'
4680 else
4681   # Use this function as a fallback that always works.
4682   func_fallback_echo ()
4683   {
4684     eval 'cat <<_LTECHO_EOF
4685 $1
4686 _LTECHO_EOF'
4687   }
4688   ECHO='func_fallback_echo'
4689 fi
4690
4691 # func_echo_all arg...
4692 # Invoke $ECHO with all args, space-separated.
4693 func_echo_all ()
4694 {
4695     $ECHO ""
4696 }
4697
4698 case "$ECHO" in
4699   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4700 $as_echo "printf" >&6; } ;;
4701   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4702 $as_echo "print -r" >&6; } ;;
4703   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4704 $as_echo "cat" >&6; } ;;
4705 esac
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4721 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4722 if test "${ac_cv_path_SED+set}" = set; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4726      for ac_i in 1 2 3 4 5 6 7; do
4727        ac_script="$ac_script$as_nl$ac_script"
4728      done
4729      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4730      { ac_script=; unset ac_script;}
4731      if test -z "$SED"; then
4732   ac_path_SED_found=false
4733   # Loop through the user's path and test for each of PROGNAME-LIST
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_prog in sed gsed; do
4740     for ac_exec_ext in '' $ac_executable_extensions; do
4741       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4742       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4743 # Check for GNU ac_path_SED and select it if it is found.
4744   # Check for GNU $ac_path_SED
4745 case `"$ac_path_SED" --version 2>&1` in
4746 *GNU*)
4747   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4748 *)
4749   ac_count=0
4750   $as_echo_n 0123456789 >"conftest.in"
4751   while :
4752   do
4753     cat "conftest.in" "conftest.in" >"conftest.tmp"
4754     mv "conftest.tmp" "conftest.in"
4755     cp "conftest.in" "conftest.nl"
4756     $as_echo '' >> "conftest.nl"
4757     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759     as_fn_arith $ac_count + 1 && ac_count=$as_val
4760     if test $ac_count -gt ${ac_path_SED_max-0}; then
4761       # Best one so far, save it but keep looking for a better one
4762       ac_cv_path_SED="$ac_path_SED"
4763       ac_path_SED_max=$ac_count
4764     fi
4765     # 10*(2^10) chars as input seems more than enough
4766     test $ac_count -gt 10 && break
4767   done
4768   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769 esac
4770
4771       $ac_path_SED_found && break 3
4772     done
4773   done
4774   done
4775 IFS=$as_save_IFS
4776   if test -z "$ac_cv_path_SED"; then
4777     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4778   fi
4779 else
4780   ac_cv_path_SED=$SED
4781 fi
4782
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4785 $as_echo "$ac_cv_path_SED" >&6; }
4786  SED="$ac_cv_path_SED"
4787   rm -f conftest.sed
4788
4789 test -z "$SED" && SED=sed
4790 Xsed="$SED -e 1s/^X//"
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4803 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4804 if test "${ac_cv_path_GREP+set}" = set; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   if test -z "$GREP"; then
4808   ac_path_GREP_found=false
4809   # Loop through the user's path and test for each of PROGNAME-LIST
4810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815     for ac_prog in grep ggrep; do
4816     for ac_exec_ext in '' $ac_executable_extensions; do
4817       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4818       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4819 # Check for GNU ac_path_GREP and select it if it is found.
4820   # Check for GNU $ac_path_GREP
4821 case `"$ac_path_GREP" --version 2>&1` in
4822 *GNU*)
4823   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4824 *)
4825   ac_count=0
4826   $as_echo_n 0123456789 >"conftest.in"
4827   while :
4828   do
4829     cat "conftest.in" "conftest.in" >"conftest.tmp"
4830     mv "conftest.tmp" "conftest.in"
4831     cp "conftest.in" "conftest.nl"
4832     $as_echo 'GREP' >> "conftest.nl"
4833     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835     as_fn_arith $ac_count + 1 && ac_count=$as_val
4836     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4837       # Best one so far, save it but keep looking for a better one
4838       ac_cv_path_GREP="$ac_path_GREP"
4839       ac_path_GREP_max=$ac_count
4840     fi
4841     # 10*(2^10) chars as input seems more than enough
4842     test $ac_count -gt 10 && break
4843   done
4844   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 esac
4846
4847       $ac_path_GREP_found && break 3
4848     done
4849   done
4850   done
4851 IFS=$as_save_IFS
4852   if test -z "$ac_cv_path_GREP"; then
4853     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854   fi
4855 else
4856   ac_cv_path_GREP=$GREP
4857 fi
4858
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4861 $as_echo "$ac_cv_path_GREP" >&6; }
4862  GREP="$ac_cv_path_GREP"
4863
4864
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4866 $as_echo_n "checking for egrep... " >&6; }
4867 if test "${ac_cv_path_EGREP+set}" = set; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4871    then ac_cv_path_EGREP="$GREP -E"
4872    else
4873      if test -z "$EGREP"; then
4874   ac_path_EGREP_found=false
4875   # Loop through the user's path and test for each of PROGNAME-LIST
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881     for ac_prog in egrep; do
4882     for ac_exec_ext in '' $ac_executable_extensions; do
4883       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4884       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4885 # Check for GNU ac_path_EGREP and select it if it is found.
4886   # Check for GNU $ac_path_EGREP
4887 case `"$ac_path_EGREP" --version 2>&1` in
4888 *GNU*)
4889   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4890 *)
4891   ac_count=0
4892   $as_echo_n 0123456789 >"conftest.in"
4893   while :
4894   do
4895     cat "conftest.in" "conftest.in" >"conftest.tmp"
4896     mv "conftest.tmp" "conftest.in"
4897     cp "conftest.in" "conftest.nl"
4898     $as_echo 'EGREP' >> "conftest.nl"
4899     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4900     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4901     as_fn_arith $ac_count + 1 && ac_count=$as_val
4902     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4903       # Best one so far, save it but keep looking for a better one
4904       ac_cv_path_EGREP="$ac_path_EGREP"
4905       ac_path_EGREP_max=$ac_count
4906     fi
4907     # 10*(2^10) chars as input seems more than enough
4908     test $ac_count -gt 10 && break
4909   done
4910   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4911 esac
4912
4913       $ac_path_EGREP_found && break 3
4914     done
4915   done
4916   done
4917 IFS=$as_save_IFS
4918   if test -z "$ac_cv_path_EGREP"; then
4919     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4920   fi
4921 else
4922   ac_cv_path_EGREP=$EGREP
4923 fi
4924
4925    fi
4926 fi
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4928 $as_echo "$ac_cv_path_EGREP" >&6; }
4929  EGREP="$ac_cv_path_EGREP"
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4933 $as_echo_n "checking for fgrep... " >&6; }
4934 if test "${ac_cv_path_FGREP+set}" = set; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4938    then ac_cv_path_FGREP="$GREP -F"
4939    else
4940      if test -z "$FGREP"; then
4941   ac_path_FGREP_found=false
4942   # Loop through the user's path and test for each of PROGNAME-LIST
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     for ac_prog in fgrep; do
4949     for ac_exec_ext in '' $ac_executable_extensions; do
4950       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4951       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4952 # Check for GNU ac_path_FGREP and select it if it is found.
4953   # Check for GNU $ac_path_FGREP
4954 case `"$ac_path_FGREP" --version 2>&1` in
4955 *GNU*)
4956   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4957 *)
4958   ac_count=0
4959   $as_echo_n 0123456789 >"conftest.in"
4960   while :
4961   do
4962     cat "conftest.in" "conftest.in" >"conftest.tmp"
4963     mv "conftest.tmp" "conftest.in"
4964     cp "conftest.in" "conftest.nl"
4965     $as_echo 'FGREP' >> "conftest.nl"
4966     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4967     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4968     as_fn_arith $ac_count + 1 && ac_count=$as_val
4969     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4970       # Best one so far, save it but keep looking for a better one
4971       ac_cv_path_FGREP="$ac_path_FGREP"
4972       ac_path_FGREP_max=$ac_count
4973     fi
4974     # 10*(2^10) chars as input seems more than enough
4975     test $ac_count -gt 10 && break
4976   done
4977   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4978 esac
4979
4980       $ac_path_FGREP_found && break 3
4981     done
4982   done
4983   done
4984 IFS=$as_save_IFS
4985   if test -z "$ac_cv_path_FGREP"; then
4986     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4987   fi
4988 else
4989   ac_cv_path_FGREP=$FGREP
4990 fi
4991
4992    fi
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4995 $as_echo "$ac_cv_path_FGREP" >&6; }
4996  FGREP="$ac_cv_path_FGREP"
4997
4998
4999 test -z "$GREP" && GREP=grep
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 # Check whether --with-gnu-ld was given.
5020 if test "${with_gnu_ld+set}" = set; then :
5021   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5022 else
5023   with_gnu_ld=no
5024 fi
5025
5026 ac_prog=ld
5027 if test "$GCC" = yes; then
5028   # Check if gcc -print-prog-name=ld gives a path.
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5030 $as_echo_n "checking for ld used by $CC... " >&6; }
5031   case $host in
5032   *-*-mingw*)
5033     # gcc leaves a trailing carriage return which upsets mingw
5034     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5035   *)
5036     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5037   esac
5038   case $ac_prog in
5039     # Accept absolute paths.
5040     [\\/]* | ?:[\\/]*)
5041       re_direlt='/[^/][^/]*/\.\./'
5042       # Canonicalize the pathname of ld
5043       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5044       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5045         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5046       done
5047       test -z "$LD" && LD="$ac_prog"
5048       ;;
5049   "")
5050     # If it fails, then pretend we aren't using GCC.
5051     ac_prog=ld
5052     ;;
5053   *)
5054     # If it is relative, then search for the first ld in PATH.
5055     with_gnu_ld=unknown
5056     ;;
5057   esac
5058 elif test "$with_gnu_ld" = yes; then
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5060 $as_echo_n "checking for GNU ld... " >&6; }
5061 else
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5063 $as_echo_n "checking for non-GNU ld... " >&6; }
5064 fi
5065 if test "${lt_cv_path_LD+set}" = set; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   if test -z "$LD"; then
5069   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5070   for ac_dir in $PATH; do
5071     IFS="$lt_save_ifs"
5072     test -z "$ac_dir" && ac_dir=.
5073     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5074       lt_cv_path_LD="$ac_dir/$ac_prog"
5075       # Check to see if the program is GNU ld.  I'd rather use --version,
5076       # but apparently some variants of GNU ld only accept -v.
5077       # Break only if it was the GNU/non-GNU ld that we prefer.
5078       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5079       *GNU* | *'with BFD'*)
5080         test "$with_gnu_ld" != no && break
5081         ;;
5082       *)
5083         test "$with_gnu_ld" != yes && break
5084         ;;
5085       esac
5086     fi
5087   done
5088   IFS="$lt_save_ifs"
5089 else
5090   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5091 fi
5092 fi
5093
5094 LD="$lt_cv_path_LD"
5095 if test -n "$LD"; then
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5097 $as_echo "$LD" >&6; }
5098 else
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5104 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5105 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5109 case `$LD -v 2>&1 </dev/null` in
5110 *GNU* | *'with BFD'*)
5111   lt_cv_prog_gnu_ld=yes
5112   ;;
5113 *)
5114   lt_cv_prog_gnu_ld=no
5115   ;;
5116 esac
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5119 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5120 with_gnu_ld=$lt_cv_prog_gnu_ld
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5131 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5132 if test "${lt_cv_path_NM+set}" = set; then :
5133   $as_echo_n "(cached) " >&6
5134 else
5135   if test -n "$NM"; then
5136   # Let the user override the test.
5137   lt_cv_path_NM="$NM"
5138 else
5139   lt_nm_to_check="${ac_tool_prefix}nm"
5140   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5141     lt_nm_to_check="$lt_nm_to_check nm"
5142   fi
5143   for lt_tmp_nm in $lt_nm_to_check; do
5144     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5145     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5146       IFS="$lt_save_ifs"
5147       test -z "$ac_dir" && ac_dir=.
5148       tmp_nm="$ac_dir/$lt_tmp_nm"
5149       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5150         # Check to see if the nm accepts a BSD-compat flag.
5151         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5152         #   nm: unknown option "B" ignored
5153         # Tru64's nm complains that /dev/null is an invalid object file
5154         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5155         */dev/null* | *'Invalid file or object type'*)
5156           lt_cv_path_NM="$tmp_nm -B"
5157           break
5158           ;;
5159         *)
5160           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5161           */dev/null*)
5162             lt_cv_path_NM="$tmp_nm -p"
5163             break
5164             ;;
5165           *)
5166             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5167             continue # so that we can try to find one that supports BSD flags
5168             ;;
5169           esac
5170           ;;
5171         esac
5172       fi
5173     done
5174     IFS="$lt_save_ifs"
5175   done
5176   : ${lt_cv_path_NM=no}
5177 fi
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5180 $as_echo "$lt_cv_path_NM" >&6; }
5181 if test "$lt_cv_path_NM" != "no"; then
5182   NM="$lt_cv_path_NM"
5183 else
5184   # Didn't find any BSD compatible name lister, look for dumpbin.
5185   if test -n "$DUMPBIN"; then :
5186     # Let the user override the test.
5187   else
5188     if test -n "$ac_tool_prefix"; then
5189   for ac_prog in dumpbin "link -dump"
5190   do
5191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   if test -n "$DUMPBIN"; then
5199   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204   IFS=$as_save_IFS
5205   test -z "$as_dir" && as_dir=.
5206     for ac_exec_ext in '' $ac_executable_extensions; do
5207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210     break 2
5211   fi
5212 done
5213   done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 DUMPBIN=$ac_cv_prog_DUMPBIN
5219 if test -n "$DUMPBIN"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5221 $as_echo "$DUMPBIN" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228     test -n "$DUMPBIN" && break
5229   done
5230 fi
5231 if test -z "$DUMPBIN"; then
5232   ac_ct_DUMPBIN=$DUMPBIN
5233   for ac_prog in dumpbin "link -dump"
5234 do
5235   # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   if test -n "$ac_ct_DUMPBIN"; then
5243   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250     for ac_exec_ext in '' $ac_executable_extensions; do
5251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257   done
5258 IFS=$as_save_IFS
5259
5260 fi
5261 fi
5262 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5263 if test -n "$ac_ct_DUMPBIN"; then
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5265 $as_echo "$ac_ct_DUMPBIN" >&6; }
5266 else
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271
5272   test -n "$ac_ct_DUMPBIN" && break
5273 done
5274
5275   if test "x$ac_ct_DUMPBIN" = x; then
5276     DUMPBIN=":"
5277   else
5278     case $cross_compiling:$ac_tool_warned in
5279 yes:)
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5282 ac_tool_warned=yes ;;
5283 esac
5284     DUMPBIN=$ac_ct_DUMPBIN
5285   fi
5286 fi
5287
5288     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5289     *COFF*)
5290       DUMPBIN="$DUMPBIN -symbols"
5291       ;;
5292     *)
5293       DUMPBIN=:
5294       ;;
5295     esac
5296   fi
5297
5298   if test "$DUMPBIN" != ":"; then
5299     NM="$DUMPBIN"
5300   fi
5301 fi
5302 test -z "$NM" && NM=nm
5303
5304
5305
5306
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5310 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5311 if test "${lt_cv_nm_interface+set}" = set; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   lt_cv_nm_interface="BSD nm"
5315   echo "int some_variable = 0;" > conftest.$ac_ext
5316   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5317   (eval "$ac_compile" 2>conftest.err)
5318   cat conftest.err >&5
5319   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5320   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5321   cat conftest.err >&5
5322   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5323   cat conftest.out >&5
5324   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5325     lt_cv_nm_interface="MS dumpbin"
5326   fi
5327   rm -f conftest*
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5330 $as_echo "$lt_cv_nm_interface" >&6; }
5331
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5333 $as_echo_n "checking whether ln -s works... " >&6; }
5334 LN_S=$as_ln_s
5335 if test "$LN_S" = "ln -s"; then
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5337 $as_echo "yes" >&6; }
5338 else
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5340 $as_echo "no, using $LN_S" >&6; }
5341 fi
5342
5343 # find the maximum length of command line arguments
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5345 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5346 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349     i=0
5350   teststring="ABCD"
5351
5352   case $build_os in
5353   msdosdjgpp*)
5354     # On DJGPP, this test can blow up pretty badly due to problems in libc
5355     # (any single argument exceeding 2000 bytes causes a buffer overrun
5356     # during glob expansion).  Even if it were fixed, the result of this
5357     # check would be larger than it should be.
5358     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5359     ;;
5360
5361   gnu*)
5362     # Under GNU Hurd, this test is not required because there is
5363     # no limit to the length of command line arguments.
5364     # Libtool will interpret -1 as no limit whatsoever
5365     lt_cv_sys_max_cmd_len=-1;
5366     ;;
5367
5368   cygwin* | mingw* | cegcc*)
5369     # On Win9x/ME, this test blows up -- it succeeds, but takes
5370     # about 5 minutes as the teststring grows exponentially.
5371     # Worse, since 9x/ME are not pre-emptively multitasking,
5372     # you end up with a "frozen" computer, even though with patience
5373     # the test eventually succeeds (with a max line length of 256k).
5374     # Instead, let's just punt: use the minimum linelength reported by
5375     # all of the supported platforms: 8192 (on NT/2K/XP).
5376     lt_cv_sys_max_cmd_len=8192;
5377     ;;
5378
5379   mint*)
5380     # On MiNT this can take a long time and run out of memory.
5381     lt_cv_sys_max_cmd_len=8192;
5382     ;;
5383
5384   amigaos*)
5385     # On AmigaOS with pdksh, this test takes hours, literally.
5386     # So we just punt and use a minimum line length of 8192.
5387     lt_cv_sys_max_cmd_len=8192;
5388     ;;
5389
5390   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5391     # This has been around since 386BSD, at least.  Likely further.
5392     if test -x /sbin/sysctl; then
5393       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5394     elif test -x /usr/sbin/sysctl; then
5395       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5396     else
5397       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5398     fi
5399     # And add a safety zone
5400     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5401     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5402     ;;
5403
5404   interix*)
5405     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5406     lt_cv_sys_max_cmd_len=196608
5407     ;;
5408
5409   osf*)
5410     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5411     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5412     # nice to cause kernel panics so lets avoid the loop below.
5413     # First set a reasonable default.
5414     lt_cv_sys_max_cmd_len=16384
5415     #
5416     if test -x /sbin/sysconfig; then
5417       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5418         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5419       esac
5420     fi
5421     ;;
5422   sco3.2v5*)
5423     lt_cv_sys_max_cmd_len=102400
5424     ;;
5425   sysv5* | sco5v6* | sysv4.2uw2*)
5426     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5427     if test -n "$kargmax"; then
5428       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5429     else
5430       lt_cv_sys_max_cmd_len=32768
5431     fi
5432     ;;
5433   *)
5434     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5435     if test -n "$lt_cv_sys_max_cmd_len"; then
5436       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5437       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5438     else
5439       # Make teststring a little bigger before we do anything with it.
5440       # a 1K string should be a reasonable start.
5441       for i in 1 2 3 4 5 6 7 8 ; do
5442         teststring=$teststring$teststring
5443       done
5444       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5445       # If test is not a shell built-in, we'll probably end up computing a
5446       # maximum length that is only half of the actual maximum length, but
5447       # we can't tell.
5448       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5449                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5450               test $i != 17 # 1/2 MB should be enough
5451       do
5452         i=`expr $i + 1`
5453         teststring=$teststring$teststring
5454       done
5455       # Only check the string length outside the loop.
5456       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5457       teststring=
5458       # Add a significant safety factor because C++ compilers can tack on
5459       # massive amounts of additional arguments before passing them to the
5460       # linker.  It appears as though 1/2 is a usable value.
5461       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5462     fi
5463     ;;
5464   esac
5465
5466 fi
5467
5468 if test -n $lt_cv_sys_max_cmd_len ; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5470 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5471 else
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5473 $as_echo "none" >&6; }
5474 fi
5475 max_cmd_len=$lt_cv_sys_max_cmd_len
5476
5477
5478
5479
5480
5481
5482 : ${CP="cp -f"}
5483 : ${MV="mv -f"}
5484 : ${RM="rm -f"}
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5487 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5488 # Try some XSI features
5489 xsi_shell=no
5490 ( _lt_dummy="a/b/c"
5491   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5492       = c,a/b,, \
5493     && eval 'test $(( 1 + 1 )) -eq 2 \
5494     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5495   && xsi_shell=yes
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5497 $as_echo "$xsi_shell" >&6; }
5498
5499
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5501 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5502 lt_shell_append=no
5503 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5504     >/dev/null 2>&1 \
5505   && lt_shell_append=yes
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5507 $as_echo "$lt_shell_append" >&6; }
5508
5509
5510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5511   lt_unset=unset
5512 else
5513   lt_unset=false
5514 fi
5515
5516
5517
5518
5519
5520 # test EBCDIC or ASCII
5521 case `echo X|tr X '\101'` in
5522  A) # ASCII based system
5523     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5524   lt_SP2NL='tr \040 \012'
5525   lt_NL2SP='tr \015\012 \040\040'
5526   ;;
5527  *) # EBCDIC based system
5528   lt_SP2NL='tr \100 \n'
5529   lt_NL2SP='tr \r\n \100\100'
5530   ;;
5531 esac
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5542 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5543 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   lt_cv_ld_reload_flag='-r'
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5549 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5550 reload_flag=$lt_cv_ld_reload_flag
5551 case $reload_flag in
5552 "" | " "*) ;;
5553 *) reload_flag=" $reload_flag" ;;
5554 esac
5555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5556 case $host_os in
5557   darwin*)
5558     if test "$GCC" = yes; then
5559       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5560     else
5561       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5562     fi
5563     ;;
5564 esac
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 if test -n "$ac_tool_prefix"; then
5575   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   if test -n "$OBJDUMP"; then
5583   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 OBJDUMP=$ac_cv_prog_OBJDUMP
5603 if test -n "$OBJDUMP"; then
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5605 $as_echo "$OBJDUMP" >&6; }
5606 else
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612 fi
5613 if test -z "$ac_cv_prog_OBJDUMP"; then
5614   ac_ct_OBJDUMP=$OBJDUMP
5615   # Extract the first word of "objdump", so it can be a program name with args.
5616 set dummy objdump; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   if test -n "$ac_ct_OBJDUMP"; then
5623   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5643 if test -n "$ac_ct_OBJDUMP"; then
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5645 $as_echo "$ac_ct_OBJDUMP" >&6; }
5646 else
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651   if test "x$ac_ct_OBJDUMP" = x; then
5652     OBJDUMP="false"
5653   else
5654     case $cross_compiling:$ac_tool_warned in
5655 yes:)
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5659 esac
5660     OBJDUMP=$ac_ct_OBJDUMP
5661   fi
5662 else
5663   OBJDUMP="$ac_cv_prog_OBJDUMP"
5664 fi
5665
5666 test -z "$OBJDUMP" && OBJDUMP=objdump
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5677 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5678 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   lt_cv_file_magic_cmd='$MAGIC_CMD'
5682 lt_cv_file_magic_test_file=
5683 lt_cv_deplibs_check_method='unknown'
5684 # Need to set the preceding variable on all platforms that support
5685 # interlibrary dependencies.
5686 # 'none' -- dependencies not supported.
5687 # `unknown' -- same as none, but documents that we really don't know.
5688 # 'pass_all' -- all dependencies passed with no checks.
5689 # 'test_compile' -- check by making test program.
5690 # 'file_magic [[regex]]' -- check by looking for files in library path
5691 # which responds to the $file_magic_cmd with a given extended regex.
5692 # If you have `file' or equivalent on your system and you're not sure
5693 # whether `pass_all' will *always* work, you probably want this one.
5694
5695 case $host_os in
5696 aix[4-9]*)
5697   lt_cv_deplibs_check_method=pass_all
5698   ;;
5699
5700 beos*)
5701   lt_cv_deplibs_check_method=pass_all
5702   ;;
5703
5704 bsdi[45]*)
5705   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5706   lt_cv_file_magic_cmd='/usr/bin/file -L'
5707   lt_cv_file_magic_test_file=/shlib/libc.so
5708   ;;
5709
5710 cygwin*)
5711   # func_win32_libid is a shell function defined in ltmain.sh
5712   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5713   lt_cv_file_magic_cmd='func_win32_libid'
5714   ;;
5715
5716 mingw* | pw32*)
5717   # Base MSYS/MinGW do not provide the 'file' command needed by
5718   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5719   # unless we find 'file', for example because we are cross-compiling.
5720   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5721   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5722     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5723     lt_cv_file_magic_cmd='func_win32_libid'
5724   else
5725     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5726     lt_cv_file_magic_cmd='$OBJDUMP -f'
5727   fi
5728   ;;
5729
5730 cegcc*)
5731   # use the weaker test based on 'objdump'. See mingw*.
5732   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5733   lt_cv_file_magic_cmd='$OBJDUMP -f'
5734   ;;
5735
5736 darwin* | rhapsody*)
5737   lt_cv_deplibs_check_method=pass_all
5738   ;;
5739
5740 freebsd* | dragonfly*)
5741   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5742     case $host_cpu in
5743     i*86 )
5744       # Not sure whether the presence of OpenBSD here was a mistake.
5745       # Let's accept both of them until this is cleared up.
5746       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5747       lt_cv_file_magic_cmd=/usr/bin/file
5748       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5749       ;;
5750     esac
5751   else
5752     lt_cv_deplibs_check_method=pass_all
5753   fi
5754   ;;
5755
5756 gnu*)
5757   lt_cv_deplibs_check_method=pass_all
5758   ;;
5759
5760 haiku*)
5761   lt_cv_deplibs_check_method=pass_all
5762   ;;
5763
5764 hpux10.20* | hpux11*)
5765   lt_cv_file_magic_cmd=/usr/bin/file
5766   case $host_cpu in
5767   ia64*)
5768     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5769     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5770     ;;
5771   hppa*64*)
5772     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]'
5773     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5774     ;;
5775   *)
5776     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5777     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5778     ;;
5779   esac
5780   ;;
5781
5782 interix[3-9]*)
5783   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5784   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5785   ;;
5786
5787 irix5* | irix6* | nonstopux*)
5788   case $LD in
5789   *-32|*"-32 ") libmagic=32-bit;;
5790   *-n32|*"-n32 ") libmagic=N32;;
5791   *-64|*"-64 ") libmagic=64-bit;;
5792   *) libmagic=never-match;;
5793   esac
5794   lt_cv_deplibs_check_method=pass_all
5795   ;;
5796
5797 # This must be Linux ELF.
5798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5799   lt_cv_deplibs_check_method=pass_all
5800   ;;
5801
5802 netbsd*)
5803   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805   else
5806     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5807   fi
5808   ;;
5809
5810 newos6*)
5811   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5812   lt_cv_file_magic_cmd=/usr/bin/file
5813   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5814   ;;
5815
5816 *nto* | *qnx*)
5817   lt_cv_deplibs_check_method=pass_all
5818   ;;
5819
5820 openbsd*)
5821   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5822     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5823   else
5824     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5825   fi
5826   ;;
5827
5828 osf3* | osf4* | osf5*)
5829   lt_cv_deplibs_check_method=pass_all
5830   ;;
5831
5832 rdos*)
5833   lt_cv_deplibs_check_method=pass_all
5834   ;;
5835
5836 solaris*)
5837   lt_cv_deplibs_check_method=pass_all
5838   ;;
5839
5840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5841   lt_cv_deplibs_check_method=pass_all
5842   ;;
5843
5844 sysv4 | sysv4.3*)
5845   case $host_vendor in
5846   motorola)
5847     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]'
5848     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5849     ;;
5850   ncr)
5851     lt_cv_deplibs_check_method=pass_all
5852     ;;
5853   sequent)
5854     lt_cv_file_magic_cmd='/bin/file'
5855     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5856     ;;
5857   sni)
5858     lt_cv_file_magic_cmd='/bin/file'
5859     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5860     lt_cv_file_magic_test_file=/lib/libc.so
5861     ;;
5862   siemens)
5863     lt_cv_deplibs_check_method=pass_all
5864     ;;
5865   pc)
5866     lt_cv_deplibs_check_method=pass_all
5867     ;;
5868   esac
5869   ;;
5870
5871 tpf*)
5872   lt_cv_deplibs_check_method=pass_all
5873   ;;
5874 esac
5875
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5878 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5879 file_magic_cmd=$lt_cv_file_magic_cmd
5880 deplibs_check_method=$lt_cv_deplibs_check_method
5881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894 if test -n "$ac_tool_prefix"; then
5895   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5896 set dummy ${ac_tool_prefix}ar; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if test "${ac_cv_prog_AR+set}" = set; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   if test -n "$AR"; then
5903   ac_cv_prog_AR="$AR" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910     for ac_exec_ext in '' $ac_executable_extensions; do
5911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912     ac_cv_prog_AR="${ac_tool_prefix}ar"
5913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917   done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 AR=$ac_cv_prog_AR
5923 if test -n "$AR"; then
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5925 $as_echo "$AR" >&6; }
5926 else
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 fi
5930
5931
5932 fi
5933 if test -z "$ac_cv_prog_AR"; then
5934   ac_ct_AR=$AR
5935   # Extract the first word of "ar", so it can be a program name with args.
5936 set dummy ar; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   if test -n "$ac_ct_AR"; then
5943   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948   IFS=$as_save_IFS
5949   test -z "$as_dir" && as_dir=.
5950     for ac_exec_ext in '' $ac_executable_extensions; do
5951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952     ac_cv_prog_ac_ct_AR="ar"
5953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954     break 2
5955   fi
5956 done
5957   done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5963 if test -n "$ac_ct_AR"; then
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5965 $as_echo "$ac_ct_AR" >&6; }
5966 else
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 fi
5970
5971   if test "x$ac_ct_AR" = x; then
5972     AR="false"
5973   else
5974     case $cross_compiling:$ac_tool_warned in
5975 yes:)
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978 ac_tool_warned=yes ;;
5979 esac
5980     AR=$ac_ct_AR
5981   fi
5982 else
5983   AR="$ac_cv_prog_AR"
5984 fi
5985
5986 test -z "$AR" && AR=ar
5987 test -z "$AR_FLAGS" && AR_FLAGS=cru
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999 if test -n "$ac_tool_prefix"; then
6000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}strip; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_STRIP+set}" = set; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   if test -n "$STRIP"; then
6008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015     for ac_exec_ext in '' $ac_executable_extensions; do
6016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019     break 2
6020   fi
6021 done
6022   done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 STRIP=$ac_cv_prog_STRIP
6028 if test -n "$STRIP"; then
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6030 $as_echo "$STRIP" >&6; }
6031 else
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036
6037 fi
6038 if test -z "$ac_cv_prog_STRIP"; then
6039   ac_ct_STRIP=$STRIP
6040   # Extract the first word of "strip", so it can be a program name with args.
6041 set dummy strip; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   if test -n "$ac_ct_STRIP"; then
6048   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055     for ac_exec_ext in '' $ac_executable_extensions; do
6056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057     ac_cv_prog_ac_ct_STRIP="strip"
6058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062   done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068 if test -n "$ac_ct_STRIP"; then
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6070 $as_echo "$ac_ct_STRIP" >&6; }
6071 else
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6074 fi
6075
6076   if test "x$ac_ct_STRIP" = x; then
6077     STRIP=":"
6078   else
6079     case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085     STRIP=$ac_ct_STRIP
6086   fi
6087 else
6088   STRIP="$ac_cv_prog_STRIP"
6089 fi
6090
6091 test -z "$STRIP" && STRIP=:
6092
6093
6094
6095
6096
6097
6098 if test -n "$ac_tool_prefix"; then
6099   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6104   $as_echo_n "(cached) " >&6
6105 else
6106   if test -n "$RANLIB"; then
6107   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114     for ac_exec_ext in '' $ac_executable_extensions; do
6115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121   done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 RANLIB=$ac_cv_prog_RANLIB
6127 if test -n "$RANLIB"; then
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6129 $as_echo "$RANLIB" >&6; }
6130 else
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if test -z "$ac_cv_prog_RANLIB"; then
6138   ac_ct_RANLIB=$RANLIB
6139   # Extract the first word of "ranlib", so it can be a program name with args.
6140 set dummy ranlib; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   if test -n "$ac_ct_RANLIB"; then
6147   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   test -z "$as_dir" && as_dir=.
6154     for ac_exec_ext in '' $ac_executable_extensions; do
6155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156     ac_cv_prog_ac_ct_RANLIB="ranlib"
6157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158     break 2
6159   fi
6160 done
6161   done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6167 if test -n "$ac_ct_RANLIB"; then
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6169 $as_echo "$ac_ct_RANLIB" >&6; }
6170 else
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175   if test "x$ac_ct_RANLIB" = x; then
6176     RANLIB=":"
6177   else
6178     case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182 ac_tool_warned=yes ;;
6183 esac
6184     RANLIB=$ac_ct_RANLIB
6185   fi
6186 else
6187   RANLIB="$ac_cv_prog_RANLIB"
6188 fi
6189
6190 test -z "$RANLIB" && RANLIB=:
6191
6192
6193
6194
6195
6196
6197 # Determine commands to create old-style static archives.
6198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6199 old_postinstall_cmds='chmod 644 $oldlib'
6200 old_postuninstall_cmds=
6201
6202 if test -n "$RANLIB"; then
6203   case $host_os in
6204   openbsd*)
6205     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6206     ;;
6207   *)
6208     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6209     ;;
6210   esac
6211   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6212 fi
6213
6214 case $host_os in
6215   darwin*)
6216     lock_old_archive_extraction=yes ;;
6217   *)
6218     lock_old_archive_extraction=no ;;
6219 esac
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
6252
6253
6254
6255
6256
6257
6258
6259 # If no C compiler was specified, use CC.
6260 LTCC=${LTCC-"$CC"}
6261
6262 # If no C compiler flags were specified, use CFLAGS.
6263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264
6265 # Allow CC to be a program name with arguments.
6266 compiler=$CC
6267
6268
6269 # Check for command to grab the raw symbol name followed by C symbol from nm.
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6271 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275
6276 # These are sane defaults that work on at least a few old systems.
6277 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6278
6279 # Character class describing NM global symbol codes.
6280 symcode='[BCDEGRST]'
6281
6282 # Regexp to match symbols that can be accessed directly from C.
6283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6284
6285 # Define system-specific variables.
6286 case $host_os in
6287 aix*)
6288   symcode='[BCDT]'
6289   ;;
6290 cygwin* | mingw* | pw32* | cegcc*)
6291   symcode='[ABCDGISTW]'
6292   ;;
6293 hpux*)
6294   if test "$host_cpu" = ia64; then
6295     symcode='[ABCDEGRST]'
6296   fi
6297   ;;
6298 irix* | nonstopux*)
6299   symcode='[BCDEGRST]'
6300   ;;
6301 osf*)
6302   symcode='[BCDEGQRST]'
6303   ;;
6304 solaris*)
6305   symcode='[BDRT]'
6306   ;;
6307 sco3.2v5*)
6308   symcode='[DT]'
6309   ;;
6310 sysv4.2uw2*)
6311   symcode='[DT]'
6312   ;;
6313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6314   symcode='[ABDT]'
6315   ;;
6316 sysv4)
6317   symcode='[DFNSTU]'
6318   ;;
6319 esac
6320
6321 # If we're using GNU nm, then use its standard symbol codes.
6322 case `$NM -V 2>&1` in
6323 *GNU* | *'with BFD'*)
6324   symcode='[ABCDGIRSTW]' ;;
6325 esac
6326
6327 # Transform an extracted symbol line into a proper C declaration.
6328 # Some systems (esp. on ia64) link data and code symbols differently,
6329 # so use this general approach.
6330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6331
6332 # Transform an extracted symbol line into symbol name and symbol address
6333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6334 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'"
6335
6336 # Handle CRLF in mingw tool chain
6337 opt_cr=
6338 case $build_os in
6339 mingw*)
6340   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6341   ;;
6342 esac
6343
6344 # Try without a prefix underscore, then with it.
6345 for ac_symprfx in "" "_"; do
6346
6347   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6348   symxfrm="\\1 $ac_symprfx\\2 \\2"
6349
6350   # Write the raw and C identifiers.
6351   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6352     # Fake it for dumpbin and say T for any non-static function
6353     # and D for any global variable.
6354     # Also find C++ and __fastcall symbols from MSVC++,
6355     # which start with @ or ?.
6356     lt_cv_sys_global_symbol_pipe="$AWK '"\
6357 "     {last_section=section; section=\$ 3};"\
6358 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6359 "     \$ 0!~/External *\|/{next};"\
6360 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6361 "     {if(hide[section]) next};"\
6362 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6363 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6364 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6365 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6366 "     ' prfx=^$ac_symprfx"
6367   else
6368     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6369   fi
6370
6371   # Check to see that the pipe works correctly.
6372   pipe_works=no
6373
6374   rm -f conftest*
6375   cat > conftest.$ac_ext <<_LT_EOF
6376 #ifdef __cplusplus
6377 extern "C" {
6378 #endif
6379 char nm_test_var;
6380 void nm_test_func(void);
6381 void nm_test_func(void){}
6382 #ifdef __cplusplus
6383 }
6384 #endif
6385 int main(){nm_test_var='a';nm_test_func();return(0);}
6386 _LT_EOF
6387
6388   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6389   (eval $ac_compile) 2>&5
6390   ac_status=$?
6391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392   test $ac_status = 0; }; then
6393     # Now try to grab the symbols.
6394     nlist=conftest.nm
6395     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6396   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6397   ac_status=$?
6398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399   test $ac_status = 0; } && test -s "$nlist"; then
6400       # Try sorting and uniquifying the output.
6401       if sort "$nlist" | uniq > "$nlist"T; then
6402         mv -f "$nlist"T "$nlist"
6403       else
6404         rm -f "$nlist"T
6405       fi
6406
6407       # Make sure that we snagged all the symbols we need.
6408       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6409         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6410           cat <<_LT_EOF > conftest.$ac_ext
6411 #ifdef __cplusplus
6412 extern "C" {
6413 #endif
6414
6415 _LT_EOF
6416           # Now generate the symbol file.
6417           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6418
6419           cat <<_LT_EOF >> conftest.$ac_ext
6420
6421 /* The mapping between symbol names and symbols.  */
6422 const struct {
6423   const char *name;
6424   void       *address;
6425 }
6426 lt__PROGRAM__LTX_preloaded_symbols[] =
6427 {
6428   { "@PROGRAM@", (void *) 0 },
6429 _LT_EOF
6430           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6431           cat <<\_LT_EOF >> conftest.$ac_ext
6432   {0, (void *) 0}
6433 };
6434
6435 /* This works around a problem in FreeBSD linker */
6436 #ifdef FREEBSD_WORKAROUND
6437 static const void *lt_preloaded_setup() {
6438   return lt__PROGRAM__LTX_preloaded_symbols;
6439 }
6440 #endif
6441
6442 #ifdef __cplusplus
6443 }
6444 #endif
6445 _LT_EOF
6446           # Now try linking the two files.
6447           mv conftest.$ac_objext conftstm.$ac_objext
6448           lt_save_LIBS="$LIBS"
6449           lt_save_CFLAGS="$CFLAGS"
6450           LIBS="conftstm.$ac_objext"
6451           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6452           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6453   (eval $ac_link) 2>&5
6454   ac_status=$?
6455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6457             pipe_works=yes
6458           fi
6459           LIBS="$lt_save_LIBS"
6460           CFLAGS="$lt_save_CFLAGS"
6461         else
6462           echo "cannot find nm_test_func in $nlist" >&5
6463         fi
6464       else
6465         echo "cannot find nm_test_var in $nlist" >&5
6466       fi
6467     else
6468       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6469     fi
6470   else
6471     echo "$progname: failed program was:" >&5
6472     cat conftest.$ac_ext >&5
6473   fi
6474   rm -rf conftest* conftst*
6475
6476   # Do not use the global_symbol_pipe unless it works.
6477   if test "$pipe_works" = yes; then
6478     break
6479   else
6480     lt_cv_sys_global_symbol_pipe=
6481   fi
6482 done
6483
6484 fi
6485
6486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6487   lt_cv_sys_global_symbol_to_cdecl=
6488 fi
6489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6491 $as_echo "failed" >&6; }
6492 else
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6494 $as_echo "ok" >&6; }
6495 fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 # Check whether --enable-libtool-lock was given.
6520 if test "${enable_libtool_lock+set}" = set; then :
6521   enableval=$enable_libtool_lock;
6522 fi
6523
6524 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6525
6526 # Some flags need to be propagated to the compiler or linker for good
6527 # libtool support.
6528 case $host in
6529 ia64-*-hpux*)
6530   # Find out which ABI we are using.
6531   echo 'int i;' > conftest.$ac_ext
6532   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533   (eval $ac_compile) 2>&5
6534   ac_status=$?
6535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536   test $ac_status = 0; }; then
6537     case `/usr/bin/file conftest.$ac_objext` in
6538       *ELF-32*)
6539         HPUX_IA64_MODE="32"
6540         ;;
6541       *ELF-64*)
6542         HPUX_IA64_MODE="64"
6543         ;;
6544     esac
6545   fi
6546   rm -rf conftest*
6547   ;;
6548 *-*-irix6*)
6549   # Find out which ABI we are using.
6550   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6551   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552   (eval $ac_compile) 2>&5
6553   ac_status=$?
6554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555   test $ac_status = 0; }; then
6556     if test "$lt_cv_prog_gnu_ld" = yes; then
6557       case `/usr/bin/file conftest.$ac_objext` in
6558         *32-bit*)
6559           LD="${LD-ld} -melf32bsmip"
6560           ;;
6561         *N32*)
6562           LD="${LD-ld} -melf32bmipn32"
6563           ;;
6564         *64-bit*)
6565           LD="${LD-ld} -melf64bmip"
6566         ;;
6567       esac
6568     else
6569       case `/usr/bin/file conftest.$ac_objext` in
6570         *32-bit*)
6571           LD="${LD-ld} -32"
6572           ;;
6573         *N32*)
6574           LD="${LD-ld} -n32"
6575           ;;
6576         *64-bit*)
6577           LD="${LD-ld} -64"
6578           ;;
6579       esac
6580     fi
6581   fi
6582   rm -rf conftest*
6583   ;;
6584
6585 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6586 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6587   # Find out which ABI we are using.
6588   echo 'int i;' > conftest.$ac_ext
6589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6590   (eval $ac_compile) 2>&5
6591   ac_status=$?
6592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593   test $ac_status = 0; }; then
6594     case `/usr/bin/file conftest.o` in
6595       *32-bit*)
6596         case $host in
6597           x86_64-*kfreebsd*-gnu)
6598             LD="${LD-ld} -m elf_i386_fbsd"
6599             ;;
6600           x86_64-*linux*)
6601             LD="${LD-ld} -m elf_i386"
6602             ;;
6603           ppc64-*linux*|powerpc64-*linux*)
6604             LD="${LD-ld} -m elf32ppclinux"
6605             ;;
6606           s390x-*linux*)
6607             LD="${LD-ld} -m elf_s390"
6608             ;;
6609           sparc64-*linux*)
6610             LD="${LD-ld} -m elf32_sparc"
6611             ;;
6612         esac
6613         ;;
6614       *64-bit*)
6615         case $host in
6616           x86_64-*kfreebsd*-gnu)
6617             LD="${LD-ld} -m elf_x86_64_fbsd"
6618             ;;
6619           x86_64-*linux*)
6620             LD="${LD-ld} -m elf_x86_64"
6621             ;;
6622           ppc*-*linux*|powerpc*-*linux*)
6623             LD="${LD-ld} -m elf64ppc"
6624             ;;
6625           s390*-*linux*|s390*-*tpf*)
6626             LD="${LD-ld} -m elf64_s390"
6627             ;;
6628           sparc*-*linux*)
6629             LD="${LD-ld} -m elf64_sparc"
6630             ;;
6631         esac
6632         ;;
6633     esac
6634   fi
6635   rm -rf conftest*
6636   ;;
6637
6638 *-*-sco3.2v5*)
6639   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6640   SAVE_CFLAGS="$CFLAGS"
6641   CFLAGS="$CFLAGS -belf"
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6643 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6644 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647   ac_ext=c
6648 ac_cpp='$CPP $CPPFLAGS'
6649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652
6653      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h.  */
6655
6656 int
6657 main ()
6658 {
6659
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 if ac_fn_c_try_link "$LINENO"; then :
6665   lt_cv_cc_needs_belf=yes
6666 else
6667   lt_cv_cc_needs_belf=no
6668 fi
6669 rm -f core conftest.err conftest.$ac_objext \
6670     conftest$ac_exeext conftest.$ac_ext
6671      ac_ext=c
6672 ac_cpp='$CPP $CPPFLAGS'
6673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676
6677 fi
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6679 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6680   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6681     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6682     CFLAGS="$SAVE_CFLAGS"
6683   fi
6684   ;;
6685 sparc*-*solaris*)
6686   # Find out which ABI we are using.
6687   echo 'int i;' > conftest.$ac_ext
6688   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6689   (eval $ac_compile) 2>&5
6690   ac_status=$?
6691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692   test $ac_status = 0; }; then
6693     case `/usr/bin/file conftest.o` in
6694     *64-bit*)
6695       case $lt_cv_prog_gnu_ld in
6696       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6697       *)
6698         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6699           LD="${LD-ld} -64"
6700         fi
6701         ;;
6702       esac
6703       ;;
6704     esac
6705   fi
6706   rm -rf conftest*
6707   ;;
6708 esac
6709
6710 need_locks="$enable_libtool_lock"
6711
6712
6713   case $host_os in
6714     rhapsody* | darwin*)
6715     if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$DSYMUTIL"; then
6724   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6744 if test -n "$DSYMUTIL"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6746 $as_echo "$DSYMUTIL" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_DSYMUTIL"; then
6755   ac_ct_DSYMUTIL=$DSYMUTIL
6756   # Extract the first word of "dsymutil", so it can be a program name with args.
6757 set dummy dsymutil; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$ac_ct_DSYMUTIL"; then
6764   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771     for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778   done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6784 if test -n "$ac_ct_DSYMUTIL"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_DSYMUTIL" = x; then
6793     DSYMUTIL=":"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801     DSYMUTIL=$ac_ct_DSYMUTIL
6802   fi
6803 else
6804   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6805 fi
6806
6807     if test -n "$ac_tool_prefix"; then
6808   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$NMEDIT"; then
6816   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 NMEDIT=$ac_cv_prog_NMEDIT
6836 if test -n "$NMEDIT"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6838 $as_echo "$NMEDIT" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_NMEDIT"; then
6847   ac_ct_NMEDIT=$NMEDIT
6848   # Extract the first word of "nmedit", so it can be a program name with args.
6849 set dummy nmedit; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6853   $as_echo_n "(cached) " >&6
6854 else
6855   if test -n "$ac_ct_NMEDIT"; then
6856   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863     for ac_exec_ext in '' $ac_executable_extensions; do
6864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870   done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6876 if test -n "$ac_ct_NMEDIT"; then
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6878 $as_echo "$ac_ct_NMEDIT" >&6; }
6879 else
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884   if test "x$ac_ct_NMEDIT" = x; then
6885     NMEDIT=":"
6886   else
6887     case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893     NMEDIT=$ac_ct_NMEDIT
6894   fi
6895 else
6896   NMEDIT="$ac_cv_prog_NMEDIT"
6897 fi
6898
6899     if test -n "$ac_tool_prefix"; then
6900   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_prog_LIPO+set}" = set; then :
6905   $as_echo_n "(cached) " >&6
6906 else
6907   if test -n "$LIPO"; then
6908   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915     for ac_exec_ext in '' $ac_executable_extensions; do
6916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922   done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 LIPO=$ac_cv_prog_LIPO
6928 if test -n "$LIPO"; then
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6930 $as_echo "$LIPO" >&6; }
6931 else
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_LIPO"; then
6939   ac_ct_LIPO=$LIPO
6940   # Extract the first word of "lipo", so it can be a program name with args.
6941 set dummy lipo; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   if test -n "$ac_ct_LIPO"; then
6948   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955     for ac_exec_ext in '' $ac_executable_extensions; do
6956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957     ac_cv_prog_ac_ct_LIPO="lipo"
6958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962   done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6968 if test -n "$ac_ct_LIPO"; then
6969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6970 $as_echo "$ac_ct_LIPO" >&6; }
6971 else
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976   if test "x$ac_ct_LIPO" = x; then
6977     LIPO=":"
6978   else
6979     case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985     LIPO=$ac_ct_LIPO
6986   fi
6987 else
6988   LIPO="$ac_cv_prog_LIPO"
6989 fi
6990
6991     if test -n "$ac_tool_prefix"; then
6992   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}otool; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6997   $as_echo_n "(cached) " >&6
6998 else
6999   if test -n "$OTOOL"; then
7000   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007     for ac_exec_ext in '' $ac_executable_extensions; do
7008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014   done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 OTOOL=$ac_cv_prog_OTOOL
7020 if test -n "$OTOOL"; then
7021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7022 $as_echo "$OTOOL" >&6; }
7023 else
7024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_OTOOL"; then
7031   ac_ct_OTOOL=$OTOOL
7032   # Extract the first word of "otool", so it can be a program name with args.
7033 set dummy otool; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039   if test -n "$ac_ct_OTOOL"; then
7040   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045   IFS=$as_save_IFS
7046   test -z "$as_dir" && as_dir=.
7047     for ac_exec_ext in '' $ac_executable_extensions; do
7048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049     ac_cv_prog_ac_ct_OTOOL="otool"
7050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051     break 2
7052   fi
7053 done
7054   done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7060 if test -n "$ac_ct_OTOOL"; then
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7062 $as_echo "$ac_ct_OTOOL" >&6; }
7063 else
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068   if test "x$ac_ct_OTOOL" = x; then
7069     OTOOL=":"
7070   else
7071     case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077     OTOOL=$ac_ct_OTOOL
7078   fi
7079 else
7080   OTOOL="$ac_cv_prog_OTOOL"
7081 fi
7082
7083     if test -n "$ac_tool_prefix"; then
7084   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7089   $as_echo_n "(cached) " >&6
7090 else
7091   if test -n "$OTOOL64"; then
7092   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099     for ac_exec_ext in '' $ac_executable_extensions; do
7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106   done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 OTOOL64=$ac_cv_prog_OTOOL64
7112 if test -n "$OTOOL64"; then
7113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7114 $as_echo "$OTOOL64" >&6; }
7115 else
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120
7121 fi
7122 if test -z "$ac_cv_prog_OTOOL64"; then
7123   ac_ct_OTOOL64=$OTOOL64
7124   # Extract the first word of "otool64", so it can be a program name with args.
7125 set dummy otool64; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   if test -n "$ac_ct_OTOOL64"; then
7132   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139     for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_prog_ac_ct_OTOOL64="otool64"
7142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146   done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7152 if test -n "$ac_ct_OTOOL64"; then
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7154 $as_echo "$ac_ct_OTOOL64" >&6; }
7155 else
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159
7160   if test "x$ac_ct_OTOOL64" = x; then
7161     OTOOL64=":"
7162   else
7163     case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169     OTOOL64=$ac_ct_OTOOL64
7170   fi
7171 else
7172   OTOOL64="$ac_cv_prog_OTOOL64"
7173 fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7202 $as_echo_n "checking for -single_module linker flag... " >&6; }
7203 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206   lt_cv_apple_cc_single_mod=no
7207       if test -z "${LT_MULTI_MODULE}"; then
7208         # By default we will add the -single_module flag. You can override
7209         # by either setting the environment variable LT_MULTI_MODULE
7210         # non-empty at configure time, or by adding -multi_module to the
7211         # link flags.
7212         rm -rf libconftest.dylib*
7213         echo "int foo(void){return 1;}" > conftest.c
7214         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215 -dynamiclib -Wl,-single_module conftest.c" >&5
7216         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7217           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7218         _lt_result=$?
7219         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7220           lt_cv_apple_cc_single_mod=yes
7221         else
7222           cat conftest.err >&5
7223         fi
7224         rm -rf libconftest.dylib*
7225         rm -f conftest.*
7226       fi
7227 fi
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7229 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7231 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7232 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   lt_cv_ld_exported_symbols_list=no
7236       save_LDFLAGS=$LDFLAGS
7237       echo "_main" > conftest.sym
7238       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7239       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h.  */
7241
7242 int
7243 main ()
7244 {
7245
7246   ;
7247   return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_link "$LINENO"; then :
7251   lt_cv_ld_exported_symbols_list=yes
7252 else
7253   lt_cv_ld_exported_symbols_list=no
7254 fi
7255 rm -f core conftest.err conftest.$ac_objext \
7256     conftest$ac_exeext conftest.$ac_ext
7257         LDFLAGS="$save_LDFLAGS"
7258
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7263 $as_echo_n "checking for -force_load linker flag... " >&6; }
7264 if test "${lt_cv_ld_force_load+set}" = set; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   lt_cv_ld_force_load=no
7268       cat > conftest.c << _LT_EOF
7269 int forced_loaded() { return 2;}
7270 _LT_EOF
7271       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7272       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7273       echo "$AR cru libconftest.a conftest.o" >&5
7274       $AR cru libconftest.a conftest.o 2>&5
7275       cat > conftest.c << _LT_EOF
7276 int main() { return 0;}
7277 _LT_EOF
7278       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7279       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7280       _lt_result=$?
7281       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7282         lt_cv_ld_force_load=yes
7283       else
7284         cat conftest.err >&5
7285       fi
7286         rm -f conftest.err libconftest.a conftest conftest.c
7287         rm -rf conftest.dSYM
7288
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7291 $as_echo "$lt_cv_ld_force_load" >&6; }
7292     case $host_os in
7293     rhapsody* | darwin1.[012])
7294       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7295     darwin1.*)
7296       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7297     darwin*) # darwin 5.x on
7298       # if running on 10.5 or later, the deployment target defaults
7299       # to the OS version, if on x86, and 10.4, the deployment
7300       # target defaults to 10.4. Don't you love it?
7301       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7302         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7303           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7304         10.[012]*)
7305           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7306         10.*)
7307           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7308       esac
7309     ;;
7310   esac
7311     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7312       _lt_dar_single_mod='$single_module'
7313     fi
7314     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7315       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7316     else
7317       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7318     fi
7319     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7320       _lt_dsymutil='~$DSYMUTIL $lib || :'
7321     else
7322       _lt_dsymutil=
7323     fi
7324     ;;
7325   esac
7326
7327 ac_ext=c
7328 ac_cpp='$CPP $CPPFLAGS'
7329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7333 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7334 # On Suns, sometimes $CPP names a directory.
7335 if test -n "$CPP" && test -d "$CPP"; then
7336   CPP=
7337 fi
7338 if test -z "$CPP"; then
7339   if test "${ac_cv_prog_CPP+set}" = set; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342       # Double quotes because CPP needs to be expanded
7343     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7344     do
7345       ac_preproc_ok=false
7346 for ac_c_preproc_warn_flag in '' yes
7347 do
7348   # Use a header file that comes with gcc, so configuring glibc
7349   # with a fresh cross-compiler works.
7350   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351   # <limits.h> exists even on freestanding compilers.
7352   # On the NeXT, cc -E runs the code through the compiler's parser,
7353   # not just through cpp. "Syntax error" is here to catch this case.
7354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h.  */
7356 #ifdef __STDC__
7357 # include <limits.h>
7358 #else
7359 # include <assert.h>
7360 #endif
7361                      Syntax error
7362 _ACEOF
7363 if ac_fn_c_try_cpp "$LINENO"; then :
7364
7365 else
7366   # Broken: fails on valid input.
7367 continue
7368 fi
7369 rm -f conftest.err conftest.$ac_ext
7370
7371   # OK, works on sane cases.  Now check whether nonexistent headers
7372   # can be detected and how.
7373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h.  */
7375 #include <ac_nonexistent.h>
7376 _ACEOF
7377 if ac_fn_c_try_cpp "$LINENO"; then :
7378   # Broken: success on invalid input.
7379 continue
7380 else
7381   # Passes both tests.
7382 ac_preproc_ok=:
7383 break
7384 fi
7385 rm -f conftest.err conftest.$ac_ext
7386
7387 done
7388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7389 rm -f conftest.err conftest.$ac_ext
7390 if $ac_preproc_ok; then :
7391   break
7392 fi
7393
7394     done
7395     ac_cv_prog_CPP=$CPP
7396
7397 fi
7398   CPP=$ac_cv_prog_CPP
7399 else
7400   ac_cv_prog_CPP=$CPP
7401 fi
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7403 $as_echo "$CPP" >&6; }
7404 ac_preproc_ok=false
7405 for ac_c_preproc_warn_flag in '' yes
7406 do
7407   # Use a header file that comes with gcc, so configuring glibc
7408   # with a fresh cross-compiler works.
7409   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7410   # <limits.h> exists even on freestanding compilers.
7411   # On the NeXT, cc -E runs the code through the compiler's parser,
7412   # not just through cpp. "Syntax error" is here to catch this case.
7413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h.  */
7415 #ifdef __STDC__
7416 # include <limits.h>
7417 #else
7418 # include <assert.h>
7419 #endif
7420                      Syntax error
7421 _ACEOF
7422 if ac_fn_c_try_cpp "$LINENO"; then :
7423
7424 else
7425   # Broken: fails on valid input.
7426 continue
7427 fi
7428 rm -f conftest.err conftest.$ac_ext
7429
7430   # OK, works on sane cases.  Now check whether nonexistent headers
7431   # can be detected and how.
7432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h.  */
7434 #include <ac_nonexistent.h>
7435 _ACEOF
7436 if ac_fn_c_try_cpp "$LINENO"; then :
7437   # Broken: success on invalid input.
7438 continue
7439 else
7440   # Passes both tests.
7441 ac_preproc_ok=:
7442 break
7443 fi
7444 rm -f conftest.err conftest.$ac_ext
7445
7446 done
7447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7448 rm -f conftest.err conftest.$ac_ext
7449 if $ac_preproc_ok; then :
7450
7451 else
7452   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7454 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7455 See \`config.log' for more details." "$LINENO" 5; }
7456 fi
7457
7458 ac_ext=c
7459 ac_cpp='$CPP $CPPFLAGS'
7460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463
7464
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7466 $as_echo_n "checking for ANSI C header files... " >&6; }
7467 if test "${ac_cv_header_stdc+set}" = set; then :
7468   $as_echo_n "(cached) " >&6
7469 else
7470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h.  */
7472 #include <stdlib.h>
7473 #include <stdarg.h>
7474 #include <string.h>
7475 #include <float.h>
7476
7477 int
7478 main ()
7479 {
7480
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486   ac_cv_header_stdc=yes
7487 else
7488   ac_cv_header_stdc=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491
7492 if test $ac_cv_header_stdc = yes; then
7493   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h.  */
7496 #include <string.h>
7497
7498 _ACEOF
7499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7500   $EGREP "memchr" >/dev/null 2>&1; then :
7501
7502 else
7503   ac_cv_header_stdc=no
7504 fi
7505 rm -f conftest*
7506
7507 fi
7508
7509 if test $ac_cv_header_stdc = yes; then
7510   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513 #include <stdlib.h>
7514
7515 _ACEOF
7516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7517   $EGREP "free" >/dev/null 2>&1; then :
7518
7519 else
7520   ac_cv_header_stdc=no
7521 fi
7522 rm -f conftest*
7523
7524 fi
7525
7526 if test $ac_cv_header_stdc = yes; then
7527   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7528   if test "$cross_compiling" = yes; then :
7529   :
7530 else
7531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h.  */
7533 #include <ctype.h>
7534 #include <stdlib.h>
7535 #if ((' ' & 0x0FF) == 0x020)
7536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7538 #else
7539 # define ISLOWER(c) \
7540                    (('a' <= (c) && (c) <= 'i') \
7541                      || ('j' <= (c) && (c) <= 'r') \
7542                      || ('s' <= (c) && (c) <= 'z'))
7543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7544 #endif
7545
7546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7547 int
7548 main ()
7549 {
7550   int i;
7551   for (i = 0; i < 256; i++)
7552     if (XOR (islower (i), ISLOWER (i))
7553         || toupper (i) != TOUPPER (i))
7554       return 2;
7555   return 0;
7556 }
7557 _ACEOF
7558 if ac_fn_c_try_run "$LINENO"; then :
7559
7560 else
7561   ac_cv_header_stdc=no
7562 fi
7563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7564   conftest.$ac_objext conftest.beam conftest.$ac_ext
7565 fi
7566
7567 fi
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7570 $as_echo "$ac_cv_header_stdc" >&6; }
7571 if test $ac_cv_header_stdc = yes; then
7572
7573 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7574
7575 fi
7576
7577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7578 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7579                   inttypes.h stdint.h unistd.h
7580 do :
7581   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7582 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7583 "
7584 eval as_val=\$$as_ac_Header
7585    if test "x$as_val" = x""yes; then :
7586   cat >>confdefs.h <<_ACEOF
7587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588 _ACEOF
7589
7590 fi
7591
7592 done
7593
7594
7595 for ac_header in dlfcn.h
7596 do :
7597   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7598 "
7599 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7600   cat >>confdefs.h <<_ACEOF
7601 #define HAVE_DLFCN_H 1
7602 _ACEOF
7603
7604 fi
7605
7606 done
7607
7608
7609
7610
7611
7612 # Set options
7613
7614
7615
7616         enable_dlopen=no
7617
7618
7619   enable_win32_dll=no
7620
7621
7622             # Check whether --enable-shared was given.
7623 if test "${enable_shared+set}" = set; then :
7624   enableval=$enable_shared; p=${PACKAGE-default}
7625     case $enableval in
7626     yes) enable_shared=yes ;;
7627     no) enable_shared=no ;;
7628     *)
7629       enable_shared=no
7630       # Look at the argument we got.  We use all the common list separators.
7631       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632       for pkg in $enableval; do
7633         IFS="$lt_save_ifs"
7634         if test "X$pkg" = "X$p"; then
7635           enable_shared=yes
7636         fi
7637       done
7638       IFS="$lt_save_ifs"
7639       ;;
7640     esac
7641 else
7642   enable_shared=yes
7643 fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653   # Check whether --enable-static was given.
7654 if test "${enable_static+set}" = set; then :
7655   enableval=$enable_static; p=${PACKAGE-default}
7656     case $enableval in
7657     yes) enable_static=yes ;;
7658     no) enable_static=no ;;
7659     *)
7660      enable_static=no
7661       # Look at the argument we got.  We use all the common list separators.
7662       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663       for pkg in $enableval; do
7664         IFS="$lt_save_ifs"
7665         if test "X$pkg" = "X$p"; then
7666           enable_static=yes
7667         fi
7668       done
7669       IFS="$lt_save_ifs"
7670       ;;
7671     esac
7672 else
7673   enable_static=yes
7674 fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685 # Check whether --with-pic was given.
7686 if test "${with_pic+set}" = set; then :
7687   withval=$with_pic; pic_mode="$withval"
7688 else
7689   pic_mode=default
7690 fi
7691
7692
7693 test -z "$pic_mode" && pic_mode=default
7694
7695
7696
7697
7698
7699
7700
7701   # Check whether --enable-fast-install was given.
7702 if test "${enable_fast_install+set}" = set; then :
7703   enableval=$enable_fast_install; p=${PACKAGE-default}
7704     case $enableval in
7705     yes) enable_fast_install=yes ;;
7706     no) enable_fast_install=no ;;
7707     *)
7708       enable_fast_install=no
7709       # Look at the argument we got.  We use all the common list separators.
7710       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7711       for pkg in $enableval; do
7712         IFS="$lt_save_ifs"
7713         if test "X$pkg" = "X$p"; then
7714           enable_fast_install=yes
7715         fi
7716       done
7717       IFS="$lt_save_ifs"
7718       ;;
7719     esac
7720 else
7721   enable_fast_install=yes
7722 fi
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734 # This can be used to rebuild libtool when needed
7735 LIBTOOL_DEPS="$ltmain"
7736
7737 # Always use our own libtool.
7738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765 test -z "$LN_S" && LN_S="ln -s"
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780 if test -n "${ZSH_VERSION+set}" ; then
7781    setopt NO_GLOB_SUBST
7782 fi
7783
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7785 $as_echo_n "checking for objdir... " >&6; }
7786 if test "${lt_cv_objdir+set}" = set; then :
7787   $as_echo_n "(cached) " >&6
7788 else
7789   rm -f .libs 2>/dev/null
7790 mkdir .libs 2>/dev/null
7791 if test -d .libs; then
7792   lt_cv_objdir=.libs
7793 else
7794   # MS-DOS does not allow filenames that begin with a dot.
7795   lt_cv_objdir=_libs
7796 fi
7797 rmdir .libs 2>/dev/null
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7800 $as_echo "$lt_cv_objdir" >&6; }
7801 objdir=$lt_cv_objdir
7802
7803
7804
7805
7806
7807 cat >>confdefs.h <<_ACEOF
7808 #define LT_OBJDIR "$lt_cv_objdir/"
7809 _ACEOF
7810
7811
7812
7813
7814 case $host_os in
7815 aix3*)
7816   # AIX sometimes has problems with the GCC collect2 program.  For some
7817   # reason, if we set the COLLECT_NAMES environment variable, the problems
7818   # vanish in a puff of smoke.
7819   if test "X${COLLECT_NAMES+set}" != Xset; then
7820     COLLECT_NAMES=
7821     export COLLECT_NAMES
7822   fi
7823   ;;
7824 esac
7825
7826 # Global variables:
7827 ofile=libtool
7828 can_build_shared=yes
7829
7830 # All known linkers require a `.a' archive for static linking (except MSVC,
7831 # which needs '.lib').
7832 libext=a
7833
7834 with_gnu_ld="$lt_cv_prog_gnu_ld"
7835
7836 old_CC="$CC"
7837 old_CFLAGS="$CFLAGS"
7838
7839 # Set sane defaults for various variables
7840 test -z "$CC" && CC=cc
7841 test -z "$LTCC" && LTCC=$CC
7842 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7843 test -z "$LD" && LD=ld
7844 test -z "$ac_objext" && ac_objext=o
7845
7846 for cc_temp in $compiler""; do
7847   case $cc_temp in
7848     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7849     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7850     \-*) ;;
7851     *) break;;
7852   esac
7853 done
7854 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7855
7856
7857 # Only perform the check for file, if the check method requires it
7858 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7859 case $deplibs_check_method in
7860 file_magic*)
7861   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7863 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7864 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7865   $as_echo_n "(cached) " >&6
7866 else
7867   case $MAGIC_CMD in
7868 [\\/*] |  ?:[\\/]*)
7869   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7870   ;;
7871 *)
7872   lt_save_MAGIC_CMD="$MAGIC_CMD"
7873   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7874   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7875   for ac_dir in $ac_dummy; do
7876     IFS="$lt_save_ifs"
7877     test -z "$ac_dir" && ac_dir=.
7878     if test -f $ac_dir/${ac_tool_prefix}file; then
7879       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7880       if test -n "$file_magic_test_file"; then
7881         case $deplibs_check_method in
7882         "file_magic "*)
7883           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7884           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7885           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7886             $EGREP "$file_magic_regex" > /dev/null; then
7887             :
7888           else
7889             cat <<_LT_EOF 1>&2
7890
7891 *** Warning: the command libtool uses to detect shared libraries,
7892 *** $file_magic_cmd, produces output that libtool cannot recognize.
7893 *** The result is that libtool may fail to recognize shared libraries
7894 *** as such.  This will affect the creation of libtool libraries that
7895 *** depend on shared libraries, but programs linked with such libtool
7896 *** libraries will work regardless of this problem.  Nevertheless, you
7897 *** may want to report the problem to your system manager and/or to
7898 *** bug-libtool@gnu.org
7899
7900 _LT_EOF
7901           fi ;;
7902         esac
7903       fi
7904       break
7905     fi
7906   done
7907   IFS="$lt_save_ifs"
7908   MAGIC_CMD="$lt_save_MAGIC_CMD"
7909   ;;
7910 esac
7911 fi
7912
7913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7914 if test -n "$MAGIC_CMD"; then
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7916 $as_echo "$MAGIC_CMD" >&6; }
7917 else
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921
7922
7923
7924
7925
7926 if test -z "$lt_cv_path_MAGIC_CMD"; then
7927   if test -n "$ac_tool_prefix"; then
7928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7929 $as_echo_n "checking for file... " >&6; }
7930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7931   $as_echo_n "(cached) " >&6
7932 else
7933   case $MAGIC_CMD in
7934 [\\/*] |  ?:[\\/]*)
7935   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7936   ;;
7937 *)
7938   lt_save_MAGIC_CMD="$MAGIC_CMD"
7939   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7940   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7941   for ac_dir in $ac_dummy; do
7942     IFS="$lt_save_ifs"
7943     test -z "$ac_dir" && ac_dir=.
7944     if test -f $ac_dir/file; then
7945       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7946       if test -n "$file_magic_test_file"; then
7947         case $deplibs_check_method in
7948         "file_magic "*)
7949           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7950           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7951           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7952             $EGREP "$file_magic_regex" > /dev/null; then
7953             :
7954           else
7955             cat <<_LT_EOF 1>&2
7956
7957 *** Warning: the command libtool uses to detect shared libraries,
7958 *** $file_magic_cmd, produces output that libtool cannot recognize.
7959 *** The result is that libtool may fail to recognize shared libraries
7960 *** as such.  This will affect the creation of libtool libraries that
7961 *** depend on shared libraries, but programs linked with such libtool
7962 *** libraries will work regardless of this problem.  Nevertheless, you
7963 *** may want to report the problem to your system manager and/or to
7964 *** bug-libtool@gnu.org
7965
7966 _LT_EOF
7967           fi ;;
7968         esac
7969       fi
7970       break
7971     fi
7972   done
7973   IFS="$lt_save_ifs"
7974   MAGIC_CMD="$lt_save_MAGIC_CMD"
7975   ;;
7976 esac
7977 fi
7978
7979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7980 if test -n "$MAGIC_CMD"; then
7981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7982 $as_echo "$MAGIC_CMD" >&6; }
7983 else
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987
7988
7989   else
7990     MAGIC_CMD=:
7991   fi
7992 fi
7993
7994   fi
7995   ;;
7996 esac
7997
7998 # Use C for the default configuration in the libtool script
7999
8000 lt_save_CC="$CC"
8001 ac_ext=c
8002 ac_cpp='$CPP $CPPFLAGS'
8003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8006
8007
8008 # Source file extension for C test sources.
8009 ac_ext=c
8010
8011 # Object file extension for compiled C test sources.
8012 objext=o
8013 objext=$objext
8014
8015 # Code to be used in simple compile tests
8016 lt_simple_compile_test_code="int some_variable = 0;"
8017
8018 # Code to be used in simple link tests
8019 lt_simple_link_test_code='int main(){return(0);}'
8020
8021
8022
8023
8024
8025
8026
8027 # If no C compiler was specified, use CC.
8028 LTCC=${LTCC-"$CC"}
8029
8030 # If no C compiler flags were specified, use CFLAGS.
8031 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8032
8033 # Allow CC to be a program name with arguments.
8034 compiler=$CC
8035
8036 # Save the default compiler, since it gets overwritten when the other
8037 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8038 compiler_DEFAULT=$CC
8039
8040 # save warnings/boilerplate of simple test code
8041 ac_outfile=conftest.$ac_objext
8042 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8043 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8044 _lt_compiler_boilerplate=`cat conftest.err`
8045 $RM conftest*
8046
8047 ac_outfile=conftest.$ac_objext
8048 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8049 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8050 _lt_linker_boilerplate=`cat conftest.err`
8051 $RM -r conftest*
8052
8053
8054 ## CAVEAT EMPTOR:
8055 ## There is no encapsulation within the following macros, do not change
8056 ## the running order or otherwise move them around unless you know exactly
8057 ## what you are doing...
8058 if test -n "$compiler"; then
8059
8060 lt_prog_compiler_no_builtin_flag=
8061
8062 if test "$GCC" = yes; then
8063   case $cc_basename in
8064   nvcc*)
8065     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8066   *)
8067     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8068   esac
8069
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8071 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8072 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8073   $as_echo_n "(cached) " >&6
8074 else
8075   lt_cv_prog_compiler_rtti_exceptions=no
8076    ac_outfile=conftest.$ac_objext
8077    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8078    lt_compiler_flag="-fno-rtti -fno-exceptions"
8079    # Insert the option either (1) after the last *FLAGS variable, or
8080    # (2) before a word containing "conftest.", or (3) at the end.
8081    # Note that $ac_compile itself does not contain backslashes and begins
8082    # with a dollar sign (not a hyphen), so the echo should work correctly.
8083    # The option is referenced via a variable to avoid confusing sed.
8084    lt_compile=`echo "$ac_compile" | $SED \
8085    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087    -e 's:$: $lt_compiler_flag:'`
8088    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8089    (eval "$lt_compile" 2>conftest.err)
8090    ac_status=$?
8091    cat conftest.err >&5
8092    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093    if (exit $ac_status) && test -s "$ac_outfile"; then
8094      # The compiler can only warn and ignore the option if not recognized
8095      # So say no if there are warnings other than the usual output.
8096      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8097      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8098      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8099        lt_cv_prog_compiler_rtti_exceptions=yes
8100      fi
8101    fi
8102    $RM conftest*
8103
8104 fi
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8106 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8107
8108 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8109     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8110 else
8111     :
8112 fi
8113
8114 fi
8115
8116
8117
8118
8119
8120
8121   lt_prog_compiler_wl=
8122 lt_prog_compiler_pic=
8123 lt_prog_compiler_static=
8124
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8126 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8127
8128   if test "$GCC" = yes; then
8129     lt_prog_compiler_wl='-Wl,'
8130     lt_prog_compiler_static='-static'
8131
8132     case $host_os in
8133       aix*)
8134       # All AIX code is PIC.
8135       if test "$host_cpu" = ia64; then
8136         # AIX 5 now supports IA64 processor
8137         lt_prog_compiler_static='-Bstatic'
8138       fi
8139       ;;
8140
8141     amigaos*)
8142       case $host_cpu in
8143       powerpc)
8144             # see comment about AmigaOS4 .so support
8145             lt_prog_compiler_pic='-fPIC'
8146         ;;
8147       m68k)
8148             # FIXME: we need at least 68020 code to build shared libraries, but
8149             # adding the `-m68020' flag to GCC prevents building anything better,
8150             # like `-m68040'.
8151             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8152         ;;
8153       esac
8154       ;;
8155
8156     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8157       # PIC is the default for these OSes.
8158       ;;
8159
8160     mingw* | cygwin* | pw32* | os2* | cegcc*)
8161       # This hack is so that the source file can tell whether it is being
8162       # built for inclusion in a dll (and should export symbols for example).
8163       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8164       # (--disable-auto-import) libraries
8165       lt_prog_compiler_pic='-DDLL_EXPORT'
8166       ;;
8167
8168     darwin* | rhapsody*)
8169       # PIC is the default on this platform
8170       # Common symbols not allowed in MH_DYLIB files
8171       lt_prog_compiler_pic='-fno-common'
8172       ;;
8173
8174     haiku*)
8175       # PIC is the default for Haiku.
8176       # The "-static" flag exists, but is broken.
8177       lt_prog_compiler_static=
8178       ;;
8179
8180     hpux*)
8181       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8182       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8183       # sets the default TLS model and affects inlining.
8184       case $host_cpu in
8185       hppa*64*)
8186         # +Z the default
8187         ;;
8188       *)
8189         lt_prog_compiler_pic='-fPIC'
8190         ;;
8191       esac
8192       ;;
8193
8194     interix[3-9]*)
8195       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8196       # Instead, we relocate shared libraries at runtime.
8197       ;;
8198
8199     msdosdjgpp*)
8200       # Just because we use GCC doesn't mean we suddenly get shared libraries
8201       # on systems that don't support them.
8202       lt_prog_compiler_can_build_shared=no
8203       enable_shared=no
8204       ;;
8205
8206     *nto* | *qnx*)
8207       # QNX uses GNU C++, but need to define -shared option too, otherwise
8208       # it will coredump.
8209       lt_prog_compiler_pic='-fPIC -shared'
8210       ;;
8211
8212     sysv4*MP*)
8213       if test -d /usr/nec; then
8214         lt_prog_compiler_pic=-Kconform_pic
8215       fi
8216       ;;
8217
8218     *)
8219       lt_prog_compiler_pic='-fPIC'
8220       ;;
8221     esac
8222
8223     case $cc_basename in
8224     nvcc*) # Cuda Compiler Driver 2.2
8225       lt_prog_compiler_wl='-Xlinker '
8226       lt_prog_compiler_pic='-Xcompiler -fPIC'
8227       ;;
8228     esac
8229   else
8230     # PORTME Check for flag to pass linker flags through the system compiler.
8231     case $host_os in
8232     aix*)
8233       lt_prog_compiler_wl='-Wl,'
8234       if test "$host_cpu" = ia64; then
8235         # AIX 5 now supports IA64 processor
8236         lt_prog_compiler_static='-Bstatic'
8237       else
8238         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8239       fi
8240       ;;
8241
8242     mingw* | cygwin* | pw32* | os2* | cegcc*)
8243       # This hack is so that the source file can tell whether it is being
8244       # built for inclusion in a dll (and should export symbols for example).
8245       lt_prog_compiler_pic='-DDLL_EXPORT'
8246       ;;
8247
8248     hpux9* | hpux10* | hpux11*)
8249       lt_prog_compiler_wl='-Wl,'
8250       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8251       # not for PA HP-UX.
8252       case $host_cpu in
8253       hppa*64*|ia64*)
8254         # +Z the default
8255         ;;
8256       *)
8257         lt_prog_compiler_pic='+Z'
8258         ;;
8259       esac
8260       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8261       lt_prog_compiler_static='${wl}-a ${wl}archive'
8262       ;;
8263
8264     irix5* | irix6* | nonstopux*)
8265       lt_prog_compiler_wl='-Wl,'
8266       # PIC (with -KPIC) is the default.
8267       lt_prog_compiler_static='-non_shared'
8268       ;;
8269
8270     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8271       case $cc_basename in
8272       # old Intel for x86_64 which still supported -KPIC.
8273       ecc*)
8274         lt_prog_compiler_wl='-Wl,'
8275         lt_prog_compiler_pic='-KPIC'
8276         lt_prog_compiler_static='-static'
8277         ;;
8278       # icc used to be incompatible with GCC.
8279       # ICC 10 doesn't accept -KPIC any more.
8280       icc* | ifort*)
8281         lt_prog_compiler_wl='-Wl,'
8282         lt_prog_compiler_pic='-fPIC'
8283         lt_prog_compiler_static='-static'
8284         ;;
8285       # Lahey Fortran 8.1.
8286       lf95*)
8287         lt_prog_compiler_wl='-Wl,'
8288         lt_prog_compiler_pic='--shared'
8289         lt_prog_compiler_static='--static'
8290         ;;
8291       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8292         # Portland Group compilers (*not* the Pentium gcc compiler,
8293         # which looks to be a dead project)
8294         lt_prog_compiler_wl='-Wl,'
8295         lt_prog_compiler_pic='-fpic'
8296         lt_prog_compiler_static='-Bstatic'
8297         ;;
8298       ccc*)
8299         lt_prog_compiler_wl='-Wl,'
8300         # All Alpha code is PIC.
8301         lt_prog_compiler_static='-non_shared'
8302         ;;
8303       xl* | bgxl* | bgf* | mpixl*)
8304         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8305         lt_prog_compiler_wl='-Wl,'
8306         lt_prog_compiler_pic='-qpic'
8307         lt_prog_compiler_static='-qstaticlink'
8308         ;;
8309       *)
8310         case `$CC -V 2>&1 | sed 5q` in
8311         *Sun\ F* | *Sun*Fortran*)
8312           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8313           lt_prog_compiler_pic='-KPIC'
8314           lt_prog_compiler_static='-Bstatic'
8315           lt_prog_compiler_wl=''
8316           ;;
8317         *Sun\ C*)
8318           # Sun C 5.9
8319           lt_prog_compiler_pic='-KPIC'
8320           lt_prog_compiler_static='-Bstatic'
8321           lt_prog_compiler_wl='-Wl,'
8322           ;;
8323         esac
8324         ;;
8325       esac
8326       ;;
8327
8328     newsos6)
8329       lt_prog_compiler_pic='-KPIC'
8330       lt_prog_compiler_static='-Bstatic'
8331       ;;
8332
8333     *nto* | *qnx*)
8334       # QNX uses GNU C++, but need to define -shared option too, otherwise
8335       # it will coredump.
8336       lt_prog_compiler_pic='-fPIC -shared'
8337       ;;
8338
8339     osf3* | osf4* | osf5*)
8340       lt_prog_compiler_wl='-Wl,'
8341       # All OSF/1 code is PIC.
8342       lt_prog_compiler_static='-non_shared'
8343       ;;
8344
8345     rdos*)
8346       lt_prog_compiler_static='-non_shared'
8347       ;;
8348
8349     solaris*)
8350       lt_prog_compiler_pic='-KPIC'
8351       lt_prog_compiler_static='-Bstatic'
8352       case $cc_basename in
8353       f77* | f90* | f95*)
8354         lt_prog_compiler_wl='-Qoption ld ';;
8355       *)
8356         lt_prog_compiler_wl='-Wl,';;
8357       esac
8358       ;;
8359
8360     sunos4*)
8361       lt_prog_compiler_wl='-Qoption ld '
8362       lt_prog_compiler_pic='-PIC'
8363       lt_prog_compiler_static='-Bstatic'
8364       ;;
8365
8366     sysv4 | sysv4.2uw2* | sysv4.3*)
8367       lt_prog_compiler_wl='-Wl,'
8368       lt_prog_compiler_pic='-KPIC'
8369       lt_prog_compiler_static='-Bstatic'
8370       ;;
8371
8372     sysv4*MP*)
8373       if test -d /usr/nec ;then
8374         lt_prog_compiler_pic='-Kconform_pic'
8375         lt_prog_compiler_static='-Bstatic'
8376       fi
8377       ;;
8378
8379     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8380       lt_prog_compiler_wl='-Wl,'
8381       lt_prog_compiler_pic='-KPIC'
8382       lt_prog_compiler_static='-Bstatic'
8383       ;;
8384
8385     unicos*)
8386       lt_prog_compiler_wl='-Wl,'
8387       lt_prog_compiler_can_build_shared=no
8388       ;;
8389
8390     uts4*)
8391       lt_prog_compiler_pic='-pic'
8392       lt_prog_compiler_static='-Bstatic'
8393       ;;
8394
8395     *)
8396       lt_prog_compiler_can_build_shared=no
8397       ;;
8398     esac
8399   fi
8400
8401 case $host_os in
8402   # For platforms which do not support PIC, -DPIC is meaningless:
8403   *djgpp*)
8404     lt_prog_compiler_pic=
8405     ;;
8406   *)
8407     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8408     ;;
8409 esac
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8411 $as_echo "$lt_prog_compiler_pic" >&6; }
8412
8413
8414
8415
8416
8417
8418 #
8419 # Check to make sure the PIC flag actually works.
8420 #
8421 if test -n "$lt_prog_compiler_pic"; then
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8423 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8424 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427   lt_cv_prog_compiler_pic_works=no
8428    ac_outfile=conftest.$ac_objext
8429    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8430    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8431    # Insert the option either (1) after the last *FLAGS variable, or
8432    # (2) before a word containing "conftest.", or (3) at the end.
8433    # Note that $ac_compile itself does not contain backslashes and begins
8434    # with a dollar sign (not a hyphen), so the echo should work correctly.
8435    # The option is referenced via a variable to avoid confusing sed.
8436    lt_compile=`echo "$ac_compile" | $SED \
8437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8439    -e 's:$: $lt_compiler_flag:'`
8440    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8441    (eval "$lt_compile" 2>conftest.err)
8442    ac_status=$?
8443    cat conftest.err >&5
8444    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445    if (exit $ac_status) && test -s "$ac_outfile"; then
8446      # The compiler can only warn and ignore the option if not recognized
8447      # So say no if there are warnings other than the usual output.
8448      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8449      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8450      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8451        lt_cv_prog_compiler_pic_works=yes
8452      fi
8453    fi
8454    $RM conftest*
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8458 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8459
8460 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8461     case $lt_prog_compiler_pic in
8462      "" | " "*) ;;
8463      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8464      esac
8465 else
8466     lt_prog_compiler_pic=
8467      lt_prog_compiler_can_build_shared=no
8468 fi
8469
8470 fi
8471
8472
8473
8474
8475
8476
8477 #
8478 # Check to make sure the static flag actually works.
8479 #
8480 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8482 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8483 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8484   $as_echo_n "(cached) " >&6
8485 else
8486   lt_cv_prog_compiler_static_works=no
8487    save_LDFLAGS="$LDFLAGS"
8488    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8489    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8490    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8491      # The linker can only warn and ignore the option if not recognized
8492      # So say no if there are warnings
8493      if test -s conftest.err; then
8494        # Append any errors to the config.log.
8495        cat conftest.err 1>&5
8496        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8497        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8498        if diff conftest.exp conftest.er2 >/dev/null; then
8499          lt_cv_prog_compiler_static_works=yes
8500        fi
8501      else
8502        lt_cv_prog_compiler_static_works=yes
8503      fi
8504    fi
8505    $RM -r conftest*
8506    LDFLAGS="$save_LDFLAGS"
8507
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8510 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8511
8512 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8513     :
8514 else
8515     lt_prog_compiler_static=
8516 fi
8517
8518
8519
8520
8521
8522
8523
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8525 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8526 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   lt_cv_prog_compiler_c_o=no
8530    $RM -r conftest 2>/dev/null
8531    mkdir conftest
8532    cd conftest
8533    mkdir out
8534    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8535
8536    lt_compiler_flag="-o out/conftest2.$ac_objext"
8537    # Insert the option either (1) after the last *FLAGS variable, or
8538    # (2) before a word containing "conftest.", or (3) at the end.
8539    # Note that $ac_compile itself does not contain backslashes and begins
8540    # with a dollar sign (not a hyphen), so the echo should work correctly.
8541    lt_compile=`echo "$ac_compile" | $SED \
8542    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8543    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8544    -e 's:$: $lt_compiler_flag:'`
8545    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8546    (eval "$lt_compile" 2>out/conftest.err)
8547    ac_status=$?
8548    cat out/conftest.err >&5
8549    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8551    then
8552      # The compiler can only warn and ignore the option if not recognized
8553      # So say no if there are warnings
8554      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8555      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8556      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8557        lt_cv_prog_compiler_c_o=yes
8558      fi
8559    fi
8560    chmod u+w . 2>&5
8561    $RM conftest*
8562    # SGI C++ compiler will create directory out/ii_files/ for
8563    # template instantiation
8564    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8565    $RM out/* && rmdir out
8566    cd ..
8567    $RM -r conftest
8568    $RM conftest*
8569
8570 fi
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8572 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8573
8574
8575
8576
8577
8578
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8580 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8581 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   lt_cv_prog_compiler_c_o=no
8585    $RM -r conftest 2>/dev/null
8586    mkdir conftest
8587    cd conftest
8588    mkdir out
8589    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590
8591    lt_compiler_flag="-o out/conftest2.$ac_objext"
8592    # Insert the option either (1) after the last *FLAGS variable, or
8593    # (2) before a word containing "conftest.", or (3) at the end.
8594    # Note that $ac_compile itself does not contain backslashes and begins
8595    # with a dollar sign (not a hyphen), so the echo should work correctly.
8596    lt_compile=`echo "$ac_compile" | $SED \
8597    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8598    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8599    -e 's:$: $lt_compiler_flag:'`
8600    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8601    (eval "$lt_compile" 2>out/conftest.err)
8602    ac_status=$?
8603    cat out/conftest.err >&5
8604    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8606    then
8607      # The compiler can only warn and ignore the option if not recognized
8608      # So say no if there are warnings
8609      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8610      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8611      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8612        lt_cv_prog_compiler_c_o=yes
8613      fi
8614    fi
8615    chmod u+w . 2>&5
8616    $RM conftest*
8617    # SGI C++ compiler will create directory out/ii_files/ for
8618    # template instantiation
8619    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8620    $RM out/* && rmdir out
8621    cd ..
8622    $RM -r conftest
8623    $RM conftest*
8624
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8627 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8628
8629
8630
8631
8632 hard_links="nottested"
8633 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8634   # do not overwrite the value of need_locks provided by the user
8635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8636 $as_echo_n "checking if we can lock with hard links... " >&6; }
8637   hard_links=yes
8638   $RM conftest*
8639   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8640   touch conftest.a
8641   ln conftest.a conftest.b 2>&5 || hard_links=no
8642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8644 $as_echo "$hard_links" >&6; }
8645   if test "$hard_links" = no; then
8646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8647 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8648     need_locks=warn
8649   fi
8650 else
8651   need_locks=no
8652 fi
8653
8654
8655
8656
8657
8658
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8660 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8661
8662   runpath_var=
8663   allow_undefined_flag=
8664   always_export_symbols=no
8665   archive_cmds=
8666   archive_expsym_cmds=
8667   compiler_needs_object=no
8668   enable_shared_with_static_runtimes=no
8669   export_dynamic_flag_spec=
8670   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8671   hardcode_automatic=no
8672   hardcode_direct=no
8673   hardcode_direct_absolute=no
8674   hardcode_libdir_flag_spec=
8675   hardcode_libdir_flag_spec_ld=
8676   hardcode_libdir_separator=
8677   hardcode_minus_L=no
8678   hardcode_shlibpath_var=unsupported
8679   inherit_rpath=no
8680   link_all_deplibs=unknown
8681   module_cmds=
8682   module_expsym_cmds=
8683   old_archive_from_new_cmds=
8684   old_archive_from_expsyms_cmds=
8685   thread_safe_flag_spec=
8686   whole_archive_flag_spec=
8687   # include_expsyms should be a list of space-separated symbols to be *always*
8688   # included in the symbol list
8689   include_expsyms=
8690   # exclude_expsyms can be an extended regexp of symbols to exclude
8691   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8692   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8693   # as well as any symbol that contains `d'.
8694   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8695   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8696   # platforms (ab)use it in PIC code, but their linkers get confused if
8697   # the symbol is explicitly referenced.  Since portable code cannot
8698   # rely on this symbol name, it's probably fine to never include it in
8699   # preloaded symbol tables.
8700   # Exclude shared library initialization/finalization symbols.
8701   extract_expsyms_cmds=
8702
8703   case $host_os in
8704   cygwin* | mingw* | pw32* | cegcc*)
8705     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8706     # When not using gcc, we currently assume that we are using
8707     # Microsoft Visual C++.
8708     if test "$GCC" != yes; then
8709       with_gnu_ld=no
8710     fi
8711     ;;
8712   interix*)
8713     # we just hope/assume this is gcc and not c89 (= MSVC++)
8714     with_gnu_ld=yes
8715     ;;
8716   openbsd*)
8717     with_gnu_ld=no
8718     ;;
8719   esac
8720
8721   ld_shlibs=yes
8722
8723   # On some targets, GNU ld is compatible enough with the native linker
8724   # that we're better off using the native interface for both.
8725   lt_use_gnu_ld_interface=no
8726   if test "$with_gnu_ld" = yes; then
8727     case $host_os in
8728       aix*)
8729         # The AIX port of GNU ld has always aspired to compatibility
8730         # with the native linker.  However, as the warning in the GNU ld
8731         # block says, versions before 2.19.5* couldn't really create working
8732         # shared libraries, regardless of the interface used.
8733         case `$LD -v 2>&1` in
8734           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8735           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8736           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8737           *)
8738             lt_use_gnu_ld_interface=yes
8739             ;;
8740         esac
8741         ;;
8742       *)
8743         lt_use_gnu_ld_interface=yes
8744         ;;
8745     esac
8746   fi
8747
8748   if test "$lt_use_gnu_ld_interface" = yes; then
8749     # If archive_cmds runs LD, not CC, wlarc should be empty
8750     wlarc='${wl}'
8751
8752     # Set some defaults for GNU ld with shared library support. These
8753     # are reset later if shared libraries are not supported. Putting them
8754     # here allows them to be overridden if necessary.
8755     runpath_var=LD_RUN_PATH
8756     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8757     export_dynamic_flag_spec='${wl}--export-dynamic'
8758     # ancient GNU ld didn't support --whole-archive et. al.
8759     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8760       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8761     else
8762       whole_archive_flag_spec=
8763     fi
8764     supports_anon_versioning=no
8765     case `$LD -v 2>&1` in
8766       *GNU\ gold*) supports_anon_versioning=yes ;;
8767       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8768       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8769       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8770       *\ 2.11.*) ;; # other 2.11 versions
8771       *) supports_anon_versioning=yes ;;
8772     esac
8773
8774     # See if GNU ld supports shared libraries.
8775     case $host_os in
8776     aix[3-9]*)
8777       # On AIX/PPC, the GNU linker is very broken
8778       if test "$host_cpu" != ia64; then
8779         ld_shlibs=no
8780         cat <<_LT_EOF 1>&2
8781
8782 *** Warning: the GNU linker, at least up to release 2.19, is reported
8783 *** to be unable to reliably create shared libraries on AIX.
8784 *** Therefore, libtool is disabling shared libraries support.  If you
8785 *** really care for shared libraries, you may want to install binutils
8786 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8787 *** You will then need to restart the configuration process.
8788
8789 _LT_EOF
8790       fi
8791       ;;
8792
8793     amigaos*)
8794       case $host_cpu in
8795       powerpc)
8796             # see comment about AmigaOS4 .so support
8797             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798             archive_expsym_cmds=''
8799         ;;
8800       m68k)
8801             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)'
8802             hardcode_libdir_flag_spec='-L$libdir'
8803             hardcode_minus_L=yes
8804         ;;
8805       esac
8806       ;;
8807
8808     beos*)
8809       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8810         allow_undefined_flag=unsupported
8811         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8812         # support --undefined.  This deserves some investigation.  FIXME
8813         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814       else
8815         ld_shlibs=no
8816       fi
8817       ;;
8818
8819     cygwin* | mingw* | pw32* | cegcc*)
8820       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8821       # as there is no search path for DLLs.
8822       hardcode_libdir_flag_spec='-L$libdir'
8823       export_dynamic_flag_spec='${wl}--export-all-symbols'
8824       allow_undefined_flag=unsupported
8825       always_export_symbols=no
8826       enable_shared_with_static_runtimes=yes
8827       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8828
8829       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8830         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8831         # If the export-symbols file already is a .def file (1st line
8832         # is EXPORTS), use it as is; otherwise, prepend...
8833         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8834           cp $export_symbols $output_objdir/$soname.def;
8835         else
8836           echo EXPORTS > $output_objdir/$soname.def;
8837           cat $export_symbols >> $output_objdir/$soname.def;
8838         fi~
8839         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8840       else
8841         ld_shlibs=no
8842       fi
8843       ;;
8844
8845     haiku*)
8846       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847       link_all_deplibs=yes
8848       ;;
8849
8850     interix[3-9]*)
8851       hardcode_direct=no
8852       hardcode_shlibpath_var=no
8853       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8854       export_dynamic_flag_spec='${wl}-E'
8855       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8856       # Instead, shared libraries are loaded at an image base (0x10000000 by
8857       # default) and relocated if they conflict, which is a slow very memory
8858       # consuming and fragmenting process.  To avoid this, we pick a random,
8859       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8860       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8861       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8862       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'
8863       ;;
8864
8865     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8866       tmp_diet=no
8867       if test "$host_os" = linux-dietlibc; then
8868         case $cc_basename in
8869           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8870         esac
8871       fi
8872       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8873          && test "$tmp_diet" = no
8874       then
8875         tmp_addflag=
8876         tmp_sharedflag='-shared'
8877         case $cc_basename,$host_cpu in
8878         pgcc*)                          # Portland Group C compiler
8879           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'
8880           tmp_addflag=' $pic_flag'
8881           ;;
8882         pgf77* | pgf90* | pgf95* | pgfortran*)
8883                                         # Portland Group f77 and f90 compilers
8884           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'
8885           tmp_addflag=' $pic_flag -Mnomain' ;;
8886         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8887           tmp_addflag=' -i_dynamic' ;;
8888         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8889           tmp_addflag=' -i_dynamic -nofor_main' ;;
8890         ifc* | ifort*)                  # Intel Fortran compiler
8891           tmp_addflag=' -nofor_main' ;;
8892         lf95*)                          # Lahey Fortran 8.1
8893           whole_archive_flag_spec=
8894           tmp_sharedflag='--shared' ;;
8895         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8896           tmp_sharedflag='-qmkshrobj'
8897           tmp_addflag= ;;
8898         nvcc*)  # Cuda Compiler Driver 2.2
8899           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'
8900           compiler_needs_object=yes
8901           ;;
8902         esac
8903         case `$CC -V 2>&1 | sed 5q` in
8904         *Sun\ C*)                       # Sun C 5.9
8905           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'
8906           compiler_needs_object=yes
8907           tmp_sharedflag='-G' ;;
8908         *Sun\ F*)                       # Sun Fortran 8.3
8909           tmp_sharedflag='-G' ;;
8910         esac
8911         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912
8913         if test "x$supports_anon_versioning" = xyes; then
8914           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8915             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8916             echo "local: *; };" >> $output_objdir/$libname.ver~
8917             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8918         fi
8919
8920         case $cc_basename in
8921         xlf* | bgf* | bgxlf* | mpixlf*)
8922           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8923           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8924           hardcode_libdir_flag_spec=
8925           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8926           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8927           if test "x$supports_anon_versioning" = xyes; then
8928             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8929               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8930               echo "local: *; };" >> $output_objdir/$libname.ver~
8931               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8932           fi
8933           ;;
8934         esac
8935       else
8936         ld_shlibs=no
8937       fi
8938       ;;
8939
8940     netbsd*)
8941       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8942         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8943         wlarc=
8944       else
8945         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8946         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8947       fi
8948       ;;
8949
8950     solaris*)
8951       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8952         ld_shlibs=no
8953         cat <<_LT_EOF 1>&2
8954
8955 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8956 *** create shared libraries on Solaris systems.  Therefore, libtool
8957 *** is disabling shared libraries support.  We urge you to upgrade GNU
8958 *** binutils to release 2.9.1 or newer.  Another option is to modify
8959 *** your PATH or compiler configuration so that the native linker is
8960 *** used, and then restart.
8961
8962 _LT_EOF
8963       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8964         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8966       else
8967         ld_shlibs=no
8968       fi
8969       ;;
8970
8971     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8972       case `$LD -v 2>&1` in
8973         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8974         ld_shlibs=no
8975         cat <<_LT_EOF 1>&2
8976
8977 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8978 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8979 *** is disabling shared libraries support.  We urge you to upgrade GNU
8980 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8981 *** your PATH or compiler configuration so that the native linker is
8982 *** used, and then restart.
8983
8984 _LT_EOF
8985         ;;
8986         *)
8987           # For security reasons, it is highly recommended that you always
8988           # use absolute paths for naming shared libraries, and exclude the
8989           # DT_RUNPATH tag from executables and libraries.  But doing so
8990           # requires that you compile everything twice, which is a pain.
8991           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8992             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995           else
8996             ld_shlibs=no
8997           fi
8998         ;;
8999       esac
9000       ;;
9001
9002     sunos4*)
9003       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9004       wlarc=
9005       hardcode_direct=yes
9006       hardcode_shlibpath_var=no
9007       ;;
9008
9009     *)
9010       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9011         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013       else
9014         ld_shlibs=no
9015       fi
9016       ;;
9017     esac
9018
9019     if test "$ld_shlibs" = no; then
9020       runpath_var=
9021       hardcode_libdir_flag_spec=
9022       export_dynamic_flag_spec=
9023       whole_archive_flag_spec=
9024     fi
9025   else
9026     # PORTME fill in a description of your system's linker (not GNU ld)
9027     case $host_os in
9028     aix3*)
9029       allow_undefined_flag=unsupported
9030       always_export_symbols=yes
9031       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'
9032       # Note: this linker hardcodes the directories in LIBPATH if there
9033       # are no directories specified by -L.
9034       hardcode_minus_L=yes
9035       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9036         # Neither direct hardcoding nor static linking is supported with a
9037         # broken collect2.
9038         hardcode_direct=unsupported
9039       fi
9040       ;;
9041
9042     aix[4-9]*)
9043       if test "$host_cpu" = ia64; then
9044         # On IA64, the linker does run time linking by default, so we don't
9045         # have to do anything special.
9046         aix_use_runtimelinking=no
9047         exp_sym_flag='-Bexport'
9048         no_entry_flag=""
9049       else
9050         # If we're using GNU nm, then we don't want the "-C" option.
9051         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9052         # Also, AIX nm treats weak defined symbols like other global
9053         # defined symbols, whereas GNU nm marks them as "W".
9054         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9055           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'
9056         else
9057           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'
9058         fi
9059         aix_use_runtimelinking=no
9060
9061         # Test if we are trying to use run time linking or normal
9062         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9063         # need to do runtime linking.
9064         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9065           for ld_flag in $LDFLAGS; do
9066           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9067             aix_use_runtimelinking=yes
9068             break
9069           fi
9070           done
9071           ;;
9072         esac
9073
9074         exp_sym_flag='-bexport'
9075         no_entry_flag='-bnoentry'
9076       fi
9077
9078       # When large executables or shared objects are built, AIX ld can
9079       # have problems creating the table of contents.  If linking a library
9080       # or program results in "error TOC overflow" add -mminimal-toc to
9081       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9082       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9083
9084       archive_cmds=''
9085       hardcode_direct=yes
9086       hardcode_direct_absolute=yes
9087       hardcode_libdir_separator=':'
9088       link_all_deplibs=yes
9089       file_list_spec='${wl}-f,'
9090
9091       if test "$GCC" = yes; then
9092         case $host_os in aix4.[012]|aix4.[012].*)
9093         # We only want to do this on AIX 4.2 and lower, the check
9094         # below for broken collect2 doesn't work under 4.3+
9095           collect2name=`${CC} -print-prog-name=collect2`
9096           if test -f "$collect2name" &&
9097            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9098           then
9099           # We have reworked collect2
9100           :
9101           else
9102           # We have old collect2
9103           hardcode_direct=unsupported
9104           # It fails to find uninstalled libraries when the uninstalled
9105           # path is not listed in the libpath.  Setting hardcode_minus_L
9106           # to unsupported forces relinking
9107           hardcode_minus_L=yes
9108           hardcode_libdir_flag_spec='-L$libdir'
9109           hardcode_libdir_separator=
9110           fi
9111           ;;
9112         esac
9113         shared_flag='-shared'
9114         if test "$aix_use_runtimelinking" = yes; then
9115           shared_flag="$shared_flag "'${wl}-G'
9116         fi
9117       else
9118         # not using gcc
9119         if test "$host_cpu" = ia64; then
9120         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9121         # chokes on -Wl,-G. The following line is correct:
9122           shared_flag='-G'
9123         else
9124           if test "$aix_use_runtimelinking" = yes; then
9125             shared_flag='${wl}-G'
9126           else
9127             shared_flag='${wl}-bM:SRE'
9128           fi
9129         fi
9130       fi
9131
9132       export_dynamic_flag_spec='${wl}-bexpall'
9133       # It seems that -bexpall does not export symbols beginning with
9134       # underscore (_), so it is better to generate a list of symbols to export.
9135       always_export_symbols=yes
9136       if test "$aix_use_runtimelinking" = yes; then
9137         # Warning - without using the other runtime loading flags (-brtl),
9138         # -berok will link without error, but may produce a broken library.
9139         allow_undefined_flag='-berok'
9140         # Determine the default libpath from the value encoded in an
9141         # empty executable.
9142         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h.  */
9144
9145 int
9146 main ()
9147 {
9148
9149   ;
9150   return 0;
9151 }
9152 _ACEOF
9153 if ac_fn_c_try_link "$LINENO"; then :
9154
9155 lt_aix_libpath_sed='
9156     /Import File Strings/,/^$/ {
9157         /^0/ {
9158             s/^0  *\(.*\)$/\1/
9159             p
9160         }
9161     }'
9162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9163 # Check for a 64-bit object if we didn't find anything.
9164 if test -z "$aix_libpath"; then
9165   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9166 fi
9167 fi
9168 rm -f core conftest.err conftest.$ac_objext \
9169     conftest$ac_exeext conftest.$ac_ext
9170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9171
9172         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9173         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"
9174       else
9175         if test "$host_cpu" = ia64; then
9176           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9177           allow_undefined_flag="-z nodefs"
9178           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"
9179         else
9180          # Determine the default libpath from the value encoded in an
9181          # empty executable.
9182          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h.  */
9184
9185 int
9186 main ()
9187 {
9188
9189   ;
9190   return 0;
9191 }
9192 _ACEOF
9193 if ac_fn_c_try_link "$LINENO"; then :
9194
9195 lt_aix_libpath_sed='
9196     /Import File Strings/,/^$/ {
9197         /^0/ {
9198             s/^0  *\(.*\)$/\1/
9199             p
9200         }
9201     }'
9202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9203 # Check for a 64-bit object if we didn't find anything.
9204 if test -z "$aix_libpath"; then
9205   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9206 fi
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext \
9209     conftest$ac_exeext conftest.$ac_ext
9210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9211
9212          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9213           # Warning - without using the other run time loading flags,
9214           # -berok will link without error, but may produce a broken library.
9215           no_undefined_flag=' ${wl}-bernotok'
9216           allow_undefined_flag=' ${wl}-berok'
9217           if test "$with_gnu_ld" = yes; then
9218             # We only use this code for GNU lds that support --whole-archive.
9219             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9220           else
9221             # Exported symbols can be pulled into shared objects from archives
9222             whole_archive_flag_spec='$convenience'
9223           fi
9224           archive_cmds_need_lc=yes
9225           # This is similar to how AIX traditionally builds its shared libraries.
9226           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'
9227         fi
9228       fi
9229       ;;
9230
9231     amigaos*)
9232       case $host_cpu in
9233       powerpc)
9234             # see comment about AmigaOS4 .so support
9235             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236             archive_expsym_cmds=''
9237         ;;
9238       m68k)
9239             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)'
9240             hardcode_libdir_flag_spec='-L$libdir'
9241             hardcode_minus_L=yes
9242         ;;
9243       esac
9244       ;;
9245
9246     bsdi[45]*)
9247       export_dynamic_flag_spec=-rdynamic
9248       ;;
9249
9250     cygwin* | mingw* | pw32* | cegcc*)
9251       # When not using gcc, we currently assume that we are using
9252       # Microsoft Visual C++.
9253       # hardcode_libdir_flag_spec is actually meaningless, as there is
9254       # no search path for DLLs.
9255       hardcode_libdir_flag_spec=' '
9256       allow_undefined_flag=unsupported
9257       # Tell ltmain to make .lib files, not .a files.
9258       libext=lib
9259       # Tell ltmain to make .dll files, not .so files.
9260       shrext_cmds=".dll"
9261       # FIXME: Setting linknames here is a bad hack.
9262       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9263       # The linker will automatically build a .lib file if we build a DLL.
9264       old_archive_from_new_cmds='true'
9265       # FIXME: Should let the user specify the lib program.
9266       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9267       fix_srcfile_path='`cygpath -w "$srcfile"`'
9268       enable_shared_with_static_runtimes=yes
9269       ;;
9270
9271     darwin* | rhapsody*)
9272
9273
9274   archive_cmds_need_lc=no
9275   hardcode_direct=no
9276   hardcode_automatic=yes
9277   hardcode_shlibpath_var=unsupported
9278   if test "$lt_cv_ld_force_load" = "yes"; then
9279     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\"`'
9280   else
9281     whole_archive_flag_spec=''
9282   fi
9283   link_all_deplibs=yes
9284   allow_undefined_flag="$_lt_dar_allow_undefined"
9285   case $cc_basename in
9286      ifort*) _lt_dar_can_shared=yes ;;
9287      *) _lt_dar_can_shared=$GCC ;;
9288   esac
9289   if test "$_lt_dar_can_shared" = "yes"; then
9290     output_verbose_link_cmd=func_echo_all
9291     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9292     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9293     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}"
9294     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}"
9295
9296   else
9297   ld_shlibs=no
9298   fi
9299
9300       ;;
9301
9302     dgux*)
9303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304       hardcode_libdir_flag_spec='-L$libdir'
9305       hardcode_shlibpath_var=no
9306       ;;
9307
9308     freebsd1*)
9309       ld_shlibs=no
9310       ;;
9311
9312     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9313     # support.  Future versions do this automatically, but an explicit c++rt0.o
9314     # does not break anything, and helps significantly (at the cost of a little
9315     # extra space).
9316     freebsd2.2*)
9317       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9318       hardcode_libdir_flag_spec='-R$libdir'
9319       hardcode_direct=yes
9320       hardcode_shlibpath_var=no
9321       ;;
9322
9323     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9324     freebsd2*)
9325       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9326       hardcode_direct=yes
9327       hardcode_minus_L=yes
9328       hardcode_shlibpath_var=no
9329       ;;
9330
9331     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9332     freebsd* | dragonfly*)
9333       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9334       hardcode_libdir_flag_spec='-R$libdir'
9335       hardcode_direct=yes
9336       hardcode_shlibpath_var=no
9337       ;;
9338
9339     hpux9*)
9340       if test "$GCC" = yes; then
9341         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'
9342       else
9343         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'
9344       fi
9345       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9346       hardcode_libdir_separator=:
9347       hardcode_direct=yes
9348
9349       # hardcode_minus_L: Not really in the search PATH,
9350       # but as the default location of the library.
9351       hardcode_minus_L=yes
9352       export_dynamic_flag_spec='${wl}-E'
9353       ;;
9354
9355     hpux10*)
9356       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9357         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9358       else
9359         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9360       fi
9361       if test "$with_gnu_ld" = no; then
9362         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9363         hardcode_libdir_flag_spec_ld='+b $libdir'
9364         hardcode_libdir_separator=:
9365         hardcode_direct=yes
9366         hardcode_direct_absolute=yes
9367         export_dynamic_flag_spec='${wl}-E'
9368         # hardcode_minus_L: Not really in the search PATH,
9369         # but as the default location of the library.
9370         hardcode_minus_L=yes
9371       fi
9372       ;;
9373
9374     hpux11*)
9375       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9376         case $host_cpu in
9377         hppa*64*)
9378           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379           ;;
9380         ia64*)
9381           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9382           ;;
9383         *)
9384           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9385           ;;
9386         esac
9387       else
9388         case $host_cpu in
9389         hppa*64*)
9390           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391           ;;
9392         ia64*)
9393           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9394           ;;
9395         *)
9396
9397           # Older versions of the 11.00 compiler do not understand -b yet
9398           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9399           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9400 $as_echo_n "checking if $CC understands -b... " >&6; }
9401 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9402   $as_echo_n "(cached) " >&6
9403 else
9404   lt_cv_prog_compiler__b=no
9405    save_LDFLAGS="$LDFLAGS"
9406    LDFLAGS="$LDFLAGS -b"
9407    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9408    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9409      # The linker can only warn and ignore the option if not recognized
9410      # So say no if there are warnings
9411      if test -s conftest.err; then
9412        # Append any errors to the config.log.
9413        cat conftest.err 1>&5
9414        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9415        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9416        if diff conftest.exp conftest.er2 >/dev/null; then
9417          lt_cv_prog_compiler__b=yes
9418        fi
9419      else
9420        lt_cv_prog_compiler__b=yes
9421      fi
9422    fi
9423    $RM -r conftest*
9424    LDFLAGS="$save_LDFLAGS"
9425
9426 fi
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9428 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9429
9430 if test x"$lt_cv_prog_compiler__b" = xyes; then
9431     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9432 else
9433     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9434 fi
9435
9436           ;;
9437         esac
9438       fi
9439       if test "$with_gnu_ld" = no; then
9440         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9441         hardcode_libdir_separator=:
9442
9443         case $host_cpu in
9444         hppa*64*|ia64*)
9445           hardcode_direct=no
9446           hardcode_shlibpath_var=no
9447           ;;
9448         *)
9449           hardcode_direct=yes
9450           hardcode_direct_absolute=yes
9451           export_dynamic_flag_spec='${wl}-E'
9452
9453           # hardcode_minus_L: Not really in the search PATH,
9454           # but as the default location of the library.
9455           hardcode_minus_L=yes
9456           ;;
9457         esac
9458       fi
9459       ;;
9460
9461     irix5* | irix6* | nonstopux*)
9462       if test "$GCC" = yes; then
9463         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'
9464         # Try to use the -exported_symbol ld option, if it does not
9465         # work, assume that -exports_file does not work either and
9466         # implicitly export all symbols.
9467         save_LDFLAGS="$LDFLAGS"
9468         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9469         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h.  */
9471 int foo(void) {}
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474   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'
9475
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext \
9478     conftest$ac_exeext conftest.$ac_ext
9479         LDFLAGS="$save_LDFLAGS"
9480       else
9481         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'
9482         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'
9483       fi
9484       archive_cmds_need_lc='no'
9485       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486       hardcode_libdir_separator=:
9487       inherit_rpath=yes
9488       link_all_deplibs=yes
9489       ;;
9490
9491     netbsd*)
9492       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9493         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9494       else
9495         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9496       fi
9497       hardcode_libdir_flag_spec='-R$libdir'
9498       hardcode_direct=yes
9499       hardcode_shlibpath_var=no
9500       ;;
9501
9502     newsos6)
9503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504       hardcode_direct=yes
9505       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9506       hardcode_libdir_separator=:
9507       hardcode_shlibpath_var=no
9508       ;;
9509
9510     *nto* | *qnx*)
9511       ;;
9512
9513     openbsd*)
9514       if test -f /usr/libexec/ld.so; then
9515         hardcode_direct=yes
9516         hardcode_shlibpath_var=no
9517         hardcode_direct_absolute=yes
9518         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9519           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9520           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9521           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9522           export_dynamic_flag_spec='${wl}-E'
9523         else
9524           case $host_os in
9525            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9526              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9527              hardcode_libdir_flag_spec='-R$libdir'
9528              ;;
9529            *)
9530              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9531              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9532              ;;
9533           esac
9534         fi
9535       else
9536         ld_shlibs=no
9537       fi
9538       ;;
9539
9540     os2*)
9541       hardcode_libdir_flag_spec='-L$libdir'
9542       hardcode_minus_L=yes
9543       allow_undefined_flag=unsupported
9544       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'
9545       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9546       ;;
9547
9548     osf3*)
9549       if test "$GCC" = yes; then
9550         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9551         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'
9552       else
9553         allow_undefined_flag=' -expect_unresolved \*'
9554         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'
9555       fi
9556       archive_cmds_need_lc='no'
9557       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558       hardcode_libdir_separator=:
9559       ;;
9560
9561     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9562       if test "$GCC" = yes; then
9563         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9564         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'
9565         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566       else
9567         allow_undefined_flag=' -expect_unresolved \*'
9568         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'
9569         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~
9570         $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'
9571
9572         # Both c and cxx compiler support -rpath directly
9573         hardcode_libdir_flag_spec='-rpath $libdir'
9574       fi
9575       archive_cmds_need_lc='no'
9576       hardcode_libdir_separator=:
9577       ;;
9578
9579     solaris*)
9580       no_undefined_flag=' -z defs'
9581       if test "$GCC" = yes; then
9582         wlarc='${wl}'
9583         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9584         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9585           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9586       else
9587         case `$CC -V 2>&1` in
9588         *"Compilers 5.0"*)
9589           wlarc=''
9590           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9593           ;;
9594         *)
9595           wlarc='${wl}'
9596           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9597           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9598           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9599           ;;
9600         esac
9601       fi
9602       hardcode_libdir_flag_spec='-R$libdir'
9603       hardcode_shlibpath_var=no
9604       case $host_os in
9605       solaris2.[0-5] | solaris2.[0-5].*) ;;
9606       *)
9607         # The compiler driver will combine and reorder linker options,
9608         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9609         # but is careful enough not to reorder.
9610         # Supported since Solaris 2.6 (maybe 2.5.1?)
9611         if test "$GCC" = yes; then
9612           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9613         else
9614           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9615         fi
9616         ;;
9617       esac
9618       link_all_deplibs=yes
9619       ;;
9620
9621     sunos4*)
9622       if test "x$host_vendor" = xsequent; then
9623         # Use $CC to link under sequent, because it throws in some extra .o
9624         # files that make .init and .fini sections work.
9625         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9626       else
9627         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9628       fi
9629       hardcode_libdir_flag_spec='-L$libdir'
9630       hardcode_direct=yes
9631       hardcode_minus_L=yes
9632       hardcode_shlibpath_var=no
9633       ;;
9634
9635     sysv4)
9636       case $host_vendor in
9637         sni)
9638           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639           hardcode_direct=yes # is this really true???
9640         ;;
9641         siemens)
9642           ## LD is ld it makes a PLAMLIB
9643           ## CC just makes a GrossModule.
9644           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9645           reload_cmds='$CC -r -o $output$reload_objs'
9646           hardcode_direct=no
9647         ;;
9648         motorola)
9649           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9651         ;;
9652       esac
9653       runpath_var='LD_RUN_PATH'
9654       hardcode_shlibpath_var=no
9655       ;;
9656
9657     sysv4.3*)
9658       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659       hardcode_shlibpath_var=no
9660       export_dynamic_flag_spec='-Bexport'
9661       ;;
9662
9663     sysv4*MP*)
9664       if test -d /usr/nec; then
9665         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666         hardcode_shlibpath_var=no
9667         runpath_var=LD_RUN_PATH
9668         hardcode_runpath_var=yes
9669         ld_shlibs=yes
9670       fi
9671       ;;
9672
9673     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9674       no_undefined_flag='${wl}-z,text'
9675       archive_cmds_need_lc=no
9676       hardcode_shlibpath_var=no
9677       runpath_var='LD_RUN_PATH'
9678
9679       if test "$GCC" = yes; then
9680         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682       else
9683         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685       fi
9686       ;;
9687
9688     sysv5* | sco3.2v5* | sco5v6*)
9689       # Note: We can NOT use -z defs as we might desire, because we do not
9690       # link with -lc, and that would cause any symbols used from libc to
9691       # always be unresolved, which means just about no library would
9692       # ever link correctly.  If we're not using GNU ld we use -z text
9693       # though, which does catch some bad symbols but isn't as heavy-handed
9694       # as -z defs.
9695       no_undefined_flag='${wl}-z,text'
9696       allow_undefined_flag='${wl}-z,nodefs'
9697       archive_cmds_need_lc=no
9698       hardcode_shlibpath_var=no
9699       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9700       hardcode_libdir_separator=':'
9701       link_all_deplibs=yes
9702       export_dynamic_flag_spec='${wl}-Bexport'
9703       runpath_var='LD_RUN_PATH'
9704
9705       if test "$GCC" = yes; then
9706         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708       else
9709         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711       fi
9712       ;;
9713
9714     uts4*)
9715       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716       hardcode_libdir_flag_spec='-L$libdir'
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     *)
9721       ld_shlibs=no
9722       ;;
9723     esac
9724
9725     if test x$host_vendor = xsni; then
9726       case $host in
9727       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9728         export_dynamic_flag_spec='${wl}-Blargedynsym'
9729         ;;
9730       esac
9731     fi
9732   fi
9733
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9735 $as_echo "$ld_shlibs" >&6; }
9736 test "$ld_shlibs" = no && can_build_shared=no
9737
9738 with_gnu_ld=$with_gnu_ld
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754 #
9755 # Do we need to explicitly link libc?
9756 #
9757 case "x$archive_cmds_need_lc" in
9758 x|xyes)
9759   # Assume -lc should be added
9760   archive_cmds_need_lc=yes
9761
9762   if test "$enable_shared" = yes && test "$GCC" = yes; then
9763     case $archive_cmds in
9764     *'~'*)
9765       # FIXME: we may have to deal with multi-command sequences.
9766       ;;
9767     '$CC '*)
9768       # Test whether the compiler implicitly links with -lc since on some
9769       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9770       # to ld, don't add -lc before -lgcc.
9771       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9772 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9773 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9774   $as_echo_n "(cached) " >&6
9775 else
9776   $RM conftest*
9777         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9778
9779         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9780   (eval $ac_compile) 2>&5
9781   ac_status=$?
9782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9783   test $ac_status = 0; } 2>conftest.err; then
9784           soname=conftest
9785           lib=conftest
9786           libobjs=conftest.$ac_objext
9787           deplibs=
9788           wl=$lt_prog_compiler_wl
9789           pic_flag=$lt_prog_compiler_pic
9790           compiler_flags=-v
9791           linker_flags=-v
9792           verstring=
9793           output_objdir=.
9794           libname=conftest
9795           lt_save_allow_undefined_flag=$allow_undefined_flag
9796           allow_undefined_flag=
9797           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9798   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9799   ac_status=$?
9800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801   test $ac_status = 0; }
9802           then
9803             lt_cv_archive_cmds_need_lc=no
9804           else
9805             lt_cv_archive_cmds_need_lc=yes
9806           fi
9807           allow_undefined_flag=$lt_save_allow_undefined_flag
9808         else
9809           cat conftest.err 1>&5
9810         fi
9811         $RM conftest*
9812
9813 fi
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9815 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9816       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9817       ;;
9818     esac
9819   fi
9820   ;;
9821 esac
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
9972
9973
9974
9975
9976
9977
9978
9979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9980 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9981
9982 if test "$GCC" = yes; then
9983   case $host_os in
9984     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9985     *) lt_awk_arg="/^libraries:/" ;;
9986   esac
9987   case $host_os in
9988     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9989     *) lt_sed_strip_eq="s,=/,/,g" ;;
9990   esac
9991   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9992   case $lt_search_path_spec in
9993   *\;*)
9994     # if the path contains ";" then we assume it to be the separator
9995     # otherwise default to the standard path separator (i.e. ":") - it is
9996     # assumed that no part of a normal pathname contains ";" but that should
9997     # okay in the real world where ";" in dirpaths is itself problematic.
9998     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9999     ;;
10000   *)
10001     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10002     ;;
10003   esac
10004   # Ok, now we have the path, separated by spaces, we can step through it
10005   # and add multilib dir if necessary.
10006   lt_tmp_lt_search_path_spec=
10007   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10008   for lt_sys_path in $lt_search_path_spec; do
10009     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10010       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10011     else
10012       test -d "$lt_sys_path" && \
10013         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10014     fi
10015   done
10016   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10017 BEGIN {RS=" "; FS="/|\n";} {
10018   lt_foo="";
10019   lt_count=0;
10020   for (lt_i = NF; lt_i > 0; lt_i--) {
10021     if ($lt_i != "" && $lt_i != ".") {
10022       if ($lt_i == "..") {
10023         lt_count++;
10024       } else {
10025         if (lt_count == 0) {
10026           lt_foo="/" $lt_i lt_foo;
10027         } else {
10028           lt_count--;
10029         }
10030       }
10031     }
10032   }
10033   if (lt_foo != "") { lt_freq[lt_foo]++; }
10034   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10035 }'`
10036   # AWK program above erroneously prepends '/' to C:/dos/paths
10037   # for these hosts.
10038   case $host_os in
10039     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10040       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10041   esac
10042   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10043 else
10044   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10045 fi
10046 library_names_spec=
10047 libname_spec='lib$name'
10048 soname_spec=
10049 shrext_cmds=".so"
10050 postinstall_cmds=
10051 postuninstall_cmds=
10052 finish_cmds=
10053 finish_eval=
10054 shlibpath_var=
10055 shlibpath_overrides_runpath=unknown
10056 version_type=none
10057 dynamic_linker="$host_os ld.so"
10058 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10059 need_lib_prefix=unknown
10060 hardcode_into_libs=no
10061
10062 # when you set need_version to no, make sure it does not cause -set_version
10063 # flags to be left without arguments
10064 need_version=unknown
10065
10066 case $host_os in
10067 aix3*)
10068   version_type=linux
10069   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10070   shlibpath_var=LIBPATH
10071
10072   # AIX 3 has no versioning support, so we append a major version to the name.
10073   soname_spec='${libname}${release}${shared_ext}$major'
10074   ;;
10075
10076 aix[4-9]*)
10077   version_type=linux
10078   need_lib_prefix=no
10079   need_version=no
10080   hardcode_into_libs=yes
10081   if test "$host_cpu" = ia64; then
10082     # AIX 5 supports IA64
10083     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10084     shlibpath_var=LD_LIBRARY_PATH
10085   else
10086     # With GCC up to 2.95.x, collect2 would create an import file
10087     # for dependence libraries.  The import file would start with
10088     # the line `#! .'.  This would cause the generated library to
10089     # depend on `.', always an invalid library.  This was fixed in
10090     # development snapshots of GCC prior to 3.0.
10091     case $host_os in
10092       aix4 | aix4.[01] | aix4.[01].*)
10093       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10094            echo ' yes '
10095            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10096         :
10097       else
10098         can_build_shared=no
10099       fi
10100       ;;
10101     esac
10102     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10103     # soname into executable. Probably we can add versioning support to
10104     # collect2, so additional links can be useful in future.
10105     if test "$aix_use_runtimelinking" = yes; then
10106       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10107       # instead of lib<name>.a to let people know that these are not
10108       # typical AIX shared libraries.
10109       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110     else
10111       # We preserve .a as extension for shared libraries through AIX4.2
10112       # and later when we are not doing run time linking.
10113       library_names_spec='${libname}${release}.a $libname.a'
10114       soname_spec='${libname}${release}${shared_ext}$major'
10115     fi
10116     shlibpath_var=LIBPATH
10117   fi
10118   ;;
10119
10120 amigaos*)
10121   case $host_cpu in
10122   powerpc)
10123     # Since July 2007 AmigaOS4 officially supports .so libraries.
10124     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126     ;;
10127   m68k)
10128     library_names_spec='$libname.ixlibrary $libname.a'
10129     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10130     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'
10131     ;;
10132   esac
10133   ;;
10134
10135 beos*)
10136   library_names_spec='${libname}${shared_ext}'
10137   dynamic_linker="$host_os ld.so"
10138   shlibpath_var=LIBRARY_PATH
10139   ;;
10140
10141 bsdi[45]*)
10142   version_type=linux
10143   need_version=no
10144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145   soname_spec='${libname}${release}${shared_ext}$major'
10146   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10147   shlibpath_var=LD_LIBRARY_PATH
10148   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10149   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10150   # the default ld.so.conf also contains /usr/contrib/lib and
10151   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10152   # libtool to hard-code these into programs
10153   ;;
10154
10155 cygwin* | mingw* | pw32* | cegcc*)
10156   version_type=windows
10157   shrext_cmds=".dll"
10158   need_version=no
10159   need_lib_prefix=no
10160
10161   case $GCC,$host_os in
10162   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10163     library_names_spec='$libname.dll.a'
10164     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10165     postinstall_cmds='base_file=`basename \${file}`~
10166       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10167       dldir=$destdir/`dirname \$dlpath`~
10168       test -d \$dldir || mkdir -p \$dldir~
10169       $install_prog $dir/$dlname \$dldir/$dlname~
10170       chmod a+x \$dldir/$dlname~
10171       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10172         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10173       fi'
10174     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10175       dlpath=$dir/\$dldll~
10176        $RM \$dlpath'
10177     shlibpath_overrides_runpath=yes
10178
10179     case $host_os in
10180     cygwin*)
10181       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10182       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183
10184       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10185       ;;
10186     mingw* | cegcc*)
10187       # MinGW DLLs use traditional 'lib' prefix
10188       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10189       ;;
10190     pw32*)
10191       # pw32 DLLs use 'pw' prefix rather than 'lib'
10192       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193       ;;
10194     esac
10195     ;;
10196
10197   *)
10198     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10199     ;;
10200   esac
10201   dynamic_linker='Win32 ld.exe'
10202   # FIXME: first we should search . and the directory the executable is in
10203   shlibpath_var=PATH
10204   ;;
10205
10206 darwin* | rhapsody*)
10207   dynamic_linker="$host_os dyld"
10208   version_type=darwin
10209   need_lib_prefix=no
10210   need_version=no
10211   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10212   soname_spec='${libname}${release}${major}$shared_ext'
10213   shlibpath_overrides_runpath=yes
10214   shlibpath_var=DYLD_LIBRARY_PATH
10215   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10216
10217   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10218   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10219   ;;
10220
10221 dgux*)
10222   version_type=linux
10223   need_lib_prefix=no
10224   need_version=no
10225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10226   soname_spec='${libname}${release}${shared_ext}$major'
10227   shlibpath_var=LD_LIBRARY_PATH
10228   ;;
10229
10230 freebsd1*)
10231   dynamic_linker=no
10232   ;;
10233
10234 freebsd* | dragonfly*)
10235   # DragonFly does not have aout.  When/if they implement a new
10236   # versioning mechanism, adjust this.
10237   if test -x /usr/bin/objformat; then
10238     objformat=`/usr/bin/objformat`
10239   else
10240     case $host_os in
10241     freebsd[123]*) objformat=aout ;;
10242     *) objformat=elf ;;
10243     esac
10244   fi
10245   version_type=freebsd-$objformat
10246   case $version_type in
10247     freebsd-elf*)
10248       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10249       need_version=no
10250       need_lib_prefix=no
10251       ;;
10252     freebsd-*)
10253       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10254       need_version=yes
10255       ;;
10256   esac
10257   shlibpath_var=LD_LIBRARY_PATH
10258   case $host_os in
10259   freebsd2*)
10260     shlibpath_overrides_runpath=yes
10261     ;;
10262   freebsd3.[01]* | freebsdelf3.[01]*)
10263     shlibpath_overrides_runpath=yes
10264     hardcode_into_libs=yes
10265     ;;
10266   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10267   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10268     shlibpath_overrides_runpath=no
10269     hardcode_into_libs=yes
10270     ;;
10271   *) # from 4.6 on, and DragonFly
10272     shlibpath_overrides_runpath=yes
10273     hardcode_into_libs=yes
10274     ;;
10275   esac
10276   ;;
10277
10278 gnu*)
10279   version_type=linux
10280   need_lib_prefix=no
10281   need_version=no
10282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10283   soname_spec='${libname}${release}${shared_ext}$major'
10284   shlibpath_var=LD_LIBRARY_PATH
10285   hardcode_into_libs=yes
10286   ;;
10287
10288 haiku*)
10289   version_type=linux
10290   need_lib_prefix=no
10291   need_version=no
10292   dynamic_linker="$host_os runtime_loader"
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294   soname_spec='${libname}${release}${shared_ext}$major'
10295   shlibpath_var=LIBRARY_PATH
10296   shlibpath_overrides_runpath=yes
10297   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10298   hardcode_into_libs=yes
10299   ;;
10300
10301 hpux9* | hpux10* | hpux11*)
10302   # Give a soname corresponding to the major version so that dld.sl refuses to
10303   # link against other versions.
10304   version_type=sunos
10305   need_lib_prefix=no
10306   need_version=no
10307   case $host_cpu in
10308   ia64*)
10309     shrext_cmds='.so'
10310     hardcode_into_libs=yes
10311     dynamic_linker="$host_os dld.so"
10312     shlibpath_var=LD_LIBRARY_PATH
10313     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315     soname_spec='${libname}${release}${shared_ext}$major'
10316     if test "X$HPUX_IA64_MODE" = X32; then
10317       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10318     else
10319       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10320     fi
10321     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10322     ;;
10323   hppa*64*)
10324     shrext_cmds='.sl'
10325     hardcode_into_libs=yes
10326     dynamic_linker="$host_os dld.sl"
10327     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10328     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330     soname_spec='${libname}${release}${shared_ext}$major'
10331     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10332     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10333     ;;
10334   *)
10335     shrext_cmds='.sl'
10336     dynamic_linker="$host_os dld.sl"
10337     shlibpath_var=SHLIB_PATH
10338     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340     soname_spec='${libname}${release}${shared_ext}$major'
10341     ;;
10342   esac
10343   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10344   postinstall_cmds='chmod 555 $lib'
10345   # or fails outright, so override atomically:
10346   install_override_mode=555
10347   ;;
10348
10349 interix[3-9]*)
10350   version_type=linux
10351   need_lib_prefix=no
10352   need_version=no
10353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10354   soname_spec='${libname}${release}${shared_ext}$major'
10355   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10356   shlibpath_var=LD_LIBRARY_PATH
10357   shlibpath_overrides_runpath=no
10358   hardcode_into_libs=yes
10359   ;;
10360
10361 irix5* | irix6* | nonstopux*)
10362   case $host_os in
10363     nonstopux*) version_type=nonstopux ;;
10364     *)
10365         if test "$lt_cv_prog_gnu_ld" = yes; then
10366                 version_type=linux
10367         else
10368                 version_type=irix
10369         fi ;;
10370   esac
10371   need_lib_prefix=no
10372   need_version=no
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10375   case $host_os in
10376   irix5* | nonstopux*)
10377     libsuff= shlibsuff=
10378     ;;
10379   *)
10380     case $LD in # libtool.m4 will add one of these switches to LD
10381     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10382       libsuff= shlibsuff= libmagic=32-bit;;
10383     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10384       libsuff=32 shlibsuff=N32 libmagic=N32;;
10385     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10386       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10387     *) libsuff= shlibsuff= libmagic=never-match;;
10388     esac
10389     ;;
10390   esac
10391   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10392   shlibpath_overrides_runpath=no
10393   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10394   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10395   hardcode_into_libs=yes
10396   ;;
10397
10398 # No shared lib support for Linux oldld, aout, or coff.
10399 linux*oldld* | linux*aout* | linux*coff*)
10400   dynamic_linker=no
10401   ;;
10402
10403 # This must be Linux ELF.
10404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10405   version_type=linux
10406   need_lib_prefix=no
10407   need_version=no
10408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409   soname_spec='${libname}${release}${shared_ext}$major'
10410   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10411   shlibpath_var=LD_LIBRARY_PATH
10412   shlibpath_overrides_runpath=no
10413
10414   # Some binutils ld are patched to set DT_RUNPATH
10415   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418   lt_cv_shlibpath_overrides_runpath=no
10419     save_LDFLAGS=$LDFLAGS
10420     save_libdir=$libdir
10421     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10422          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h.  */
10425
10426 int
10427 main ()
10428 {
10429
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10436   lt_cv_shlibpath_overrides_runpath=yes
10437 fi
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext \
10440     conftest$ac_exeext conftest.$ac_ext
10441     LDFLAGS=$save_LDFLAGS
10442     libdir=$save_libdir
10443
10444 fi
10445
10446   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10447
10448   # This implies no fast_install, which is unacceptable.
10449   # Some rework will be needed to allow for fast_install
10450   # before this can be enabled.
10451   hardcode_into_libs=yes
10452
10453   # Append ld.so.conf contents to the search path
10454   if test -f /etc/ld.so.conf; then
10455     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' ' '`
10456     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10457   fi
10458
10459   # We used to test for /lib/ld.so.1 and disable shared libraries on
10460   # powerpc, because MkLinux only supported shared libraries with the
10461   # GNU dynamic linker.  Since this was broken with cross compilers,
10462   # most powerpc-linux boxes support dynamic linking these days and
10463   # people can always --disable-shared, the test was removed, and we
10464   # assume the GNU/Linux dynamic linker is in use.
10465   dynamic_linker='GNU/Linux ld.so'
10466   ;;
10467
10468 netbsd*)
10469   version_type=sunos
10470   need_lib_prefix=no
10471   need_version=no
10472   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10474     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10475     dynamic_linker='NetBSD (a.out) ld.so'
10476   else
10477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10478     soname_spec='${libname}${release}${shared_ext}$major'
10479     dynamic_linker='NetBSD ld.elf_so'
10480   fi
10481   shlibpath_var=LD_LIBRARY_PATH
10482   shlibpath_overrides_runpath=yes
10483   hardcode_into_libs=yes
10484   ;;
10485
10486 newsos6)
10487   version_type=linux
10488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489   shlibpath_var=LD_LIBRARY_PATH
10490   shlibpath_overrides_runpath=yes
10491   ;;
10492
10493 *nto* | *qnx*)
10494   version_type=qnx
10495   need_lib_prefix=no
10496   need_version=no
10497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498   soname_spec='${libname}${release}${shared_ext}$major'
10499   shlibpath_var=LD_LIBRARY_PATH
10500   shlibpath_overrides_runpath=no
10501   hardcode_into_libs=yes
10502   dynamic_linker='ldqnx.so'
10503   ;;
10504
10505 openbsd*)
10506   version_type=sunos
10507   sys_lib_dlsearch_path_spec="/usr/lib"
10508   need_lib_prefix=no
10509   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10510   case $host_os in
10511     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10512     *)                          need_version=no  ;;
10513   esac
10514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10515   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10516   shlibpath_var=LD_LIBRARY_PATH
10517   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10518     case $host_os in
10519       openbsd2.[89] | openbsd2.[89].*)
10520         shlibpath_overrides_runpath=no
10521         ;;
10522       *)
10523         shlibpath_overrides_runpath=yes
10524         ;;
10525       esac
10526   else
10527     shlibpath_overrides_runpath=yes
10528   fi
10529   ;;
10530
10531 os2*)
10532   libname_spec='$name'
10533   shrext_cmds=".dll"
10534   need_lib_prefix=no
10535   library_names_spec='$libname${shared_ext} $libname.a'
10536   dynamic_linker='OS/2 ld.exe'
10537   shlibpath_var=LIBPATH
10538   ;;
10539
10540 osf3* | osf4* | osf5*)
10541   version_type=osf
10542   need_lib_prefix=no
10543   need_version=no
10544   soname_spec='${libname}${release}${shared_ext}$major'
10545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546   shlibpath_var=LD_LIBRARY_PATH
10547   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10548   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10549   ;;
10550
10551 rdos*)
10552   dynamic_linker=no
10553   ;;
10554
10555 solaris*)
10556   version_type=linux
10557   need_lib_prefix=no
10558   need_version=no
10559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560   soname_spec='${libname}${release}${shared_ext}$major'
10561   shlibpath_var=LD_LIBRARY_PATH
10562   shlibpath_overrides_runpath=yes
10563   hardcode_into_libs=yes
10564   # ldd complains unless libraries are executable
10565   postinstall_cmds='chmod +x $lib'
10566   ;;
10567
10568 sunos4*)
10569   version_type=sunos
10570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10571   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10572   shlibpath_var=LD_LIBRARY_PATH
10573   shlibpath_overrides_runpath=yes
10574   if test "$with_gnu_ld" = yes; then
10575     need_lib_prefix=no
10576   fi
10577   need_version=yes
10578   ;;
10579
10580 sysv4 | sysv4.3*)
10581   version_type=linux
10582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583   soname_spec='${libname}${release}${shared_ext}$major'
10584   shlibpath_var=LD_LIBRARY_PATH
10585   case $host_vendor in
10586     sni)
10587       shlibpath_overrides_runpath=no
10588       need_lib_prefix=no
10589       runpath_var=LD_RUN_PATH
10590       ;;
10591     siemens)
10592       need_lib_prefix=no
10593       ;;
10594     motorola)
10595       need_lib_prefix=no
10596       need_version=no
10597       shlibpath_overrides_runpath=no
10598       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10599       ;;
10600   esac
10601   ;;
10602
10603 sysv4*MP*)
10604   if test -d /usr/nec ;then
10605     version_type=linux
10606     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10607     soname_spec='$libname${shared_ext}.$major'
10608     shlibpath_var=LD_LIBRARY_PATH
10609   fi
10610   ;;
10611
10612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10613   version_type=freebsd-elf
10614   need_lib_prefix=no
10615   need_version=no
10616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10617   soname_spec='${libname}${release}${shared_ext}$major'
10618   shlibpath_var=LD_LIBRARY_PATH
10619   shlibpath_overrides_runpath=yes
10620   hardcode_into_libs=yes
10621   if test "$with_gnu_ld" = yes; then
10622     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10623   else
10624     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10625     case $host_os in
10626       sco3.2v5*)
10627         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10628         ;;
10629     esac
10630   fi
10631   sys_lib_dlsearch_path_spec='/usr/lib'
10632   ;;
10633
10634 tpf*)
10635   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10636   version_type=linux
10637   need_lib_prefix=no
10638   need_version=no
10639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640   shlibpath_var=LD_LIBRARY_PATH
10641   shlibpath_overrides_runpath=no
10642   hardcode_into_libs=yes
10643   ;;
10644
10645 uts4*)
10646   version_type=linux
10647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648   soname_spec='${libname}${release}${shared_ext}$major'
10649   shlibpath_var=LD_LIBRARY_PATH
10650   ;;
10651
10652 *)
10653   dynamic_linker=no
10654   ;;
10655 esac
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10657 $as_echo "$dynamic_linker" >&6; }
10658 test "$dynamic_linker" = no && can_build_shared=no
10659
10660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10661 if test "$GCC" = yes; then
10662   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10663 fi
10664
10665 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10666   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10667 fi
10668 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10669   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10670 fi
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
10756
10757
10758
10759
10760
10761
10762
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10765 hardcode_action=
10766 if test -n "$hardcode_libdir_flag_spec" ||
10767    test -n "$runpath_var" ||
10768    test "X$hardcode_automatic" = "Xyes" ; then
10769
10770   # We can hardcode non-existent directories.
10771   if test "$hardcode_direct" != no &&
10772      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10773      # have to relink, otherwise we might link with an installed library
10774      # when we should be linking with a yet-to-be-installed one
10775      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10776      test "$hardcode_minus_L" != no; then
10777     # Linking always hardcodes the temporary library directory.
10778     hardcode_action=relink
10779   else
10780     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10781     hardcode_action=immediate
10782   fi
10783 else
10784   # We cannot hardcode anything, or else we can only hardcode existing
10785   # directories.
10786   hardcode_action=unsupported
10787 fi
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10789 $as_echo "$hardcode_action" >&6; }
10790
10791 if test "$hardcode_action" = relink ||
10792    test "$inherit_rpath" = yes; then
10793   # Fast installation is not supported
10794   enable_fast_install=no
10795 elif test "$shlibpath_overrides_runpath" = yes ||
10796      test "$enable_shared" = no; then
10797   # Fast installation is not necessary
10798   enable_fast_install=needless
10799 fi
10800
10801
10802
10803
10804
10805
10806   if test "x$enable_dlopen" != xyes; then
10807   enable_dlopen=unknown
10808   enable_dlopen_self=unknown
10809   enable_dlopen_self_static=unknown
10810 else
10811   lt_cv_dlopen=no
10812   lt_cv_dlopen_libs=
10813
10814   case $host_os in
10815   beos*)
10816     lt_cv_dlopen="load_add_on"
10817     lt_cv_dlopen_libs=
10818     lt_cv_dlopen_self=yes
10819     ;;
10820
10821   mingw* | pw32* | cegcc*)
10822     lt_cv_dlopen="LoadLibrary"
10823     lt_cv_dlopen_libs=
10824     ;;
10825
10826   cygwin*)
10827     lt_cv_dlopen="dlopen"
10828     lt_cv_dlopen_libs=
10829     ;;
10830
10831   darwin*)
10832   # if libdl is installed we need to link against it
10833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10836   $as_echo_n "(cached) " >&6
10837 else
10838   ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-ldl  $LIBS"
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h.  */
10842
10843 /* Override any GCC internal prototype to avoid an error.
10844    Use char because int might match the return type of a GCC
10845    builtin and then its argument prototype would still apply.  */
10846 #ifdef __cplusplus
10847 extern "C"
10848 #endif
10849 char dlopen ();
10850 int
10851 main ()
10852 {
10853 return dlopen ();
10854   ;
10855   return 0;
10856 }
10857 _ACEOF
10858 if ac_fn_c_try_link "$LINENO"; then :
10859   ac_cv_lib_dl_dlopen=yes
10860 else
10861   ac_cv_lib_dl_dlopen=no
10862 fi
10863 rm -f core conftest.err conftest.$ac_objext \
10864     conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10866 fi
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10869 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10870   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10871 else
10872
10873     lt_cv_dlopen="dyld"
10874     lt_cv_dlopen_libs=
10875     lt_cv_dlopen_self=yes
10876
10877 fi
10878
10879     ;;
10880
10881   *)
10882     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10883 if test "x$ac_cv_func_shl_load" = x""yes; then :
10884   lt_cv_dlopen="shl_load"
10885 else
10886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10887 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10889   $as_echo_n "(cached) " >&6
10890 else
10891   ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-ldld  $LIBS"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h.  */
10895
10896 /* Override any GCC internal prototype to avoid an error.
10897    Use char because int might match the return type of a GCC
10898    builtin and then its argument prototype would still apply.  */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char shl_load ();
10903 int
10904 main ()
10905 {
10906 return shl_load ();
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912   ac_cv_lib_dld_shl_load=yes
10913 else
10914   ac_cv_lib_dld_shl_load=no
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext \
10917     conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10921 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10922 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10923   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10924 else
10925   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10926 if test "x$ac_cv_func_dlopen" = x""yes; then :
10927   lt_cv_dlopen="dlopen"
10928 else
10929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10932   $as_echo_n "(cached) " >&6
10933 else
10934   ac_check_lib_save_LIBS=$LIBS
10935 LIBS="-ldl  $LIBS"
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h.  */
10938
10939 /* Override any GCC internal prototype to avoid an error.
10940    Use char because int might match the return type of a GCC
10941    builtin and then its argument prototype would still apply.  */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char dlopen ();
10946 int
10947 main ()
10948 {
10949 return dlopen ();
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"; then :
10955   ac_cv_lib_dl_dlopen=yes
10956 else
10957   ac_cv_lib_dl_dlopen=no
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext \
10960     conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10962 fi
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10965 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10966   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10967 else
10968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10969 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10970 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10971   $as_echo_n "(cached) " >&6
10972 else
10973   ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-lsvld  $LIBS"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h.  */
10977
10978 /* Override any GCC internal prototype to avoid an error.
10979    Use char because int might match the return type of a GCC
10980    builtin and then its argument prototype would still apply.  */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char dlopen ();
10985 int
10986 main ()
10987 {
10988 return dlopen ();
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994   ac_cv_lib_svld_dlopen=yes
10995 else
10996   ac_cv_lib_svld_dlopen=no
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999     conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11003 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11004 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11005   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11006 else
11007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11008 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11010   $as_echo_n "(cached) " >&6
11011 else
11012   ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-ldld  $LIBS"
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h.  */
11016
11017 /* Override any GCC internal prototype to avoid an error.
11018    Use char because int might match the return type of a GCC
11019    builtin and then its argument prototype would still apply.  */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char dld_link ();
11024 int
11025 main ()
11026 {
11027 return dld_link ();
11028   ;
11029   return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11033   ac_cv_lib_dld_dld_link=yes
11034 else
11035   ac_cv_lib_dld_dld_link=no
11036 fi
11037 rm -f core conftest.err conftest.$ac_objext \
11038     conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11040 fi
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11042 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11043 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11044   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11045 fi
11046
11047
11048 fi
11049
11050
11051 fi
11052
11053
11054 fi
11055
11056
11057 fi
11058
11059
11060 fi
11061
11062     ;;
11063   esac
11064
11065   if test "x$lt_cv_dlopen" != xno; then
11066     enable_dlopen=yes
11067   else
11068     enable_dlopen=no
11069   fi
11070
11071   case $lt_cv_dlopen in
11072   dlopen)
11073     save_CPPFLAGS="$CPPFLAGS"
11074     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11075
11076     save_LDFLAGS="$LDFLAGS"
11077     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11078
11079     save_LIBS="$LIBS"
11080     LIBS="$lt_cv_dlopen_libs $LIBS"
11081
11082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11083 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11084 if test "${lt_cv_dlopen_self+set}" = set; then :
11085   $as_echo_n "(cached) " >&6
11086 else
11087           if test "$cross_compiling" = yes; then :
11088   lt_cv_dlopen_self=cross
11089 else
11090   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11091   lt_status=$lt_dlunknown
11092   cat > conftest.$ac_ext <<_LT_EOF
11093 #line 11093 "configure"
11094 #include "confdefs.h"
11095
11096 #if HAVE_DLFCN_H
11097 #include <dlfcn.h>
11098 #endif
11099
11100 #include <stdio.h>
11101
11102 #ifdef RTLD_GLOBAL
11103 #  define LT_DLGLOBAL           RTLD_GLOBAL
11104 #else
11105 #  ifdef DL_GLOBAL
11106 #    define LT_DLGLOBAL         DL_GLOBAL
11107 #  else
11108 #    define LT_DLGLOBAL         0
11109 #  endif
11110 #endif
11111
11112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11113    find out it does not work in some platform. */
11114 #ifndef LT_DLLAZY_OR_NOW
11115 #  ifdef RTLD_LAZY
11116 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11117 #  else
11118 #    ifdef DL_LAZY
11119 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11120 #    else
11121 #      ifdef RTLD_NOW
11122 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11123 #      else
11124 #        ifdef DL_NOW
11125 #          define LT_DLLAZY_OR_NOW      DL_NOW
11126 #        else
11127 #          define LT_DLLAZY_OR_NOW      0
11128 #        endif
11129 #      endif
11130 #    endif
11131 #  endif
11132 #endif
11133
11134 /* When -fvisbility=hidden is used, assume the code has been annotated
11135    correspondingly for the symbols needed.  */
11136 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11137 void fnord () __attribute__((visibility("default")));
11138 #endif
11139
11140 void fnord () { int i=42; }
11141 int main ()
11142 {
11143   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11144   int status = $lt_dlunknown;
11145
11146   if (self)
11147     {
11148       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11149       else
11150         {
11151           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11152           else puts (dlerror ());
11153         }
11154       /* dlclose (self); */
11155     }
11156   else
11157     puts (dlerror ());
11158
11159   return status;
11160 }
11161 _LT_EOF
11162   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11163   (eval $ac_link) 2>&5
11164   ac_status=$?
11165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11166   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11167     (./conftest; exit; ) >&5 2>/dev/null
11168     lt_status=$?
11169     case x$lt_status in
11170       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11171       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11172       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11173     esac
11174   else :
11175     # compilation failed
11176     lt_cv_dlopen_self=no
11177   fi
11178 fi
11179 rm -fr conftest*
11180
11181
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11184 $as_echo "$lt_cv_dlopen_self" >&6; }
11185
11186     if test "x$lt_cv_dlopen_self" = xyes; then
11187       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11188       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11189 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11190 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11191   $as_echo_n "(cached) " >&6
11192 else
11193           if test "$cross_compiling" = yes; then :
11194   lt_cv_dlopen_self_static=cross
11195 else
11196   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197   lt_status=$lt_dlunknown
11198   cat > conftest.$ac_ext <<_LT_EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11201
11202 #if HAVE_DLFCN_H
11203 #include <dlfcn.h>
11204 #endif
11205
11206 #include <stdio.h>
11207
11208 #ifdef RTLD_GLOBAL
11209 #  define LT_DLGLOBAL           RTLD_GLOBAL
11210 #else
11211 #  ifdef DL_GLOBAL
11212 #    define LT_DLGLOBAL         DL_GLOBAL
11213 #  else
11214 #    define LT_DLGLOBAL         0
11215 #  endif
11216 #endif
11217
11218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219    find out it does not work in some platform. */
11220 #ifndef LT_DLLAZY_OR_NOW
11221 #  ifdef RTLD_LAZY
11222 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11223 #  else
11224 #    ifdef DL_LAZY
11225 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11226 #    else
11227 #      ifdef RTLD_NOW
11228 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11229 #      else
11230 #        ifdef DL_NOW
11231 #          define LT_DLLAZY_OR_NOW      DL_NOW
11232 #        else
11233 #          define LT_DLLAZY_OR_NOW      0
11234 #        endif
11235 #      endif
11236 #    endif
11237 #  endif
11238 #endif
11239
11240 /* When -fvisbility=hidden is used, assume the code has been annotated
11241    correspondingly for the symbols needed.  */
11242 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11243 void fnord () __attribute__((visibility("default")));
11244 #endif
11245
11246 void fnord () { int i=42; }
11247 int main ()
11248 {
11249   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11250   int status = $lt_dlunknown;
11251
11252   if (self)
11253     {
11254       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11255       else
11256         {
11257           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11258           else puts (dlerror ());
11259         }
11260       /* dlclose (self); */
11261     }
11262   else
11263     puts (dlerror ());
11264
11265   return status;
11266 }
11267 _LT_EOF
11268   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11269   (eval $ac_link) 2>&5
11270   ac_status=$?
11271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11272   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11273     (./conftest; exit; ) >&5 2>/dev/null
11274     lt_status=$?
11275     case x$lt_status in
11276       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11277       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11278       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11279     esac
11280   else :
11281     # compilation failed
11282     lt_cv_dlopen_self_static=no
11283   fi
11284 fi
11285 rm -fr conftest*
11286
11287
11288 fi
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11290 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11291     fi
11292
11293     CPPFLAGS="$save_CPPFLAGS"
11294     LDFLAGS="$save_LDFLAGS"
11295     LIBS="$save_LIBS"
11296     ;;
11297   esac
11298
11299   case $lt_cv_dlopen_self in
11300   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11301   *) enable_dlopen_self=unknown ;;
11302   esac
11303
11304   case $lt_cv_dlopen_self_static in
11305   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11306   *) enable_dlopen_self_static=unknown ;;
11307   esac
11308 fi
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326 striplib=
11327 old_striplib=
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11329 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11330 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11331   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11332   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11334 $as_echo "yes" >&6; }
11335 else
11336 # FIXME - insert some real tests, host_os isn't really good enough
11337   case $host_os in
11338   darwin*)
11339     if test -n "$STRIP" ; then
11340       striplib="$STRIP -x"
11341       old_striplib="$STRIP -S"
11342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11344     else
11345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347     fi
11348     ;;
11349   *)
11350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11352     ;;
11353   esac
11354 fi
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367   # Report which library types will actually be built
11368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11369 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11371 $as_echo "$can_build_shared" >&6; }
11372
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11374 $as_echo_n "checking whether to build shared libraries... " >&6; }
11375   test "$can_build_shared" = "no" && enable_shared=no
11376
11377   # On AIX, shared libraries and static libraries use the same namespace, and
11378   # are all built from PIC.
11379   case $host_os in
11380   aix3*)
11381     test "$enable_shared" = yes && enable_static=no
11382     if test -n "$RANLIB"; then
11383       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11384       postinstall_cmds='$RANLIB $lib'
11385     fi
11386     ;;
11387
11388   aix[4-9]*)
11389     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11390       test "$enable_shared" = yes && enable_static=no
11391     fi
11392     ;;
11393   esac
11394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11395 $as_echo "$enable_shared" >&6; }
11396
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11398 $as_echo_n "checking whether to build static libraries... " >&6; }
11399   # Make sure either enable_shared or enable_static is yes.
11400   test "$enable_shared" = yes || enable_static=yes
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11402 $as_echo "$enable_static" >&6; }
11403
11404
11405
11406
11407 fi
11408 ac_ext=c
11409 ac_cpp='$CPP $CPPFLAGS'
11410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11413
11414 CC="$lt_save_CC"
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428         ac_config_commands="$ac_config_commands libtool"
11429
11430
11431
11432
11433 # Only expand once:
11434
11435
11436
11437
11438
11439 case $host in
11440   *-cygwin* | *-mingw*)
11441     # 'host' will be top-level target in the case of a target lib,
11442     # we must compare to with_cross_host to decide if this is a native
11443     # or cross-compiler and select where to install dlls appropriately.
11444     if test -n "$with_cross_host" &&
11445         test x"$with_cross_host" != x"no"; then
11446       lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11447     else
11448       lt_host_flags='-no-undefined -bindir "$(bindir)"';
11449     fi
11450     ;;
11451   *)
11452     lt_host_flags=
11453     ;;
11454 esac
11455
11456
11457
11458
11459
11460
11461
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11463 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11464     # Check whether --enable-maintainer-mode was given.
11465 if test "${enable_maintainer_mode+set}" = set; then :
11466   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11467 else
11468   USE_MAINTAINER_MODE=no
11469 fi
11470
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11472 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11473    if test $USE_MAINTAINER_MODE = yes; then
11474   MAINTAINER_MODE_TRUE=
11475   MAINTAINER_MODE_FALSE='#'
11476 else
11477   MAINTAINER_MODE_TRUE='#'
11478   MAINTAINER_MODE_FALSE=
11479 fi
11480
11481   MAINT=$MAINTAINER_MODE_TRUE
11482
11483
11484
11485 # Create a spec file, so that compile/link tests don't fail
11486 test -f libgfortran.spec || touch libgfortran.spec
11487 FCFLAGS="$FCFLAGS -L."
11488
11489 # We need gfortran to compile parts of the library
11490 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11491 #AC_PROG_FC(gfortran)
11492 case `echo $GFORTRAN` in
11493   -* | no* )
11494     FC=no ;;
11495   *)
11496     set dummy $GFORTRAN; ac_word=$2
11497     if test -x "$ac_word"; then
11498       FC="$GFORTRAN"
11499     else
11500       FC=no
11501     fi ;;
11502 esac
11503 ac_ext=${ac_fc_srcext-f}
11504 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11505 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11506 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11507 if test -n "$ac_tool_prefix"; then
11508   for ac_prog in gfortran
11509   do
11510     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if test "${ac_cv_prog_FC+set}" = set; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   if test -n "$FC"; then
11518   ac_cv_prog_FC="$FC" # Let the user override the test.
11519 else
11520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521 for as_dir in $PATH
11522 do
11523   IFS=$as_save_IFS
11524   test -z "$as_dir" && as_dir=.
11525     for ac_exec_ext in '' $ac_executable_extensions; do
11526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11527     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529     break 2
11530   fi
11531 done
11532   done
11533 IFS=$as_save_IFS
11534
11535 fi
11536 fi
11537 FC=$ac_cv_prog_FC
11538 if test -n "$FC"; then
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11540 $as_echo "$FC" >&6; }
11541 else
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11544 fi
11545
11546
11547     test -n "$FC" && break
11548   done
11549 fi
11550 if test -z "$FC"; then
11551   ac_ct_FC=$FC
11552   for ac_prog in gfortran
11553 do
11554   # Extract the first word of "$ac_prog", so it can be a program name with args.
11555 set dummy $ac_prog; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561   if test -n "$ac_ct_FC"; then
11562   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567   IFS=$as_save_IFS
11568   test -z "$as_dir" && as_dir=.
11569     for ac_exec_ext in '' $ac_executable_extensions; do
11570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571     ac_cv_prog_ac_ct_FC="$ac_prog"
11572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573     break 2
11574   fi
11575 done
11576   done
11577 IFS=$as_save_IFS
11578
11579 fi
11580 fi
11581 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11582 if test -n "$ac_ct_FC"; then
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11584 $as_echo "$ac_ct_FC" >&6; }
11585 else
11586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11588 fi
11589
11590
11591   test -n "$ac_ct_FC" && break
11592 done
11593
11594   if test "x$ac_ct_FC" = x; then
11595     FC=""
11596   else
11597     case $cross_compiling:$ac_tool_warned in
11598 yes:)
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11601 ac_tool_warned=yes ;;
11602 esac
11603     FC=$ac_ct_FC
11604   fi
11605 fi
11606
11607
11608 # Provide some information about the compiler.
11609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11610 set X $ac_compile
11611 ac_compiler=$2
11612 for ac_option in --version -v -V -qversion; do
11613   { { ac_try="$ac_compiler $ac_option >&5"
11614 case "(($ac_try" in
11615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616   *) ac_try_echo=$ac_try;;
11617 esac
11618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11619 $as_echo "$ac_try_echo"; } >&5
11620   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11621   ac_status=$?
11622   if test -s conftest.err; then
11623     sed '10a\
11624 ... rest of stderr output deleted ...
11625          10q' conftest.err >conftest.er1
11626     cat conftest.er1 >&5
11627     rm -f conftest.er1 conftest.err
11628   fi
11629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630   test $ac_status = 0; }
11631 done
11632 rm -f a.out
11633
11634 # If we don't use `.F' as extension, the preprocessor is not run on the
11635 # input file.  (Note that this only needs to work for GNU compilers.)
11636 ac_save_ext=$ac_ext
11637 ac_ext=F
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11639 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11640 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   cat > conftest.$ac_ext <<_ACEOF
11644       program main
11645 #ifndef __GNUC__
11646        choke me
11647 #endif
11648
11649       end
11650 _ACEOF
11651 if ac_fn_fc_try_compile "$LINENO"; then :
11652   ac_compiler_gnu=yes
11653 else
11654   ac_compiler_gnu=no
11655 fi
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11658
11659 fi
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11661 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11662 ac_ext=$ac_save_ext
11663 ac_test_FCFLAGS=${FCFLAGS+set}
11664 ac_save_FCFLAGS=$FCFLAGS
11665 FCFLAGS=
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11667 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11668 if test "${ac_cv_prog_fc_g+set}" = set; then :
11669   $as_echo_n "(cached) " >&6
11670 else
11671   FCFLAGS=-g
11672 cat > conftest.$ac_ext <<_ACEOF
11673       program main
11674
11675       end
11676 _ACEOF
11677 if ac_fn_fc_try_compile "$LINENO"; then :
11678   ac_cv_prog_fc_g=yes
11679 else
11680   ac_cv_prog_fc_g=no
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11686 $as_echo "$ac_cv_prog_fc_g" >&6; }
11687 if test "$ac_test_FCFLAGS" = set; then
11688   FCFLAGS=$ac_save_FCFLAGS
11689 elif test $ac_cv_prog_fc_g = yes; then
11690   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11691     FCFLAGS="-g -O2"
11692   else
11693     FCFLAGS="-g"
11694   fi
11695 else
11696   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11697     FCFLAGS="-O2"
11698   else
11699     FCFLAGS=
11700   fi
11701 fi
11702
11703 ac_ext=c
11704 ac_cpp='$CPP $CPPFLAGS'
11705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11708
11709       ac_ext=${ac_fc_srcext-f}
11710 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11711 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11712 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11713
11714
11715 if test -z "$FC" || test "X$FC" = "Xno"; then
11716   _lt_disable_FC=yes
11717 fi
11718
11719 archive_cmds_need_lc_FC=no
11720 allow_undefined_flag_FC=
11721 always_export_symbols_FC=no
11722 archive_expsym_cmds_FC=
11723 export_dynamic_flag_spec_FC=
11724 hardcode_direct_FC=no
11725 hardcode_direct_absolute_FC=no
11726 hardcode_libdir_flag_spec_FC=
11727 hardcode_libdir_flag_spec_ld_FC=
11728 hardcode_libdir_separator_FC=
11729 hardcode_minus_L_FC=no
11730 hardcode_automatic_FC=no
11731 inherit_rpath_FC=no
11732 module_cmds_FC=
11733 module_expsym_cmds_FC=
11734 link_all_deplibs_FC=unknown
11735 old_archive_cmds_FC=$old_archive_cmds
11736 reload_flag_FC=$reload_flag
11737 reload_cmds_FC=$reload_cmds
11738 no_undefined_flag_FC=
11739 whole_archive_flag_spec_FC=
11740 enable_shared_with_static_runtimes_FC=no
11741
11742 # Source file extension for fc test sources.
11743 ac_ext=${ac_fc_srcext-f}
11744
11745 # Object file extension for compiled fc test sources.
11746 objext=o
11747 objext_FC=$objext
11748
11749 # No sense in running all these tests if we already determined that
11750 # the FC compiler isn't working.  Some variables (like enable_shared)
11751 # are currently assumed to apply to all compilers on this platform,
11752 # and will be corrupted by setting them based on a non-working compiler.
11753 if test "$_lt_disable_FC" != yes; then
11754   # Code to be used in simple compile tests
11755   lt_simple_compile_test_code="\
11756       subroutine t
11757       return
11758       end
11759 "
11760
11761   # Code to be used in simple link tests
11762   lt_simple_link_test_code="\
11763       program t
11764       end
11765 "
11766
11767   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11768
11769
11770
11771
11772
11773
11774 # If no C compiler was specified, use CC.
11775 LTCC=${LTCC-"$CC"}
11776
11777 # If no C compiler flags were specified, use CFLAGS.
11778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11779
11780 # Allow CC to be a program name with arguments.
11781 compiler=$CC
11782
11783
11784   # save warnings/boilerplate of simple test code
11785   ac_outfile=conftest.$ac_objext
11786 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11787 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11788 _lt_compiler_boilerplate=`cat conftest.err`
11789 $RM conftest*
11790
11791   ac_outfile=conftest.$ac_objext
11792 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11793 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11794 _lt_linker_boilerplate=`cat conftest.err`
11795 $RM -r conftest*
11796
11797
11798   # Allow CC to be a program name with arguments.
11799   lt_save_CC="$CC"
11800   lt_save_GCC=$GCC
11801   CC=${FC-"f95"}
11802   compiler=$CC
11803   GCC=$ac_cv_fc_compiler_gnu
11804
11805   compiler_FC=$CC
11806   for cc_temp in $compiler""; do
11807   case $cc_temp in
11808     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11809     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11810     \-*) ;;
11811     *) break;;
11812   esac
11813 done
11814 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11815
11816
11817   if test -n "$compiler"; then
11818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11819 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11821 $as_echo "$can_build_shared" >&6; }
11822
11823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11824 $as_echo_n "checking whether to build shared libraries... " >&6; }
11825     test "$can_build_shared" = "no" && enable_shared=no
11826
11827     # On AIX, shared libraries and static libraries use the same namespace, and
11828     # are all built from PIC.
11829     case $host_os in
11830       aix3*)
11831         test "$enable_shared" = yes && enable_static=no
11832         if test -n "$RANLIB"; then
11833           archive_cmds="$archive_cmds~\$RANLIB \$lib"
11834           postinstall_cmds='$RANLIB $lib'
11835         fi
11836         ;;
11837       aix[4-9]*)
11838         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11839           test "$enable_shared" = yes && enable_static=no
11840         fi
11841         ;;
11842     esac
11843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11844 $as_echo "$enable_shared" >&6; }
11845
11846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11847 $as_echo_n "checking whether to build static libraries... " >&6; }
11848     # Make sure either enable_shared or enable_static is yes.
11849     test "$enable_shared" = yes || enable_static=yes
11850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11851 $as_echo "$enable_static" >&6; }
11852
11853     GCC_FC="$ac_cv_fc_compiler_gnu"
11854     LD_FC="$LD"
11855
11856     ## CAVEAT EMPTOR:
11857     ## There is no encapsulation within the following macros, do not change
11858     ## the running order or otherwise move them around unless you know exactly
11859     ## what you are doing...
11860     # Dependencies to place before and after the object being linked:
11861 predep_objects_FC=
11862 postdep_objects_FC=
11863 predeps_FC=
11864 postdeps_FC=
11865 compiler_lib_search_path_FC=
11866
11867 cat > conftest.$ac_ext <<_LT_EOF
11868       subroutine foo
11869       implicit none
11870       integer a
11871       a=0
11872       return
11873       end
11874 _LT_EOF
11875
11876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11877   (eval $ac_compile) 2>&5
11878   ac_status=$?
11879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11880   test $ac_status = 0; }; then
11881   # Parse the compiler output and extract the necessary
11882   # objects, libraries and library flags.
11883
11884   # Sentinel used to keep track of whether or not we are before
11885   # the conftest object file.
11886   pre_test_object_deps_done=no
11887
11888   for p in `eval "$output_verbose_link_cmd"`; do
11889     case $p in
11890
11891     -L* | -R* | -l*)
11892        # Some compilers place space between "-{L,R}" and the path.
11893        # Remove the space.
11894        if test $p = "-L" ||
11895           test $p = "-R"; then
11896          prev=$p
11897          continue
11898        else
11899          prev=
11900        fi
11901
11902        if test "$pre_test_object_deps_done" = no; then
11903          case $p in
11904          -L* | -R*)
11905            # Internal compiler library paths should come after those
11906            # provided the user.  The postdeps already come after the
11907            # user supplied libs so there is no need to process them.
11908            if test -z "$compiler_lib_search_path_FC"; then
11909              compiler_lib_search_path_FC="${prev}${p}"
11910            else
11911              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11912            fi
11913            ;;
11914          # The "-l" case would never come before the object being
11915          # linked, so don't bother handling this case.
11916          esac
11917        else
11918          if test -z "$postdeps_FC"; then
11919            postdeps_FC="${prev}${p}"
11920          else
11921            postdeps_FC="${postdeps_FC} ${prev}${p}"
11922          fi
11923        fi
11924        ;;
11925
11926     *.$objext)
11927        # This assumes that the test object file only shows up
11928        # once in the compiler output.
11929        if test "$p" = "conftest.$objext"; then
11930          pre_test_object_deps_done=yes
11931          continue
11932        fi
11933
11934        if test "$pre_test_object_deps_done" = no; then
11935          if test -z "$predep_objects_FC"; then
11936            predep_objects_FC="$p"
11937          else
11938            predep_objects_FC="$predep_objects_FC $p"
11939          fi
11940        else
11941          if test -z "$postdep_objects_FC"; then
11942            postdep_objects_FC="$p"
11943          else
11944            postdep_objects_FC="$postdep_objects_FC $p"
11945          fi
11946        fi
11947        ;;
11948
11949     *) ;; # Ignore the rest.
11950
11951     esac
11952   done
11953
11954   # Clean up.
11955   rm -f a.out a.exe
11956 else
11957   echo "libtool.m4: error: problem compiling FC test program"
11958 fi
11959
11960 $RM -f confest.$objext
11961
11962 # PORTME: override above test on systems where it is broken
11963
11964
11965 case " $postdeps_FC " in
11966 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11967 esac
11968  compiler_lib_search_dirs_FC=
11969 if test -n "${compiler_lib_search_path_FC}"; then
11970  compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11971 fi
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003     lt_prog_compiler_wl_FC=
12004 lt_prog_compiler_pic_FC=
12005 lt_prog_compiler_static_FC=
12006
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12008 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12009
12010   if test "$GCC" = yes; then
12011     lt_prog_compiler_wl_FC='-Wl,'
12012     lt_prog_compiler_static_FC='-static'
12013
12014     case $host_os in
12015       aix*)
12016       # All AIX code is PIC.
12017       if test "$host_cpu" = ia64; then
12018         # AIX 5 now supports IA64 processor
12019         lt_prog_compiler_static_FC='-Bstatic'
12020       fi
12021       ;;
12022
12023     amigaos*)
12024       case $host_cpu in
12025       powerpc)
12026             # see comment about AmigaOS4 .so support
12027             lt_prog_compiler_pic_FC='-fPIC'
12028         ;;
12029       m68k)
12030             # FIXME: we need at least 68020 code to build shared libraries, but
12031             # adding the `-m68020' flag to GCC prevents building anything better,
12032             # like `-m68040'.
12033             lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12034         ;;
12035       esac
12036       ;;
12037
12038     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12039       # PIC is the default for these OSes.
12040       ;;
12041
12042     mingw* | cygwin* | pw32* | os2* | cegcc*)
12043       # This hack is so that the source file can tell whether it is being
12044       # built for inclusion in a dll (and should export symbols for example).
12045       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12046       # (--disable-auto-import) libraries
12047       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12048       ;;
12049
12050     darwin* | rhapsody*)
12051       # PIC is the default on this platform
12052       # Common symbols not allowed in MH_DYLIB files
12053       lt_prog_compiler_pic_FC='-fno-common'
12054       ;;
12055
12056     haiku*)
12057       # PIC is the default for Haiku.
12058       # The "-static" flag exists, but is broken.
12059       lt_prog_compiler_static_FC=
12060       ;;
12061
12062     hpux*)
12063       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12064       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12065       # sets the default TLS model and affects inlining.
12066       case $host_cpu in
12067       hppa*64*)
12068         # +Z the default
12069         ;;
12070       *)
12071         lt_prog_compiler_pic_FC='-fPIC'
12072         ;;
12073       esac
12074       ;;
12075
12076     interix[3-9]*)
12077       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12078       # Instead, we relocate shared libraries at runtime.
12079       ;;
12080
12081     msdosdjgpp*)
12082       # Just because we use GCC doesn't mean we suddenly get shared libraries
12083       # on systems that don't support them.
12084       lt_prog_compiler_can_build_shared_FC=no
12085       enable_shared=no
12086       ;;
12087
12088     *nto* | *qnx*)
12089       # QNX uses GNU C++, but need to define -shared option too, otherwise
12090       # it will coredump.
12091       lt_prog_compiler_pic_FC='-fPIC -shared'
12092       ;;
12093
12094     sysv4*MP*)
12095       if test -d /usr/nec; then
12096         lt_prog_compiler_pic_FC=-Kconform_pic
12097       fi
12098       ;;
12099
12100     *)
12101       lt_prog_compiler_pic_FC='-fPIC'
12102       ;;
12103     esac
12104
12105     case $cc_basename in
12106     nvcc*) # Cuda Compiler Driver 2.2
12107       lt_prog_compiler_wl_FC='-Xlinker '
12108       lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12109       ;;
12110     esac
12111   else
12112     # PORTME Check for flag to pass linker flags through the system compiler.
12113     case $host_os in
12114     aix*)
12115       lt_prog_compiler_wl_FC='-Wl,'
12116       if test "$host_cpu" = ia64; then
12117         # AIX 5 now supports IA64 processor
12118         lt_prog_compiler_static_FC='-Bstatic'
12119       else
12120         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12121       fi
12122       ;;
12123
12124     mingw* | cygwin* | pw32* | os2* | cegcc*)
12125       # This hack is so that the source file can tell whether it is being
12126       # built for inclusion in a dll (and should export symbols for example).
12127       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12128       ;;
12129
12130     hpux9* | hpux10* | hpux11*)
12131       lt_prog_compiler_wl_FC='-Wl,'
12132       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12133       # not for PA HP-UX.
12134       case $host_cpu in
12135       hppa*64*|ia64*)
12136         # +Z the default
12137         ;;
12138       *)
12139         lt_prog_compiler_pic_FC='+Z'
12140         ;;
12141       esac
12142       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12143       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12144       ;;
12145
12146     irix5* | irix6* | nonstopux*)
12147       lt_prog_compiler_wl_FC='-Wl,'
12148       # PIC (with -KPIC) is the default.
12149       lt_prog_compiler_static_FC='-non_shared'
12150       ;;
12151
12152     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12153       case $cc_basename in
12154       # old Intel for x86_64 which still supported -KPIC.
12155       ecc*)
12156         lt_prog_compiler_wl_FC='-Wl,'
12157         lt_prog_compiler_pic_FC='-KPIC'
12158         lt_prog_compiler_static_FC='-static'
12159         ;;
12160       # icc used to be incompatible with GCC.
12161       # ICC 10 doesn't accept -KPIC any more.
12162       icc* | ifort*)
12163         lt_prog_compiler_wl_FC='-Wl,'
12164         lt_prog_compiler_pic_FC='-fPIC'
12165         lt_prog_compiler_static_FC='-static'
12166         ;;
12167       # Lahey Fortran 8.1.
12168       lf95*)
12169         lt_prog_compiler_wl_FC='-Wl,'
12170         lt_prog_compiler_pic_FC='--shared'
12171         lt_prog_compiler_static_FC='--static'
12172         ;;
12173       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12174         # Portland Group compilers (*not* the Pentium gcc compiler,
12175         # which looks to be a dead project)
12176         lt_prog_compiler_wl_FC='-Wl,'
12177         lt_prog_compiler_pic_FC='-fpic'
12178         lt_prog_compiler_static_FC='-Bstatic'
12179         ;;
12180       ccc*)
12181         lt_prog_compiler_wl_FC='-Wl,'
12182         # All Alpha code is PIC.
12183         lt_prog_compiler_static_FC='-non_shared'
12184         ;;
12185       xl* | bgxl* | bgf* | mpixl*)
12186         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12187         lt_prog_compiler_wl_FC='-Wl,'
12188         lt_prog_compiler_pic_FC='-qpic'
12189         lt_prog_compiler_static_FC='-qstaticlink'
12190         ;;
12191       *)
12192         case `$CC -V 2>&1 | sed 5q` in
12193         *Sun\ F* | *Sun*Fortran*)
12194           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12195           lt_prog_compiler_pic_FC='-KPIC'
12196           lt_prog_compiler_static_FC='-Bstatic'
12197           lt_prog_compiler_wl_FC=''
12198           ;;
12199         *Sun\ C*)
12200           # Sun C 5.9
12201           lt_prog_compiler_pic_FC='-KPIC'
12202           lt_prog_compiler_static_FC='-Bstatic'
12203           lt_prog_compiler_wl_FC='-Wl,'
12204           ;;
12205         esac
12206         ;;
12207       esac
12208       ;;
12209
12210     newsos6)
12211       lt_prog_compiler_pic_FC='-KPIC'
12212       lt_prog_compiler_static_FC='-Bstatic'
12213       ;;
12214
12215     *nto* | *qnx*)
12216       # QNX uses GNU C++, but need to define -shared option too, otherwise
12217       # it will coredump.
12218       lt_prog_compiler_pic_FC='-fPIC -shared'
12219       ;;
12220
12221     osf3* | osf4* | osf5*)
12222       lt_prog_compiler_wl_FC='-Wl,'
12223       # All OSF/1 code is PIC.
12224       lt_prog_compiler_static_FC='-non_shared'
12225       ;;
12226
12227     rdos*)
12228       lt_prog_compiler_static_FC='-non_shared'
12229       ;;
12230
12231     solaris*)
12232       lt_prog_compiler_pic_FC='-KPIC'
12233       lt_prog_compiler_static_FC='-Bstatic'
12234       case $cc_basename in
12235       f77* | f90* | f95*)
12236         lt_prog_compiler_wl_FC='-Qoption ld ';;
12237       *)
12238         lt_prog_compiler_wl_FC='-Wl,';;
12239       esac
12240       ;;
12241
12242     sunos4*)
12243       lt_prog_compiler_wl_FC='-Qoption ld '
12244       lt_prog_compiler_pic_FC='-PIC'
12245       lt_prog_compiler_static_FC='-Bstatic'
12246       ;;
12247
12248     sysv4 | sysv4.2uw2* | sysv4.3*)
12249       lt_prog_compiler_wl_FC='-Wl,'
12250       lt_prog_compiler_pic_FC='-KPIC'
12251       lt_prog_compiler_static_FC='-Bstatic'
12252       ;;
12253
12254     sysv4*MP*)
12255       if test -d /usr/nec ;then
12256         lt_prog_compiler_pic_FC='-Kconform_pic'
12257         lt_prog_compiler_static_FC='-Bstatic'
12258       fi
12259       ;;
12260
12261     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12262       lt_prog_compiler_wl_FC='-Wl,'
12263       lt_prog_compiler_pic_FC='-KPIC'
12264       lt_prog_compiler_static_FC='-Bstatic'
12265       ;;
12266
12267     unicos*)
12268       lt_prog_compiler_wl_FC='-Wl,'
12269       lt_prog_compiler_can_build_shared_FC=no
12270       ;;
12271
12272     uts4*)
12273       lt_prog_compiler_pic_FC='-pic'
12274       lt_prog_compiler_static_FC='-Bstatic'
12275       ;;
12276
12277     *)
12278       lt_prog_compiler_can_build_shared_FC=no
12279       ;;
12280     esac
12281   fi
12282
12283 case $host_os in
12284   # For platforms which do not support PIC, -DPIC is meaningless:
12285   *djgpp*)
12286     lt_prog_compiler_pic_FC=
12287     ;;
12288   *)
12289     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12290     ;;
12291 esac
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12293 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12294
12295
12296
12297 #
12298 # Check to make sure the PIC flag actually works.
12299 #
12300 if test -n "$lt_prog_compiler_pic_FC"; then
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12302 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12303 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12304   $as_echo_n "(cached) " >&6
12305 else
12306   lt_cv_prog_compiler_pic_works_FC=no
12307    ac_outfile=conftest.$ac_objext
12308    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12309    lt_compiler_flag="$lt_prog_compiler_pic_FC"
12310    # Insert the option either (1) after the last *FLAGS variable, or
12311    # (2) before a word containing "conftest.", or (3) at the end.
12312    # Note that $ac_compile itself does not contain backslashes and begins
12313    # with a dollar sign (not a hyphen), so the echo should work correctly.
12314    # The option is referenced via a variable to avoid confusing sed.
12315    lt_compile=`echo "$ac_compile" | $SED \
12316    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12317    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12318    -e 's:$: $lt_compiler_flag:'`
12319    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12320    (eval "$lt_compile" 2>conftest.err)
12321    ac_status=$?
12322    cat conftest.err >&5
12323    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324    if (exit $ac_status) && test -s "$ac_outfile"; then
12325      # The compiler can only warn and ignore the option if not recognized
12326      # So say no if there are warnings other than the usual output.
12327      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12328      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12329      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12330        lt_cv_prog_compiler_pic_works_FC=yes
12331      fi
12332    fi
12333    $RM conftest*
12334
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12337 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12338
12339 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12340     case $lt_prog_compiler_pic_FC in
12341      "" | " "*) ;;
12342      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12343      esac
12344 else
12345     lt_prog_compiler_pic_FC=
12346      lt_prog_compiler_can_build_shared_FC=no
12347 fi
12348
12349 fi
12350
12351
12352
12353 #
12354 # Check to make sure the static flag actually works.
12355 #
12356 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12358 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12359 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12360   $as_echo_n "(cached) " >&6
12361 else
12362   lt_cv_prog_compiler_static_works_FC=no
12363    save_LDFLAGS="$LDFLAGS"
12364    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12365    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12366    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12367      # The linker can only warn and ignore the option if not recognized
12368      # So say no if there are warnings
12369      if test -s conftest.err; then
12370        # Append any errors to the config.log.
12371        cat conftest.err 1>&5
12372        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12373        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12374        if diff conftest.exp conftest.er2 >/dev/null; then
12375          lt_cv_prog_compiler_static_works_FC=yes
12376        fi
12377      else
12378        lt_cv_prog_compiler_static_works_FC=yes
12379      fi
12380    fi
12381    $RM -r conftest*
12382    LDFLAGS="$save_LDFLAGS"
12383
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12386 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12387
12388 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12389     :
12390 else
12391     lt_prog_compiler_static_FC=
12392 fi
12393
12394
12395
12396
12397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12398 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12399 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12400   $as_echo_n "(cached) " >&6
12401 else
12402   lt_cv_prog_compiler_c_o_FC=no
12403    $RM -r conftest 2>/dev/null
12404    mkdir conftest
12405    cd conftest
12406    mkdir out
12407    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12408
12409    lt_compiler_flag="-o out/conftest2.$ac_objext"
12410    # Insert the option either (1) after the last *FLAGS variable, or
12411    # (2) before a word containing "conftest.", or (3) at the end.
12412    # Note that $ac_compile itself does not contain backslashes and begins
12413    # with a dollar sign (not a hyphen), so the echo should work correctly.
12414    lt_compile=`echo "$ac_compile" | $SED \
12415    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12417    -e 's:$: $lt_compiler_flag:'`
12418    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12419    (eval "$lt_compile" 2>out/conftest.err)
12420    ac_status=$?
12421    cat out/conftest.err >&5
12422    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12424    then
12425      # The compiler can only warn and ignore the option if not recognized
12426      # So say no if there are warnings
12427      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12428      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12429      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12430        lt_cv_prog_compiler_c_o_FC=yes
12431      fi
12432    fi
12433    chmod u+w . 2>&5
12434    $RM conftest*
12435    # SGI C++ compiler will create directory out/ii_files/ for
12436    # template instantiation
12437    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12438    $RM out/* && rmdir out
12439    cd ..
12440    $RM -r conftest
12441    $RM conftest*
12442
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12445 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12446
12447
12448
12449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12450 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12451 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454   lt_cv_prog_compiler_c_o_FC=no
12455    $RM -r conftest 2>/dev/null
12456    mkdir conftest
12457    cd conftest
12458    mkdir out
12459    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12460
12461    lt_compiler_flag="-o out/conftest2.$ac_objext"
12462    # Insert the option either (1) after the last *FLAGS variable, or
12463    # (2) before a word containing "conftest.", or (3) at the end.
12464    # Note that $ac_compile itself does not contain backslashes and begins
12465    # with a dollar sign (not a hyphen), so the echo should work correctly.
12466    lt_compile=`echo "$ac_compile" | $SED \
12467    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12468    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12469    -e 's:$: $lt_compiler_flag:'`
12470    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12471    (eval "$lt_compile" 2>out/conftest.err)
12472    ac_status=$?
12473    cat out/conftest.err >&5
12474    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12476    then
12477      # The compiler can only warn and ignore the option if not recognized
12478      # So say no if there are warnings
12479      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12480      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12481      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12482        lt_cv_prog_compiler_c_o_FC=yes
12483      fi
12484    fi
12485    chmod u+w . 2>&5
12486    $RM conftest*
12487    # SGI C++ compiler will create directory out/ii_files/ for
12488    # template instantiation
12489    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12490    $RM out/* && rmdir out
12491    cd ..
12492    $RM -r conftest
12493    $RM conftest*
12494
12495 fi
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12497 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12498
12499
12500
12501
12502 hard_links="nottested"
12503 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12504   # do not overwrite the value of need_locks provided by the user
12505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12506 $as_echo_n "checking if we can lock with hard links... " >&6; }
12507   hard_links=yes
12508   $RM conftest*
12509   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12510   touch conftest.a
12511   ln conftest.a conftest.b 2>&5 || hard_links=no
12512   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12514 $as_echo "$hard_links" >&6; }
12515   if test "$hard_links" = no; then
12516     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12517 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12518     need_locks=warn
12519   fi
12520 else
12521   need_locks=no
12522 fi
12523
12524
12525
12526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12527 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12528
12529   runpath_var=
12530   allow_undefined_flag_FC=
12531   always_export_symbols_FC=no
12532   archive_cmds_FC=
12533   archive_expsym_cmds_FC=
12534   compiler_needs_object_FC=no
12535   enable_shared_with_static_runtimes_FC=no
12536   export_dynamic_flag_spec_FC=
12537   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12538   hardcode_automatic_FC=no
12539   hardcode_direct_FC=no
12540   hardcode_direct_absolute_FC=no
12541   hardcode_libdir_flag_spec_FC=
12542   hardcode_libdir_flag_spec_ld_FC=
12543   hardcode_libdir_separator_FC=
12544   hardcode_minus_L_FC=no
12545   hardcode_shlibpath_var_FC=unsupported
12546   inherit_rpath_FC=no
12547   link_all_deplibs_FC=unknown
12548   module_cmds_FC=
12549   module_expsym_cmds_FC=
12550   old_archive_from_new_cmds_FC=
12551   old_archive_from_expsyms_cmds_FC=
12552   thread_safe_flag_spec_FC=
12553   whole_archive_flag_spec_FC=
12554   # include_expsyms should be a list of space-separated symbols to be *always*
12555   # included in the symbol list
12556   include_expsyms_FC=
12557   # exclude_expsyms can be an extended regexp of symbols to exclude
12558   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12559   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12560   # as well as any symbol that contains `d'.
12561   exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12562   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12563   # platforms (ab)use it in PIC code, but their linkers get confused if
12564   # the symbol is explicitly referenced.  Since portable code cannot
12565   # rely on this symbol name, it's probably fine to never include it in
12566   # preloaded symbol tables.
12567   # Exclude shared library initialization/finalization symbols.
12568   extract_expsyms_cmds=
12569
12570   case $host_os in
12571   cygwin* | mingw* | pw32* | cegcc*)
12572     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12573     # When not using gcc, we currently assume that we are using
12574     # Microsoft Visual C++.
12575     if test "$GCC" != yes; then
12576       with_gnu_ld=no
12577     fi
12578     ;;
12579   interix*)
12580     # we just hope/assume this is gcc and not c89 (= MSVC++)
12581     with_gnu_ld=yes
12582     ;;
12583   openbsd*)
12584     with_gnu_ld=no
12585     ;;
12586   esac
12587
12588   ld_shlibs_FC=yes
12589
12590   # On some targets, GNU ld is compatible enough with the native linker
12591   # that we're better off using the native interface for both.
12592   lt_use_gnu_ld_interface=no
12593   if test "$with_gnu_ld" = yes; then
12594     case $host_os in
12595       aix*)
12596         # The AIX port of GNU ld has always aspired to compatibility
12597         # with the native linker.  However, as the warning in the GNU ld
12598         # block says, versions before 2.19.5* couldn't really create working
12599         # shared libraries, regardless of the interface used.
12600         case `$LD -v 2>&1` in
12601           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12602           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12603           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12604           *)
12605             lt_use_gnu_ld_interface=yes
12606             ;;
12607         esac
12608         ;;
12609       *)
12610         lt_use_gnu_ld_interface=yes
12611         ;;
12612     esac
12613   fi
12614
12615   if test "$lt_use_gnu_ld_interface" = yes; then
12616     # If archive_cmds runs LD, not CC, wlarc should be empty
12617     wlarc='${wl}'
12618
12619     # Set some defaults for GNU ld with shared library support. These
12620     # are reset later if shared libraries are not supported. Putting them
12621     # here allows them to be overridden if necessary.
12622     runpath_var=LD_RUN_PATH
12623     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12624     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12625     # ancient GNU ld didn't support --whole-archive et. al.
12626     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12627       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12628     else
12629       whole_archive_flag_spec_FC=
12630     fi
12631     supports_anon_versioning=no
12632     case `$LD -v 2>&1` in
12633       *GNU\ gold*) supports_anon_versioning=yes ;;
12634       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12635       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12636       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12637       *\ 2.11.*) ;; # other 2.11 versions
12638       *) supports_anon_versioning=yes ;;
12639     esac
12640
12641     # See if GNU ld supports shared libraries.
12642     case $host_os in
12643     aix[3-9]*)
12644       # On AIX/PPC, the GNU linker is very broken
12645       if test "$host_cpu" != ia64; then
12646         ld_shlibs_FC=no
12647         cat <<_LT_EOF 1>&2
12648
12649 *** Warning: the GNU linker, at least up to release 2.19, is reported
12650 *** to be unable to reliably create shared libraries on AIX.
12651 *** Therefore, libtool is disabling shared libraries support.  If you
12652 *** really care for shared libraries, you may want to install binutils
12653 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12654 *** You will then need to restart the configuration process.
12655
12656 _LT_EOF
12657       fi
12658       ;;
12659
12660     amigaos*)
12661       case $host_cpu in
12662       powerpc)
12663             # see comment about AmigaOS4 .so support
12664             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12665             archive_expsym_cmds_FC=''
12666         ;;
12667       m68k)
12668             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)'
12669             hardcode_libdir_flag_spec_FC='-L$libdir'
12670             hardcode_minus_L_FC=yes
12671         ;;
12672       esac
12673       ;;
12674
12675     beos*)
12676       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12677         allow_undefined_flag_FC=unsupported
12678         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12679         # support --undefined.  This deserves some investigation.  FIXME
12680         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12681       else
12682         ld_shlibs_FC=no
12683       fi
12684       ;;
12685
12686     cygwin* | mingw* | pw32* | cegcc*)
12687       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12688       # as there is no search path for DLLs.
12689       hardcode_libdir_flag_spec_FC='-L$libdir'
12690       export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12691       allow_undefined_flag_FC=unsupported
12692       always_export_symbols_FC=no
12693       enable_shared_with_static_runtimes_FC=yes
12694       export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12695
12696       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12697         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12698         # If the export-symbols file already is a .def file (1st line
12699         # is EXPORTS), use it as is; otherwise, prepend...
12700         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12701           cp $export_symbols $output_objdir/$soname.def;
12702         else
12703           echo EXPORTS > $output_objdir/$soname.def;
12704           cat $export_symbols >> $output_objdir/$soname.def;
12705         fi~
12706         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12707       else
12708         ld_shlibs_FC=no
12709       fi
12710       ;;
12711
12712     haiku*)
12713       archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12714       link_all_deplibs_FC=yes
12715       ;;
12716
12717     interix[3-9]*)
12718       hardcode_direct_FC=no
12719       hardcode_shlibpath_var_FC=no
12720       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12721       export_dynamic_flag_spec_FC='${wl}-E'
12722       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12723       # Instead, shared libraries are loaded at an image base (0x10000000 by
12724       # default) and relocated if they conflict, which is a slow very memory
12725       # consuming and fragmenting process.  To avoid this, we pick a random,
12726       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12727       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12728       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'
12729       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'
12730       ;;
12731
12732     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12733       tmp_diet=no
12734       if test "$host_os" = linux-dietlibc; then
12735         case $cc_basename in
12736           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12737         esac
12738       fi
12739       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12740          && test "$tmp_diet" = no
12741       then
12742         tmp_addflag=
12743         tmp_sharedflag='-shared'
12744         case $cc_basename,$host_cpu in
12745         pgcc*)                          # Portland Group C compiler
12746           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'
12747           tmp_addflag=' $pic_flag'
12748           ;;
12749         pgf77* | pgf90* | pgf95* | pgfortran*)
12750                                         # Portland Group f77 and f90 compilers
12751           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'
12752           tmp_addflag=' $pic_flag -Mnomain' ;;
12753         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12754           tmp_addflag=' -i_dynamic' ;;
12755         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12756           tmp_addflag=' -i_dynamic -nofor_main' ;;
12757         ifc* | ifort*)                  # Intel Fortran compiler
12758           tmp_addflag=' -nofor_main' ;;
12759         lf95*)                          # Lahey Fortran 8.1
12760           whole_archive_flag_spec_FC=
12761           tmp_sharedflag='--shared' ;;
12762         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12763           tmp_sharedflag='-qmkshrobj'
12764           tmp_addflag= ;;
12765         nvcc*)  # Cuda Compiler Driver 2.2
12766           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'
12767           compiler_needs_object_FC=yes
12768           ;;
12769         esac
12770         case `$CC -V 2>&1 | sed 5q` in
12771         *Sun\ C*)                       # Sun C 5.9
12772           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'
12773           compiler_needs_object_FC=yes
12774           tmp_sharedflag='-G' ;;
12775         *Sun\ F*)                       # Sun Fortran 8.3
12776           tmp_sharedflag='-G' ;;
12777         esac
12778         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12779
12780         if test "x$supports_anon_versioning" = xyes; then
12781           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12782             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12783             echo "local: *; };" >> $output_objdir/$libname.ver~
12784             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12785         fi
12786
12787         case $cc_basename in
12788         xlf* | bgf* | bgxlf* | mpixlf*)
12789           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12790           whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12791           hardcode_libdir_flag_spec_FC=
12792           hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12793           archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12794           if test "x$supports_anon_versioning" = xyes; then
12795             archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12796               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12797               echo "local: *; };" >> $output_objdir/$libname.ver~
12798               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12799           fi
12800           ;;
12801         esac
12802       else
12803         ld_shlibs_FC=no
12804       fi
12805       ;;
12806
12807     netbsd*)
12808       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12809         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12810         wlarc=
12811       else
12812         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12814       fi
12815       ;;
12816
12817     solaris*)
12818       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12819         ld_shlibs_FC=no
12820         cat <<_LT_EOF 1>&2
12821
12822 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12823 *** create shared libraries on Solaris systems.  Therefore, libtool
12824 *** is disabling shared libraries support.  We urge you to upgrade GNU
12825 *** binutils to release 2.9.1 or newer.  Another option is to modify
12826 *** your PATH or compiler configuration so that the native linker is
12827 *** used, and then restart.
12828
12829 _LT_EOF
12830       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12831         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12833       else
12834         ld_shlibs_FC=no
12835       fi
12836       ;;
12837
12838     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12839       case `$LD -v 2>&1` in
12840         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12841         ld_shlibs_FC=no
12842         cat <<_LT_EOF 1>&2
12843
12844 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12845 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12846 *** is disabling shared libraries support.  We urge you to upgrade GNU
12847 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12848 *** your PATH or compiler configuration so that the native linker is
12849 *** used, and then restart.
12850
12851 _LT_EOF
12852         ;;
12853         *)
12854           # For security reasons, it is highly recommended that you always
12855           # use absolute paths for naming shared libraries, and exclude the
12856           # DT_RUNPATH tag from executables and libraries.  But doing so
12857           # requires that you compile everything twice, which is a pain.
12858           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12859             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12860             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12861             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12862           else
12863             ld_shlibs_FC=no
12864           fi
12865         ;;
12866       esac
12867       ;;
12868
12869     sunos4*)
12870       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12871       wlarc=
12872       hardcode_direct_FC=yes
12873       hardcode_shlibpath_var_FC=no
12874       ;;
12875
12876     *)
12877       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12878         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12879         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12880       else
12881         ld_shlibs_FC=no
12882       fi
12883       ;;
12884     esac
12885
12886     if test "$ld_shlibs_FC" = no; then
12887       runpath_var=
12888       hardcode_libdir_flag_spec_FC=
12889       export_dynamic_flag_spec_FC=
12890       whole_archive_flag_spec_FC=
12891     fi
12892   else
12893     # PORTME fill in a description of your system's linker (not GNU ld)
12894     case $host_os in
12895     aix3*)
12896       allow_undefined_flag_FC=unsupported
12897       always_export_symbols_FC=yes
12898       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'
12899       # Note: this linker hardcodes the directories in LIBPATH if there
12900       # are no directories specified by -L.
12901       hardcode_minus_L_FC=yes
12902       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12903         # Neither direct hardcoding nor static linking is supported with a
12904         # broken collect2.
12905         hardcode_direct_FC=unsupported
12906       fi
12907       ;;
12908
12909     aix[4-9]*)
12910       if test "$host_cpu" = ia64; then
12911         # On IA64, the linker does run time linking by default, so we don't
12912         # have to do anything special.
12913         aix_use_runtimelinking=no
12914         exp_sym_flag='-Bexport'
12915         no_entry_flag=""
12916       else
12917         # If we're using GNU nm, then we don't want the "-C" option.
12918         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12919         # Also, AIX nm treats weak defined symbols like other global
12920         # defined symbols, whereas GNU nm marks them as "W".
12921         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12922           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'
12923         else
12924           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'
12925         fi
12926         aix_use_runtimelinking=no
12927
12928         # Test if we are trying to use run time linking or normal
12929         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12930         # need to do runtime linking.
12931         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12932           for ld_flag in $LDFLAGS; do
12933           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12934             aix_use_runtimelinking=yes
12935             break
12936           fi
12937           done
12938           ;;
12939         esac
12940
12941         exp_sym_flag='-bexport'
12942         no_entry_flag='-bnoentry'
12943       fi
12944
12945       # When large executables or shared objects are built, AIX ld can
12946       # have problems creating the table of contents.  If linking a library
12947       # or program results in "error TOC overflow" add -mminimal-toc to
12948       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12949       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12950
12951       archive_cmds_FC=''
12952       hardcode_direct_FC=yes
12953       hardcode_direct_absolute_FC=yes
12954       hardcode_libdir_separator_FC=':'
12955       link_all_deplibs_FC=yes
12956       file_list_spec_FC='${wl}-f,'
12957
12958       if test "$GCC" = yes; then
12959         case $host_os in aix4.[012]|aix4.[012].*)
12960         # We only want to do this on AIX 4.2 and lower, the check
12961         # below for broken collect2 doesn't work under 4.3+
12962           collect2name=`${CC} -print-prog-name=collect2`
12963           if test -f "$collect2name" &&
12964            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12965           then
12966           # We have reworked collect2
12967           :
12968           else
12969           # We have old collect2
12970           hardcode_direct_FC=unsupported
12971           # It fails to find uninstalled libraries when the uninstalled
12972           # path is not listed in the libpath.  Setting hardcode_minus_L
12973           # to unsupported forces relinking
12974           hardcode_minus_L_FC=yes
12975           hardcode_libdir_flag_spec_FC='-L$libdir'
12976           hardcode_libdir_separator_FC=
12977           fi
12978           ;;
12979         esac
12980         shared_flag='-shared'
12981         if test "$aix_use_runtimelinking" = yes; then
12982           shared_flag="$shared_flag "'${wl}-G'
12983         fi
12984       else
12985         # not using gcc
12986         if test "$host_cpu" = ia64; then
12987         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12988         # chokes on -Wl,-G. The following line is correct:
12989           shared_flag='-G'
12990         else
12991           if test "$aix_use_runtimelinking" = yes; then
12992             shared_flag='${wl}-G'
12993           else
12994             shared_flag='${wl}-bM:SRE'
12995           fi
12996         fi
12997       fi
12998
12999       export_dynamic_flag_spec_FC='${wl}-bexpall'
13000       # It seems that -bexpall does not export symbols beginning with
13001       # underscore (_), so it is better to generate a list of symbols to export.
13002       always_export_symbols_FC=yes
13003       if test "$aix_use_runtimelinking" = yes; then
13004         # Warning - without using the other runtime loading flags (-brtl),
13005         # -berok will link without error, but may produce a broken library.
13006         allow_undefined_flag_FC='-berok'
13007         # Determine the default libpath from the value encoded in an
13008         # empty executable.
13009         cat > conftest.$ac_ext <<_ACEOF
13010       program main
13011
13012       end
13013 _ACEOF
13014 if ac_fn_fc_try_link "$LINENO"; then :
13015
13016 lt_aix_libpath_sed='
13017     /Import File Strings/,/^$/ {
13018         /^0/ {
13019             s/^0  *\(.*\)$/\1/
13020             p
13021         }
13022     }'
13023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13024 # Check for a 64-bit object if we didn't find anything.
13025 if test -z "$aix_libpath"; then
13026   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027 fi
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext \
13030     conftest$ac_exeext conftest.$ac_ext
13031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13032
13033         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13034         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"
13035       else
13036         if test "$host_cpu" = ia64; then
13037           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13038           allow_undefined_flag_FC="-z nodefs"
13039           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"
13040         else
13041          # Determine the default libpath from the value encoded in an
13042          # empty executable.
13043          cat > conftest.$ac_ext <<_ACEOF
13044       program main
13045
13046       end
13047 _ACEOF
13048 if ac_fn_fc_try_link "$LINENO"; then :
13049
13050 lt_aix_libpath_sed='
13051     /Import File Strings/,/^$/ {
13052         /^0/ {
13053             s/^0  *\(.*\)$/\1/
13054             p
13055         }
13056     }'
13057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13058 # Check for a 64-bit object if we didn't find anything.
13059 if test -z "$aix_libpath"; then
13060   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13061 fi
13062 fi
13063 rm -f core conftest.err conftest.$ac_objext \
13064     conftest$ac_exeext conftest.$ac_ext
13065 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13066
13067          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13068           # Warning - without using the other run time loading flags,
13069           # -berok will link without error, but may produce a broken library.
13070           no_undefined_flag_FC=' ${wl}-bernotok'
13071           allow_undefined_flag_FC=' ${wl}-berok'
13072           if test "$with_gnu_ld" = yes; then
13073             # We only use this code for GNU lds that support --whole-archive.
13074             whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13075           else
13076             # Exported symbols can be pulled into shared objects from archives
13077             whole_archive_flag_spec_FC='$convenience'
13078           fi
13079           archive_cmds_need_lc_FC=yes
13080           # This is similar to how AIX traditionally builds its shared libraries.
13081           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'
13082         fi
13083       fi
13084       ;;
13085
13086     amigaos*)
13087       case $host_cpu in
13088       powerpc)
13089             # see comment about AmigaOS4 .so support
13090             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091             archive_expsym_cmds_FC=''
13092         ;;
13093       m68k)
13094             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)'
13095             hardcode_libdir_flag_spec_FC='-L$libdir'
13096             hardcode_minus_L_FC=yes
13097         ;;
13098       esac
13099       ;;
13100
13101     bsdi[45]*)
13102       export_dynamic_flag_spec_FC=-rdynamic
13103       ;;
13104
13105     cygwin* | mingw* | pw32* | cegcc*)
13106       # When not using gcc, we currently assume that we are using
13107       # Microsoft Visual C++.
13108       # hardcode_libdir_flag_spec is actually meaningless, as there is
13109       # no search path for DLLs.
13110       hardcode_libdir_flag_spec_FC=' '
13111       allow_undefined_flag_FC=unsupported
13112       # Tell ltmain to make .lib files, not .a files.
13113       libext=lib
13114       # Tell ltmain to make .dll files, not .so files.
13115       shrext_cmds=".dll"
13116       # FIXME: Setting linknames here is a bad hack.
13117       archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13118       # The linker will automatically build a .lib file if we build a DLL.
13119       old_archive_from_new_cmds_FC='true'
13120       # FIXME: Should let the user specify the lib program.
13121       old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13122       fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13123       enable_shared_with_static_runtimes_FC=yes
13124       ;;
13125
13126     darwin* | rhapsody*)
13127
13128
13129   archive_cmds_need_lc_FC=no
13130   hardcode_direct_FC=no
13131   hardcode_automatic_FC=yes
13132   hardcode_shlibpath_var_FC=unsupported
13133   if test "$lt_cv_ld_force_load" = "yes"; then
13134     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\"`'
13135   else
13136     whole_archive_flag_spec_FC=''
13137   fi
13138   link_all_deplibs_FC=yes
13139   allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13140   case $cc_basename in
13141      ifort*) _lt_dar_can_shared=yes ;;
13142      *) _lt_dar_can_shared=$GCC ;;
13143   esac
13144   if test "$_lt_dar_can_shared" = "yes"; then
13145     output_verbose_link_cmd=func_echo_all
13146     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}"
13147     module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13148     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}"
13149     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}"
13150
13151   else
13152   ld_shlibs_FC=no
13153   fi
13154
13155       ;;
13156
13157     dgux*)
13158       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13159       hardcode_libdir_flag_spec_FC='-L$libdir'
13160       hardcode_shlibpath_var_FC=no
13161       ;;
13162
13163     freebsd1*)
13164       ld_shlibs_FC=no
13165       ;;
13166
13167     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13168     # support.  Future versions do this automatically, but an explicit c++rt0.o
13169     # does not break anything, and helps significantly (at the cost of a little
13170     # extra space).
13171     freebsd2.2*)
13172       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13173       hardcode_libdir_flag_spec_FC='-R$libdir'
13174       hardcode_direct_FC=yes
13175       hardcode_shlibpath_var_FC=no
13176       ;;
13177
13178     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13179     freebsd2*)
13180       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13181       hardcode_direct_FC=yes
13182       hardcode_minus_L_FC=yes
13183       hardcode_shlibpath_var_FC=no
13184       ;;
13185
13186     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13187     freebsd* | dragonfly*)
13188       archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13189       hardcode_libdir_flag_spec_FC='-R$libdir'
13190       hardcode_direct_FC=yes
13191       hardcode_shlibpath_var_FC=no
13192       ;;
13193
13194     hpux9*)
13195       if test "$GCC" = yes; then
13196         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'
13197       else
13198         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'
13199       fi
13200       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13201       hardcode_libdir_separator_FC=:
13202       hardcode_direct_FC=yes
13203
13204       # hardcode_minus_L: Not really in the search PATH,
13205       # but as the default location of the library.
13206       hardcode_minus_L_FC=yes
13207       export_dynamic_flag_spec_FC='${wl}-E'
13208       ;;
13209
13210     hpux10*)
13211       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13212         archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13213       else
13214         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13215       fi
13216       if test "$with_gnu_ld" = no; then
13217         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13218         hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13219         hardcode_libdir_separator_FC=:
13220         hardcode_direct_FC=yes
13221         hardcode_direct_absolute_FC=yes
13222         export_dynamic_flag_spec_FC='${wl}-E'
13223         # hardcode_minus_L: Not really in the search PATH,
13224         # but as the default location of the library.
13225         hardcode_minus_L_FC=yes
13226       fi
13227       ;;
13228
13229     hpux11*)
13230       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13231         case $host_cpu in
13232         hppa*64*)
13233           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13234           ;;
13235         ia64*)
13236           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13237           ;;
13238         *)
13239           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13240           ;;
13241         esac
13242       else
13243         case $host_cpu in
13244         hppa*64*)
13245           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13246           ;;
13247         ia64*)
13248           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13249           ;;
13250         *)
13251         archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13252           ;;
13253         esac
13254       fi
13255       if test "$with_gnu_ld" = no; then
13256         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13257         hardcode_libdir_separator_FC=:
13258
13259         case $host_cpu in
13260         hppa*64*|ia64*)
13261           hardcode_direct_FC=no
13262           hardcode_shlibpath_var_FC=no
13263           ;;
13264         *)
13265           hardcode_direct_FC=yes
13266           hardcode_direct_absolute_FC=yes
13267           export_dynamic_flag_spec_FC='${wl}-E'
13268
13269           # hardcode_minus_L: Not really in the search PATH,
13270           # but as the default location of the library.
13271           hardcode_minus_L_FC=yes
13272           ;;
13273         esac
13274       fi
13275       ;;
13276
13277     irix5* | irix6* | nonstopux*)
13278       if test "$GCC" = yes; then
13279         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'
13280         # Try to use the -exported_symbol ld option, if it does not
13281         # work, assume that -exports_file does not work either and
13282         # implicitly export all symbols.
13283         save_LDFLAGS="$LDFLAGS"
13284         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13285         cat > conftest.$ac_ext <<_ACEOF
13286 int foo(void) {}
13287 _ACEOF
13288 if ac_fn_fc_try_link "$LINENO"; then :
13289   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'
13290
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext \
13293     conftest$ac_exeext conftest.$ac_ext
13294         LDFLAGS="$save_LDFLAGS"
13295       else
13296         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'
13297         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'
13298       fi
13299       archive_cmds_need_lc_FC='no'
13300       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13301       hardcode_libdir_separator_FC=:
13302       inherit_rpath_FC=yes
13303       link_all_deplibs_FC=yes
13304       ;;
13305
13306     netbsd*)
13307       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13308         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13309       else
13310         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13311       fi
13312       hardcode_libdir_flag_spec_FC='-R$libdir'
13313       hardcode_direct_FC=yes
13314       hardcode_shlibpath_var_FC=no
13315       ;;
13316
13317     newsos6)
13318       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13319       hardcode_direct_FC=yes
13320       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13321       hardcode_libdir_separator_FC=:
13322       hardcode_shlibpath_var_FC=no
13323       ;;
13324
13325     *nto* | *qnx*)
13326       ;;
13327
13328     openbsd*)
13329       if test -f /usr/libexec/ld.so; then
13330         hardcode_direct_FC=yes
13331         hardcode_shlibpath_var_FC=no
13332         hardcode_direct_absolute_FC=yes
13333         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13334           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13335           archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13336           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13337           export_dynamic_flag_spec_FC='${wl}-E'
13338         else
13339           case $host_os in
13340            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13341              archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13342              hardcode_libdir_flag_spec_FC='-R$libdir'
13343              ;;
13344            *)
13345              archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13346              hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13347              ;;
13348           esac
13349         fi
13350       else
13351         ld_shlibs_FC=no
13352       fi
13353       ;;
13354
13355     os2*)
13356       hardcode_libdir_flag_spec_FC='-L$libdir'
13357       hardcode_minus_L_FC=yes
13358       allow_undefined_flag_FC=unsupported
13359       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'
13360       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13361       ;;
13362
13363     osf3*)
13364       if test "$GCC" = yes; then
13365         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13366         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'
13367       else
13368         allow_undefined_flag_FC=' -expect_unresolved \*'
13369         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'
13370       fi
13371       archive_cmds_need_lc_FC='no'
13372       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13373       hardcode_libdir_separator_FC=:
13374       ;;
13375
13376     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13377       if test "$GCC" = yes; then
13378         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13379         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'
13380         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13381       else
13382         allow_undefined_flag_FC=' -expect_unresolved \*'
13383         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'
13384         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~
13385         $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'
13386
13387         # Both c and cxx compiler support -rpath directly
13388         hardcode_libdir_flag_spec_FC='-rpath $libdir'
13389       fi
13390       archive_cmds_need_lc_FC='no'
13391       hardcode_libdir_separator_FC=:
13392       ;;
13393
13394     solaris*)
13395       no_undefined_flag_FC=' -z defs'
13396       if test "$GCC" = yes; then
13397         wlarc='${wl}'
13398         archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13399         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13400           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13401       else
13402         case `$CC -V 2>&1` in
13403         *"Compilers 5.0"*)
13404           wlarc=''
13405           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13406           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13407           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13408           ;;
13409         *)
13410           wlarc='${wl}'
13411           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13412           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13413           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13414           ;;
13415         esac
13416       fi
13417       hardcode_libdir_flag_spec_FC='-R$libdir'
13418       hardcode_shlibpath_var_FC=no
13419       case $host_os in
13420       solaris2.[0-5] | solaris2.[0-5].*) ;;
13421       *)
13422         # The compiler driver will combine and reorder linker options,
13423         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13424         # but is careful enough not to reorder.
13425         # Supported since Solaris 2.6 (maybe 2.5.1?)
13426         if test "$GCC" = yes; then
13427           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13428         else
13429           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13430         fi
13431         ;;
13432       esac
13433       link_all_deplibs_FC=yes
13434       ;;
13435
13436     sunos4*)
13437       if test "x$host_vendor" = xsequent; then
13438         # Use $CC to link under sequent, because it throws in some extra .o
13439         # files that make .init and .fini sections work.
13440         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13441       else
13442         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13443       fi
13444       hardcode_libdir_flag_spec_FC='-L$libdir'
13445       hardcode_direct_FC=yes
13446       hardcode_minus_L_FC=yes
13447       hardcode_shlibpath_var_FC=no
13448       ;;
13449
13450     sysv4)
13451       case $host_vendor in
13452         sni)
13453           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13454           hardcode_direct_FC=yes # is this really true???
13455         ;;
13456         siemens)
13457           ## LD is ld it makes a PLAMLIB
13458           ## CC just makes a GrossModule.
13459           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13460           reload_cmds_FC='$CC -r -o $output$reload_objs'
13461           hardcode_direct_FC=no
13462         ;;
13463         motorola)
13464           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13465           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13466         ;;
13467       esac
13468       runpath_var='LD_RUN_PATH'
13469       hardcode_shlibpath_var_FC=no
13470       ;;
13471
13472     sysv4.3*)
13473       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13474       hardcode_shlibpath_var_FC=no
13475       export_dynamic_flag_spec_FC='-Bexport'
13476       ;;
13477
13478     sysv4*MP*)
13479       if test -d /usr/nec; then
13480         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481         hardcode_shlibpath_var_FC=no
13482         runpath_var=LD_RUN_PATH
13483         hardcode_runpath_var=yes
13484         ld_shlibs_FC=yes
13485       fi
13486       ;;
13487
13488     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13489       no_undefined_flag_FC='${wl}-z,text'
13490       archive_cmds_need_lc_FC=no
13491       hardcode_shlibpath_var_FC=no
13492       runpath_var='LD_RUN_PATH'
13493
13494       if test "$GCC" = yes; then
13495         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497       else
13498         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13500       fi
13501       ;;
13502
13503     sysv5* | sco3.2v5* | sco5v6*)
13504       # Note: We can NOT use -z defs as we might desire, because we do not
13505       # link with -lc, and that would cause any symbols used from libc to
13506       # always be unresolved, which means just about no library would
13507       # ever link correctly.  If we're not using GNU ld we use -z text
13508       # though, which does catch some bad symbols but isn't as heavy-handed
13509       # as -z defs.
13510       no_undefined_flag_FC='${wl}-z,text'
13511       allow_undefined_flag_FC='${wl}-z,nodefs'
13512       archive_cmds_need_lc_FC=no
13513       hardcode_shlibpath_var_FC=no
13514       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13515       hardcode_libdir_separator_FC=':'
13516       link_all_deplibs_FC=yes
13517       export_dynamic_flag_spec_FC='${wl}-Bexport'
13518       runpath_var='LD_RUN_PATH'
13519
13520       if test "$GCC" = yes; then
13521         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13522         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13523       else
13524         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13525         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13526       fi
13527       ;;
13528
13529     uts4*)
13530       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13531       hardcode_libdir_flag_spec_FC='-L$libdir'
13532       hardcode_shlibpath_var_FC=no
13533       ;;
13534
13535     *)
13536       ld_shlibs_FC=no
13537       ;;
13538     esac
13539
13540     if test x$host_vendor = xsni; then
13541       case $host in
13542       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13543         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13544         ;;
13545       esac
13546     fi
13547   fi
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13550 $as_echo "$ld_shlibs_FC" >&6; }
13551 test "$ld_shlibs_FC" = no && can_build_shared=no
13552
13553 with_gnu_ld_FC=$with_gnu_ld
13554
13555
13556
13557
13558
13559
13560 #
13561 # Do we need to explicitly link libc?
13562 #
13563 case "x$archive_cmds_need_lc_FC" in
13564 x|xyes)
13565   # Assume -lc should be added
13566   archive_cmds_need_lc_FC=yes
13567
13568   if test "$enable_shared" = yes && test "$GCC" = yes; then
13569     case $archive_cmds_FC in
13570     *'~'*)
13571       # FIXME: we may have to deal with multi-command sequences.
13572       ;;
13573     '$CC '*)
13574       # Test whether the compiler implicitly links with -lc since on some
13575       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13576       # to ld, don't add -lc before -lgcc.
13577       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13578 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13579 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13580   $as_echo_n "(cached) " >&6
13581 else
13582   $RM conftest*
13583         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13584
13585         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13586   (eval $ac_compile) 2>&5
13587   ac_status=$?
13588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589   test $ac_status = 0; } 2>conftest.err; then
13590           soname=conftest
13591           lib=conftest
13592           libobjs=conftest.$ac_objext
13593           deplibs=
13594           wl=$lt_prog_compiler_wl_FC
13595           pic_flag=$lt_prog_compiler_pic_FC
13596           compiler_flags=-v
13597           linker_flags=-v
13598           verstring=
13599           output_objdir=.
13600           libname=conftest
13601           lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13602           allow_undefined_flag_FC=
13603           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13604   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13605   ac_status=$?
13606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607   test $ac_status = 0; }
13608           then
13609             lt_cv_archive_cmds_need_lc_FC=no
13610           else
13611             lt_cv_archive_cmds_need_lc_FC=yes
13612           fi
13613           allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13614         else
13615           cat conftest.err 1>&5
13616         fi
13617         $RM conftest*
13618
13619 fi
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13621 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13622       archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13623       ;;
13624     esac
13625   fi
13626   ;;
13627 esac
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
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13693 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13694
13695 library_names_spec=
13696 libname_spec='lib$name'
13697 soname_spec=
13698 shrext_cmds=".so"
13699 postinstall_cmds=
13700 postuninstall_cmds=
13701 finish_cmds=
13702 finish_eval=
13703 shlibpath_var=
13704 shlibpath_overrides_runpath=unknown
13705 version_type=none
13706 dynamic_linker="$host_os ld.so"
13707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13708 need_lib_prefix=unknown
13709 hardcode_into_libs=no
13710
13711 # when you set need_version to no, make sure it does not cause -set_version
13712 # flags to be left without arguments
13713 need_version=unknown
13714
13715 case $host_os in
13716 aix3*)
13717   version_type=linux
13718   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13719   shlibpath_var=LIBPATH
13720
13721   # AIX 3 has no versioning support, so we append a major version to the name.
13722   soname_spec='${libname}${release}${shared_ext}$major'
13723   ;;
13724
13725 aix[4-9]*)
13726   version_type=linux
13727   need_lib_prefix=no
13728   need_version=no
13729   hardcode_into_libs=yes
13730   if test "$host_cpu" = ia64; then
13731     # AIX 5 supports IA64
13732     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13733     shlibpath_var=LD_LIBRARY_PATH
13734   else
13735     # With GCC up to 2.95.x, collect2 would create an import file
13736     # for dependence libraries.  The import file would start with
13737     # the line `#! .'.  This would cause the generated library to
13738     # depend on `.', always an invalid library.  This was fixed in
13739     # development snapshots of GCC prior to 3.0.
13740     case $host_os in
13741       aix4 | aix4.[01] | aix4.[01].*)
13742       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13743            echo ' yes '
13744            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13745         :
13746       else
13747         can_build_shared=no
13748       fi
13749       ;;
13750     esac
13751     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13752     # soname into executable. Probably we can add versioning support to
13753     # collect2, so additional links can be useful in future.
13754     if test "$aix_use_runtimelinking" = yes; then
13755       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13756       # instead of lib<name>.a to let people know that these are not
13757       # typical AIX shared libraries.
13758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759     else
13760       # We preserve .a as extension for shared libraries through AIX4.2
13761       # and later when we are not doing run time linking.
13762       library_names_spec='${libname}${release}.a $libname.a'
13763       soname_spec='${libname}${release}${shared_ext}$major'
13764     fi
13765     shlibpath_var=LIBPATH
13766   fi
13767   ;;
13768
13769 amigaos*)
13770   case $host_cpu in
13771   powerpc)
13772     # Since July 2007 AmigaOS4 officially supports .so libraries.
13773     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775     ;;
13776   m68k)
13777     library_names_spec='$libname.ixlibrary $libname.a'
13778     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13779     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'
13780     ;;
13781   esac
13782   ;;
13783
13784 beos*)
13785   library_names_spec='${libname}${shared_ext}'
13786   dynamic_linker="$host_os ld.so"
13787   shlibpath_var=LIBRARY_PATH
13788   ;;
13789
13790 bsdi[45]*)
13791   version_type=linux
13792   need_version=no
13793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13794   soname_spec='${libname}${release}${shared_ext}$major'
13795   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13796   shlibpath_var=LD_LIBRARY_PATH
13797   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13798   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13799   # the default ld.so.conf also contains /usr/contrib/lib and
13800   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13801   # libtool to hard-code these into programs
13802   ;;
13803
13804 cygwin* | mingw* | pw32* | cegcc*)
13805   version_type=windows
13806   shrext_cmds=".dll"
13807   need_version=no
13808   need_lib_prefix=no
13809
13810   case $GCC,$host_os in
13811   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13812     library_names_spec='$libname.dll.a'
13813     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13814     postinstall_cmds='base_file=`basename \${file}`~
13815       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13816       dldir=$destdir/`dirname \$dlpath`~
13817       test -d \$dldir || mkdir -p \$dldir~
13818       $install_prog $dir/$dlname \$dldir/$dlname~
13819       chmod a+x \$dldir/$dlname~
13820       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13821         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13822       fi'
13823     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13824       dlpath=$dir/\$dldll~
13825        $RM \$dlpath'
13826     shlibpath_overrides_runpath=yes
13827
13828     case $host_os in
13829     cygwin*)
13830       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13831       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832
13833       ;;
13834     mingw* | cegcc*)
13835       # MinGW DLLs use traditional 'lib' prefix
13836       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13837       ;;
13838     pw32*)
13839       # pw32 DLLs use 'pw' prefix rather than 'lib'
13840       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13841       ;;
13842     esac
13843     ;;
13844
13845   *)
13846     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13847     ;;
13848   esac
13849   dynamic_linker='Win32 ld.exe'
13850   # FIXME: first we should search . and the directory the executable is in
13851   shlibpath_var=PATH
13852   ;;
13853
13854 darwin* | rhapsody*)
13855   dynamic_linker="$host_os dyld"
13856   version_type=darwin
13857   need_lib_prefix=no
13858   need_version=no
13859   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13860   soname_spec='${libname}${release}${major}$shared_ext'
13861   shlibpath_overrides_runpath=yes
13862   shlibpath_var=DYLD_LIBRARY_PATH
13863   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13864
13865   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13866   ;;
13867
13868 dgux*)
13869   version_type=linux
13870   need_lib_prefix=no
13871   need_version=no
13872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13873   soname_spec='${libname}${release}${shared_ext}$major'
13874   shlibpath_var=LD_LIBRARY_PATH
13875   ;;
13876
13877 freebsd1*)
13878   dynamic_linker=no
13879   ;;
13880
13881 freebsd* | dragonfly*)
13882   # DragonFly does not have aout.  When/if they implement a new
13883   # versioning mechanism, adjust this.
13884   if test -x /usr/bin/objformat; then
13885     objformat=`/usr/bin/objformat`
13886   else
13887     case $host_os in
13888     freebsd[123]*) objformat=aout ;;
13889     *) objformat=elf ;;
13890     esac
13891   fi
13892   version_type=freebsd-$objformat
13893   case $version_type in
13894     freebsd-elf*)
13895       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13896       need_version=no
13897       need_lib_prefix=no
13898       ;;
13899     freebsd-*)
13900       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13901       need_version=yes
13902       ;;
13903   esac
13904   shlibpath_var=LD_LIBRARY_PATH
13905   case $host_os in
13906   freebsd2*)
13907     shlibpath_overrides_runpath=yes
13908     ;;
13909   freebsd3.[01]* | freebsdelf3.[01]*)
13910     shlibpath_overrides_runpath=yes
13911     hardcode_into_libs=yes
13912     ;;
13913   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13914   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13915     shlibpath_overrides_runpath=no
13916     hardcode_into_libs=yes
13917     ;;
13918   *) # from 4.6 on, and DragonFly
13919     shlibpath_overrides_runpath=yes
13920     hardcode_into_libs=yes
13921     ;;
13922   esac
13923   ;;
13924
13925 gnu*)
13926   version_type=linux
13927   need_lib_prefix=no
13928   need_version=no
13929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13930   soname_spec='${libname}${release}${shared_ext}$major'
13931   shlibpath_var=LD_LIBRARY_PATH
13932   hardcode_into_libs=yes
13933   ;;
13934
13935 haiku*)
13936   version_type=linux
13937   need_lib_prefix=no
13938   need_version=no
13939   dynamic_linker="$host_os runtime_loader"
13940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13941   soname_spec='${libname}${release}${shared_ext}$major'
13942   shlibpath_var=LIBRARY_PATH
13943   shlibpath_overrides_runpath=yes
13944   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13945   hardcode_into_libs=yes
13946   ;;
13947
13948 hpux9* | hpux10* | hpux11*)
13949   # Give a soname corresponding to the major version so that dld.sl refuses to
13950   # link against other versions.
13951   version_type=sunos
13952   need_lib_prefix=no
13953   need_version=no
13954   case $host_cpu in
13955   ia64*)
13956     shrext_cmds='.so'
13957     hardcode_into_libs=yes
13958     dynamic_linker="$host_os dld.so"
13959     shlibpath_var=LD_LIBRARY_PATH
13960     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
13964       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13965     else
13966       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13967     fi
13968     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13969     ;;
13970   hppa*64*)
13971     shrext_cmds='.sl'
13972     hardcode_into_libs=yes
13973     dynamic_linker="$host_os dld.sl"
13974     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13975     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977     soname_spec='${libname}${release}${shared_ext}$major'
13978     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13979     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13980     ;;
13981   *)
13982     shrext_cmds='.sl'
13983     dynamic_linker="$host_os dld.sl"
13984     shlibpath_var=SHLIB_PATH
13985     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987     soname_spec='${libname}${release}${shared_ext}$major'
13988     ;;
13989   esac
13990   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13991   postinstall_cmds='chmod 555 $lib'
13992   # or fails outright, so override atomically:
13993   install_override_mode=555
13994   ;;
13995
13996 interix[3-9]*)
13997   version_type=linux
13998   need_lib_prefix=no
13999   need_version=no
14000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14001   soname_spec='${libname}${release}${shared_ext}$major'
14002   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14003   shlibpath_var=LD_LIBRARY_PATH
14004   shlibpath_overrides_runpath=no
14005   hardcode_into_libs=yes
14006   ;;
14007
14008 irix5* | irix6* | nonstopux*)
14009   case $host_os in
14010     nonstopux*) version_type=nonstopux ;;
14011     *)
14012         if test "$lt_cv_prog_gnu_ld" = yes; then
14013                 version_type=linux
14014         else
14015                 version_type=irix
14016         fi ;;
14017   esac
14018   need_lib_prefix=no
14019   need_version=no
14020   soname_spec='${libname}${release}${shared_ext}$major'
14021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14022   case $host_os in
14023   irix5* | nonstopux*)
14024     libsuff= shlibsuff=
14025     ;;
14026   *)
14027     case $LD in # libtool.m4 will add one of these switches to LD
14028     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14029       libsuff= shlibsuff= libmagic=32-bit;;
14030     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14031       libsuff=32 shlibsuff=N32 libmagic=N32;;
14032     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14033       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14034     *) libsuff= shlibsuff= libmagic=never-match;;
14035     esac
14036     ;;
14037   esac
14038   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14039   shlibpath_overrides_runpath=no
14040   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14041   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14042   hardcode_into_libs=yes
14043   ;;
14044
14045 # No shared lib support for Linux oldld, aout, or coff.
14046 linux*oldld* | linux*aout* | linux*coff*)
14047   dynamic_linker=no
14048   ;;
14049
14050 # This must be Linux ELF.
14051 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14052   version_type=linux
14053   need_lib_prefix=no
14054   need_version=no
14055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14056   soname_spec='${libname}${release}${shared_ext}$major'
14057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14058   shlibpath_var=LD_LIBRARY_PATH
14059   shlibpath_overrides_runpath=no
14060
14061   # Some binutils ld are patched to set DT_RUNPATH
14062   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14063   $as_echo_n "(cached) " >&6
14064 else
14065   lt_cv_shlibpath_overrides_runpath=no
14066     save_LDFLAGS=$LDFLAGS
14067     save_libdir=$libdir
14068     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14069          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14070     cat > conftest.$ac_ext <<_ACEOF
14071       program main
14072
14073       end
14074 _ACEOF
14075 if ac_fn_fc_try_link "$LINENO"; then :
14076   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14077   lt_cv_shlibpath_overrides_runpath=yes
14078 fi
14079 fi
14080 rm -f core conftest.err conftest.$ac_objext \
14081     conftest$ac_exeext conftest.$ac_ext
14082     LDFLAGS=$save_LDFLAGS
14083     libdir=$save_libdir
14084
14085 fi
14086
14087   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14088
14089   # This implies no fast_install, which is unacceptable.
14090   # Some rework will be needed to allow for fast_install
14091   # before this can be enabled.
14092   hardcode_into_libs=yes
14093
14094   # Append ld.so.conf contents to the search path
14095   if test -f /etc/ld.so.conf; then
14096     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' ' '`
14097     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14098   fi
14099
14100   # We used to test for /lib/ld.so.1 and disable shared libraries on
14101   # powerpc, because MkLinux only supported shared libraries with the
14102   # GNU dynamic linker.  Since this was broken with cross compilers,
14103   # most powerpc-linux boxes support dynamic linking these days and
14104   # people can always --disable-shared, the test was removed, and we
14105   # assume the GNU/Linux dynamic linker is in use.
14106   dynamic_linker='GNU/Linux ld.so'
14107   ;;
14108
14109 netbsd*)
14110   version_type=sunos
14111   need_lib_prefix=no
14112   need_version=no
14113   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14115     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14116     dynamic_linker='NetBSD (a.out) ld.so'
14117   else
14118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14119     soname_spec='${libname}${release}${shared_ext}$major'
14120     dynamic_linker='NetBSD ld.elf_so'
14121   fi
14122   shlibpath_var=LD_LIBRARY_PATH
14123   shlibpath_overrides_runpath=yes
14124   hardcode_into_libs=yes
14125   ;;
14126
14127 newsos6)
14128   version_type=linux
14129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130   shlibpath_var=LD_LIBRARY_PATH
14131   shlibpath_overrides_runpath=yes
14132   ;;
14133
14134 *nto* | *qnx*)
14135   version_type=qnx
14136   need_lib_prefix=no
14137   need_version=no
14138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139   soname_spec='${libname}${release}${shared_ext}$major'
14140   shlibpath_var=LD_LIBRARY_PATH
14141   shlibpath_overrides_runpath=no
14142   hardcode_into_libs=yes
14143   dynamic_linker='ldqnx.so'
14144   ;;
14145
14146 openbsd*)
14147   version_type=sunos
14148   sys_lib_dlsearch_path_spec="/usr/lib"
14149   need_lib_prefix=no
14150   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14151   case $host_os in
14152     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14153     *)                          need_version=no  ;;
14154   esac
14155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14156   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14157   shlibpath_var=LD_LIBRARY_PATH
14158   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14159     case $host_os in
14160       openbsd2.[89] | openbsd2.[89].*)
14161         shlibpath_overrides_runpath=no
14162         ;;
14163       *)
14164         shlibpath_overrides_runpath=yes
14165         ;;
14166       esac
14167   else
14168     shlibpath_overrides_runpath=yes
14169   fi
14170   ;;
14171
14172 os2*)
14173   libname_spec='$name'
14174   shrext_cmds=".dll"
14175   need_lib_prefix=no
14176   library_names_spec='$libname${shared_ext} $libname.a'
14177   dynamic_linker='OS/2 ld.exe'
14178   shlibpath_var=LIBPATH
14179   ;;
14180
14181 osf3* | osf4* | osf5*)
14182   version_type=osf
14183   need_lib_prefix=no
14184   need_version=no
14185   soname_spec='${libname}${release}${shared_ext}$major'
14186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187   shlibpath_var=LD_LIBRARY_PATH
14188   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14189   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14190   ;;
14191
14192 rdos*)
14193   dynamic_linker=no
14194   ;;
14195
14196 solaris*)
14197   version_type=linux
14198   need_lib_prefix=no
14199   need_version=no
14200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14201   soname_spec='${libname}${release}${shared_ext}$major'
14202   shlibpath_var=LD_LIBRARY_PATH
14203   shlibpath_overrides_runpath=yes
14204   hardcode_into_libs=yes
14205   # ldd complains unless libraries are executable
14206   postinstall_cmds='chmod +x $lib'
14207   ;;
14208
14209 sunos4*)
14210   version_type=sunos
14211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14212   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14213   shlibpath_var=LD_LIBRARY_PATH
14214   shlibpath_overrides_runpath=yes
14215   if test "$with_gnu_ld" = yes; then
14216     need_lib_prefix=no
14217   fi
14218   need_version=yes
14219   ;;
14220
14221 sysv4 | sysv4.3*)
14222   version_type=linux
14223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224   soname_spec='${libname}${release}${shared_ext}$major'
14225   shlibpath_var=LD_LIBRARY_PATH
14226   case $host_vendor in
14227     sni)
14228       shlibpath_overrides_runpath=no
14229       need_lib_prefix=no
14230       runpath_var=LD_RUN_PATH
14231       ;;
14232     siemens)
14233       need_lib_prefix=no
14234       ;;
14235     motorola)
14236       need_lib_prefix=no
14237       need_version=no
14238       shlibpath_overrides_runpath=no
14239       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14240       ;;
14241   esac
14242   ;;
14243
14244 sysv4*MP*)
14245   if test -d /usr/nec ;then
14246     version_type=linux
14247     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14248     soname_spec='$libname${shared_ext}.$major'
14249     shlibpath_var=LD_LIBRARY_PATH
14250   fi
14251   ;;
14252
14253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14254   version_type=freebsd-elf
14255   need_lib_prefix=no
14256   need_version=no
14257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14258   soname_spec='${libname}${release}${shared_ext}$major'
14259   shlibpath_var=LD_LIBRARY_PATH
14260   shlibpath_overrides_runpath=yes
14261   hardcode_into_libs=yes
14262   if test "$with_gnu_ld" = yes; then
14263     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14264   else
14265     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14266     case $host_os in
14267       sco3.2v5*)
14268         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14269         ;;
14270     esac
14271   fi
14272   sys_lib_dlsearch_path_spec='/usr/lib'
14273   ;;
14274
14275 tpf*)
14276   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14277   version_type=linux
14278   need_lib_prefix=no
14279   need_version=no
14280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14281   shlibpath_var=LD_LIBRARY_PATH
14282   shlibpath_overrides_runpath=no
14283   hardcode_into_libs=yes
14284   ;;
14285
14286 uts4*)
14287   version_type=linux
14288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289   soname_spec='${libname}${release}${shared_ext}$major'
14290   shlibpath_var=LD_LIBRARY_PATH
14291   ;;
14292
14293 *)
14294   dynamic_linker=no
14295   ;;
14296 esac
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14298 $as_echo "$dynamic_linker" >&6; }
14299 test "$dynamic_linker" = no && can_build_shared=no
14300
14301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14302 if test "$GCC" = yes; then
14303   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14304 fi
14305
14306 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14307   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14308 fi
14309 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14310   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14311 fi
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14351 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14352 hardcode_action_FC=
14353 if test -n "$hardcode_libdir_flag_spec_FC" ||
14354    test -n "$runpath_var_FC" ||
14355    test "X$hardcode_automatic_FC" = "Xyes" ; then
14356
14357   # We can hardcode non-existent directories.
14358   if test "$hardcode_direct_FC" != no &&
14359      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14360      # have to relink, otherwise we might link with an installed library
14361      # when we should be linking with a yet-to-be-installed one
14362      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14363      test "$hardcode_minus_L_FC" != no; then
14364     # Linking always hardcodes the temporary library directory.
14365     hardcode_action_FC=relink
14366   else
14367     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14368     hardcode_action_FC=immediate
14369   fi
14370 else
14371   # We cannot hardcode anything, or else we can only hardcode existing
14372   # directories.
14373   hardcode_action_FC=unsupported
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14376 $as_echo "$hardcode_action_FC" >&6; }
14377
14378 if test "$hardcode_action_FC" = relink ||
14379    test "$inherit_rpath_FC" = yes; then
14380   # Fast installation is not supported
14381   enable_fast_install=no
14382 elif test "$shlibpath_overrides_runpath" = yes ||
14383      test "$enable_shared" = no; then
14384   # Fast installation is not necessary
14385   enable_fast_install=needless
14386 fi
14387
14388
14389
14390
14391
14392
14393
14394   fi # test -n "$compiler"
14395
14396   GCC=$lt_save_GCC
14397   CC="$lt_save_CC"
14398 fi # test "$_lt_disable_FC" != yes
14399
14400 ac_ext=c
14401 ac_cpp='$CPP $CPPFLAGS'
14402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14405
14406
14407 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14408
14409 # For libtool versioning info, format is CURRENT:REVISION:AGE
14410 libtool_VERSION=1:0:0
14411
14412
14413 # Check header files.
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14415 $as_echo_n "checking for ANSI C header files... " >&6; }
14416 if test "${ac_cv_header_stdc+set}" = set; then :
14417   $as_echo_n "(cached) " >&6
14418 else
14419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h.  */
14421 #include <stdlib.h>
14422 #include <stdarg.h>
14423 #include <string.h>
14424 #include <float.h>
14425
14426 int
14427 main ()
14428 {
14429
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 if ac_fn_c_try_compile "$LINENO"; then :
14435   ac_cv_header_stdc=yes
14436 else
14437   ac_cv_header_stdc=no
14438 fi
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440
14441 if test $ac_cv_header_stdc = yes; then
14442   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h.  */
14445 #include <string.h>
14446
14447 _ACEOF
14448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14449   $EGREP "memchr" >/dev/null 2>&1; then :
14450
14451 else
14452   ac_cv_header_stdc=no
14453 fi
14454 rm -f conftest*
14455
14456 fi
14457
14458 if test $ac_cv_header_stdc = yes; then
14459   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h.  */
14462 #include <stdlib.h>
14463
14464 _ACEOF
14465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14466   $EGREP "free" >/dev/null 2>&1; then :
14467
14468 else
14469   ac_cv_header_stdc=no
14470 fi
14471 rm -f conftest*
14472
14473 fi
14474
14475 if test $ac_cv_header_stdc = yes; then
14476   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14477   if test "$cross_compiling" = yes; then :
14478   :
14479 else
14480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h.  */
14482 #include <ctype.h>
14483 #include <stdlib.h>
14484 #if ((' ' & 0x0FF) == 0x020)
14485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14487 #else
14488 # define ISLOWER(c) \
14489                    (('a' <= (c) && (c) <= 'i') \
14490                      || ('j' <= (c) && (c) <= 'r') \
14491                      || ('s' <= (c) && (c) <= 'z'))
14492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14493 #endif
14494
14495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14496 int
14497 main ()
14498 {
14499   int i;
14500   for (i = 0; i < 256; i++)
14501     if (XOR (islower (i), ISLOWER (i))
14502         || toupper (i) != TOUPPER (i))
14503       return 2;
14504   return 0;
14505 }
14506 _ACEOF
14507 if ac_fn_c_try_run "$LINENO"; then :
14508
14509 else
14510   ac_cv_header_stdc=no
14511 fi
14512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14513   conftest.$ac_objext conftest.beam conftest.$ac_ext
14514 fi
14515
14516 fi
14517 fi
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14519 $as_echo "$ac_cv_header_stdc" >&6; }
14520 if test $ac_cv_header_stdc = yes; then
14521
14522 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14523
14524 fi
14525
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14527 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14528 if test "${ac_cv_header_time+set}" = set; then :
14529   $as_echo_n "(cached) " >&6
14530 else
14531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h.  */
14533 #include <sys/types.h>
14534 #include <sys/time.h>
14535 #include <time.h>
14536
14537 int
14538 main ()
14539 {
14540 if ((struct tm *) 0)
14541 return 0;
14542   ;
14543   return 0;
14544 }
14545 _ACEOF
14546 if ac_fn_c_try_compile "$LINENO"; then :
14547   ac_cv_header_time=yes
14548 else
14549   ac_cv_header_time=no
14550 fi
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14554 $as_echo "$ac_cv_header_time" >&6; }
14555 if test $ac_cv_header_time = yes; then
14556
14557 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14558
14559 fi
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14562 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14563 if test "${gcc_cv_header_string+set}" = set; then :
14564   $as_echo_n "(cached) " >&6
14565 else
14566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h.  */
14568 #include <string.h>
14569 #include <strings.h>
14570 int
14571 main ()
14572 {
14573
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 if ac_fn_c_try_compile "$LINENO"; then :
14579   gcc_cv_header_string=yes
14580 else
14581   gcc_cv_header_string=no
14582 fi
14583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14586 $as_echo "$gcc_cv_header_string" >&6; }
14587 if test $gcc_cv_header_string = yes; then
14588
14589 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14590
14591 fi
14592
14593 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14594 do :
14595   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14596 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14597 eval as_val=\$$as_ac_Header
14598    if test "x$as_val" = x""yes; then :
14599   cat >>confdefs.h <<_ACEOF
14600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14601 _ACEOF
14602
14603 fi
14604
14605 done
14606
14607
14608
14609
14610 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14611
14612 acx_cv_header_stdint=stddef.h
14613 acx_cv_header_stdint_kind="(already complete)"
14614 for i in stdint.h $inttype_headers; do
14615   unset ac_cv_type_uintptr_t
14616   unset ac_cv_type_uintmax_t
14617   unset ac_cv_type_int_least32_t
14618   unset ac_cv_type_int_fast32_t
14619   unset ac_cv_type_uint64_t
14620   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14621   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14622 #include <$i>
14623 "
14624 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14625   acx_cv_header_stdint=$i
14626 else
14627   continue
14628 fi
14629
14630   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14631 #include <$i>
14632 "
14633 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14634
14635 else
14636   acx_cv_header_stdint_kind="(mostly complete)"
14637 fi
14638
14639   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14640 #include <$i>
14641 "
14642 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14643
14644 else
14645   acx_cv_header_stdint_kind="(mostly complete)"
14646 fi
14647
14648   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14649 #include <$i>
14650 "
14651 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14652
14653 else
14654   acx_cv_header_stdint_kind="(mostly complete)"
14655 fi
14656
14657   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14658 #include <$i>
14659 "
14660 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14661
14662 else
14663   acx_cv_header_stdint_kind="(lacks uint64_t)"
14664 fi
14665
14666   break
14667 done
14668 if test "$acx_cv_header_stdint" = stddef.h; then
14669   acx_cv_header_stdint_kind="(lacks uintmax_t)"
14670   for i in stdint.h $inttype_headers; do
14671     unset ac_cv_type_uintptr_t
14672     unset ac_cv_type_uint32_t
14673     unset ac_cv_type_uint64_t
14674     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14675     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14676 #include <$i>
14677 "
14678 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14679   acx_cv_header_stdint=$i
14680 else
14681   continue
14682 fi
14683
14684     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14685 #include <$i>
14686 "
14687 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14688
14689 fi
14690
14691     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14692 #include <$i>
14693 "
14694 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14695
14696 fi
14697
14698     break
14699   done
14700 fi
14701 if test "$acx_cv_header_stdint" = stddef.h; then
14702   acx_cv_header_stdint_kind="(u_intXX_t style)"
14703   for i in sys/types.h $inttype_headers; do
14704     unset ac_cv_type_u_int32_t
14705     unset ac_cv_type_u_int64_t
14706     $as_echo_n "looking for u_intXX_t types in $i, " >&6
14707     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14708 #include <$i>
14709 "
14710 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14711   acx_cv_header_stdint=$i
14712 else
14713   continue
14714 fi
14715
14716     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14717 #include <$i>
14718 "
14719 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14720
14721 fi
14722
14723     break
14724   done
14725 fi
14726 if test "$acx_cv_header_stdint" = stddef.h; then
14727   acx_cv_header_stdint_kind="(using manual detection)"
14728 fi
14729
14730 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14731 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14732 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14733 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14734 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14735
14736 # ----------------- Summarize what we found so far
14737
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14739 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14740
14741 case `$as_basename -- gstdint.h ||
14742 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14743          Xgstdint.h : 'X\(//\)$' \| \
14744          Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14745 $as_echo X/gstdint.h |
14746     sed '/^.*\/\([^/][^/]*\)\/*$/{
14747             s//\1/
14748             q
14749           }
14750           /^X\/\(\/\/\)$/{
14751             s//\1/
14752             q
14753           }
14754           /^X\/\(\/\).*/{
14755             s//\1/
14756             q
14757           }
14758           s/.*/./; q'` in
14759   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14760 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14761   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14762 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14763   *) ;;
14764 esac
14765
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14767 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14768
14769 # ----------------- done included file, check C basic types --------
14770
14771 # Lacking an uintptr_t?  Test size of void *
14772 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14773   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14776 # This bug is HP SR number 8606223364.
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14778 $as_echo_n "checking size of void *... " >&6; }
14779 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14780   $as_echo_n "(cached) " >&6
14781 else
14782   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14783
14784 else
14785   if test "$ac_cv_type_void_p" = yes; then
14786      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14788 { as_fn_set_status 77
14789 as_fn_error "cannot compute sizeof (void *)
14790 See \`config.log' for more details." "$LINENO" 5; }; }
14791    else
14792      ac_cv_sizeof_void_p=0
14793    fi
14794 fi
14795
14796 fi
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14798 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14799
14800
14801
14802 cat >>confdefs.h <<_ACEOF
14803 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14804 _ACEOF
14805
14806  ;;
14807 esac
14808
14809 # Lacking an uint64_t?  Test size of long
14810 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14811   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14814 # This bug is HP SR number 8606223364.
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14816 $as_echo_n "checking size of long... " >&6; }
14817 if test "${ac_cv_sizeof_long+set}" = set; then :
14818   $as_echo_n "(cached) " >&6
14819 else
14820   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14821
14822 else
14823   if test "$ac_cv_type_long" = yes; then
14824      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14826 { as_fn_set_status 77
14827 as_fn_error "cannot compute sizeof (long)
14828 See \`config.log' for more details." "$LINENO" 5; }; }
14829    else
14830      ac_cv_sizeof_long=0
14831    fi
14832 fi
14833
14834 fi
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14836 $as_echo "$ac_cv_sizeof_long" >&6; }
14837
14838
14839
14840 cat >>confdefs.h <<_ACEOF
14841 #define SIZEOF_LONG $ac_cv_sizeof_long
14842 _ACEOF
14843
14844  ;;
14845 esac
14846
14847 if test $acx_cv_header_stdint = stddef.h; then
14848   # Lacking a good header?  Test size of everything and deduce all types.
14849   # The cast to long int works around a bug in the HP C Compiler
14850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14852 # This bug is HP SR number 8606223364.
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14854 $as_echo_n "checking size of int... " >&6; }
14855 if test "${ac_cv_sizeof_int+set}" = set; then :
14856   $as_echo_n "(cached) " >&6
14857 else
14858   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14859
14860 else
14861   if test "$ac_cv_type_int" = yes; then
14862      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14864 { as_fn_set_status 77
14865 as_fn_error "cannot compute sizeof (int)
14866 See \`config.log' for more details." "$LINENO" 5; }; }
14867    else
14868      ac_cv_sizeof_int=0
14869    fi
14870 fi
14871
14872 fi
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14874 $as_echo "$ac_cv_sizeof_int" >&6; }
14875
14876
14877
14878 cat >>confdefs.h <<_ACEOF
14879 #define SIZEOF_INT $ac_cv_sizeof_int
14880 _ACEOF
14881
14882
14883   # The cast to long int works around a bug in the HP C Compiler
14884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14886 # This bug is HP SR number 8606223364.
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14888 $as_echo_n "checking size of short... " >&6; }
14889 if test "${ac_cv_sizeof_short+set}" = set; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14893
14894 else
14895   if test "$ac_cv_type_short" = yes; then
14896      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14898 { as_fn_set_status 77
14899 as_fn_error "cannot compute sizeof (short)
14900 See \`config.log' for more details." "$LINENO" 5; }; }
14901    else
14902      ac_cv_sizeof_short=0
14903    fi
14904 fi
14905
14906 fi
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14908 $as_echo "$ac_cv_sizeof_short" >&6; }
14909
14910
14911
14912 cat >>confdefs.h <<_ACEOF
14913 #define SIZEOF_SHORT $ac_cv_sizeof_short
14914 _ACEOF
14915
14916
14917   # The cast to long int works around a bug in the HP C Compiler
14918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14920 # This bug is HP SR number 8606223364.
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14922 $as_echo_n "checking size of char... " >&6; }
14923 if test "${ac_cv_sizeof_char+set}" = set; then :
14924   $as_echo_n "(cached) " >&6
14925 else
14926   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14927
14928 else
14929   if test "$ac_cv_type_char" = yes; then
14930      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14932 { as_fn_set_status 77
14933 as_fn_error "cannot compute sizeof (char)
14934 See \`config.log' for more details." "$LINENO" 5; }; }
14935    else
14936      ac_cv_sizeof_char=0
14937    fi
14938 fi
14939
14940 fi
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14942 $as_echo "$ac_cv_sizeof_char" >&6; }
14943
14944
14945
14946 cat >>confdefs.h <<_ACEOF
14947 #define SIZEOF_CHAR $ac_cv_sizeof_char
14948 _ACEOF
14949
14950
14951
14952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14953 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14954   case "$ac_cv_sizeof_char" in
14955     1) acx_cv_type_int8_t=char ;;
14956     *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
14957   esac
14958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14959 $as_echo "$acx_cv_type_int8_t" >&6; }
14960
14961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14962 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14963   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14964     2:*) acx_cv_type_int16_t=int ;;
14965     *:2) acx_cv_type_int16_t=short ;;
14966     *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
14967   esac
14968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14969 $as_echo "$acx_cv_type_int16_t" >&6; }
14970
14971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14972 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14973   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14974     4:*) acx_cv_type_int32_t=int ;;
14975     *:4) acx_cv_type_int32_t=long ;;
14976     *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
14977   esac
14978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14979 $as_echo "$acx_cv_type_int32_t" >&6; }
14980 fi
14981
14982 # These tests are here to make the output prettier
14983
14984 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14985   case "$ac_cv_sizeof_long" in
14986     8) acx_cv_type_int64_t=long ;;
14987   esac
14988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14989 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14991 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14992 fi
14993
14994 # Now we can use the above types
14995
14996 if test "$ac_cv_type_uintptr_t" != yes; then
14997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14998 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14999   case $ac_cv_sizeof_void_p in
15000     2) acx_cv_type_intptr_t=int16_t ;;
15001     4) acx_cv_type_intptr_t=int32_t ;;
15002     8) acx_cv_type_intptr_t=int64_t ;;
15003     *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15004   esac
15005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15006 $as_echo "$acx_cv_type_intptr_t" >&6; }
15007 fi
15008
15009 # ----------------- done all checks, emit header -------------
15010 ac_config_commands="$ac_config_commands gstdint.h"
15011
15012
15013
15014
15015 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
15016 # In case the pthread.h system header is not found, this test will fail.
15017 XPCFLAGS=""
15018 CFLAGS="$CFLAGS -pthread"
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h.  */
15021 #include <pthread.h>
15022    void *g(void *d) { return NULL; }
15023 int
15024 main ()
15025 {
15026 pthread_t t; pthread_create(&t,NULL,g,NULL);
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 if ac_fn_c_try_link "$LINENO"; then :
15032   XPCFLAGS=" -Wc,-pthread"
15033 else
15034   CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h.  */
15037 #include <pthread.h>
15038      void *g(void *d) { return NULL; }
15039 int
15040 main ()
15041 {
15042 pthread_t t; pthread_create(&t,NULL,g,NULL);
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 if ac_fn_c_try_link "$LINENO"; then :
15048
15049 else
15050   as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext \
15053     conftest$ac_exeext conftest.$ac_ext
15054 fi
15055 rm -f core conftest.err conftest.$ac_objext \
15056     conftest$ac_exeext conftest.$ac_ext
15057
15058 # Check for functions needed.
15059 for ac_func in getloadavg clock_gettime strtoull
15060 do :
15061   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15062 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15063 eval as_val=\$$as_ac_var
15064    if test "x$as_val" = x""yes; then :
15065   cat >>confdefs.h <<_ACEOF
15066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15067 _ACEOF
15068
15069 fi
15070 done
15071
15072
15073 # Check for broken semaphore implementation on darwin.
15074 # sem_init returns: sem_init error: Function not implemented.
15075 case "$host" in
15076   *-darwin*)
15077
15078 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15079
15080     ;;
15081 esac
15082
15083  # Check whether --enable-linux-futex was given.
15084 if test "${enable_linux_futex+set}" = set; then :
15085   enableval=$enable_linux_futex;
15086       case "$enableval" in
15087        yes|no|default) ;;
15088        *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15089                           esac
15090
15091 else
15092   enable_linux_futex=default
15093 fi
15094
15095
15096 case "$target" in
15097   *-linux*)
15098     case "$enable_linux_futex" in
15099       default)
15100         # If headers don't have gettid/futex syscalls definition, then
15101         # default to no, otherwise there will be compile time failures.
15102         # Otherwise, default to yes.  If we don't detect we are
15103         # compiled/linked against NPTL and not cross-compiling, check
15104         # if programs are run by default against NPTL and if not, issue
15105         # a warning.
15106         enable_linux_futex=no
15107         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h.  */
15109 #include <sys/syscall.h>
15110            int lk;
15111 int
15112 main ()
15113 {
15114 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15115   ;
15116   return 0;
15117 }
15118 _ACEOF
15119 if ac_fn_c_try_link "$LINENO"; then :
15120   save_LIBS="$LIBS"
15121            LIBS="-lpthread $LIBS"
15122            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h.  */
15124 #ifndef _GNU_SOURCE
15125              #define _GNU_SOURCE 1
15126              #endif
15127              #include <pthread.h>
15128              pthread_t th; void *status;
15129 int
15130 main ()
15131 {
15132 pthread_tryjoin_np (th, &status);
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 if ac_fn_c_try_link "$LINENO"; then :
15138   enable_linux_futex=yes
15139 else
15140   if test x$cross_compiling = xno; then
15141                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15142                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15143                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15144 If so, please configure with --disable-linux-futex" >&5
15145 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15146 If so, please configure with --disable-linux-futex" >&2;}
15147                fi
15148              fi
15149              enable_linux_futex=yes
15150 fi
15151 rm -f core conftest.err conftest.$ac_objext \
15152     conftest$ac_exeext conftest.$ac_ext
15153            LIBS="$save_LIBS"
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext \
15156     conftest$ac_exeext conftest.$ac_ext
15157         ;;
15158       yes)
15159         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h.  */
15161 #include <sys/syscall.h>
15162            int lk;
15163 int
15164 main ()
15165 {
15166 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 if ac_fn_c_try_link "$LINENO"; then :
15172
15173 else
15174   as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext \
15177     conftest$ac_exeext conftest.$ac_ext
15178         ;;
15179     esac
15180     ;;
15181   *)
15182     enable_linux_futex=no
15183     ;;
15184 esac
15185 if test x$enable_linux_futex = xyes; then
15186   :
15187 fi
15188
15189
15190 # Check for pthread_{,attr_}[sg]etaffinity_np.
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h.  */
15193 #define _GNU_SOURCE
15194    #include <pthread.h>
15195 int
15196 main ()
15197 {
15198 cpu_set_t cpuset;
15199    pthread_attr_t attr;
15200    pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15201    if (CPU_ISSET (0, &cpuset))
15202      CPU_SET (1, &cpuset);
15203    else
15204      CPU_ZERO (&cpuset);
15205    pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15206    pthread_attr_init (&attr);
15207    pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15208    pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15209   ;
15210   return 0;
15211 }
15212 _ACEOF
15213 if ac_fn_c_try_link "$LINENO"; then :
15214
15215 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15216
15217 fi
15218 rm -f core conftest.err conftest.$ac_objext \
15219     conftest$ac_exeext conftest.$ac_ext
15220
15221 # At least for glibc, clock_gettime is in librt.  But don't pull that
15222 # in if it still doesn't give us the function we want.
15223 if test $ac_cv_func_clock_gettime = no; then
15224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15225 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15226 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15227   $as_echo_n "(cached) " >&6
15228 else
15229   ac_check_lib_save_LIBS=$LIBS
15230 LIBS="-lrt  $LIBS"
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h.  */
15233
15234 /* Override any GCC internal prototype to avoid an error.
15235    Use char because int might match the return type of a GCC
15236    builtin and then its argument prototype would still apply.  */
15237 #ifdef __cplusplus
15238 extern "C"
15239 #endif
15240 char clock_gettime ();
15241 int
15242 main ()
15243 {
15244 return clock_gettime ();
15245   ;
15246   return 0;
15247 }
15248 _ACEOF
15249 if ac_fn_c_try_link "$LINENO"; then :
15250   ac_cv_lib_rt_clock_gettime=yes
15251 else
15252   ac_cv_lib_rt_clock_gettime=no
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext \
15255     conftest$ac_exeext conftest.$ac_ext
15256 LIBS=$ac_check_lib_save_LIBS
15257 fi
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15259 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15260 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15261   LIBS="-lrt $LIBS"
15262
15263 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15264
15265 fi
15266
15267 fi
15268
15269 # See if we support thread-local storage.
15270
15271
15272    # Check whether --enable-tls was given.
15273 if test "${enable_tls+set}" = set; then :
15274   enableval=$enable_tls;
15275       case "$enableval" in
15276        yes|no) ;;
15277        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15278       esac
15279
15280 else
15281   enable_tls=yes
15282 fi
15283
15284
15285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15286 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15287 if test "${gcc_cv_have_tls+set}" = set; then :
15288   $as_echo_n "(cached) " >&6
15289 else
15290
15291     if test "$cross_compiling" = yes; then :
15292                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h.  */
15294 __thread int a; int b; int main() { return a = b; }
15295 _ACEOF
15296 if ac_fn_c_try_link "$LINENO"; then :
15297   chktls_save_LDFLAGS="$LDFLAGS"
15298                           case $host in
15299             *-*-linux*)
15300               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15301               ;;
15302           esac
15303           chktls_save_CFLAGS="$CFLAGS"
15304           CFLAGS="-fPIC $CFLAGS"
15305                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h.  */
15307 int f() { return 0; }
15308 _ACEOF
15309 if ac_fn_c_try_link "$LINENO"; then :
15310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h.  */
15312 __thread int a; int b; int f() { return a = b; }
15313 _ACEOF
15314 if ac_fn_c_try_link "$LINENO"; then :
15315   gcc_cv_have_tls=yes
15316 else
15317   gcc_cv_have_tls=no
15318 fi
15319 rm -f core conftest.err conftest.$ac_objext \
15320     conftest$ac_exeext conftest.$ac_ext
15321 else
15322   gcc_cv_have_tls=yes
15323 fi
15324 rm -f core conftest.err conftest.$ac_objext \
15325     conftest$ac_exeext conftest.$ac_ext
15326           CFLAGS="$chktls_save_CFLAGS"
15327           LDFLAGS="$chktls_save_LDFLAGS"
15328 else
15329   gcc_cv_have_tls=no
15330 fi
15331 rm -f core conftest.err conftest.$ac_objext \
15332     conftest$ac_exeext conftest.$ac_ext
15333
15334
15335 else
15336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h.  */
15338 __thread int a; int b; int main() { return a = b; }
15339 _ACEOF
15340 if ac_fn_c_try_run "$LINENO"; then :
15341                       chktls_save_LDFLAGS="$LDFLAGS"
15342       LDFLAGS="-static $LDFLAGS"
15343       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h.  */
15345 int main() { return 0; }
15346 _ACEOF
15347 if ac_fn_c_try_link "$LINENO"; then :
15348   if test "$cross_compiling" = yes; then :
15349   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15351 as_fn_error "cannot run test program while cross compiling
15352 See \`config.log' for more details." "$LINENO" 5; }
15353 else
15354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h.  */
15356 __thread int a; int b; int main() { return a = b; }
15357 _ACEOF
15358 if ac_fn_c_try_run "$LINENO"; then :
15359   gcc_cv_have_tls=yes
15360 else
15361   gcc_cv_have_tls=no
15362 fi
15363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15364   conftest.$ac_objext conftest.beam conftest.$ac_ext
15365 fi
15366
15367 else
15368   gcc_cv_have_tls=yes
15369 fi
15370 rm -f core conftest.err conftest.$ac_objext \
15371     conftest$ac_exeext conftest.$ac_ext
15372       LDFLAGS="$chktls_save_LDFLAGS"
15373       if test $gcc_cv_have_tls = yes; then
15374                                                 chktls_save_CFLAGS="$CFLAGS"
15375         thread_CFLAGS=failed
15376         for flag in '' '-pthread' '-lpthread'; do
15377           CFLAGS="$flag $chktls_save_CFLAGS"
15378           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h.  */
15380 #include <pthread.h>
15381                 void *g(void *d) { return NULL; }
15382 int
15383 main ()
15384 {
15385 pthread_t t; pthread_create(&t,NULL,g,NULL);
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 if ac_fn_c_try_link "$LINENO"; then :
15391   thread_CFLAGS="$flag"
15392 fi
15393 rm -f core conftest.err conftest.$ac_objext \
15394     conftest$ac_exeext conftest.$ac_ext
15395           if test "X$thread_CFLAGS" != Xfailed; then
15396             break
15397           fi
15398         done
15399         CFLAGS="$chktls_save_CFLAGS"
15400         if test "X$thread_CFLAGS" != Xfailed; then
15401           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15402                                                   if test "$cross_compiling" = yes; then :
15403   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15405 as_fn_error "cannot run test program while cross compiling
15406 See \`config.log' for more details." "$LINENO" 5; }
15407 else
15408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h.  */
15410 #include <pthread.h>
15411                 __thread int a;
15412                 static int *volatile a_in_other_thread;
15413                 static void *
15414                 thread_func (void *arg)
15415                 {
15416                   a_in_other_thread = &a;
15417                   return (void *)0;
15418                 }
15419 int
15420 main ()
15421 {
15422 pthread_t thread;
15423                 void *thread_retval;
15424                 int *volatile a_in_main_thread;
15425                 a_in_main_thread = &a;
15426                 if (pthread_create (&thread, (pthread_attr_t *)0,
15427                                     thread_func, (void *)0))
15428                   return 0;
15429                 if (pthread_join (thread, &thread_retval))
15430                   return 0;
15431                 return (a_in_other_thread == a_in_main_thread);
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 if ac_fn_c_try_run "$LINENO"; then :
15437   gcc_cv_have_tls=yes
15438 else
15439   gcc_cv_have_tls=no
15440 fi
15441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15442   conftest.$ac_objext conftest.beam conftest.$ac_ext
15443 fi
15444
15445           CFLAGS="$chktls_save_CFLAGS"
15446         fi
15447       fi
15448 else
15449   gcc_cv_have_tls=no
15450 fi
15451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15452   conftest.$ac_objext conftest.beam conftest.$ac_ext
15453 fi
15454
15455 fi
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15457 $as_echo "$gcc_cv_have_tls" >&6; }
15458   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15459
15460 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15461
15462   fi
15463
15464 # See what sort of export controls are availible.
15465
15466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15467 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15468 if test "${libgomp_cv_have_attribute_visibility+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__((visibility("hidden"))) 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_visibility=yes
15487 else
15488   libgomp_cv_have_attribute_visibility=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_visibility" >&5
15494 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15495   if test $libgomp_cv_have_attribute_visibility = yes; then
15496
15497 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15498
15499   fi
15500
15501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15502 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15503 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15504   $as_echo_n "(cached) " >&6
15505 else
15506
15507   save_CFLAGS="$CFLAGS"
15508   CFLAGS="$CFLAGS -Werror"
15509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h.  */
15511 void __attribute__((dllexport)) foo(void) { }
15512 int
15513 main ()
15514 {
15515
15516   ;
15517   return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_compile "$LINENO"; then :
15521   libgomp_cv_have_attribute_dllexport=yes
15522 else
15523   libgomp_cv_have_attribute_dllexport=no
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526   CFLAGS="$save_CFLAGS"
15527 fi
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15529 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15530   if test $libgomp_cv_have_attribute_dllexport = yes; then
15531
15532 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15533
15534   fi
15535
15536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15537 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15538 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15539   $as_echo_n "(cached) " >&6
15540 else
15541
15542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h.  */
15544
15545 void foo(void) { }
15546 extern void bar(void) __attribute__((alias("foo")));
15547 int
15548 main ()
15549 {
15550 bar();
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 if ac_fn_c_try_link "$LINENO"; then :
15556   libgomp_cv_have_attribute_alias=yes
15557 else
15558   libgomp_cv_have_attribute_alias=no
15559 fi
15560 rm -f core conftest.err conftest.$ac_objext \
15561     conftest$ac_exeext conftest.$ac_ext
15562 fi
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15564 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15565   if test $libgomp_cv_have_attribute_alias = yes; then
15566
15567 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15568
15569   fi
15570
15571
15572 # Check whether --with-gnu-ld was given.
15573 if test "${with_gnu_ld+set}" = set; then :
15574   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15575 else
15576   with_gnu_ld=no
15577 fi
15578
15579 ac_prog=ld
15580 if test "$GCC" = yes; then
15581   # Check if gcc -print-prog-name=ld gives a path.
15582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15583 $as_echo_n "checking for ld used by $CC... " >&6; }
15584   case $host in
15585   *-*-mingw*)
15586     # gcc leaves a trailing carriage return which upsets mingw
15587     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15588   *)
15589     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15590   esac
15591   case $ac_prog in
15592     # Accept absolute paths.
15593     [\\/]* | ?:[\\/]*)
15594       re_direlt='/[^/][^/]*/\.\./'
15595       # Canonicalize the pathname of ld
15596       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15597       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15598         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15599       done
15600       test -z "$LD" && LD="$ac_prog"
15601       ;;
15602   "")
15603     # If it fails, then pretend we aren't using GCC.
15604     ac_prog=ld
15605     ;;
15606   *)
15607     # If it is relative, then search for the first ld in PATH.
15608     with_gnu_ld=unknown
15609     ;;
15610   esac
15611 elif test "$with_gnu_ld" = yes; then
15612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15613 $as_echo_n "checking for GNU ld... " >&6; }
15614 else
15615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15616 $as_echo_n "checking for non-GNU ld... " >&6; }
15617 fi
15618 if test "${lt_cv_path_LD+set}" = set; then :
15619   $as_echo_n "(cached) " >&6
15620 else
15621   if test -z "$LD"; then
15622   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15623   for ac_dir in $PATH; do
15624     IFS="$lt_save_ifs"
15625     test -z "$ac_dir" && ac_dir=.
15626     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15627       lt_cv_path_LD="$ac_dir/$ac_prog"
15628       # Check to see if the program is GNU ld.  I'd rather use --version,
15629       # but apparently some variants of GNU ld only accept -v.
15630       # Break only if it was the GNU/non-GNU ld that we prefer.
15631       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15632       *GNU* | *'with BFD'*)
15633         test "$with_gnu_ld" != no && break
15634         ;;
15635       *)
15636         test "$with_gnu_ld" != yes && break
15637         ;;
15638       esac
15639     fi
15640   done
15641   IFS="$lt_save_ifs"
15642 else
15643   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15644 fi
15645 fi
15646
15647 LD="$lt_cv_path_LD"
15648 if test -n "$LD"; then
15649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15650 $as_echo "$LD" >&6; }
15651 else
15652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653 $as_echo "no" >&6; }
15654 fi
15655 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15658 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15659   $as_echo_n "(cached) " >&6
15660 else
15661   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15662 case `$LD -v 2>&1 </dev/null` in
15663 *GNU* | *'with BFD'*)
15664   lt_cv_prog_gnu_ld=yes
15665   ;;
15666 *)
15667   lt_cv_prog_gnu_ld=no
15668   ;;
15669 esac
15670 fi
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15672 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15673 with_gnu_ld=$lt_cv_prog_gnu_ld
15674
15675
15676
15677
15678
15679
15680
15681   # If we're not using GNU ld, then there's no point in even trying these
15682   # tests.  Check for that first.  We should have already tested for gld
15683   # by now (in libtool), but require it now just to be safe...
15684   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15685   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15686
15687
15688
15689   # The name set by libtool depends on the version of libtool.  Shame on us
15690   # for depending on an impl detail, but c'est la vie.  Older versions used
15691   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15692   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15693   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
15694   # set (hence we're using an older libtool), then set it.
15695   if test x${with_gnu_ld+set} != xset; then
15696     if test x${ac_cv_prog_gnu_ld+set} != xset; then
15697       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
15698       with_gnu_ld=no
15699     else
15700       with_gnu_ld=$ac_cv_prog_gnu_ld
15701     fi
15702   fi
15703
15704   # Start by getting the version number.  I think the libtool test already
15705   # does some of this, but throws away the result.
15706   libgomp_ld_is_gold=no
15707   if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15708     libgomp_ld_is_gold=yes
15709   fi
15710
15711   ldver=`$LD --version 2>/dev/null |
15712          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'`
15713
15714   libgomp_gnu_ld_version=`echo $ldver | \
15715          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15716
15717   # Set --gc-sections.
15718   if test "$with_gnu_ld" = "notbroken"; then
15719     # GNU ld it is!  Joy and bunny rabbits!
15720
15721     # All these tests are for C++; save the language and the compiler flags.
15722     # Need to do this so that g++ won't try to link in libstdc++
15723     ac_test_CFLAGS="${CFLAGS+set}"
15724     ac_save_CFLAGS="$CFLAGS"
15725     CFLAGS='-x c++  -Wl,--gc-sections'
15726
15727     # Check for -Wl,--gc-sections
15728     # XXX This test is broken at the moment, as symbols required for linking
15729     # are now in libsupc++ (not built yet).  In addition, this test has
15730     # cored on solaris in the past.  In addition, --gc-sections doesn't
15731     # really work at the moment (keeps on discarding used sections, first
15732     # .eh_frame and now some of the glibc sections for iconv).
15733     # Bzzzzt.  Thanks for playing, maybe next time.
15734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15735 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15736     if test "$cross_compiling" = yes; then :
15737   ac_sectionLDflags=yes
15738 else
15739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h.  */
15741
15742      int main(void)
15743      {
15744        try { throw 1; }
15745        catch (...) { };
15746        return 0;
15747      }
15748
15749 _ACEOF
15750 if ac_fn_c_try_run "$LINENO"; then :
15751   ac_sectionLDflags=yes
15752 else
15753   ac_sectionLDflags=no
15754 fi
15755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15756   conftest.$ac_objext conftest.beam conftest.$ac_ext
15757 fi
15758
15759     if test "$ac_test_CFLAGS" = set; then
15760       CFLAGS="$ac_save_CFLAGS"
15761     else
15762       # this is the suspicious part
15763       CFLAGS=''
15764     fi
15765     if test "$ac_sectionLDflags" = "yes"; then
15766       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15767     fi
15768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15769 $as_echo "$ac_sectionLDflags" >&6; }
15770   fi
15771
15772   # Set linker optimization flags.
15773   if test x"$with_gnu_ld" = x"yes"; then
15774     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15775   fi
15776
15777
15778
15779
15780
15781
15782  # Check whether --enable-symvers was given.
15783 if test "${enable_symvers+set}" = set; then :
15784   enableval=$enable_symvers;
15785       case "$enableval" in
15786        yes|no|gnu|sun) ;;
15787        *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15788                           esac
15789
15790 else
15791   enable_symvers=yes
15792 fi
15793
15794
15795
15796 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15797 # don't know enough about $LD to do tricks...
15798
15799 # FIXME  The following test is too strict, in theory.
15800 if test $enable_shared = no || test "x$LD" = x; then
15801   enable_symvers=no
15802 else
15803   if test $with_gnu_ld = yes ; then
15804     enable_symvers=gnu
15805   else
15806     case ${target_os} in
15807       # Sun symbol versioning exists since Solaris 2.5.
15808       solaris2.[5-9]* | solaris2.1[0-9]*)
15809         enable_symvers=sun ;;
15810       *)
15811         enable_symvers=no ;;
15812     esac
15813   fi
15814 fi
15815
15816 # Check if 'sun' was requested on non-Solaris 2 platforms.
15817 if test x$enable_symvers = xsun ; then
15818   case ${target_os} in
15819     solaris2*)
15820       # All fine.
15821       ;;
15822     *)
15823       # Unlikely to work.
15824       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15825 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15826       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15827 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15828       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15829 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15830       enable_symvers=no
15831       ;;
15832   esac
15833 fi
15834
15835 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15836 if test $enable_symvers != no; then
15837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15838 $as_echo_n "checking for shared libgcc... " >&6; }
15839   ac_save_CFLAGS="$CFLAGS"
15840   CFLAGS=' -lgcc_s'
15841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h.  */
15843
15844 int
15845 main ()
15846 {
15847 return 0;
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 if ac_fn_c_try_link "$LINENO"; then :
15853   libgomp_shared_libgcc=yes
15854 else
15855   libgomp_shared_libgcc=no
15856 fi
15857 rm -f core conftest.err conftest.$ac_objext \
15858     conftest$ac_exeext conftest.$ac_ext
15859   CFLAGS="$ac_save_CFLAGS"
15860   if test $libgomp_shared_libgcc = no; then
15861     cat > conftest.c <<EOF
15862 int main (void) { return 0; }
15863 EOF
15864     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15865                              -shared -shared-libgcc -o conftest.so \
15866                              conftest.c -v 2>&1 >/dev/null \
15867                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15868     rm -f conftest.c conftest.so
15869     if test x${libgomp_libgcc_s_suffix+set} = xset; then
15870       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15871       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h.  */
15873
15874 int
15875 main ()
15876 {
15877 return 0;
15878   ;
15879   return 0;
15880 }
15881 _ACEOF
15882 if ac_fn_c_try_link "$LINENO"; then :
15883   libgomp_shared_libgcc=yes
15884 fi
15885 rm -f core conftest.err conftest.$ac_objext \
15886     conftest$ac_exeext conftest.$ac_ext
15887       CFLAGS="$ac_save_CFLAGS"
15888     fi
15889   fi
15890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15891 $as_echo "$libgomp_shared_libgcc" >&6; }
15892 fi
15893
15894 # For GNU ld, we need at least this version.  The format is described in
15895 # LIBGOMP_CHECK_LINKER_FEATURES above.
15896 libgomp_min_gnu_ld_version=21400
15897 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15898
15899 # Check to see if unspecified "yes" value can win, given results above.
15900 # Change "yes" into either "no" or a style name.
15901 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15902   if test $with_gnu_ld = yes; then
15903     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15904       enable_symvers=gnu
15905     elif test $libgomp_ld_is_gold = yes ; then
15906       enable_symvers=gnu
15907     else
15908       # The right tools, the right setup, but too old.  Fallbacks?
15909       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15910 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15911       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15912 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15913       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15914 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15915       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15916 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15917       if test $libgomp_gnu_ld_version -ge 21200 ; then
15918         # Globbing fix is present, proper block support is not.
15919                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15920 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15921         enable_symvers=no
15922       else
15923         # 2.11 or older.
15924         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15925 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15926         enable_symvers=no
15927       fi
15928     fi
15929   elif test $enable_symvers = sun; then
15930     : All interesting versions of Sun ld support sun style symbol versioning.
15931   else
15932     # just fail for now
15933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15934 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15936 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15938 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15940 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15941     enable_symvers=no
15942   fi
15943 fi
15944
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15946 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
15947 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15948   $as_echo_n "(cached) " >&6
15949 else
15950
15951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h.  */
15953 void foo (void); __asm (".symver foo, bar@SYMVER");
15954 int
15955 main ()
15956 {
15957
15958   ;
15959   return 0;
15960 }
15961 _ACEOF
15962 if ac_fn_c_try_compile "$LINENO"; then :
15963   libgomp_cv_have_as_symver_directive=yes
15964 else
15965   libgomp_cv_have_as_symver_directive=no
15966 fi
15967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 fi
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15970 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15971 if test $libgomp_cv_have_as_symver_directive = yes; then
15972
15973 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15974
15975 fi
15976
15977  if test $enable_symvers != no; then
15978   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15979   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15980 else
15981   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15982   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15983 fi
15984
15985  if test $enable_symvers = gnu; then
15986   LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15987   LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15988 else
15989   LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15990   LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15991 fi
15992
15993  if test $enable_symvers = sun; then
15994   LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15995   LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15996 else
15997   LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15998   LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15999 fi
16000
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16002 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16003
16004 if test $enable_symvers != no ; then
16005    case ${target_os} in
16006      # The Solaris 2 runtime linker doesn't support the GNU extension of
16007      # binding the same symbol to different versions
16008      solaris2*)
16009        symvers_renaming=no ;;
16010      # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16011      *)
16012
16013 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16014
16015        symvers_renaming=yes ;;
16016     esac
16017 fi
16018  if test $symvers_renaming = no; then
16019   LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE=
16020   LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE='#'
16021 else
16022   LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE='#'
16023   LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE=
16024 fi
16025
16026
16027
16028 if test $enable_symvers = gnu; then
16029
16030 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16031
16032 fi
16033
16034 # Get target configury.
16035 . ${srcdir}/configure.tgt
16036 CFLAGS="$save_CFLAGS $XCFLAGS"
16037
16038 # Check for __sync_val_compare_and_swap, but only after the target has
16039 # had a chance to set XCFLAGS.
16040
16041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16042 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16043 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16044   $as_echo_n "(cached) " >&6
16045 else
16046
16047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h.  */
16049
16050 int
16051 main ()
16052 {
16053 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16054   ;
16055   return 0;
16056 }
16057 _ACEOF
16058 if ac_fn_c_try_link "$LINENO"; then :
16059   libgomp_cv_have_sync_builtins=yes
16060 else
16061   libgomp_cv_have_sync_builtins=no
16062 fi
16063 rm -f core conftest.err conftest.$ac_objext \
16064     conftest$ac_exeext conftest.$ac_ext
16065 fi
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16067 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16068   if test $libgomp_cv_have_sync_builtins = yes; then
16069
16070 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16071
16072   fi
16073
16074 XCFLAGS="$XCFLAGS$XPCFLAGS"
16075
16076
16077
16078
16079
16080 # Cleanup and exit.
16081 CFLAGS="$save_CFLAGS"
16082 cat >confcache <<\_ACEOF
16083 # This file is a shell script that caches the results of configure
16084 # tests run on this system so they can be shared between configure
16085 # scripts and configure runs, see configure's option --config-cache.
16086 # It is not useful on other systems.  If it contains results you don't
16087 # want to keep, you may remove or edit it.
16088 #
16089 # config.status only pays attention to the cache file if you give it
16090 # the --recheck option to rerun configure.
16091 #
16092 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16093 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16094 # following values.
16095
16096 _ACEOF
16097
16098 # The following way of writing the cache mishandles newlines in values,
16099 # but we know of no workaround that is simple, portable, and efficient.
16100 # So, we kill variables containing newlines.
16101 # Ultrix sh set writes to stderr and can't be redirected directly,
16102 # and sets the high bit in the cache file unless we assign to the vars.
16103 (
16104   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16105     eval ac_val=\$$ac_var
16106     case $ac_val in #(
16107     *${as_nl}*)
16108       case $ac_var in #(
16109       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16111       esac
16112       case $ac_var in #(
16113       _ | IFS | as_nl) ;; #(
16114       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16115       *) { eval $ac_var=; unset $ac_var;} ;;
16116       esac ;;
16117     esac
16118   done
16119
16120   (set) 2>&1 |
16121     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16122     *${as_nl}ac_space=\ *)
16123       # `set' does not quote correctly, so add quotes: double-quote
16124       # substitution turns \\\\ into \\, and sed turns \\ into \.
16125       sed -n \
16126         "s/'/'\\\\''/g;
16127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16128       ;; #(
16129     *)
16130       # `set' quotes correctly as required by POSIX, so do not add quotes.
16131       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16132       ;;
16133     esac |
16134     sort
16135 ) |
16136   sed '
16137      /^ac_cv_env_/b end
16138      t clear
16139      :clear
16140      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16141      t end
16142      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16143      :end' >>confcache
16144 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16145   if test -w "$cache_file"; then
16146     test "x$cache_file" != "x/dev/null" &&
16147       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16148 $as_echo "$as_me: updating cache $cache_file" >&6;}
16149     cat confcache >$cache_file
16150   else
16151     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16152 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16153   fi
16154 fi
16155 rm -f confcache
16156
16157 if test ${multilib} = yes; then
16158   multilib_arg="--enable-multilib"
16159 else
16160   multilib_arg=
16161 fi
16162
16163 # Set up the set of libraries that we need to link against for libgomp.
16164 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16165 # which will force linkage against -lpthread (or equivalent for the system).
16166 # That's not 100% ideal, but about the best we can do easily.
16167 if test $enable_shared = yes; then
16168   link_gomp="-lgomp %{static: $LIBS}"
16169 else
16170   link_gomp="-lgomp $LIBS"
16171 fi
16172
16173
16174  if test "$ac_cv_fc_compiler_gnu" = yes; then
16175   USE_FORTRAN_TRUE=
16176   USE_FORTRAN_FALSE='#'
16177 else
16178   USE_FORTRAN_TRUE='#'
16179   USE_FORTRAN_FALSE=
16180 fi
16181
16182
16183 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16184 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
16185 # the underscore here and update the PREREQ.  If it doesn't, then we'll
16186 # need to copy this macro to our acinclude.m4.
16187 save_CFLAGS="$CFLAGS"
16188 for i in $config_path; do
16189   if test -f $srcdir/config/$i/omp-lock.h; then
16190     CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16191     break
16192   fi
16193 done
16194
16195 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE"        ""; then :
16196
16197 else
16198   as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16199 fi
16200
16201
16202 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN"        ""; then :
16203
16204 fi
16205
16206
16207 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE"        ""; then :
16208
16209 fi
16210
16211
16212 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN"        ""; then :
16213
16214 fi
16215
16216
16217 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE"        ""; then :
16218
16219 else
16220   as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16221 fi
16222
16223
16224 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN"        ""; then :
16225
16226 fi
16227
16228
16229 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE"        ""; then :
16230
16231 fi
16232
16233
16234 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN"        ""; then :
16235
16236 fi
16237
16238
16239
16240 # If the lock fits in an integer, then arrange for Fortran to use that
16241 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
16242 # Except that we don't have a way at present to multi-lib the installed
16243 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16244 # actual target.
16245 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16246 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16247 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16248   OMP_LOCK_KIND=8
16249 fi
16250 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16251   OMP_NEST_LOCK_KIND=8
16252 fi
16253 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16254 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16255 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16256   OMP_LOCK_25_KIND=8
16257 fi
16258 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16259   OMP_NEST_LOCK_25_KIND=8
16260 fi
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274 CFLAGS="$save_CFLAGS"
16275
16276 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16277
16278 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16279
16280 cat >confcache <<\_ACEOF
16281 # This file is a shell script that caches the results of configure
16282 # tests run on this system so they can be shared between configure
16283 # scripts and configure runs, see configure's option --config-cache.
16284 # It is not useful on other systems.  If it contains results you don't
16285 # want to keep, you may remove or edit it.
16286 #
16287 # config.status only pays attention to the cache file if you give it
16288 # the --recheck option to rerun configure.
16289 #
16290 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16291 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16292 # following values.
16293
16294 _ACEOF
16295
16296 # The following way of writing the cache mishandles newlines in values,
16297 # but we know of no workaround that is simple, portable, and efficient.
16298 # So, we kill variables containing newlines.
16299 # Ultrix sh set writes to stderr and can't be redirected directly,
16300 # and sets the high bit in the cache file unless we assign to the vars.
16301 (
16302   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16303     eval ac_val=\$$ac_var
16304     case $ac_val in #(
16305     *${as_nl}*)
16306       case $ac_var in #(
16307       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16308 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16309       esac
16310       case $ac_var in #(
16311       _ | IFS | as_nl) ;; #(
16312       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16313       *) { eval $ac_var=; unset $ac_var;} ;;
16314       esac ;;
16315     esac
16316   done
16317
16318   (set) 2>&1 |
16319     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16320     *${as_nl}ac_space=\ *)
16321       # `set' does not quote correctly, so add quotes: double-quote
16322       # substitution turns \\\\ into \\, and sed turns \\ into \.
16323       sed -n \
16324         "s/'/'\\\\''/g;
16325           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16326       ;; #(
16327     *)
16328       # `set' quotes correctly as required by POSIX, so do not add quotes.
16329       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16330       ;;
16331     esac |
16332     sort
16333 ) |
16334   sed '
16335      /^ac_cv_env_/b end
16336      t clear
16337      :clear
16338      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16339      t end
16340      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16341      :end' >>confcache
16342 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16343   if test -w "$cache_file"; then
16344     test "x$cache_file" != "x/dev/null" &&
16345       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16346 $as_echo "$as_me: updating cache $cache_file" >&6;}
16347     cat confcache >$cache_file
16348   else
16349     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16350 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16351   fi
16352 fi
16353 rm -f confcache
16354
16355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16356 # Let make expand exec_prefix.
16357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16358
16359 DEFS=-DHAVE_CONFIG_H
16360
16361 ac_libobjs=
16362 ac_ltlibobjs=
16363 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16364   # 1. Remove the extension, and $U if already installed.
16365   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16366   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16367   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16368   #    will be set to the directory where LIBOBJS objects are built.
16369   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16370   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16371 done
16372 LIBOBJS=$ac_libobjs
16373
16374 LTLIBOBJS=$ac_ltlibobjs
16375
16376
16377 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16378   as_fn_error "conditional \"GENINSRC\" was never defined.
16379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16380 fi
16381  if test -n "$EXEEXT"; then
16382   am__EXEEXT_TRUE=
16383   am__EXEEXT_FALSE='#'
16384 else
16385   am__EXEEXT_TRUE='#'
16386   am__EXEEXT_FALSE=
16387 fi
16388
16389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16390   as_fn_error "conditional \"AMDEP\" was never defined.
16391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16392 fi
16393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16394   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16396 fi
16397 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16398   as_fn_error "conditional \"BUILD_INFO\" was never defined.
16399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16400 fi
16401 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16402   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16404 fi
16405 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16406   as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16408 fi
16409 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16410   as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16412 fi
16413 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16414   as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16416 fi
16417 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE}"; then
16418   as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2\" was never defined.
16419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16420 fi
16421 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16422   as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16424 fi
16425
16426 : ${CONFIG_STATUS=./config.status}
16427 ac_write_fail=0
16428 ac_clean_files_save=$ac_clean_files
16429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16431 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16432 as_write_fail=0
16433 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16434 #! $SHELL
16435 # Generated by $as_me.
16436 # Run this file to recreate the current configuration.
16437 # Compiler output produced by configure, useful for debugging
16438 # configure, is in config.log if it exists.
16439
16440 debug=false
16441 ac_cs_recheck=false
16442 ac_cs_silent=false
16443
16444 SHELL=\${CONFIG_SHELL-$SHELL}
16445 export SHELL
16446 _ASEOF
16447 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16448 ## -------------------- ##
16449 ## M4sh Initialization. ##
16450 ## -------------------- ##
16451
16452 # Be more Bourne compatible
16453 DUALCASE=1; export DUALCASE # for MKS sh
16454 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16455   emulate sh
16456   NULLCMD=:
16457   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16458   # is contrary to our usage.  Disable this feature.
16459   alias -g '${1+"$@"}'='"$@"'
16460   setopt NO_GLOB_SUBST
16461 else
16462   case `(set -o) 2>/dev/null` in #(
16463   *posix*) :
16464     set -o posix ;; #(
16465   *) :
16466      ;;
16467 esac
16468 fi
16469
16470
16471 as_nl='
16472 '
16473 export as_nl
16474 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16475 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16477 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16478 # Prefer a ksh shell builtin over an external printf program on Solaris,
16479 # but without wasting forks for bash or zsh.
16480 if test -z "$BASH_VERSION$ZSH_VERSION" \
16481     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16482   as_echo='print -r --'
16483   as_echo_n='print -rn --'
16484 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16485   as_echo='printf %s\n'
16486   as_echo_n='printf %s'
16487 else
16488   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16489     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16490     as_echo_n='/usr/ucb/echo -n'
16491   else
16492     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16493     as_echo_n_body='eval
16494       arg=$1;
16495       case $arg in #(
16496       *"$as_nl"*)
16497         expr "X$arg" : "X\\(.*\\)$as_nl";
16498         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16499       esac;
16500       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16501     '
16502     export as_echo_n_body
16503     as_echo_n='sh -c $as_echo_n_body as_echo'
16504   fi
16505   export as_echo_body
16506   as_echo='sh -c $as_echo_body as_echo'
16507 fi
16508
16509 # The user is always right.
16510 if test "${PATH_SEPARATOR+set}" != set; then
16511   PATH_SEPARATOR=:
16512   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16513     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16514       PATH_SEPARATOR=';'
16515   }
16516 fi
16517
16518
16519 # IFS
16520 # We need space, tab and new line, in precisely that order.  Quoting is
16521 # there to prevent editors from complaining about space-tab.
16522 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16523 # splitting by setting IFS to empty value.)
16524 IFS=" ""        $as_nl"
16525
16526 # Find who we are.  Look in the path if we contain no directory separator.
16527 case $0 in #((
16528   *[\\/]* ) as_myself=$0 ;;
16529   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16530 for as_dir in $PATH
16531 do
16532   IFS=$as_save_IFS
16533   test -z "$as_dir" && as_dir=.
16534     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16535   done
16536 IFS=$as_save_IFS
16537
16538      ;;
16539 esac
16540 # We did not find ourselves, most probably we were run as `sh COMMAND'
16541 # in which case we are not to be found in the path.
16542 if test "x$as_myself" = x; then
16543   as_myself=$0
16544 fi
16545 if test ! -f "$as_myself"; then
16546   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16547   exit 1
16548 fi
16549
16550 # Unset variables that we do not need and which cause bugs (e.g. in
16551 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16552 # suppresses any "Segmentation fault" message there.  '((' could
16553 # trigger a bug in pdksh 5.2.14.
16554 for as_var in BASH_ENV ENV MAIL MAILPATH
16555 do eval test x\${$as_var+set} = xset \
16556   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16557 done
16558 PS1='$ '
16559 PS2='> '
16560 PS4='+ '
16561
16562 # NLS nuisances.
16563 LC_ALL=C
16564 export LC_ALL
16565 LANGUAGE=C
16566 export LANGUAGE
16567
16568 # CDPATH.
16569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16570
16571
16572 # as_fn_error ERROR [LINENO LOG_FD]
16573 # ---------------------------------
16574 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16575 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16576 # script with status $?, using 1 if that was 0.
16577 as_fn_error ()
16578 {
16579   as_status=$?; test $as_status -eq 0 && as_status=1
16580   if test "$3"; then
16581     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16582     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16583   fi
16584   $as_echo "$as_me: error: $1" >&2
16585   as_fn_exit $as_status
16586 } # as_fn_error
16587
16588
16589 # as_fn_set_status STATUS
16590 # -----------------------
16591 # Set $? to STATUS, without forking.
16592 as_fn_set_status ()
16593 {
16594   return $1
16595 } # as_fn_set_status
16596
16597 # as_fn_exit STATUS
16598 # -----------------
16599 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16600 as_fn_exit ()
16601 {
16602   set +e
16603   as_fn_set_status $1
16604   exit $1
16605 } # as_fn_exit
16606
16607 # as_fn_unset VAR
16608 # ---------------
16609 # Portably unset VAR.
16610 as_fn_unset ()
16611 {
16612   { eval $1=; unset $1;}
16613 }
16614 as_unset=as_fn_unset
16615 # as_fn_append VAR VALUE
16616 # ----------------------
16617 # Append the text in VALUE to the end of the definition contained in VAR. Take
16618 # advantage of any shell optimizations that allow amortized linear growth over
16619 # repeated appends, instead of the typical quadratic growth present in naive
16620 # implementations.
16621 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16622   eval 'as_fn_append ()
16623   {
16624     eval $1+=\$2
16625   }'
16626 else
16627   as_fn_append ()
16628   {
16629     eval $1=\$$1\$2
16630   }
16631 fi # as_fn_append
16632
16633 # as_fn_arith ARG...
16634 # ------------------
16635 # Perform arithmetic evaluation on the ARGs, and store the result in the
16636 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16637 # must be portable across $(()) and expr.
16638 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16639   eval 'as_fn_arith ()
16640   {
16641     as_val=$(( $* ))
16642   }'
16643 else
16644   as_fn_arith ()
16645   {
16646     as_val=`expr "$@" || test $? -eq 1`
16647   }
16648 fi # as_fn_arith
16649
16650
16651 if expr a : '\(a\)' >/dev/null 2>&1 &&
16652    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16653   as_expr=expr
16654 else
16655   as_expr=false
16656 fi
16657
16658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16659   as_basename=basename
16660 else
16661   as_basename=false
16662 fi
16663
16664 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16665   as_dirname=dirname
16666 else
16667   as_dirname=false
16668 fi
16669
16670 as_me=`$as_basename -- "$0" ||
16671 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16672          X"$0" : 'X\(//\)$' \| \
16673          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16674 $as_echo X/"$0" |
16675     sed '/^.*\/\([^/][^/]*\)\/*$/{
16676             s//\1/
16677             q
16678           }
16679           /^X\/\(\/\/\)$/{
16680             s//\1/
16681             q
16682           }
16683           /^X\/\(\/\).*/{
16684             s//\1/
16685             q
16686           }
16687           s/.*/./; q'`
16688
16689 # Avoid depending upon Character Ranges.
16690 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16691 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16692 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16693 as_cr_digits='0123456789'
16694 as_cr_alnum=$as_cr_Letters$as_cr_digits
16695
16696 ECHO_C= ECHO_N= ECHO_T=
16697 case `echo -n x` in #(((((
16698 -n*)
16699   case `echo 'xy\c'` in
16700   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16701   xy)  ECHO_C='\c';;
16702   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16703        ECHO_T=' ';;
16704   esac;;
16705 *)
16706   ECHO_N='-n';;
16707 esac
16708
16709 rm -f conf$$ conf$$.exe conf$$.file
16710 if test -d conf$$.dir; then
16711   rm -f conf$$.dir/conf$$.file
16712 else
16713   rm -f conf$$.dir
16714   mkdir conf$$.dir 2>/dev/null
16715 fi
16716 if (echo >conf$$.file) 2>/dev/null; then
16717   if ln -s conf$$.file conf$$ 2>/dev/null; then
16718     as_ln_s='ln -s'
16719     # ... but there are two gotchas:
16720     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16721     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16722     # In both cases, we have to default to `cp -p'.
16723     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16724       as_ln_s='cp -p'
16725   elif ln conf$$.file conf$$ 2>/dev/null; then
16726     as_ln_s=ln
16727   else
16728     as_ln_s='cp -p'
16729   fi
16730 else
16731   as_ln_s='cp -p'
16732 fi
16733 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16734 rmdir conf$$.dir 2>/dev/null
16735
16736
16737 # as_fn_mkdir_p
16738 # -------------
16739 # Create "$as_dir" as a directory, including parents if necessary.
16740 as_fn_mkdir_p ()
16741 {
16742
16743   case $as_dir in #(
16744   -*) as_dir=./$as_dir;;
16745   esac
16746   test -d "$as_dir" || eval $as_mkdir_p || {
16747     as_dirs=
16748     while :; do
16749       case $as_dir in #(
16750       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16751       *) as_qdir=$as_dir;;
16752       esac
16753       as_dirs="'$as_qdir' $as_dirs"
16754       as_dir=`$as_dirname -- "$as_dir" ||
16755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16756          X"$as_dir" : 'X\(//\)[^/]' \| \
16757          X"$as_dir" : 'X\(//\)$' \| \
16758          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16759 $as_echo X"$as_dir" |
16760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16761             s//\1/
16762             q
16763           }
16764           /^X\(\/\/\)[^/].*/{
16765             s//\1/
16766             q
16767           }
16768           /^X\(\/\/\)$/{
16769             s//\1/
16770             q
16771           }
16772           /^X\(\/\).*/{
16773             s//\1/
16774             q
16775           }
16776           s/.*/./; q'`
16777       test -d "$as_dir" && break
16778     done
16779     test -z "$as_dirs" || eval "mkdir $as_dirs"
16780   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16781
16782
16783 } # as_fn_mkdir_p
16784 if mkdir -p . 2>/dev/null; then
16785   as_mkdir_p='mkdir -p "$as_dir"'
16786 else
16787   test -d ./-p && rmdir ./-p
16788   as_mkdir_p=false
16789 fi
16790
16791 if test -x / >/dev/null 2>&1; then
16792   as_test_x='test -x'
16793 else
16794   if ls -dL / >/dev/null 2>&1; then
16795     as_ls_L_option=L
16796   else
16797     as_ls_L_option=
16798   fi
16799   as_test_x='
16800     eval sh -c '\''
16801       if test -d "$1"; then
16802         test -d "$1/.";
16803       else
16804         case $1 in #(
16805         -*)set "./$1";;
16806         esac;
16807         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16808         ???[sx]*):;;*)false;;esac;fi
16809     '\'' sh
16810   '
16811 fi
16812 as_executable_p=$as_test_x
16813
16814 # Sed expression to map a string onto a valid CPP name.
16815 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16816
16817 # Sed expression to map a string onto a valid variable name.
16818 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16819
16820
16821 exec 6>&1
16822 ## ----------------------------------- ##
16823 ## Main body of $CONFIG_STATUS script. ##
16824 ## ----------------------------------- ##
16825 _ASEOF
16826 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16827
16828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16829 # Save the log message, to keep $0 and so on meaningful, and to
16830 # report actual input values of CONFIG_FILES etc. instead of their
16831 # values after options handling.
16832 ac_log="
16833 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16834 generated by GNU Autoconf 2.64.  Invocation command line was
16835
16836   CONFIG_FILES    = $CONFIG_FILES
16837   CONFIG_HEADERS  = $CONFIG_HEADERS
16838   CONFIG_LINKS    = $CONFIG_LINKS
16839   CONFIG_COMMANDS = $CONFIG_COMMANDS
16840   $ $0 $@
16841
16842 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16843 "
16844
16845 _ACEOF
16846
16847 case $ac_config_files in *"
16848 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16849 esac
16850
16851 case $ac_config_headers in *"
16852 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16853 esac
16854
16855
16856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16857 # Files that config.status was made for.
16858 config_files="$ac_config_files"
16859 config_headers="$ac_config_headers"
16860 config_commands="$ac_config_commands"
16861
16862 _ACEOF
16863
16864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16865 ac_cs_usage="\
16866 \`$as_me' instantiates files and other configuration actions
16867 from templates according to the current configuration.  Unless the files
16868 and actions are specified as TAGs, all are instantiated by default.
16869
16870 Usage: $0 [OPTION]... [TAG]...
16871
16872   -h, --help       print this help, then exit
16873   -V, --version    print version number and configuration settings, then exit
16874   -q, --quiet, --silent
16875                    do not print progress messages
16876   -d, --debug      don't remove temporary files
16877       --recheck    update $as_me by reconfiguring in the same conditions
16878       --file=FILE[:TEMPLATE]
16879                    instantiate the configuration file FILE
16880       --header=FILE[:TEMPLATE]
16881                    instantiate the configuration header FILE
16882
16883 Configuration files:
16884 $config_files
16885
16886 Configuration headers:
16887 $config_headers
16888
16889 Configuration commands:
16890 $config_commands
16891
16892 Report bugs to the package provider.
16893 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16894 General help using GNU software: <http://www.gnu.org/gethelp/>."
16895
16896 _ACEOF
16897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16898 ac_cs_version="\\
16899 GNU OpenMP Runtime Library config.status 1.0
16900 configured by $0, generated by GNU Autoconf 2.64,
16901   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16902
16903 Copyright (C) 2009 Free Software Foundation, Inc.
16904 This config.status script is free software; the Free Software Foundation
16905 gives unlimited permission to copy, distribute and modify it."
16906
16907 ac_pwd='$ac_pwd'
16908 srcdir='$srcdir'
16909 INSTALL='$INSTALL'
16910 MKDIR_P='$MKDIR_P'
16911 AWK='$AWK'
16912 test -n "\$AWK" || AWK=awk
16913 _ACEOF
16914
16915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16916 # The default lists apply if the user does not specify any file.
16917 ac_need_defaults=:
16918 while test $# != 0
16919 do
16920   case $1 in
16921   --*=*)
16922     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16923     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16924     ac_shift=:
16925     ;;
16926   *)
16927     ac_option=$1
16928     ac_optarg=$2
16929     ac_shift=shift
16930     ;;
16931   esac
16932
16933   case $ac_option in
16934   # Handling of the options.
16935   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16936     ac_cs_recheck=: ;;
16937   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16938     $as_echo "$ac_cs_version"; exit ;;
16939   --debug | --debu | --deb | --de | --d | -d )
16940     debug=: ;;
16941   --file | --fil | --fi | --f )
16942     $ac_shift
16943     case $ac_optarg in
16944     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16945     esac
16946     as_fn_append CONFIG_FILES " '$ac_optarg'"
16947     ac_need_defaults=false;;
16948   --header | --heade | --head | --hea )
16949     $ac_shift
16950     case $ac_optarg in
16951     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16952     esac
16953     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16954     ac_need_defaults=false;;
16955   --he | --h)
16956     # Conflict between --help and --header
16957     as_fn_error "ambiguous option: \`$1'
16958 Try \`$0 --help' for more information.";;
16959   --help | --hel | -h )
16960     $as_echo "$ac_cs_usage"; exit ;;
16961   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16962   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16963     ac_cs_silent=: ;;
16964
16965   # This is an error.
16966   -*) as_fn_error "unrecognized option: \`$1'
16967 Try \`$0 --help' for more information." ;;
16968
16969   *) as_fn_append ac_config_targets " $1"
16970      ac_need_defaults=false ;;
16971
16972   esac
16973   shift
16974 done
16975
16976 ac_configure_extra_args=
16977
16978 if $ac_cs_silent; then
16979   exec 6>/dev/null
16980   ac_configure_extra_args="$ac_configure_extra_args --silent"
16981 fi
16982
16983 _ACEOF
16984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16985 if \$ac_cs_recheck; then
16986   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16987   shift
16988   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16989   CONFIG_SHELL='$SHELL'
16990   export CONFIG_SHELL
16991   exec "\$@"
16992 fi
16993
16994 _ACEOF
16995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16996 exec 5>>config.log
16997 {
16998   echo
16999   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17000 ## Running $as_me. ##
17001 _ASBOX
17002   $as_echo "$ac_log"
17003 } >&5
17004
17005 _ACEOF
17006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17007 #
17008 # INIT-COMMANDS
17009 #
17010
17011 srcdir="$srcdir"
17012 host="$host"
17013 target="$target"
17014 with_multisubdir="$with_multisubdir"
17015 with_multisrctop="$with_multisrctop"
17016 with_target_subdir="$with_target_subdir"
17017 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17018 multi_basedir="$multi_basedir"
17019 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17020 CC="$CC"
17021 CXX="$CXX"
17022 GFORTRAN="$GFORTRAN"
17023 GCJ="$GCJ"
17024 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17025
17026
17027 # The HP-UX ksh and POSIX shell print the target directory to stdout
17028 # if CDPATH is set.
17029 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17030
17031 sed_quote_subst='$sed_quote_subst'
17032 double_quote_subst='$double_quote_subst'
17033 delay_variable_subst='$delay_variable_subst'
17034 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17035 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17036 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17037 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17038 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17039 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17040 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17041 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17042 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17043 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17044 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17045 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17046 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17047 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17048 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17049 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17050 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17051 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17052 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17053 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17054 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17055 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17056 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17057 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17058 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17059 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17060 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17061 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17062 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17063 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17064 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17065 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17066 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17067 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17068 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17069 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17070 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17071 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17072 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17073 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17074 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17075 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17076 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17077 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17078 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17079 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17080 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17081 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17082 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"`'
17083 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17084 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17085 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17086 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17087 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17088 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17089 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17090 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17091 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17092 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17093 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17094 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17095 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17096 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17097 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17098 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17099 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17100 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17101 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17102 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17103 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17104 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17105 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17106 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17107 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17108 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17109 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17110 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17111 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17112 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17113 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17114 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17115 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17116 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17117 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17118 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17119 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17120 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17121 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17122 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17123 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17124 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17125 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17126 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17127 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17128 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17129 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17130 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17131 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17132 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17133 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17134 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17135 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17136 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17137 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17138 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17139 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17140 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17141 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17142 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17143 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17144 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17145 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17146 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17147 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17148 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17149 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17150 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17151 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17152 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17153 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17154 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17155 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17156 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17157 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17158 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17159 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17160 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17161 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17162 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17163 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17164 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17165 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17166 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17167 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17168 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17169 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17170 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17171 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17172 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17173 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17174 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17175 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17176 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17177 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17178 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17179 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17180 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17181 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17182 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17183 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17184 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17185 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17186 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17187 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17188 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17189 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17190 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17191 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17192 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17193 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17194 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17195 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17196 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17197 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17198 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17199 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17200 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17201 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17202 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17203 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17204 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17205 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17206 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17207 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17208 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17209
17210 LTCC='$LTCC'
17211 LTCFLAGS='$LTCFLAGS'
17212 compiler='$compiler_DEFAULT'
17213
17214 # A function that is used when there is no print builtin or printf.
17215 func_fallback_echo ()
17216 {
17217   eval 'cat <<_LTECHO_EOF
17218 \$1
17219 _LTECHO_EOF'
17220 }
17221
17222 # Quote evaled strings.
17223 for var in SHELL \
17224 ECHO \
17225 SED \
17226 GREP \
17227 EGREP \
17228 FGREP \
17229 LD \
17230 NM \
17231 LN_S \
17232 lt_SP2NL \
17233 lt_NL2SP \
17234 reload_flag \
17235 OBJDUMP \
17236 deplibs_check_method \
17237 file_magic_cmd \
17238 AR \
17239 AR_FLAGS \
17240 STRIP \
17241 RANLIB \
17242 CC \
17243 CFLAGS \
17244 compiler \
17245 lt_cv_sys_global_symbol_pipe \
17246 lt_cv_sys_global_symbol_to_cdecl \
17247 lt_cv_sys_global_symbol_to_c_name_address \
17248 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17249 lt_prog_compiler_no_builtin_flag \
17250 lt_prog_compiler_wl \
17251 lt_prog_compiler_pic \
17252 lt_prog_compiler_static \
17253 lt_cv_prog_compiler_c_o \
17254 need_locks \
17255 DSYMUTIL \
17256 NMEDIT \
17257 LIPO \
17258 OTOOL \
17259 OTOOL64 \
17260 shrext_cmds \
17261 export_dynamic_flag_spec \
17262 whole_archive_flag_spec \
17263 compiler_needs_object \
17264 with_gnu_ld \
17265 allow_undefined_flag \
17266 no_undefined_flag \
17267 hardcode_libdir_flag_spec \
17268 hardcode_libdir_flag_spec_ld \
17269 hardcode_libdir_separator \
17270 fix_srcfile_path \
17271 exclude_expsyms \
17272 include_expsyms \
17273 file_list_spec \
17274 variables_saved_for_relink \
17275 libname_spec \
17276 library_names_spec \
17277 soname_spec \
17278 install_override_mode \
17279 finish_eval \
17280 old_striplib \
17281 striplib \
17282 compiler_lib_search_dirs \
17283 predep_objects \
17284 postdep_objects \
17285 predeps \
17286 postdeps \
17287 compiler_lib_search_path \
17288 LD_FC \
17289 reload_flag_FC \
17290 compiler_FC \
17291 lt_prog_compiler_no_builtin_flag_FC \
17292 lt_prog_compiler_wl_FC \
17293 lt_prog_compiler_pic_FC \
17294 lt_prog_compiler_static_FC \
17295 lt_cv_prog_compiler_c_o_FC \
17296 export_dynamic_flag_spec_FC \
17297 whole_archive_flag_spec_FC \
17298 compiler_needs_object_FC \
17299 with_gnu_ld_FC \
17300 allow_undefined_flag_FC \
17301 no_undefined_flag_FC \
17302 hardcode_libdir_flag_spec_FC \
17303 hardcode_libdir_flag_spec_ld_FC \
17304 hardcode_libdir_separator_FC \
17305 fix_srcfile_path_FC \
17306 exclude_expsyms_FC \
17307 include_expsyms_FC \
17308 file_list_spec_FC \
17309 compiler_lib_search_dirs_FC \
17310 predep_objects_FC \
17311 postdep_objects_FC \
17312 predeps_FC \
17313 postdeps_FC \
17314 compiler_lib_search_path_FC; do
17315     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17316     *[\\\\\\\`\\"\\\$]*)
17317       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17318       ;;
17319     *)
17320       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17321       ;;
17322     esac
17323 done
17324
17325 # Double-quote double-evaled strings.
17326 for var in reload_cmds \
17327 old_postinstall_cmds \
17328 old_postuninstall_cmds \
17329 old_archive_cmds \
17330 extract_expsyms_cmds \
17331 old_archive_from_new_cmds \
17332 old_archive_from_expsyms_cmds \
17333 archive_cmds \
17334 archive_expsym_cmds \
17335 module_cmds \
17336 module_expsym_cmds \
17337 export_symbols_cmds \
17338 prelink_cmds \
17339 postinstall_cmds \
17340 postuninstall_cmds \
17341 finish_cmds \
17342 sys_lib_search_path_spec \
17343 sys_lib_dlsearch_path_spec \
17344 reload_cmds_FC \
17345 old_archive_cmds_FC \
17346 old_archive_from_new_cmds_FC \
17347 old_archive_from_expsyms_cmds_FC \
17348 archive_cmds_FC \
17349 archive_expsym_cmds_FC \
17350 module_cmds_FC \
17351 module_expsym_cmds_FC \
17352 export_symbols_cmds_FC \
17353 prelink_cmds_FC; do
17354     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17355     *[\\\\\\\`\\"\\\$]*)
17356       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17357       ;;
17358     *)
17359       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17360       ;;
17361     esac
17362 done
17363
17364 ac_aux_dir='$ac_aux_dir'
17365 xsi_shell='$xsi_shell'
17366 lt_shell_append='$lt_shell_append'
17367
17368 # See if we are running on zsh, and set the options which allow our
17369 # commands through without removal of \ escapes INIT.
17370 if test -n "\${ZSH_VERSION+set}" ; then
17371    setopt NO_GLOB_SUBST
17372 fi
17373
17374
17375     PACKAGE='$PACKAGE'
17376     VERSION='$VERSION'
17377     TIMESTAMP='$TIMESTAMP'
17378     RM='$RM'
17379     ofile='$ofile'
17380
17381
17382
17383
17384
17385
17386 GCC="$GCC"
17387 CC="$CC"
17388 acx_cv_header_stdint="$acx_cv_header_stdint"
17389 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17390 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17391 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17392 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17393 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17394 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17395 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17396 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17397 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17398 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17399 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17400 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17401 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17402
17403
17404 _ACEOF
17405
17406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17407
17408 # Handling of arguments.
17409 for ac_config_target in $ac_config_targets
17410 do
17411   case $ac_config_target in
17412     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17413     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17414     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17415     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17416     "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17417     "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17418     "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17419     "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17420     "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17421     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17422     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17423     "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17424
17425   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17426   esac
17427 done
17428
17429
17430 # If the user did not use the arguments to specify the items to instantiate,
17431 # then the envvar interface is used.  Set only those that are not.
17432 # We use the long form for the default assignment because of an extremely
17433 # bizarre bug on SunOS 4.1.3.
17434 if $ac_need_defaults; then
17435   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17436   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17437   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17438 fi
17439
17440 # Have a temporary directory for convenience.  Make it in the build tree
17441 # simply because there is no reason against having it here, and in addition,
17442 # creating and moving files from /tmp can sometimes cause problems.
17443 # Hook for its removal unless debugging.
17444 # Note that there is a small window in which the directory will not be cleaned:
17445 # after its creation but before its name has been assigned to `$tmp'.
17446 $debug ||
17447 {
17448   tmp=
17449   trap 'exit_status=$?
17450   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17451 ' 0
17452   trap 'as_fn_exit 1' 1 2 13 15
17453 }
17454 # Create a (secure) tmp directory for tmp files.
17455
17456 {
17457   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17458   test -n "$tmp" && test -d "$tmp"
17459 }  ||
17460 {
17461   tmp=./conf$$-$RANDOM
17462   (umask 077 && mkdir "$tmp")
17463 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17464
17465 # Set up the scripts for CONFIG_FILES section.
17466 # No need to generate them if there are no CONFIG_FILES.
17467 # This happens for instance with `./config.status config.h'.
17468 if test -n "$CONFIG_FILES"; then
17469
17470
17471 ac_cr=`echo X | tr X '\015'`
17472 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17473 # But we know of no other shell where ac_cr would be empty at this
17474 # point, so we can use a bashism as a fallback.
17475 if test "x$ac_cr" = x; then
17476   eval ac_cr=\$\'\\r\'
17477 fi
17478 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17479 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17480   ac_cs_awk_cr='\r'
17481 else
17482   ac_cs_awk_cr=$ac_cr
17483 fi
17484
17485 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17486 _ACEOF
17487
17488
17489 {
17490   echo "cat >conf$$subs.awk <<_ACEOF" &&
17491   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17492   echo "_ACEOF"
17493 } >conf$$subs.sh ||
17494   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17496 ac_delim='%!_!# '
17497 for ac_last_try in false false false false false :; do
17498   . ./conf$$subs.sh ||
17499     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17500
17501   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17502   if test $ac_delim_n = $ac_delim_num; then
17503     break
17504   elif $ac_last_try; then
17505     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17506   else
17507     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17508   fi
17509 done
17510 rm -f conf$$subs.sh
17511
17512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17513 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17514 _ACEOF
17515 sed -n '
17516 h
17517 s/^/S["/; s/!.*/"]=/
17518 p
17519 g
17520 s/^[^!]*!//
17521 :repl
17522 t repl
17523 s/'"$ac_delim"'$//
17524 t delim
17525 :nl
17526 h
17527 s/\(.\{148\}\).*/\1/
17528 t more1
17529 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17530 p
17531 n
17532 b repl
17533 :more1
17534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17535 p
17536 g
17537 s/.\{148\}//
17538 t nl
17539 :delim
17540 h
17541 s/\(.\{148\}\).*/\1/
17542 t more2
17543 s/["\\]/\\&/g; s/^/"/; s/$/"/
17544 p
17545 b
17546 :more2
17547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17548 p
17549 g
17550 s/.\{148\}//
17551 t delim
17552 ' <conf$$subs.awk | sed '
17553 /^[^""]/{
17554   N
17555   s/\n//
17556 }
17557 ' >>$CONFIG_STATUS || ac_write_fail=1
17558 rm -f conf$$subs.awk
17559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17560 _ACAWK
17561 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17562   for (key in S) S_is_set[key] = 1
17563   FS = "\a"
17564
17565 }
17566 {
17567   line = $ 0
17568   nfields = split(line, field, "@")
17569   substed = 0
17570   len = length(field[1])
17571   for (i = 2; i < nfields; i++) {
17572     key = field[i]
17573     keylen = length(key)
17574     if (S_is_set[key]) {
17575       value = S[key]
17576       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17577       len += length(value) + length(field[++i])
17578       substed = 1
17579     } else
17580       len += 1 + keylen
17581   }
17582
17583   print line
17584 }
17585
17586 _ACAWK
17587 _ACEOF
17588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17589 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17590   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17591 else
17592   cat
17593 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17594   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17595 _ACEOF
17596
17597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17599 # trailing colons and then remove the whole line if VPATH becomes empty
17600 # (actually we leave an empty line to preserve line numbers).
17601 if test "x$srcdir" = x.; then
17602   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17603 s/:*\$(srcdir):*/:/
17604 s/:*\${srcdir}:*/:/
17605 s/:*@srcdir@:*/:/
17606 s/^\([^=]*=[     ]*\):*/\1/
17607 s/:*$//
17608 s/^[^=]*=[       ]*$//
17609 }'
17610 fi
17611
17612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17613 fi # test -n "$CONFIG_FILES"
17614
17615 # Set up the scripts for CONFIG_HEADERS section.
17616 # No need to generate them if there are no CONFIG_HEADERS.
17617 # This happens for instance with `./config.status Makefile'.
17618 if test -n "$CONFIG_HEADERS"; then
17619 cat >"$tmp/defines.awk" <<\_ACAWK ||
17620 BEGIN {
17621 _ACEOF
17622
17623 # Transform confdefs.h into an awk script `defines.awk', embedded as
17624 # here-document in config.status, that substitutes the proper values into
17625 # config.h.in to produce config.h.
17626
17627 # Create a delimiter string that does not exist in confdefs.h, to ease
17628 # handling of long lines.
17629 ac_delim='%!_!# '
17630 for ac_last_try in false false :; do
17631   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17632   if test -z "$ac_t"; then
17633     break
17634   elif $ac_last_try; then
17635     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17636   else
17637     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17638   fi
17639 done
17640
17641 # For the awk script, D is an array of macro values keyed by name,
17642 # likewise P contains macro parameters if any.  Preserve backslash
17643 # newline sequences.
17644
17645 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17646 sed -n '
17647 s/.\{148\}/&'"$ac_delim"'/g
17648 t rset
17649 :rset
17650 s/^[     ]*#[    ]*define[       ][      ]*/ /
17651 t def
17652 d
17653 :def
17654 s/\\$//
17655 t bsnl
17656 s/["\\]/\\&/g
17657 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17658 D["\1"]=" \3"/p
17659 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17660 d
17661 :bsnl
17662 s/["\\]/\\&/g
17663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17664 D["\1"]=" \3\\\\\\n"\\/p
17665 t cont
17666 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17667 t cont
17668 d
17669 :cont
17670 n
17671 s/.\{148\}/&'"$ac_delim"'/g
17672 t clear
17673 :clear
17674 s/\\$//
17675 t bsnlc
17676 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17677 d
17678 :bsnlc
17679 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17680 b cont
17681 ' <confdefs.h | sed '
17682 s/'"$ac_delim"'/"\\\
17683 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17684
17685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17686   for (key in D) D_is_set[key] = 1
17687   FS = "\a"
17688 }
17689 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17690   line = \$ 0
17691   split(line, arg, " ")
17692   if (arg[1] == "#") {
17693     defundef = arg[2]
17694     mac1 = arg[3]
17695   } else {
17696     defundef = substr(arg[1], 2)
17697     mac1 = arg[2]
17698   }
17699   split(mac1, mac2, "(") #)
17700   macro = mac2[1]
17701   prefix = substr(line, 1, index(line, defundef) - 1)
17702   if (D_is_set[macro]) {
17703     # Preserve the white space surrounding the "#".
17704     print prefix "define", macro P[macro] D[macro]
17705     next
17706   } else {
17707     # Replace #undef with comments.  This is necessary, for example,
17708     # in the case of _POSIX_SOURCE, which is predefined and required
17709     # on some systems where configure will not decide to define it.
17710     if (defundef == "undef") {
17711       print "/*", prefix defundef, macro, "*/"
17712       next
17713     }
17714   }
17715 }
17716 { print }
17717 _ACAWK
17718 _ACEOF
17719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17720   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17721 fi # test -n "$CONFIG_HEADERS"
17722
17723
17724 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17725 shift
17726 for ac_tag
17727 do
17728   case $ac_tag in
17729   :[FHLC]) ac_mode=$ac_tag; continue;;
17730   esac
17731   case $ac_mode$ac_tag in
17732   :[FHL]*:*);;
17733   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17734   :[FH]-) ac_tag=-:-;;
17735   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17736   esac
17737   ac_save_IFS=$IFS
17738   IFS=:
17739   set x $ac_tag
17740   IFS=$ac_save_IFS
17741   shift
17742   ac_file=$1
17743   shift
17744
17745   case $ac_mode in
17746   :L) ac_source=$1;;
17747   :[FH])
17748     ac_file_inputs=
17749     for ac_f
17750     do
17751       case $ac_f in
17752       -) ac_f="$tmp/stdin";;
17753       *) # Look for the file first in the build tree, then in the source tree
17754          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17755          # because $ac_f cannot contain `:'.
17756          test -f "$ac_f" ||
17757            case $ac_f in
17758            [\\/$]*) false;;
17759            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17760            esac ||
17761            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17762       esac
17763       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17764       as_fn_append ac_file_inputs " '$ac_f'"
17765     done
17766
17767     # Let's still pretend it is `configure' which instantiates (i.e., don't
17768     # use $as_me), people would be surprised to read:
17769     #    /* config.h.  Generated by config.status.  */
17770     configure_input='Generated from '`
17771           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17772         `' by configure.'
17773     if test x"$ac_file" != x-; then
17774       configure_input="$ac_file.  $configure_input"
17775       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17776 $as_echo "$as_me: creating $ac_file" >&6;}
17777     fi
17778     # Neutralize special characters interpreted by sed in replacement strings.
17779     case $configure_input in #(
17780     *\&* | *\|* | *\\* )
17781        ac_sed_conf_input=`$as_echo "$configure_input" |
17782        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17783     *) ac_sed_conf_input=$configure_input;;
17784     esac
17785
17786     case $ac_tag in
17787     *:-:* | *:-) cat >"$tmp/stdin" \
17788       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17789     esac
17790     ;;
17791   esac
17792
17793   ac_dir=`$as_dirname -- "$ac_file" ||
17794 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17795          X"$ac_file" : 'X\(//\)[^/]' \| \
17796          X"$ac_file" : 'X\(//\)$' \| \
17797          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17798 $as_echo X"$ac_file" |
17799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17800             s//\1/
17801             q
17802           }
17803           /^X\(\/\/\)[^/].*/{
17804             s//\1/
17805             q
17806           }
17807           /^X\(\/\/\)$/{
17808             s//\1/
17809             q
17810           }
17811           /^X\(\/\).*/{
17812             s//\1/
17813             q
17814           }
17815           s/.*/./; q'`
17816   as_dir="$ac_dir"; as_fn_mkdir_p
17817   ac_builddir=.
17818
17819 case "$ac_dir" in
17820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17821 *)
17822   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17823   # A ".." for each directory in $ac_dir_suffix.
17824   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17825   case $ac_top_builddir_sub in
17826   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17827   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17828   esac ;;
17829 esac
17830 ac_abs_top_builddir=$ac_pwd
17831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17832 # for backward compatibility:
17833 ac_top_builddir=$ac_top_build_prefix
17834
17835 case $srcdir in
17836   .)  # We are building in place.
17837     ac_srcdir=.
17838     ac_top_srcdir=$ac_top_builddir_sub
17839     ac_abs_top_srcdir=$ac_pwd ;;
17840   [\\/]* | ?:[\\/]* )  # Absolute name.
17841     ac_srcdir=$srcdir$ac_dir_suffix;
17842     ac_top_srcdir=$srcdir
17843     ac_abs_top_srcdir=$srcdir ;;
17844   *) # Relative name.
17845     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17846     ac_top_srcdir=$ac_top_build_prefix$srcdir
17847     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17848 esac
17849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17850
17851
17852   case $ac_mode in
17853   :F)
17854   #
17855   # CONFIG_FILE
17856   #
17857
17858   case $INSTALL in
17859   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17860   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17861   esac
17862   ac_MKDIR_P=$MKDIR_P
17863   case $MKDIR_P in
17864   [\\/$]* | ?:[\\/]* ) ;;
17865   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17866   esac
17867 _ACEOF
17868
17869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17870 # If the template does not know about datarootdir, expand it.
17871 # FIXME: This hack should be removed a few years after 2.60.
17872 ac_datarootdir_hack=; ac_datarootdir_seen=
17873 ac_sed_dataroot='
17874 /datarootdir/ {
17875   p
17876   q
17877 }
17878 /@datadir@/p
17879 /@docdir@/p
17880 /@infodir@/p
17881 /@localedir@/p
17882 /@mandir@/p'
17883 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17884 *datarootdir*) ac_datarootdir_seen=yes;;
17885 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17886   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17887 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17888 _ACEOF
17889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17890   ac_datarootdir_hack='
17891   s&@datadir@&$datadir&g
17892   s&@docdir@&$docdir&g
17893   s&@infodir@&$infodir&g
17894   s&@localedir@&$localedir&g
17895   s&@mandir@&$mandir&g
17896   s&\\\${datarootdir}&$datarootdir&g' ;;
17897 esac
17898 _ACEOF
17899
17900 # Neutralize VPATH when `$srcdir' = `.'.
17901 # Shell code in configure.ac might set extrasub.
17902 # FIXME: do we really want to maintain this feature?
17903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904 ac_sed_extra="$ac_vpsub
17905 $extrasub
17906 _ACEOF
17907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17908 :t
17909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17910 s|@configure_input@|$ac_sed_conf_input|;t t
17911 s&@top_builddir@&$ac_top_builddir_sub&;t t
17912 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17913 s&@srcdir@&$ac_srcdir&;t t
17914 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17915 s&@top_srcdir@&$ac_top_srcdir&;t t
17916 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17917 s&@builddir@&$ac_builddir&;t t
17918 s&@abs_builddir@&$ac_abs_builddir&;t t
17919 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17920 s&@INSTALL@&$ac_INSTALL&;t t
17921 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17922 $ac_datarootdir_hack
17923 "
17924 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17925   || as_fn_error "could not create $ac_file" "$LINENO" 5
17926
17927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17928   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17929   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17930   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17931 which seems to be undefined.  Please make sure it is defined." >&5
17932 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17933 which seems to be undefined.  Please make sure it is defined." >&2;}
17934
17935   rm -f "$tmp/stdin"
17936   case $ac_file in
17937   -) cat "$tmp/out" && rm -f "$tmp/out";;
17938   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17939   esac \
17940   || as_fn_error "could not create $ac_file" "$LINENO" 5
17941  ;;
17942   :H)
17943   #
17944   # CONFIG_HEADER
17945   #
17946   if test x"$ac_file" != x-; then
17947     {
17948       $as_echo "/* $configure_input  */" \
17949       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17950     } >"$tmp/config.h" \
17951       || as_fn_error "could not create $ac_file" "$LINENO" 5
17952     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17953       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17954 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17955     else
17956       rm -f "$ac_file"
17957       mv "$tmp/config.h" "$ac_file" \
17958         || as_fn_error "could not create $ac_file" "$LINENO" 5
17959     fi
17960   else
17961     $as_echo "/* $configure_input  */" \
17962       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17963       || as_fn_error "could not create -" "$LINENO" 5
17964   fi
17965 # Compute "$ac_file"'s index in $config_headers.
17966 _am_arg="$ac_file"
17967 _am_stamp_count=1
17968 for _am_header in $config_headers :; do
17969   case $_am_header in
17970     $_am_arg | $_am_arg:* )
17971       break ;;
17972     * )
17973       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17974   esac
17975 done
17976 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17977 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17978          X"$_am_arg" : 'X\(//\)[^/]' \| \
17979          X"$_am_arg" : 'X\(//\)$' \| \
17980          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17981 $as_echo X"$_am_arg" |
17982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17983             s//\1/
17984             q
17985           }
17986           /^X\(\/\/\)[^/].*/{
17987             s//\1/
17988             q
17989           }
17990           /^X\(\/\/\)$/{
17991             s//\1/
17992             q
17993           }
17994           /^X\(\/\).*/{
17995             s//\1/
17996             q
17997           }
17998           s/.*/./; q'`/stamp-h$_am_stamp_count
17999  ;;
18000
18001   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18002 $as_echo "$as_me: executing $ac_file commands" >&6;}
18003  ;;
18004   esac
18005
18006
18007   case $ac_file$ac_mode in
18008     "default-1":C)
18009 # Only add multilib support code if we just rebuilt the top-level
18010 # Makefile.
18011 case " $CONFIG_FILES " in
18012  *" Makefile "*)
18013    ac_file=Makefile . ${multi_basedir}/config-ml.in
18014    ;;
18015 esac ;;
18016     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18017   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18018   # are listed without --file.  Let's play safe and only enable the eval
18019   # if we detect the quoting.
18020   case $CONFIG_FILES in
18021   *\'*) eval set x "$CONFIG_FILES" ;;
18022   *)   set x $CONFIG_FILES ;;
18023   esac
18024   shift
18025   for mf
18026   do
18027     # Strip MF so we end up with the name of the file.
18028     mf=`echo "$mf" | sed -e 's/:.*$//'`
18029     # Check whether this is an Automake generated Makefile or not.
18030     # We used to match only the files named `Makefile.in', but
18031     # some people rename them; so instead we look at the file content.
18032     # Grep'ing the first line is not enough: some people post-process
18033     # each Makefile.in and add a new line on top of each file to say so.
18034     # Grep'ing the whole file is not good either: AIX grep has a line
18035     # limit of 2048, but all sed's we know have understand at least 4000.
18036     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18037       dirpart=`$as_dirname -- "$mf" ||
18038 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18039          X"$mf" : 'X\(//\)[^/]' \| \
18040          X"$mf" : 'X\(//\)$' \| \
18041          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18042 $as_echo X"$mf" |
18043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18044             s//\1/
18045             q
18046           }
18047           /^X\(\/\/\)[^/].*/{
18048             s//\1/
18049             q
18050           }
18051           /^X\(\/\/\)$/{
18052             s//\1/
18053             q
18054           }
18055           /^X\(\/\).*/{
18056             s//\1/
18057             q
18058           }
18059           s/.*/./; q'`
18060     else
18061       continue
18062     fi
18063     # Extract the definition of DEPDIR, am__include, and am__quote
18064     # from the Makefile without running `make'.
18065     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18066     test -z "$DEPDIR" && continue
18067     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18068     test -z "am__include" && continue
18069     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18070     # When using ansi2knr, U may be empty or an underscore; expand it
18071     U=`sed -n 's/^U = //p' < "$mf"`
18072     # Find all dependency output files, they are included files with
18073     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18074     # simplest approach to changing $(DEPDIR) to its actual value in the
18075     # expansion.
18076     for file in `sed -n "
18077       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18078          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18079       # Make sure the directory exists.
18080       test -f "$dirpart/$file" && continue
18081       fdir=`$as_dirname -- "$file" ||
18082 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18083          X"$file" : 'X\(//\)[^/]' \| \
18084          X"$file" : 'X\(//\)$' \| \
18085          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18086 $as_echo X"$file" |
18087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18088             s//\1/
18089             q
18090           }
18091           /^X\(\/\/\)[^/].*/{
18092             s//\1/
18093             q
18094           }
18095           /^X\(\/\/\)$/{
18096             s//\1/
18097             q
18098           }
18099           /^X\(\/\).*/{
18100             s//\1/
18101             q
18102           }
18103           s/.*/./; q'`
18104       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18105       # echo "creating $dirpart/$file"
18106       echo '# dummy' > "$dirpart/$file"
18107     done
18108   done
18109 }
18110  ;;
18111     "libtool":C)
18112
18113     # See if we are running on zsh, and set the options which allow our
18114     # commands through without removal of \ escapes.
18115     if test -n "${ZSH_VERSION+set}" ; then
18116       setopt NO_GLOB_SUBST
18117     fi
18118
18119     cfgfile="${ofile}T"
18120     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18121     $RM "$cfgfile"
18122
18123     cat <<_LT_EOF >> "$cfgfile"
18124 #! $SHELL
18125
18126 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18127 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18130 #
18131 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18132 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18133 #   Written by Gordon Matzigkeit, 1996
18134 #
18135 #   This file is part of GNU Libtool.
18136 #
18137 # GNU Libtool is free software; you can redistribute it and/or
18138 # modify it under the terms of the GNU General Public License as
18139 # published by the Free Software Foundation; either version 2 of
18140 # the License, or (at your option) any later version.
18141 #
18142 # As a special exception to the GNU General Public License,
18143 # if you distribute this file as part of a program or library that
18144 # is built using GNU Libtool, you may include this file under the
18145 # same distribution terms that you use for the rest of that program.
18146 #
18147 # GNU Libtool is distributed in the hope that it will be useful,
18148 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18149 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18150 # GNU General Public License for more details.
18151 #
18152 # You should have received a copy of the GNU General Public License
18153 # along with GNU Libtool; see the file COPYING.  If not, a copy
18154 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18155 # obtained by writing to the Free Software Foundation, Inc.,
18156 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18157
18158
18159 # The names of the tagged configurations supported by this script.
18160 available_tags="FC "
18161
18162 # ### BEGIN LIBTOOL CONFIG
18163
18164 # Which release of libtool.m4 was used?
18165 macro_version=$macro_version
18166 macro_revision=$macro_revision
18167
18168 # Whether or not to build shared libraries.
18169 build_libtool_libs=$enable_shared
18170
18171 # Whether or not to build static libraries.
18172 build_old_libs=$enable_static
18173
18174 # What type of objects to build.
18175 pic_mode=$pic_mode
18176
18177 # Whether or not to optimize for fast installation.
18178 fast_install=$enable_fast_install
18179
18180 # Shell to use when invoking shell scripts.
18181 SHELL=$lt_SHELL
18182
18183 # An echo program that protects backslashes.
18184 ECHO=$lt_ECHO
18185
18186 # The host system.
18187 host_alias=$host_alias
18188 host=$host
18189 host_os=$host_os
18190
18191 # The build system.
18192 build_alias=$build_alias
18193 build=$build
18194 build_os=$build_os
18195
18196 # A sed program that does not truncate output.
18197 SED=$lt_SED
18198
18199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18200 Xsed="\$SED -e 1s/^X//"
18201
18202 # A grep program that handles long lines.
18203 GREP=$lt_GREP
18204
18205 # An ERE matcher.
18206 EGREP=$lt_EGREP
18207
18208 # A literal string matcher.
18209 FGREP=$lt_FGREP
18210
18211 # A BSD- or MS-compatible name lister.
18212 NM=$lt_NM
18213
18214 # Whether we need soft or hard links.
18215 LN_S=$lt_LN_S
18216
18217 # What is the maximum length of a command?
18218 max_cmd_len=$max_cmd_len
18219
18220 # Object file suffix (normally "o").
18221 objext=$ac_objext
18222
18223 # Executable file suffix (normally "").
18224 exeext=$exeext
18225
18226 # whether the shell understands "unset".
18227 lt_unset=$lt_unset
18228
18229 # turn spaces into newlines.
18230 SP2NL=$lt_lt_SP2NL
18231
18232 # turn newlines into spaces.
18233 NL2SP=$lt_lt_NL2SP
18234
18235 # An object symbol dumper.
18236 OBJDUMP=$lt_OBJDUMP
18237
18238 # Method to check whether dependent libraries are shared objects.
18239 deplibs_check_method=$lt_deplibs_check_method
18240
18241 # Command to use when deplibs_check_method == "file_magic".
18242 file_magic_cmd=$lt_file_magic_cmd
18243
18244 # The archiver.
18245 AR=$lt_AR
18246 AR_FLAGS=$lt_AR_FLAGS
18247
18248 # A symbol stripping program.
18249 STRIP=$lt_STRIP
18250
18251 # Commands used to install an old-style archive.
18252 RANLIB=$lt_RANLIB
18253 old_postinstall_cmds=$lt_old_postinstall_cmds
18254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18255
18256 # Whether to use a lock for old archive extraction.
18257 lock_old_archive_extraction=$lock_old_archive_extraction
18258
18259 # A C compiler.
18260 LTCC=$lt_CC
18261
18262 # LTCC compiler flags.
18263 LTCFLAGS=$lt_CFLAGS
18264
18265 # Take the output of nm and produce a listing of raw symbols and C names.
18266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18267
18268 # Transform the output of nm in a proper C declaration.
18269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18270
18271 # Transform the output of nm in a C name address pair.
18272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18273
18274 # Transform the output of nm in a C name address pair when lib prefix is needed.
18275 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18276
18277 # The name of the directory that contains temporary libtool files.
18278 objdir=$objdir
18279
18280 # Used to examine libraries when file_magic_cmd begins with "file".
18281 MAGIC_CMD=$MAGIC_CMD
18282
18283 # Must we lock files when doing compilation?
18284 need_locks=$lt_need_locks
18285
18286 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18287 DSYMUTIL=$lt_DSYMUTIL
18288
18289 # Tool to change global to local symbols on Mac OS X.
18290 NMEDIT=$lt_NMEDIT
18291
18292 # Tool to manipulate fat objects and archives on Mac OS X.
18293 LIPO=$lt_LIPO
18294
18295 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18296 OTOOL=$lt_OTOOL
18297
18298 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18299 OTOOL64=$lt_OTOOL64
18300
18301 # Old archive suffix (normally "a").
18302 libext=$libext
18303
18304 # Shared library suffix (normally ".so").
18305 shrext_cmds=$lt_shrext_cmds
18306
18307 # The commands to extract the exported symbol list from a shared archive.
18308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18309
18310 # Variables whose values should be saved in libtool wrapper scripts and
18311 # restored at link time.
18312 variables_saved_for_relink=$lt_variables_saved_for_relink
18313
18314 # Do we need the "lib" prefix for modules?
18315 need_lib_prefix=$need_lib_prefix
18316
18317 # Do we need a version for libraries?
18318 need_version=$need_version
18319
18320 # Library versioning type.
18321 version_type=$version_type
18322
18323 # Shared library runtime path variable.
18324 runpath_var=$runpath_var
18325
18326 # Shared library path variable.
18327 shlibpath_var=$shlibpath_var
18328
18329 # Is shlibpath searched before the hard-coded library search path?
18330 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18331
18332 # Format of library name prefix.
18333 libname_spec=$lt_libname_spec
18334
18335 # List of archive names.  First name is the real one, the rest are links.
18336 # The last name is the one that the linker finds with -lNAME
18337 library_names_spec=$lt_library_names_spec
18338
18339 # The coded name of the library, if different from the real name.
18340 soname_spec=$lt_soname_spec
18341
18342 # Permission mode override for installation of shared libraries.
18343 install_override_mode=$lt_install_override_mode
18344
18345 # Command to use after installation of a shared archive.
18346 postinstall_cmds=$lt_postinstall_cmds
18347
18348 # Command to use after uninstallation of a shared archive.
18349 postuninstall_cmds=$lt_postuninstall_cmds
18350
18351 # Commands used to finish a libtool library installation in a directory.
18352 finish_cmds=$lt_finish_cmds
18353
18354 # As "finish_cmds", except a single script fragment to be evaled but
18355 # not shown.
18356 finish_eval=$lt_finish_eval
18357
18358 # Whether we should hardcode library paths into libraries.
18359 hardcode_into_libs=$hardcode_into_libs
18360
18361 # Compile-time system search path for libraries.
18362 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18363
18364 # Run-time system search path for libraries.
18365 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18366
18367 # Whether dlopen is supported.
18368 dlopen_support=$enable_dlopen
18369
18370 # Whether dlopen of programs is supported.
18371 dlopen_self=$enable_dlopen_self
18372
18373 # Whether dlopen of statically linked programs is supported.
18374 dlopen_self_static=$enable_dlopen_self_static
18375
18376 # Commands to strip libraries.
18377 old_striplib=$lt_old_striplib
18378 striplib=$lt_striplib
18379
18380
18381 # The linker used to build libraries.
18382 LD=$lt_LD
18383
18384 # How to create reloadable object files.
18385 reload_flag=$lt_reload_flag
18386 reload_cmds=$lt_reload_cmds
18387
18388 # Commands used to build an old-style archive.
18389 old_archive_cmds=$lt_old_archive_cmds
18390
18391 # A language specific compiler.
18392 CC=$lt_compiler
18393
18394 # Is the compiler the GNU compiler?
18395 with_gcc=$GCC
18396
18397 # Compiler flag to turn off builtin functions.
18398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18399
18400 # How to pass a linker flag through the compiler.
18401 wl=$lt_lt_prog_compiler_wl
18402
18403 # Additional compiler flags for building library objects.
18404 pic_flag=$lt_lt_prog_compiler_pic
18405
18406 # Compiler flag to prevent dynamic linking.
18407 link_static_flag=$lt_lt_prog_compiler_static
18408
18409 # Does compiler simultaneously support -c and -o options?
18410 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18411
18412 # Whether or not to add -lc for building shared libraries.
18413 build_libtool_need_lc=$archive_cmds_need_lc
18414
18415 # Whether or not to disallow shared libs when runtime libs are static.
18416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18417
18418 # Compiler flag to allow reflexive dlopens.
18419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18420
18421 # Compiler flag to generate shared objects directly from archives.
18422 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18423
18424 # Whether the compiler copes with passing no objects directly.
18425 compiler_needs_object=$lt_compiler_needs_object
18426
18427 # Create an old-style archive from a shared archive.
18428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18429
18430 # Create a temporary old-style archive to link instead of a shared archive.
18431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18432
18433 # Commands used to build a shared archive.
18434 archive_cmds=$lt_archive_cmds
18435 archive_expsym_cmds=$lt_archive_expsym_cmds
18436
18437 # Commands used to build a loadable module if different from building
18438 # a shared archive.
18439 module_cmds=$lt_module_cmds
18440 module_expsym_cmds=$lt_module_expsym_cmds
18441
18442 # Whether we are building with GNU ld or not.
18443 with_gnu_ld=$lt_with_gnu_ld
18444
18445 # Flag that allows shared libraries with undefined symbols to be built.
18446 allow_undefined_flag=$lt_allow_undefined_flag
18447
18448 # Flag that enforces no undefined symbols.
18449 no_undefined_flag=$lt_no_undefined_flag
18450
18451 # Flag to hardcode \$libdir into a binary during linking.
18452 # This must work even if \$libdir does not exist
18453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18454
18455 # If ld is used when linking, flag to hardcode \$libdir into a binary
18456 # during linking.  This must work even if \$libdir does not exist.
18457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18458
18459 # Whether we need a single "-rpath" flag with a separated argument.
18460 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18461
18462 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18463 # DIR into the resulting binary.
18464 hardcode_direct=$hardcode_direct
18465
18466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18467 # DIR into the resulting binary and the resulting library dependency is
18468 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18469 # library is relocated.
18470 hardcode_direct_absolute=$hardcode_direct_absolute
18471
18472 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18473 # into the resulting binary.
18474 hardcode_minus_L=$hardcode_minus_L
18475
18476 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18477 # into the resulting binary.
18478 hardcode_shlibpath_var=$hardcode_shlibpath_var
18479
18480 # Set to "yes" if building a shared library automatically hardcodes DIR
18481 # into the library and all subsequent libraries and executables linked
18482 # against it.
18483 hardcode_automatic=$hardcode_automatic
18484
18485 # Set to yes if linker adds runtime paths of dependent libraries
18486 # to runtime path list.
18487 inherit_rpath=$inherit_rpath
18488
18489 # Whether libtool must link a program against all its dependency libraries.
18490 link_all_deplibs=$link_all_deplibs
18491
18492 # Fix the shell variable \$srcfile for the compiler.
18493 fix_srcfile_path=$lt_fix_srcfile_path
18494
18495 # Set to "yes" if exported symbols are required.
18496 always_export_symbols=$always_export_symbols
18497
18498 # The commands to list exported symbols.
18499 export_symbols_cmds=$lt_export_symbols_cmds
18500
18501 # Symbols that should not be listed in the preloaded symbols.
18502 exclude_expsyms=$lt_exclude_expsyms
18503
18504 # Symbols that must always be exported.
18505 include_expsyms=$lt_include_expsyms
18506
18507 # Commands necessary for linking programs (against libraries) with templates.
18508 prelink_cmds=$lt_prelink_cmds
18509
18510 # Specify filename containing input files.
18511 file_list_spec=$lt_file_list_spec
18512
18513 # How to hardcode a shared library path into an executable.
18514 hardcode_action=$hardcode_action
18515
18516 # The directories searched by this compiler when creating a shared library.
18517 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18518
18519 # Dependencies to place before and after the objects being linked to
18520 # create a shared library.
18521 predep_objects=$lt_predep_objects
18522 postdep_objects=$lt_postdep_objects
18523 predeps=$lt_predeps
18524 postdeps=$lt_postdeps
18525
18526 # The library search path used internally by the compiler when linking
18527 # a shared library.
18528 compiler_lib_search_path=$lt_compiler_lib_search_path
18529
18530 # ### END LIBTOOL CONFIG
18531
18532 _LT_EOF
18533
18534   case $host_os in
18535   aix3*)
18536     cat <<\_LT_EOF >> "$cfgfile"
18537 # AIX sometimes has problems with the GCC collect2 program.  For some
18538 # reason, if we set the COLLECT_NAMES environment variable, the problems
18539 # vanish in a puff of smoke.
18540 if test "X${COLLECT_NAMES+set}" != Xset; then
18541   COLLECT_NAMES=
18542   export COLLECT_NAMES
18543 fi
18544 _LT_EOF
18545     ;;
18546   esac
18547
18548
18549 ltmain="$ac_aux_dir/ltmain.sh"
18550
18551
18552   # We use sed instead of cat because bash on DJGPP gets confused if
18553   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18554   # text mode, it properly converts lines to CR/LF.  This bash problem
18555   # is reportedly fixed, but why not run on old versions too?
18556   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18557     || (rm -f "$cfgfile"; exit 1)
18558
18559   case $xsi_shell in
18560   yes)
18561     cat << \_LT_EOF >> "$cfgfile"
18562
18563 # func_dirname file append nondir_replacement
18564 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18565 # otherwise set result to NONDIR_REPLACEMENT.
18566 func_dirname ()
18567 {
18568   case ${1} in
18569     */*) func_dirname_result="${1%/*}${2}" ;;
18570     *  ) func_dirname_result="${3}" ;;
18571   esac
18572 }
18573
18574 # func_basename file
18575 func_basename ()
18576 {
18577   func_basename_result="${1##*/}"
18578 }
18579
18580 # func_dirname_and_basename file append nondir_replacement
18581 # perform func_basename and func_dirname in a single function
18582 # call:
18583 #   dirname:  Compute the dirname of FILE.  If nonempty,
18584 #             add APPEND to the result, otherwise set result
18585 #             to NONDIR_REPLACEMENT.
18586 #             value returned in "$func_dirname_result"
18587 #   basename: Compute filename of FILE.
18588 #             value retuned in "$func_basename_result"
18589 # Implementation must be kept synchronized with func_dirname
18590 # and func_basename. For efficiency, we do not delegate to
18591 # those functions but instead duplicate the functionality here.
18592 func_dirname_and_basename ()
18593 {
18594   case ${1} in
18595     */*) func_dirname_result="${1%/*}${2}" ;;
18596     *  ) func_dirname_result="${3}" ;;
18597   esac
18598   func_basename_result="${1##*/}"
18599 }
18600
18601 # func_stripname prefix suffix name
18602 # strip PREFIX and SUFFIX off of NAME.
18603 # PREFIX and SUFFIX must not contain globbing or regex special
18604 # characters, hashes, percent signs, but SUFFIX may contain a leading
18605 # dot (in which case that matches only a dot).
18606 func_stripname ()
18607 {
18608   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18609   # positional parameters, so assign one to ordinary parameter first.
18610   func_stripname_result=${3}
18611   func_stripname_result=${func_stripname_result#"${1}"}
18612   func_stripname_result=${func_stripname_result%"${2}"}
18613 }
18614
18615 # func_opt_split
18616 func_opt_split ()
18617 {
18618   func_opt_split_opt=${1%%=*}
18619   func_opt_split_arg=${1#*=}
18620 }
18621
18622 # func_lo2o object
18623 func_lo2o ()
18624 {
18625   case ${1} in
18626     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18627     *)    func_lo2o_result=${1} ;;
18628   esac
18629 }
18630
18631 # func_xform libobj-or-source
18632 func_xform ()
18633 {
18634   func_xform_result=${1%.*}.lo
18635 }
18636
18637 # func_arith arithmetic-term...
18638 func_arith ()
18639 {
18640   func_arith_result=$(( $* ))
18641 }
18642
18643 # func_len string
18644 # STRING may not start with a hyphen.
18645 func_len ()
18646 {
18647   func_len_result=${#1}
18648 }
18649
18650 _LT_EOF
18651     ;;
18652   *) # Bourne compatible functions.
18653     cat << \_LT_EOF >> "$cfgfile"
18654
18655 # func_dirname file append nondir_replacement
18656 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18657 # otherwise set result to NONDIR_REPLACEMENT.
18658 func_dirname ()
18659 {
18660   # Extract subdirectory from the argument.
18661   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18662   if test "X$func_dirname_result" = "X${1}"; then
18663     func_dirname_result="${3}"
18664   else
18665     func_dirname_result="$func_dirname_result${2}"
18666   fi
18667 }
18668
18669 # func_basename file
18670 func_basename ()
18671 {
18672   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18673 }
18674
18675
18676 # func_stripname prefix suffix name
18677 # strip PREFIX and SUFFIX off of NAME.
18678 # PREFIX and SUFFIX must not contain globbing or regex special
18679 # characters, hashes, percent signs, but SUFFIX may contain a leading
18680 # dot (in which case that matches only a dot).
18681 # func_strip_suffix prefix name
18682 func_stripname ()
18683 {
18684   case ${2} in
18685     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18686     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18687   esac
18688 }
18689
18690 # sed scripts:
18691 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18692 my_sed_long_arg='1s/^-[^=]*=//'
18693
18694 # func_opt_split
18695 func_opt_split ()
18696 {
18697   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18698   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18699 }
18700
18701 # func_lo2o object
18702 func_lo2o ()
18703 {
18704   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18705 }
18706
18707 # func_xform libobj-or-source
18708 func_xform ()
18709 {
18710   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18711 }
18712
18713 # func_arith arithmetic-term...
18714 func_arith ()
18715 {
18716   func_arith_result=`expr "$@"`
18717 }
18718
18719 # func_len string
18720 # STRING may not start with a hyphen.
18721 func_len ()
18722 {
18723   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18724 }
18725
18726 _LT_EOF
18727 esac
18728
18729 case $lt_shell_append in
18730   yes)
18731     cat << \_LT_EOF >> "$cfgfile"
18732
18733 # func_append var value
18734 # Append VALUE to the end of shell variable VAR.
18735 func_append ()
18736 {
18737   eval "$1+=\$2"
18738 }
18739 _LT_EOF
18740     ;;
18741   *)
18742     cat << \_LT_EOF >> "$cfgfile"
18743
18744 # func_append var value
18745 # Append VALUE to the end of shell variable VAR.
18746 func_append ()
18747 {
18748   eval "$1=\$$1\$2"
18749 }
18750
18751 _LT_EOF
18752     ;;
18753   esac
18754
18755
18756   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18757     || (rm -f "$cfgfile"; exit 1)
18758
18759   mv -f "$cfgfile" "$ofile" ||
18760     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18761   chmod +x "$ofile"
18762
18763
18764     cat <<_LT_EOF >> "$ofile"
18765
18766 # ### BEGIN LIBTOOL TAG CONFIG: FC
18767
18768 # The linker used to build libraries.
18769 LD=$lt_LD_FC
18770
18771 # How to create reloadable object files.
18772 reload_flag=$lt_reload_flag_FC
18773 reload_cmds=$lt_reload_cmds_FC
18774
18775 # Commands used to build an old-style archive.
18776 old_archive_cmds=$lt_old_archive_cmds_FC
18777
18778 # A language specific compiler.
18779 CC=$lt_compiler_FC
18780
18781 # Is the compiler the GNU compiler?
18782 with_gcc=$GCC_FC
18783
18784 # Compiler flag to turn off builtin functions.
18785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18786
18787 # How to pass a linker flag through the compiler.
18788 wl=$lt_lt_prog_compiler_wl_FC
18789
18790 # Additional compiler flags for building library objects.
18791 pic_flag=$lt_lt_prog_compiler_pic_FC
18792
18793 # Compiler flag to prevent dynamic linking.
18794 link_static_flag=$lt_lt_prog_compiler_static_FC
18795
18796 # Does compiler simultaneously support -c and -o options?
18797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18798
18799 # Whether or not to add -lc for building shared libraries.
18800 build_libtool_need_lc=$archive_cmds_need_lc_FC
18801
18802 # Whether or not to disallow shared libs when runtime libs are static.
18803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18804
18805 # Compiler flag to allow reflexive dlopens.
18806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18807
18808 # Compiler flag to generate shared objects directly from archives.
18809 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18810
18811 # Whether the compiler copes with passing no objects directly.
18812 compiler_needs_object=$lt_compiler_needs_object_FC
18813
18814 # Create an old-style archive from a shared archive.
18815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18816
18817 # Create a temporary old-style archive to link instead of a shared archive.
18818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18819
18820 # Commands used to build a shared archive.
18821 archive_cmds=$lt_archive_cmds_FC
18822 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18823
18824 # Commands used to build a loadable module if different from building
18825 # a shared archive.
18826 module_cmds=$lt_module_cmds_FC
18827 module_expsym_cmds=$lt_module_expsym_cmds_FC
18828
18829 # Whether we are building with GNU ld or not.
18830 with_gnu_ld=$lt_with_gnu_ld_FC
18831
18832 # Flag that allows shared libraries with undefined symbols to be built.
18833 allow_undefined_flag=$lt_allow_undefined_flag_FC
18834
18835 # Flag that enforces no undefined symbols.
18836 no_undefined_flag=$lt_no_undefined_flag_FC
18837
18838 # Flag to hardcode \$libdir into a binary during linking.
18839 # This must work even if \$libdir does not exist
18840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18841
18842 # If ld is used when linking, flag to hardcode \$libdir into a binary
18843 # during linking.  This must work even if \$libdir does not exist.
18844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18845
18846 # Whether we need a single "-rpath" flag with a separated argument.
18847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18848
18849 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18850 # DIR into the resulting binary.
18851 hardcode_direct=$hardcode_direct_FC
18852
18853 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18854 # DIR into the resulting binary and the resulting library dependency is
18855 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18856 # library is relocated.
18857 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18858
18859 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18860 # into the resulting binary.
18861 hardcode_minus_L=$hardcode_minus_L_FC
18862
18863 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18864 # into the resulting binary.
18865 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18866
18867 # Set to "yes" if building a shared library automatically hardcodes DIR
18868 # into the library and all subsequent libraries and executables linked
18869 # against it.
18870 hardcode_automatic=$hardcode_automatic_FC
18871
18872 # Set to yes if linker adds runtime paths of dependent libraries
18873 # to runtime path list.
18874 inherit_rpath=$inherit_rpath_FC
18875
18876 # Whether libtool must link a program against all its dependency libraries.
18877 link_all_deplibs=$link_all_deplibs_FC
18878
18879 # Fix the shell variable \$srcfile for the compiler.
18880 fix_srcfile_path=$lt_fix_srcfile_path_FC
18881
18882 # Set to "yes" if exported symbols are required.
18883 always_export_symbols=$always_export_symbols_FC
18884
18885 # The commands to list exported symbols.
18886 export_symbols_cmds=$lt_export_symbols_cmds_FC
18887
18888 # Symbols that should not be listed in the preloaded symbols.
18889 exclude_expsyms=$lt_exclude_expsyms_FC
18890
18891 # Symbols that must always be exported.
18892 include_expsyms=$lt_include_expsyms_FC
18893
18894 # Commands necessary for linking programs (against libraries) with templates.
18895 prelink_cmds=$lt_prelink_cmds_FC
18896
18897 # Specify filename containing input files.
18898 file_list_spec=$lt_file_list_spec_FC
18899
18900 # How to hardcode a shared library path into an executable.
18901 hardcode_action=$hardcode_action_FC
18902
18903 # The directories searched by this compiler when creating a shared library.
18904 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18905
18906 # Dependencies to place before and after the objects being linked to
18907 # create a shared library.
18908 predep_objects=$lt_predep_objects_FC
18909 postdep_objects=$lt_postdep_objects_FC
18910 predeps=$lt_predeps_FC
18911 postdeps=$lt_postdeps_FC
18912
18913 # The library search path used internally by the compiler when linking
18914 # a shared library.
18915 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18916
18917 # ### END LIBTOOL TAG CONFIG: FC
18918 _LT_EOF
18919
18920  ;;
18921     "gstdint.h":C)
18922 if test "$GCC" = yes; then
18923   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18924 else
18925   echo "/* generated for $CC */" > tmp-stdint.h
18926 fi
18927
18928 sed 's/^ *//' >> tmp-stdint.h <<EOF
18929
18930   #ifndef GCC_GENERATED_STDINT_H
18931   #define GCC_GENERATED_STDINT_H 1
18932
18933   #include <sys/types.h>
18934 EOF
18935
18936 if test "$acx_cv_header_stdint" != stdint.h; then
18937   echo "#include <stddef.h>" >> tmp-stdint.h
18938 fi
18939 if test "$acx_cv_header_stdint" != stddef.h; then
18940   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18941 fi
18942
18943 sed 's/^ *//' >> tmp-stdint.h <<EOF
18944   /* glibc uses these symbols as guards to prevent redefinitions.  */
18945   #ifdef __int8_t_defined
18946   #define _INT8_T
18947   #define _INT16_T
18948   #define _INT32_T
18949   #endif
18950   #ifdef __uint32_t_defined
18951   #define _UINT32_T
18952   #endif
18953
18954 EOF
18955
18956 # ----------------- done header, emit basic int types -------------
18957 if test "$acx_cv_header_stdint" = stddef.h; then
18958   sed 's/^ *//' >> tmp-stdint.h <<EOF
18959
18960     #ifndef _UINT8_T
18961     #define _UINT8_T
18962     #ifndef __uint8_t_defined
18963     #define __uint8_t_defined
18964     #ifndef uint8_t
18965     typedef unsigned $acx_cv_type_int8_t uint8_t;
18966     #endif
18967     #endif
18968     #endif
18969
18970     #ifndef _UINT16_T
18971     #define _UINT16_T
18972     #ifndef __uint16_t_defined
18973     #define __uint16_t_defined
18974     #ifndef uint16_t
18975     typedef unsigned $acx_cv_type_int16_t uint16_t;
18976     #endif
18977     #endif
18978     #endif
18979
18980     #ifndef _UINT32_T
18981     #define _UINT32_T
18982     #ifndef __uint32_t_defined
18983     #define __uint32_t_defined
18984     #ifndef uint32_t
18985     typedef unsigned $acx_cv_type_int32_t uint32_t;
18986     #endif
18987     #endif
18988     #endif
18989
18990     #ifndef _INT8_T
18991     #define _INT8_T
18992     #ifndef __int8_t_defined
18993     #define __int8_t_defined
18994     #ifndef int8_t
18995     typedef $acx_cv_type_int8_t int8_t;
18996     #endif
18997     #endif
18998     #endif
18999
19000     #ifndef _INT16_T
19001     #define _INT16_T
19002     #ifndef __int16_t_defined
19003     #define __int16_t_defined
19004     #ifndef int16_t
19005     typedef $acx_cv_type_int16_t int16_t;
19006     #endif
19007     #endif
19008     #endif
19009
19010     #ifndef _INT32_T
19011     #define _INT32_T
19012     #ifndef __int32_t_defined
19013     #define __int32_t_defined
19014     #ifndef int32_t
19015     typedef $acx_cv_type_int32_t int32_t;
19016     #endif
19017     #endif
19018     #endif
19019 EOF
19020 elif test "$ac_cv_type_u_int32_t" = yes; then
19021   sed 's/^ *//' >> tmp-stdint.h <<EOF
19022
19023     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19024     #ifndef _INT8_T
19025     #define _INT8_T
19026     #endif
19027     #ifndef _INT16_T
19028     #define _INT16_T
19029     #endif
19030     #ifndef _INT32_T
19031     #define _INT32_T
19032     #endif
19033
19034     #ifndef _UINT8_T
19035     #define _UINT8_T
19036     #ifndef __uint8_t_defined
19037     #define __uint8_t_defined
19038     #ifndef uint8_t
19039     typedef u_int8_t uint8_t;
19040     #endif
19041     #endif
19042     #endif
19043
19044     #ifndef _UINT16_T
19045     #define _UINT16_T
19046     #ifndef __uint16_t_defined
19047     #define __uint16_t_defined
19048     #ifndef uint16_t
19049     typedef u_int16_t uint16_t;
19050     #endif
19051     #endif
19052     #endif
19053
19054     #ifndef _UINT32_T
19055     #define _UINT32_T
19056     #ifndef __uint32_t_defined
19057     #define __uint32_t_defined
19058     #ifndef uint32_t
19059     typedef u_int32_t uint32_t;
19060     #endif
19061     #endif
19062     #endif
19063 EOF
19064 else
19065   sed 's/^ *//' >> tmp-stdint.h <<EOF
19066
19067     /* Some systems have guard macros to prevent redefinitions, define them.  */
19068     #ifndef _INT8_T
19069     #define _INT8_T
19070     #endif
19071     #ifndef _INT16_T
19072     #define _INT16_T
19073     #endif
19074     #ifndef _INT32_T
19075     #define _INT32_T
19076     #endif
19077     #ifndef _UINT8_T
19078     #define _UINT8_T
19079     #endif
19080     #ifndef _UINT16_T
19081     #define _UINT16_T
19082     #endif
19083     #ifndef _UINT32_T
19084     #define _UINT32_T
19085     #endif
19086 EOF
19087 fi
19088
19089 # ------------- done basic int types, emit int64_t types ------------
19090 if test "$ac_cv_type_uint64_t" = yes; then
19091   sed 's/^ *//' >> tmp-stdint.h <<EOF
19092
19093     /* system headers have good uint64_t and int64_t */
19094     #ifndef _INT64_T
19095     #define _INT64_T
19096     #endif
19097     #ifndef _UINT64_T
19098     #define _UINT64_T
19099     #endif
19100 EOF
19101 elif test "$ac_cv_type_u_int64_t" = yes; then
19102   sed 's/^ *//' >> tmp-stdint.h <<EOF
19103
19104     /* system headers have an u_int64_t (and int64_t) */
19105     #ifndef _INT64_T
19106     #define _INT64_T
19107     #endif
19108     #ifndef _UINT64_T
19109     #define _UINT64_T
19110     #ifndef __uint64_t_defined
19111     #define __uint64_t_defined
19112     #ifndef uint64_t
19113     typedef u_int64_t uint64_t;
19114     #endif
19115     #endif
19116     #endif
19117 EOF
19118 elif test -n "$acx_cv_type_int64_t"; then
19119   sed 's/^ *//' >> tmp-stdint.h <<EOF
19120
19121     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19122     #ifndef _INT64_T
19123     #define _INT64_T
19124     #ifndef int64_t
19125     typedef $acx_cv_type_int64_t int64_t;
19126     #endif
19127     #endif
19128     #ifndef _UINT64_T
19129     #define _UINT64_T
19130     #ifndef __uint64_t_defined
19131     #define __uint64_t_defined
19132     #ifndef uint64_t
19133     typedef unsigned $acx_cv_type_int64_t uint64_t;
19134     #endif
19135     #endif
19136     #endif
19137 EOF
19138 else
19139   sed 's/^ *//' >> tmp-stdint.h <<EOF
19140
19141     /* some common heuristics for int64_t, using compiler-specific tests */
19142     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19143     #ifndef _INT64_T
19144     #define _INT64_T
19145     #ifndef __int64_t_defined
19146     #ifndef int64_t
19147     typedef long long int64_t;
19148     #endif
19149     #endif
19150     #endif
19151     #ifndef _UINT64_T
19152     #define _UINT64_T
19153     #ifndef uint64_t
19154     typedef unsigned long long uint64_t;
19155     #endif
19156     #endif
19157
19158     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19159     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19160        does not implement __extension__.  But that compiler doesn't define
19161        __GNUC_MINOR__.  */
19162     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19163     # define __extension__
19164     # endif
19165
19166     # ifndef _INT64_T
19167     # define _INT64_T
19168     # ifndef int64_t
19169     __extension__ typedef long long int64_t;
19170     # endif
19171     # endif
19172     # ifndef _UINT64_T
19173     # define _UINT64_T
19174     # ifndef uint64_t
19175     __extension__ typedef unsigned long long uint64_t;
19176     # endif
19177     # endif
19178
19179     #elif !defined __STRICT_ANSI__
19180     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19181
19182     #  ifndef _INT64_T
19183     #  define _INT64_T
19184     #  ifndef int64_t
19185     typedef __int64 int64_t;
19186     #  endif
19187     #  endif
19188     #  ifndef _UINT64_T
19189     #  define _UINT64_T
19190     #  ifndef uint64_t
19191     typedef unsigned __int64 uint64_t;
19192     #  endif
19193     #  endif
19194     # endif /* compiler */
19195
19196     #endif /* ANSI version */
19197 EOF
19198 fi
19199
19200 # ------------- done int64_t types, emit intptr types ------------
19201 if test "$ac_cv_type_uintptr_t" != yes; then
19202   sed 's/^ *//' >> tmp-stdint.h <<EOF
19203
19204     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19205     #ifndef __uintptr_t_defined
19206     #ifndef uintptr_t
19207     typedef u$acx_cv_type_intptr_t uintptr_t;
19208     #endif
19209     #endif
19210     #ifndef __intptr_t_defined
19211     #ifndef intptr_t
19212     typedef $acx_cv_type_intptr_t  intptr_t;
19213     #endif
19214     #endif
19215 EOF
19216 fi
19217
19218 # ------------- done intptr types, emit int_least types ------------
19219 if test "$ac_cv_type_int_least32_t" != yes; then
19220   sed 's/^ *//' >> tmp-stdint.h <<EOF
19221
19222     /* Define int_least types */
19223     typedef int8_t     int_least8_t;
19224     typedef int16_t    int_least16_t;
19225     typedef int32_t    int_least32_t;
19226     #ifdef _INT64_T
19227     typedef int64_t    int_least64_t;
19228     #endif
19229
19230     typedef uint8_t    uint_least8_t;
19231     typedef uint16_t   uint_least16_t;
19232     typedef uint32_t   uint_least32_t;
19233     #ifdef _UINT64_T
19234     typedef uint64_t   uint_least64_t;
19235     #endif
19236 EOF
19237 fi
19238
19239 # ------------- done intptr types, emit int_fast types ------------
19240 if test "$ac_cv_type_int_fast32_t" != yes; then
19241       sed 's/^ *//' >> tmp-stdint.h <<EOF
19242
19243     /* Define int_fast types.  short is often slow */
19244     typedef int8_t       int_fast8_t;
19245     typedef int          int_fast16_t;
19246     typedef int32_t      int_fast32_t;
19247     #ifdef _INT64_T
19248     typedef int64_t      int_fast64_t;
19249     #endif
19250
19251     typedef uint8_t      uint_fast8_t;
19252     typedef unsigned int uint_fast16_t;
19253     typedef uint32_t     uint_fast32_t;
19254     #ifdef _UINT64_T
19255     typedef uint64_t     uint_fast64_t;
19256     #endif
19257 EOF
19258 fi
19259
19260 if test "$ac_cv_type_uintmax_t" != yes; then
19261   sed 's/^ *//' >> tmp-stdint.h <<EOF
19262
19263     /* Define intmax based on what we found */
19264     #ifndef intmax_t
19265     #ifdef _INT64_T
19266     typedef int64_t       intmax_t;
19267     #else
19268     typedef long          intmax_t;
19269     #endif
19270     #endif
19271     #ifndef uintmax_t
19272     #ifdef _UINT64_T
19273     typedef uint64_t      uintmax_t;
19274     #else
19275     typedef unsigned long uintmax_t;
19276     #endif
19277     #endif
19278 EOF
19279 fi
19280
19281 sed 's/^ *//' >> tmp-stdint.h <<EOF
19282
19283   #endif /* GCC_GENERATED_STDINT_H */
19284 EOF
19285
19286 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19287   rm -f tmp-stdint.h
19288 else
19289   mv -f tmp-stdint.h gstdint.h
19290 fi
19291
19292  ;;
19293
19294   esac
19295 done # for ac_tag
19296
19297
19298 as_fn_exit 0
19299 _ACEOF
19300 ac_clean_files=$ac_clean_files_save
19301
19302 test $ac_write_fail = 0 ||
19303   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19304
19305
19306 # configure is writing to config.log, and then calls config.status.
19307 # config.status does its own redirection, appending to config.log.
19308 # Unfortunately, on DOS this fails, as config.log is still kept open
19309 # by configure, so config.status won't be able to write to it; its
19310 # output is simply discarded.  So we exec the FD to /dev/null,
19311 # effectively closing config.log, so it can be properly (re)opened and
19312 # appended to by config.status.  When coming back to configure, we
19313 # need to make the FD available again.
19314 if test "$no_create" != yes; then
19315   ac_cs_success=:
19316   ac_config_status_args=
19317   test "$silent" = yes &&
19318     ac_config_status_args="$ac_config_status_args --quiet"
19319   exec 5>/dev/null
19320   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19321   exec 5>>config.log
19322   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19323   # would make configure fail if this is the last instruction.
19324   $ac_cs_success || as_fn_exit $?
19325 fi
19326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19327   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19329 fi
19330