]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/gcclibs/libgomp/configure
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / gcclibs / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='GNU OpenMP Runtime Library'
418 PACKAGE_TARNAME='libgomp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421 PACKAGE_BUGREPORT=''
422
423 # Factoring default headers for most tests.
424 ac_includes_default="\
425 #include <stdio.h>
426 #if HAVE_SYS_TYPES_H
427 # include <sys/types.h>
428 #endif
429 #if HAVE_SYS_STAT_H
430 # include <sys/stat.h>
431 #endif
432 #if STDC_HEADERS
433 # include <stdlib.h>
434 # include <stddef.h>
435 #else
436 # if HAVE_STDLIB_H
437 #  include <stdlib.h>
438 # endif
439 #endif
440 #if HAVE_STRING_H
441 # if !STDC_HEADERS && HAVE_MEMORY_H
442 #  include <memory.h>
443 # endif
444 # include <string.h>
445 #endif
446 #if HAVE_STRINGS_H
447 # include <strings.h>
448 #endif
449 #if HAVE_INTTYPES_H
450 # include <inttypes.h>
451 #else
452 # if HAVE_STDINT_H
453 #  include <stdint.h>
454 # endif
455 #endif
456 #if HAVE_UNISTD_H
457 # include <unistd.h>
458 #endif"
459
460 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
461 ac_subst_files=''
462
463 # Initialize some variables set by options.
464 ac_init_help=
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 cache_file=/dev/null
469 exec_prefix=NONE
470 no_create=
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 verbose=
480 x_includes=NONE
481 x_libraries=NONE
482
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
500
501 ac_prev=
502 for ac_option
503 do
504   # If the previous option needs an argument, assign it.
505   if test -n "$ac_prev"; then
506     eval "$ac_prev=\$ac_option"
507     ac_prev=
508     continue
509   fi
510
511   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
512
513   # Accept the important Cygnus configure options, so we can diagnose typos.
514
515   case $ac_option in
516
517   -bindir | --bindir | --bindi | --bind | --bin | --bi)
518     ac_prev=bindir ;;
519   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520     bindir=$ac_optarg ;;
521
522   -build | --build | --buil | --bui | --bu)
523     ac_prev=build_alias ;;
524   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525     build_alias=$ac_optarg ;;
526
527   -cache-file | --cache-file | --cache-fil | --cache-fi \
528   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529     ac_prev=cache_file ;;
530   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532     cache_file=$ac_optarg ;;
533
534   --config-cache | -C)
535     cache_file=config.cache ;;
536
537   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538     ac_prev=datadir ;;
539   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540   | --da=*)
541     datadir=$ac_optarg ;;
542
543   -disable-* | --disable-*)
544     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545     # Reject names that are not valid shell variable names.
546     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548    { (exit 1); exit 1; }; }
549     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550     eval "enable_$ac_feature=no" ;;
551
552   -enable-* | --enable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     case $ac_option in
560       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561       *) ac_optarg=yes ;;
562     esac
563     eval "enable_$ac_feature='$ac_optarg'" ;;
564
565   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567   | --exec | --exe | --ex)
568     ac_prev=exec_prefix ;;
569   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571   | --exec=* | --exe=* | --ex=*)
572     exec_prefix=$ac_optarg ;;
573
574   -gas | --gas | --ga | --g)
575     # Obsolete; use --with-gas.
576     with_gas=yes ;;
577
578   -help | --help | --hel | --he | -h)
579     ac_init_help=long ;;
580   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581     ac_init_help=recursive ;;
582   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583     ac_init_help=short ;;
584
585   -host | --host | --hos | --ho)
586     ac_prev=host_alias ;;
587   -host=* | --host=* | --hos=* | --ho=*)
588     host_alias=$ac_optarg ;;
589
590   -includedir | --includedir | --includedi | --included | --include \
591   | --includ | --inclu | --incl | --inc)
592     ac_prev=includedir ;;
593   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594   | --includ=* | --inclu=* | --incl=* | --inc=*)
595     includedir=$ac_optarg ;;
596
597   -infodir | --infodir | --infodi | --infod | --info | --inf)
598     ac_prev=infodir ;;
599   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600     infodir=$ac_optarg ;;
601
602   -libdir | --libdir | --libdi | --libd)
603     ac_prev=libdir ;;
604   -libdir=* | --libdir=* | --libdi=* | --libd=*)
605     libdir=$ac_optarg ;;
606
607   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608   | --libexe | --libex | --libe)
609     ac_prev=libexecdir ;;
610   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611   | --libexe=* | --libex=* | --libe=*)
612     libexecdir=$ac_optarg ;;
613
614   -localstatedir | --localstatedir | --localstatedi | --localstated \
615   | --localstate | --localstat | --localsta | --localst \
616   | --locals | --local | --loca | --loc | --lo)
617     ac_prev=localstatedir ;;
618   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621     localstatedir=$ac_optarg ;;
622
623   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624     ac_prev=mandir ;;
625   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626     mandir=$ac_optarg ;;
627
628   -nfp | --nfp | --nf)
629     # Obsolete; use --without-fp.
630     with_fp=no ;;
631
632   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633   | --no-cr | --no-c | -n)
634     no_create=yes ;;
635
636   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638     no_recursion=yes ;;
639
640   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642   | --oldin | --oldi | --old | --ol | --o)
643     ac_prev=oldincludedir ;;
644   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647     oldincludedir=$ac_optarg ;;
648
649   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650     ac_prev=prefix ;;
651   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652     prefix=$ac_optarg ;;
653
654   -program-prefix | --program-prefix | --program-prefi | --program-pref \
655   | --program-pre | --program-pr | --program-p)
656     ac_prev=program_prefix ;;
657   -program-prefix=* | --program-prefix=* | --program-prefi=* \
658   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659     program_prefix=$ac_optarg ;;
660
661   -program-suffix | --program-suffix | --program-suffi | --program-suff \
662   | --program-suf | --program-su | --program-s)
663     ac_prev=program_suffix ;;
664   -program-suffix=* | --program-suffix=* | --program-suffi=* \
665   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666     program_suffix=$ac_optarg ;;
667
668   -program-transform-name | --program-transform-name \
669   | --program-transform-nam | --program-transform-na \
670   | --program-transform-n | --program-transform- \
671   | --program-transform | --program-transfor \
672   | --program-transfo | --program-transf \
673   | --program-trans | --program-tran \
674   | --progr-tra | --program-tr | --program-t)
675     ac_prev=program_transform_name ;;
676   -program-transform-name=* | --program-transform-name=* \
677   | --program-transform-nam=* | --program-transform-na=* \
678   | --program-transform-n=* | --program-transform-=* \
679   | --program-transform=* | --program-transfor=* \
680   | --program-transfo=* | --program-transf=* \
681   | --program-trans=* | --program-tran=* \
682   | --progr-tra=* | --program-tr=* | --program-t=*)
683     program_transform_name=$ac_optarg ;;
684
685   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686   | -silent | --silent | --silen | --sile | --sil)
687     silent=yes ;;
688
689   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690     ac_prev=sbindir ;;
691   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692   | --sbi=* | --sb=*)
693     sbindir=$ac_optarg ;;
694
695   -sharedstatedir | --sharedstatedir | --sharedstatedi \
696   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697   | --sharedst | --shareds | --shared | --share | --shar \
698   | --sha | --sh)
699     ac_prev=sharedstatedir ;;
700   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703   | --sha=* | --sh=*)
704     sharedstatedir=$ac_optarg ;;
705
706   -site | --site | --sit)
707     ac_prev=site ;;
708   -site=* | --site=* | --sit=*)
709     site=$ac_optarg ;;
710
711   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712     ac_prev=srcdir ;;
713   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714     srcdir=$ac_optarg ;;
715
716   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717   | --syscon | --sysco | --sysc | --sys | --sy)
718     ac_prev=sysconfdir ;;
719   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721     sysconfdir=$ac_optarg ;;
722
723   -target | --target | --targe | --targ | --tar | --ta | --t)
724     ac_prev=target_alias ;;
725   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726     target_alias=$ac_optarg ;;
727
728   -v | -verbose | --verbose | --verbos | --verbo | --verb)
729     verbose=yes ;;
730
731   -version | --version | --versio | --versi | --vers | -V)
732     ac_init_version=: ;;
733
734   -with-* | --with-*)
735     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736     # Reject names that are not valid shell variable names.
737     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738       { echo "$as_me: error: invalid package name: $ac_package" >&2
739    { (exit 1); exit 1; }; }
740     ac_package=`echo $ac_package| sed 's/-/_/g'`
741     case $ac_option in
742       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743       *) ac_optarg=yes ;;
744     esac
745     eval "with_$ac_package='$ac_optarg'" ;;
746
747   -without-* | --without-*)
748     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749     # Reject names that are not valid shell variable names.
750     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751       { echo "$as_me: error: invalid package name: $ac_package" >&2
752    { (exit 1); exit 1; }; }
753     ac_package=`echo $ac_package | sed 's/-/_/g'`
754     eval "with_$ac_package=no" ;;
755
756   --x)
757     # Obsolete; use --with-x.
758     with_x=yes ;;
759
760   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761   | --x-incl | --x-inc | --x-in | --x-i)
762     ac_prev=x_includes ;;
763   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765     x_includes=$ac_optarg ;;
766
767   -x-libraries | --x-libraries | --x-librarie | --x-librari \
768   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769     ac_prev=x_libraries ;;
770   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772     x_libraries=$ac_optarg ;;
773
774   -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776    { (exit 1); exit 1; }; }
777     ;;
778
779   *=*)
780     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781     # Reject names that are not valid shell variable names.
782     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784    { (exit 1); exit 1; }; }
785     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786     eval "$ac_envvar='$ac_optarg'"
787     export $ac_envvar ;;
788
789   *)
790     # FIXME: should be removed in autoconf 3.0.
791     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795     ;;
796
797   esac
798 done
799
800 if test -n "$ac_prev"; then
801   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802   { echo "$as_me: error: missing argument to $ac_option" >&2
803    { (exit 1); exit 1; }; }
804 fi
805
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
808 do
809   eval ac_val=$`echo $ac_var`
810   case $ac_val in
811     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813    { (exit 1); exit 1; }; };;
814   esac
815 done
816
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819               localstatedir libdir includedir oldincludedir infodir mandir
820 do
821   eval ac_val=$`echo $ac_var`
822   case $ac_val in
823     [\\/$]* | ?:[\\/]* ) ;;
824     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825    { (exit 1); exit 1; }; };;
826   esac
827 done
828
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
832 build=$build_alias
833 host=$host_alias
834 target=$target_alias
835
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838   if test "x$build_alias" = x; then
839     cross_compiling=maybe
840     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841     If a cross compiler is detected then cross compile mode will be used." >&2
842   elif test "x$build_alias" != "x$host_alias"; then
843     cross_compiling=yes
844   fi
845 fi
846
847 ac_tool_prefix=
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850 test "$silent" = yes && exec 6>/dev/null
851
852
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855   ac_srcdir_defaulted=yes
856   # Try the directory containing this script, then its parent.
857   ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859          X"$0" : 'X\(//\)[^/]' \| \
860          X"$0" : 'X\(//\)$' \| \
861          X"$0" : 'X\(/\)' \| \
862          .     : '\(.\)' 2>/dev/null ||
863 echo X"$0" |
864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866           /^X\(\/\/\)$/{ s//\1/; q; }
867           /^X\(\/\).*/{ s//\1/; q; }
868           s/.*/./; q'`
869   srcdir=$ac_confdir
870   if test ! -r $srcdir/$ac_unique_file; then
871     srcdir=..
872   fi
873 else
874   ac_srcdir_defaulted=no
875 fi
876 if test ! -r $srcdir/$ac_unique_file; then
877   if test "$ac_srcdir_defaulted" = yes; then
878     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879    { (exit 1); exit 1; }; }
880   else
881     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882    { (exit 1); exit 1; }; }
883   fi
884 fi
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887    { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CPP_set=${CPP+set}
902 ac_env_CPP_value=$CPP
903 ac_cv_env_CPP_set=${CPP+set}
904 ac_cv_env_CPP_value=$CPP
905 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_env_CPPFLAGS_value=$CPPFLAGS
907 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909 ac_env_FC_set=${FC+set}
910 ac_env_FC_value=$FC
911 ac_cv_env_FC_set=${FC+set}
912 ac_cv_env_FC_value=$FC
913 ac_env_FCFLAGS_set=${FCFLAGS+set}
914 ac_env_FCFLAGS_value=$FCFLAGS
915 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916 ac_cv_env_FCFLAGS_value=$FCFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921
922 #
923 # Report the --help message.
924 #
925 if test "$ac_init_help" = "long"; then
926   # Omit some internal or obsolete options to make the list less imposing.
927   # This message is too long to be a string in the A/UX 3.1 sh.
928   cat <<_ACEOF
929 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
930
931 Usage: $0 [OPTION]... [VAR=VALUE]...
932
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE.  See below for descriptions of some of the useful variables.
935
936 Defaults for the options are specified in brackets.
937
938 Configuration:
939   -h, --help              display this help and exit
940       --help=short        display options specific to this package
941       --help=recursive    display the short help of all the included packages
942   -V, --version           display version information and exit
943   -q, --quiet, --silent   do not print \`checking...' messages
944       --cache-file=FILE   cache test results in FILE [disabled]
945   -C, --config-cache      alias for \`--cache-file=config.cache'
946   -n, --no-create         do not create output files
947       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
948
949 _ACEOF
950
951   cat <<_ACEOF
952 Installation directories:
953   --prefix=PREFIX         install architecture-independent files in PREFIX
954                           [$ac_default_prefix]
955   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
956                           [PREFIX]
957
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
962
963 For better control, use the options below.
964
965 Fine tuning of the installation directories:
966   --bindir=DIR           user executables [EPREFIX/bin]
967   --sbindir=DIR          system admin executables [EPREFIX/sbin]
968   --libexecdir=DIR       program executables [EPREFIX/libexec]
969   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
970   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
971   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
972   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
973   --libdir=DIR           object code libraries [EPREFIX/lib]
974   --includedir=DIR       C header files [PREFIX/include]
975   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
976   --infodir=DIR          info documentation [PREFIX/info]
977   --mandir=DIR           man documentation [PREFIX/man]
978 _ACEOF
979
980   cat <<\_ACEOF
981
982 Program names:
983   --program-prefix=PREFIX            prepend PREFIX to installed program names
984   --program-suffix=SUFFIX            append SUFFIX to installed program names
985   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
986
987 System types:
988   --build=BUILD     configure for building on BUILD [guessed]
989   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
990   --target=TARGET   configure for building compilers for TARGET [HOST]
991 _ACEOF
992 fi
993
994 if test -n "$ac_init_help"; then
995   case $ac_init_help in
996      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
997    esac
998   cat <<\_ACEOF
999
1000 Optional Features:
1001   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003   --enable-version-specific-runtime-libs
1004                           Specify that runtime libraries should be installed
1005                           in a compiler-specific directory [default=no]
1006   --enable-generated-files-in-srcdir
1007                           put copies of generated files in source dir intended
1008                           for creating source tarballs for users without
1009                           texinfo bison or flex. [default=no]
1010   --enable-multilib       build many library versions (default)
1011   --disable-dependency-tracking  speeds up one-time build
1012   --enable-dependency-tracking   do not reject slow dependency extractors
1013   --enable-shared[=PKGS]
1014                           build shared libraries [default=yes]
1015   --enable-static[=PKGS]
1016                           build static libraries [default=yes]
1017   --enable-fast-install[=PKGS]
1018                           optimize for fast installation [default=yes]
1019   --disable-libtool-lock  avoid locking (might break parallel builds)
1020   --enable-maintainer-mode  enable make rules and dependencies not useful
1021                           (and sometimes confusing) to the casual installer
1022   --enable-linux-futex    use the Linux futex system call
1023                           [default=default]
1024   --enable-tls            Use thread-local storage [default=yes]
1025   --enable-symvers=STYLE  enables symbol versioning of the shared library
1026                           [default=yes]
1027
1028 Optional Packages:
1029   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1030   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1031   --with-pic              try to use only PIC/non-PIC objects [default=use
1032                           both]
1033   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1034
1035 Some influential environment variables:
1036   CC          C compiler command
1037   CFLAGS      C compiler flags
1038   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1039               nonstandard directory <lib dir>
1040   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041               headers in a nonstandard directory <include dir>
1042   CPP         C preprocessor
1043   FC          Fortran compiler command
1044   FCFLAGS     Fortran compiler flags
1045
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1048
1049 _ACEOF
1050 fi
1051
1052 if test "$ac_init_help" = "recursive"; then
1053   # If there are subdirs, report their specific --help.
1054   ac_popdir=`pwd`
1055   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056     test -d $ac_dir || continue
1057     ac_builddir=.
1058
1059 if test "$ac_dir" != .; then
1060   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061   # A "../" for each directory in $ac_dir_suffix.
1062   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064   ac_dir_suffix= ac_top_builddir=
1065 fi
1066
1067 case $srcdir in
1068   .)  # No --srcdir option.  We are building in place.
1069     ac_srcdir=.
1070     if test -z "$ac_top_builddir"; then
1071        ac_top_srcdir=.
1072     else
1073        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074     fi ;;
1075   [\\/]* | ?:[\\/]* )  # Absolute path.
1076     ac_srcdir=$srcdir$ac_dir_suffix;
1077     ac_top_srcdir=$srcdir ;;
1078   *) # Relative path.
1079     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1082
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1087 *)
1088   case "$ac_dir" in
1089   .) ac_abs_builddir=`pwd`;;
1090   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092   esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *)
1097   case ${ac_top_builddir}. in
1098   .) ac_abs_top_builddir=$ac_abs_builddir;;
1099   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101   esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1105 *)
1106   case $ac_srcdir in
1107   .) ac_abs_srcdir=$ac_abs_builddir;;
1108   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110   esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *)
1115   case $ac_top_srcdir in
1116   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119   esac;;
1120 esac
1121
1122     cd $ac_dir
1123     # Check for guested configure; otherwise get Cygnus style configure.
1124     if test -f $ac_srcdir/configure.gnu; then
1125       echo
1126       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1127     elif test -f $ac_srcdir/configure; then
1128       echo
1129       $SHELL $ac_srcdir/configure  --help=recursive
1130     elif test -f $ac_srcdir/configure.ac ||
1131            test -f $ac_srcdir/configure.in; then
1132       echo
1133       $ac_configure --help
1134     else
1135       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136     fi
1137     cd $ac_popdir
1138   done
1139 fi
1140
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143   cat <<\_ACEOF
1144 GNU OpenMP Runtime Library configure 1.0
1145 generated by GNU Autoconf 2.59
1146
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151   exit 0
1152 fi
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1157
1158 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159 generated by GNU Autoconf 2.59.  Invocation command line was
1160
1161   $ $0 $@
1162
1163 _ACEOF
1164 {
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1169
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1178
1179 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1180 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1183 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1184 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1185 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1186
1187 _ASUNAME
1188
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1191 do
1192   IFS=$as_save_IFS
1193   test -z "$as_dir" && as_dir=.
1194   echo "PATH: $as_dir"
1195 done
1196
1197 } >&5
1198
1199 cat >&5 <<_ACEOF
1200
1201
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1205
1206 _ACEOF
1207
1208
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1220 do
1221   for ac_arg
1222   do
1223     case $ac_arg in
1224     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226     | -silent | --silent | --silen | --sile | --sil)
1227       continue ;;
1228     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230     esac
1231     case $ac_pass in
1232     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233     2)
1234       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235       if test $ac_must_keep_next = true; then
1236         ac_must_keep_next=false # Got value, back to normal.
1237       else
1238         case $ac_arg in
1239           *=* | --config-cache | -C | -disable-* | --disable-* \
1240           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242           | -with-* | --with-* | -without-* | --without-* | --x)
1243             case "$ac_configure_args0 " in
1244               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245             esac
1246             ;;
1247           -* ) ac_must_keep_next=true ;;
1248         esac
1249       fi
1250       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251       # Get rid of the leading space.
1252       ac_sep=" "
1253       ;;
1254     esac
1255   done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log.  We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266   # Save into config.log some information that might help in debugging.
1267   {
1268     echo
1269
1270     cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275     echo
1276     # The following way of writing the cache mishandles newlines in values,
1277 {
1278   (set) 2>&1 |
1279     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280     *ac_space=\ *)
1281       sed -n \
1282         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284       ;;
1285     *)
1286       sed -n \
1287         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288       ;;
1289     esac;
1290 }
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298     echo
1299     for ac_var in $ac_subst_vars
1300     do
1301       eval ac_val=$`echo $ac_var`
1302       echo "$ac_var='"'"'$ac_val'"'"'"
1303     done | sort
1304     echo
1305
1306     if test -n "$ac_subst_files"; then
1307       cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312       echo
1313       for ac_var in $ac_subst_files
1314       do
1315         eval ac_val=$`echo $ac_var`
1316         echo "$ac_var='"'"'$ac_val'"'"'"
1317       done | sort
1318       echo
1319     fi
1320
1321     if test -s confdefs.h; then
1322       cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327       echo
1328       sed "/^$/d" confdefs.h | sort
1329       echo
1330     fi
1331     test "$ac_signal" != 0 &&
1332       echo "$as_me: caught signal $ac_signal"
1333     echo "$as_me: exit $exit_status"
1334   } >&5
1335   rm -f core *.core &&
1336   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337     exit $exit_status
1338      ' 0
1339 for ac_signal in 1 2 13 15; do
1340   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1343
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1348
1349 # Predefined preprocessor variables.
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1374
1375
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379   if test "x$prefix" != xNONE; then
1380     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381   else
1382     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383   fi
1384 fi
1385 for ac_site_file in $CONFIG_SITE; do
1386   if test -r "$ac_site_file"; then
1387     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389     sed 's/^/| /' "$ac_site_file" >&5
1390     . "$ac_site_file"
1391   fi
1392 done
1393
1394 if test -r "$cache_file"; then
1395   # Some versions of bash will fail to source /dev/null (special
1396   # files actually), so we avoid doing that.
1397   if test -f "$cache_file"; then
1398     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400     case $cache_file in
1401       [\\/]* | ?:[\\/]* ) . $cache_file;;
1402       *)                      . ./$cache_file;;
1403     esac
1404   fi
1405 else
1406   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408   >$cache_file
1409 fi
1410
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417   eval ac_new_set=\$ac_env_${ac_var}_set
1418   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419   eval ac_new_val="\$ac_env_${ac_var}_value"
1420   case $ac_old_set,$ac_new_set in
1421     set,)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,set)
1426       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428       ac_cache_corrupted=: ;;
1429     ,);;
1430     *)
1431       if test "x$ac_old_val" != "x$ac_new_val"; then
1432         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1435 echo "$as_me:   former value:  $ac_old_val" >&2;}
1436         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1437 echo "$as_me:   current value: $ac_new_val" >&2;}
1438         ac_cache_corrupted=:
1439       fi;;
1440   esac
1441   # Pass precious variables to config.status.
1442   if test "$ac_new_set" = set; then
1443     case $ac_new_val in
1444     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446     *) ac_arg=$ac_var=$ac_new_val ;;
1447     esac
1448     case " $ac_configure_args " in
1449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1450       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451     esac
1452   fi
1453 done
1454 if $ac_cache_corrupted; then
1455   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459    { (exit 1); exit 1; }; }
1460 fi
1461
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494           ac_config_headers="$ac_config_headers config.h"
1495
1496
1497 # -------
1498 # Options
1499 # -------
1500
1501 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1502 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1503  # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1504 if test "${enable_version_specific_runtime_libs+set}" = set; then
1505   enableval="$enable_version_specific_runtime_libs"
1506
1507       case "$enableval" in
1508        yes|no) ;;
1509        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1510 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1511    { (exit 1); exit 1; }; } ;;
1512                           esac
1513
1514 else
1515   enable_version_specific_runtime_libs=no
1516 fi;
1517
1518 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1519 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1520
1521 # We would like our source tree to be readonly. However when releases or
1522 # pre-releases are generated, the flex/bison generated files as well as the
1523 # various formats of manuals need to be included along with the rest of the
1524 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1525 # just that.
1526 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1527 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1528  # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1529 if test "${enable_generated_files_in_srcdir+set}" = set; then
1530   enableval="$enable_generated_files_in_srcdir"
1531
1532       case "$enableval" in
1533        yes|no) ;;
1534        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1535 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1536    { (exit 1); exit 1; }; } ;;
1537                           esac
1538
1539 else
1540   enable_generated_files_in_srcdir=no
1541 fi;
1542
1543 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1544 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1545
1546
1547 if test "$enable_generated_files_in_srcdir" = yes; then
1548   GENINSRC_TRUE=
1549   GENINSRC_FALSE='#'
1550 else
1551   GENINSRC_TRUE='#'
1552   GENINSRC_FALSE=
1553 fi
1554
1555
1556
1557 # -------
1558 # -------
1559
1560 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1561 #
1562 # You will slowly go insane if you do not grok the following fact:  when
1563 # building this library, the top-level /target/ becomes the library's /host/.
1564 #
1565 # configure then causes --target to default to --host, exactly like any
1566 # other package using autoconf.  Therefore, 'target' and 'host' will
1567 # always be the same.  This makes sense both for native and cross compilers
1568 # just think about it for a little while.  :-)
1569 #
1570 # Also, if this library is being configured as part of a cross compiler, the
1571 # top-level configure script will pass the "real" host as $with_cross_host.
1572 #
1573 # Do not delete or change the following two lines.  For why, see
1574 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1575 ac_aux_dir=
1576 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1577   if test -f $ac_dir/install-sh; then
1578     ac_aux_dir=$ac_dir
1579     ac_install_sh="$ac_aux_dir/install-sh -c"
1580     break
1581   elif test -f $ac_dir/install.sh; then
1582     ac_aux_dir=$ac_dir
1583     ac_install_sh="$ac_aux_dir/install.sh -c"
1584     break
1585   elif test -f $ac_dir/shtool; then
1586     ac_aux_dir=$ac_dir
1587     ac_install_sh="$ac_aux_dir/shtool install -c"
1588     break
1589   fi
1590 done
1591 if test -z "$ac_aux_dir"; then
1592   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1593 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1597 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1598 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1599
1600 # Make sure we can run config.sub.
1601 $ac_config_sub sun4 >/dev/null 2>&1 ||
1602   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1603 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1604    { (exit 1); exit 1; }; }
1605
1606 echo "$as_me:$LINENO: checking build system type" >&5
1607 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1608 if test "${ac_cv_build+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   ac_cv_build_alias=$build_alias
1612 test -z "$ac_cv_build_alias" &&
1613   ac_cv_build_alias=`$ac_config_guess`
1614 test -z "$ac_cv_build_alias" &&
1615   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1616 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1617    { (exit 1); exit 1; }; }
1618 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1619   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 fi
1624 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1625 echo "${ECHO_T}$ac_cv_build" >&6
1626 build=$ac_cv_build
1627 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632 echo "$as_me:$LINENO: checking host system type" >&5
1633 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1634 if test "${ac_cv_host+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   ac_cv_host_alias=$host_alias
1638 test -z "$ac_cv_host_alias" &&
1639   ac_cv_host_alias=$ac_cv_build_alias
1640 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1641   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1642 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1643    { (exit 1); exit 1; }; }
1644
1645 fi
1646 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1647 echo "${ECHO_T}$ac_cv_host" >&6
1648 host=$ac_cv_host
1649 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654 echo "$as_me:$LINENO: checking target system type" >&5
1655 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1656 if test "${ac_cv_target+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   ac_cv_target_alias=$target_alias
1660 test "x$ac_cv_target_alias" = "x" &&
1661   ac_cv_target_alias=$ac_cv_host_alias
1662 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1663   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1664 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1665    { (exit 1); exit 1; }; }
1666
1667 fi
1668 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1669 echo "${ECHO_T}$ac_cv_target" >&6
1670 target=$ac_cv_target
1671 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1674
1675
1676 # The aliases save the names the user supplied, while $host etc.
1677 # will get canonicalized.
1678 test -n "$target_alias" &&
1679   test "$program_prefix$program_suffix$program_transform_name" = \
1680     NONENONEs,x,x, &&
1681   program_prefix=${target_alias}-
1682 target_alias=${target_alias-$host_alias}
1683
1684 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1685 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1686 #  1.9.0:  minimum required version
1687 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1688 #              of other PACKAGE_* variables will, however, and there's nothing
1689 #              we can do about that; they come from AC_INIT).
1690 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1691 #            file in the top srcdir, etc, etc), so stop complaining.
1692 #  no-dist:  we don't want 'dist' and related rules.
1693 #  -Wall:  turns on all automake warnings...
1694 #  -Wno-portability:  ...except this one, since GNU make is required.
1695 #  -Wno-override: ... and this one, since we do want this in testsuite.
1696 am__api_version="1.9"
1697 # Find a good install program.  We prefer a C program (faster),
1698 # so one script is as good as another.  But avoid the broken or
1699 # incompatible versions:
1700 # SysV /etc/install, /usr/sbin/install
1701 # SunOS /usr/etc/install
1702 # IRIX /sbin/install
1703 # AIX /bin/install
1704 # AmigaOS /C/install, which installs bootblocks on floppy discs
1705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1708 # OS/2's system install, which has a completely different semantic
1709 # ./install, which can be erroneously created by make from ./install.sh.
1710 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1711 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1712 if test -z "$INSTALL"; then
1713 if test "${ac_cv_path_install+set}" = set; then
1714   echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719   IFS=$as_save_IFS
1720   test -z "$as_dir" && as_dir=.
1721   # Account for people who put trailing slashes in PATH elements.
1722 case $as_dir/ in
1723   ./ | .// | /cC/* | \
1724   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1725   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726   /usr/ucb/* ) ;;
1727   *)
1728     # OSF1 and SCO ODT 3.0 have their own names for install.
1729     # Don't use installbsd from OSF since it installs stuff as root
1730     # by default.
1731     for ac_prog in ginstall scoinst install; do
1732       for ac_exec_ext in '' $ac_executable_extensions; do
1733         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1734           if test $ac_prog = install &&
1735             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736             # AIX install.  It has an incompatible calling convention.
1737             :
1738           elif test $ac_prog = install &&
1739             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1740             # program-specific install script used by HP pwplus--don't use.
1741             :
1742           else
1743             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1744             break 3
1745           fi
1746         fi
1747       done
1748     done
1749     ;;
1750 esac
1751 done
1752
1753
1754 fi
1755   if test "${ac_cv_path_install+set}" = set; then
1756     INSTALL=$ac_cv_path_install
1757   else
1758     # As a last resort, use the slow shell script.  We don't cache a
1759     # path for INSTALL within a source directory, because that will
1760     # break other packages using the cache if that directory is
1761     # removed, or if the path is relative.
1762     INSTALL=$ac_install_sh
1763   fi
1764 fi
1765 echo "$as_me:$LINENO: result: $INSTALL" >&5
1766 echo "${ECHO_T}$INSTALL" >&6
1767
1768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1769 # It thinks the first close brace ends the variable substitution.
1770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771
1772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773
1774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775
1776 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1777 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1778 # Just in case
1779 sleep 1
1780 echo timestamp > conftest.file
1781 # Do `set' in a subshell so we don't clobber the current shell's
1782 # arguments.  Must try -L first in case configure is actually a
1783 # symlink; some systems play weird games with the mod time of symlinks
1784 # (eg FreeBSD returns the mod time of the symlink's containing
1785 # directory).
1786 if (
1787    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1788    if test "$*" = "X"; then
1789       # -L didn't work.
1790       set X `ls -t $srcdir/configure conftest.file`
1791    fi
1792    rm -f conftest.file
1793    if test "$*" != "X $srcdir/configure conftest.file" \
1794       && test "$*" != "X conftest.file $srcdir/configure"; then
1795
1796       # If neither matched, then we have a broken ls.  This can happen
1797       # if, for instance, CONFIG_SHELL is bash and it inherits a
1798       # broken ls alias from the environment.  This has actually
1799       # happened.  Such a system could not be considered "sane".
1800       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1801 alias in your environment" >&5
1802 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1803 alias in your environment" >&2;}
1804    { (exit 1); exit 1; }; }
1805    fi
1806
1807    test "$2" = conftest.file
1808    )
1809 then
1810    # Ok.
1811    :
1812 else
1813    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1814 Check your system clock" >&5
1815 echo "$as_me: error: newly created file is older than distributed files!
1816 Check your system clock" >&2;}
1817    { (exit 1); exit 1; }; }
1818 fi
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821 test "$program_prefix" != NONE &&
1822   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1823 # Use a double $ so make ignores it.
1824 test "$program_suffix" != NONE &&
1825   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1826 # Double any \ or $.  echo might interpret backslashes.
1827 # By default was `s,x,x', remove it if useless.
1828 cat <<\_ACEOF >conftest.sed
1829 s/[\\$]/&&/g;s/;s,x,x,$//
1830 _ACEOF
1831 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1832 rm conftest.sed
1833
1834 # expand $ac_aux_dir to an absolute path
1835 am_aux_dir=`cd $ac_aux_dir && pwd`
1836
1837 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1838 # Use eval to expand $SHELL
1839 if eval "$MISSING --run true"; then
1840   am_missing_run="$MISSING --run "
1841 else
1842   am_missing_run=
1843   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1844 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1845 fi
1846
1847 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1848   # We used to keeping the `.' as first argument, in order to
1849   # allow $(mkdir_p) to be used without argument.  As in
1850   #   $(mkdir_p) $(somedir)
1851   # where $(somedir) is conditionally defined.  However this is wrong
1852   # for two reasons:
1853   #  1. if the package is installed by a user who cannot write `.'
1854   #     make install will fail,
1855   #  2. the above comment should most certainly read
1856   #     $(mkdir_p) $(DESTDIR)$(somedir)
1857   #     so it does not work when $(somedir) is undefined and
1858   #     $(DESTDIR) is not.
1859   #  To support the latter case, we have to write
1860   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1861   #  so the `.' trick is pointless.
1862   mkdir_p='mkdir -p --'
1863 else
1864   # On NextStep and OpenStep, the `mkdir' command does not
1865   # recognize any option.  It will interpret all options as
1866   # directories to create, and then abort because `.' already
1867   # exists.
1868   for d in ./-p ./--version;
1869   do
1870     test -d $d && rmdir $d
1871   done
1872   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1873   if test -f "$ac_aux_dir/mkinstalldirs"; then
1874     mkdir_p='$(mkinstalldirs)'
1875   else
1876     mkdir_p='$(install_sh) -d'
1877   fi
1878 fi
1879
1880 for ac_prog in gawk mawk nawk awk
1881 do
1882   # Extract the first word of "$ac_prog", so it can be a program name with args.
1883 set dummy $ac_prog; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_AWK+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   if test -n "$AWK"; then
1890   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   for ac_exec_ext in '' $ac_executable_extensions; do
1898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899     ac_cv_prog_AWK="$ac_prog"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 AWK=$ac_cv_prog_AWK
1909 if test -n "$AWK"; then
1910   echo "$as_me:$LINENO: result: $AWK" >&5
1911 echo "${ECHO_T}$AWK" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917   test -n "$AWK" && break
1918 done
1919
1920 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1921 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1922 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1923 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   cat >conftest.make <<\_ACEOF
1927 all:
1928         @echo 'ac_maketemp="$(MAKE)"'
1929 _ACEOF
1930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1931 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1932 if test -n "$ac_maketemp"; then
1933   eval ac_cv_prog_make_${ac_make}_set=yes
1934 else
1935   eval ac_cv_prog_make_${ac_make}_set=no
1936 fi
1937 rm -f conftest.make
1938 fi
1939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1940   echo "$as_me:$LINENO: result: yes" >&5
1941 echo "${ECHO_T}yes" >&6
1942   SET_MAKE=
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946   SET_MAKE="MAKE=${MAKE-make}"
1947 fi
1948
1949 rm -rf .tst 2>/dev/null
1950 mkdir .tst 2>/dev/null
1951 if test -d .tst; then
1952   am__leading_dot=.
1953 else
1954   am__leading_dot=_
1955 fi
1956 rmdir .tst 2>/dev/null
1957
1958 # test to see if srcdir already configured
1959 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1960    test -f $srcdir/config.status; then
1961   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1962 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966 # test whether we have cygpath
1967 if test -z "$CYGPATH_W"; then
1968   if (cygpath --version) >/dev/null 2>/dev/null; then
1969     CYGPATH_W='cygpath -w'
1970   else
1971     CYGPATH_W=echo
1972   fi
1973 fi
1974
1975
1976 # Define the identity of the package.
1977  PACKAGE='libgomp'
1978  VERSION='1.0'
1979
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE "$PACKAGE"
1983 _ACEOF
1984
1985
1986 cat >>confdefs.h <<_ACEOF
1987 #define VERSION "$VERSION"
1988 _ACEOF
1989
1990 # Some tools Automake needs.
1991
1992 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1993
1994
1995 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1996
1997
1998 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1999
2000
2001 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2002
2003
2004 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2005
2006 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2007
2008 # Installed binaries are usually stripped using `strip' when the user
2009 # run `make install-strip'.  However `strip' might not be the right
2010 # tool to use in cross-compilation environments, therefore Automake
2011 # will honor the `STRIP' environment variable to overrule this program.
2012 if test "$cross_compiling" != no; then
2013   if test -n "$ac_tool_prefix"; then
2014   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}strip; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_STRIP+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$STRIP"; then
2022   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037
2038 fi
2039 fi
2040 STRIP=$ac_cv_prog_STRIP
2041 if test -n "$STRIP"; then
2042   echo "$as_me:$LINENO: result: $STRIP" >&5
2043 echo "${ECHO_T}$STRIP" >&6
2044 else
2045   echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 fi
2048
2049 fi
2050 if test -z "$ac_cv_prog_STRIP"; then
2051   ac_ct_STRIP=$STRIP
2052   # Extract the first word of "strip", so it can be a program name with args.
2053 set dummy strip; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$ac_ct_STRIP"; then
2060   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069     ac_cv_prog_ac_ct_STRIP="strip"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075
2076   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2077 fi
2078 fi
2079 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2080 if test -n "$ac_ct_STRIP"; then
2081   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2082 echo "${ECHO_T}$ac_ct_STRIP" >&6
2083 else
2084   echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2086 fi
2087
2088   STRIP=$ac_ct_STRIP
2089 else
2090   STRIP="$ac_cv_prog_STRIP"
2091 fi
2092
2093 fi
2094 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2095
2096 # We need awk for the "check" target.  The system "awk" is bad on
2097 # some platforms.
2098 # Always define AMTAR for backward compatibility.
2099
2100 AMTAR=${AMTAR-"${am_missing_run}tar"}
2101
2102 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2103
2104
2105
2106
2107
2108 # Default to --enable-multilib
2109 # Check whether --enable-multilib or --disable-multilib was given.
2110 if test "${enable_multilib+set}" = set; then
2111   enableval="$enable_multilib"
2112   case "$enableval" in
2113   yes) multilib=yes ;;
2114   no)  multilib=no ;;
2115   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2116 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2117    { (exit 1); exit 1; }; } ;;
2118  esac
2119 else
2120   multilib=yes
2121 fi;
2122
2123 # We may get other options which we leave undocumented:
2124 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2125 # See config-ml.in if you want the gory details.
2126
2127 if test "$srcdir" = "."; then
2128   if test "$with_target_subdir" != "."; then
2129     multi_basedir="$srcdir/$with_multisrctop../.."
2130   else
2131     multi_basedir="$srcdir/$with_multisrctop.."
2132   fi
2133 else
2134   multi_basedir="$srcdir/.."
2135 fi
2136
2137
2138 # Even if the default multilib is not a cross compilation,
2139 # it may be that some of the other multilibs are.
2140 if test $cross_compiling = no && test $multilib = yes \
2141    && test "x${with_multisubdir}" != x ; then
2142    cross_compiling=maybe
2143 fi
2144
2145           ac_config_commands="$ac_config_commands default-1"
2146
2147
2148 # Calculate toolexeclibdir
2149 # Also toolexecdir, though it's only used in toolexeclibdir
2150 case ${enable_version_specific_runtime_libs} in
2151   yes)
2152     # Need the gcc compiler version to know where to install libraries
2153     # and header files if --enable-version-specific-runtime-libs option
2154     # is selected.
2155     toolexecdir='$(libdir)/gcc/$(target_alias)'
2156     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2157     ;;
2158   no)
2159     if test -n "$with_cross_host" &&
2160        test x"$with_cross_host" != x"no"; then
2161       # Install a library built with a cross compiler in tooldir, not libdir.
2162       toolexecdir='$(exec_prefix)/$(target_alias)'
2163       toolexeclibdir='$(toolexecdir)/lib'
2164     else
2165       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2166       toolexeclibdir='$(libdir)'
2167     fi
2168     multi_os_directory=`$CC -print-multi-os-directory`
2169     case $multi_os_directory in
2170       .) ;; # Avoid trailing /.
2171       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2172     esac
2173     ;;
2174 esac
2175
2176
2177
2178 # Check the compiler.
2179 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2180 # We must force CC to /not/ be precious variables; otherwise
2181 # the wrong, non-multilib-adjusted value will be used in multilibs.
2182 # As a side effect, we have to subst CFLAGS ourselves.
2183
2184
2185
2186 ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -n "$ac_tool_prefix"; then
2192   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$CC"; then
2200   ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2215
2216 fi
2217 fi
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220   echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223   echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227 fi
2228 if test -z "$ac_cv_prog_CC"; then
2229   ac_ct_CC=$CC
2230   # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$ac_ct_CC"; then
2238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247     ac_cv_prog_ac_ct_CC="gcc"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253
2254 fi
2255 fi
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2260 else
2261   echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2264
2265   CC=$ac_ct_CC
2266 else
2267   CC="$ac_cv_prog_CC"
2268 fi
2269
2270 if test -z "$CC"; then
2271   if test -n "$ac_tool_prefix"; then
2272   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CC"; then
2280   ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285   IFS=$as_save_IFS
2286   test -z "$as_dir" && as_dir=.
2287   for ac_exec_ext in '' $ac_executable_extensions; do
2288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289     ac_cv_prog_CC="${ac_tool_prefix}cc"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2295
2296 fi
2297 fi
2298 CC=$ac_cv_prog_CC
2299 if test -n "$CC"; then
2300   echo "$as_me:$LINENO: result: $CC" >&5
2301 echo "${ECHO_T}$CC" >&6
2302 else
2303   echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2305 fi
2306
2307 fi
2308 if test -z "$ac_cv_prog_CC"; then
2309   ac_ct_CC=$CC
2310   # Extract the first word of "cc", so it can be a program name with args.
2311 set dummy cc; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$ac_ct_CC"; then
2318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327     ac_cv_prog_ac_ct_CC="cc"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2340 else
2341   echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2344
2345   CC=$ac_ct_CC
2346 else
2347   CC="$ac_cv_prog_CC"
2348 fi
2349
2350 fi
2351 if test -z "$CC"; then
2352   # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$CC"; then
2360   ac_cv_prog_CC="$CC" # Let the user override the test.
2361 else
2362   ac_prog_rejected=no
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371        ac_prog_rejected=yes
2372        continue
2373      fi
2374     ac_cv_prog_CC="cc"
2375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380
2381 if test $ac_prog_rejected = yes; then
2382   # We found a bogon in the path, so make sure we never use it.
2383   set dummy $ac_cv_prog_CC
2384   shift
2385   if test $# != 0; then
2386     # We chose a different compiler from the bogus one.
2387     # However, it has the same basename, so the bogon will be chosen
2388     # first if we set CC to just the basename; use the full file name.
2389     shift
2390     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391   fi
2392 fi
2393 fi
2394 fi
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397   echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2399 else
2400   echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2403
2404 fi
2405 if test -z "$CC"; then
2406   if test -n "$ac_tool_prefix"; then
2407   for ac_prog in cl
2408   do
2409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   if test -n "$CC"; then
2417   ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   for ac_exec_ext in '' $ac_executable_extensions; do
2425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2432
2433 fi
2434 fi
2435 CC=$ac_cv_prog_CC
2436 if test -n "$CC"; then
2437   echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6
2439 else
2440   echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6
2442 fi
2443
2444     test -n "$CC" && break
2445   done
2446 fi
2447 if test -z "$CC"; then
2448   ac_ct_CC=$CC
2449   for ac_prog in cl
2450 do
2451   # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$ac_ct_CC"; then
2459   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468     ac_cv_prog_ac_ct_CC="$ac_prog"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474
2475 fi
2476 fi
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6
2481 else
2482   echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2484 fi
2485
2486   test -n "$ac_ct_CC" && break
2487 done
2488
2489   CC=$ac_ct_CC
2490 fi
2491
2492 fi
2493
2494
2495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2500
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO:" \
2503      "checking for C compiler version" >&5
2504 ac_compiler=`set X $ac_compile; echo $2`
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506   (eval $ac_compiler --version </dev/null >&5) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511   (eval $ac_compiler -v </dev/null >&5) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2516   (eval $ac_compiler -V </dev/null >&5) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }
2520
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527
2528 int
2529 main ()
2530 {
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2540 # of exeext.
2541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545   (eval $ac_link_default) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   # Find the output, starting from the most likely.  This scheme is
2550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2551 # resort.
2552
2553 # Be careful to initialize this variable, since it used to be cached.
2554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2555 ac_cv_exeext=
2556 # b.out is created by i960 compilers.
2557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2558 do
2559   test -f "$ac_file" || continue
2560   case $ac_file in
2561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2562         ;;
2563     conftest.$ac_ext )
2564         # This is the source file.
2565         ;;
2566     [ab].out )
2567         # We found the default executable, but exeext='' is most
2568         # certainly right.
2569         break;;
2570     *.* )
2571         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572         # FIXME: I believe we export ac_cv_exeext for Libtool,
2573         # but it would be cool to find out if it's true.  Does anybody
2574         # maintain Libtool? --akim.
2575         export ac_cv_exeext
2576         break;;
2577     * )
2578         break;;
2579   esac
2580 done
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&2;}
2589    { (exit 77); exit 77; }; }
2590 fi
2591
2592 ac_exeext=$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_file" >&5
2594 echo "${ECHO_T}$ac_file" >&6
2595
2596 # Check the compiler produces executables we can run.  If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603   if { ac_try='./$ac_file'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609     cross_compiling=no
2610   else
2611     if test "$cross_compiling" = maybe; then
2612         cross_compiling=yes
2613     else
2614         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620    { (exit 1); exit 1; }; }
2621     fi
2622   fi
2623 fi
2624 echo "$as_me:$LINENO: result: yes" >&5
2625 echo "${ECHO_T}yes" >&6
2626
2627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check the compiler produces executables we can run.  If not, either
2630 # the compiler is broken, or we cross compile.
2631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 echo "${ECHO_T}$cross_compiling" >&6
2635
2636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639   (eval $ac_link) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; then
2643   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 # `rm'.
2647 for ac_file in conftest.exe conftest conftest.*; do
2648   test -f "$ac_file" || continue
2649   case $ac_file in
2650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652           export ac_cv_exeext
2653           break;;
2654     * ) break;;
2655   esac
2656 done
2657 else
2658   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661 See \`config.log' for more details." >&2;}
2662    { (exit 1); exit 1; }; }
2663 fi
2664
2665 rm -f conftest$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667 echo "${ECHO_T}$ac_cv_exeext" >&6
2668
2669 rm -f conftest.$ac_ext
2670 EXEEXT=$ac_cv_exeext
2671 ac_exeext=$EXEEXT
2672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674 if test "${ac_cv_objext+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.o conftest.obj
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; then
2698   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2699   case $ac_file in
2700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702        break;;
2703   esac
2704 done
2705 else
2706   echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713    { (exit 1); exit 1; }; }
2714 fi
2715
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 fi
2718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6
2720 OBJEXT=$ac_cv_objext
2721 ac_objext=$OBJEXT
2722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733
2734 int
2735 main ()
2736 {
2737 #ifndef __GNUC__
2738        choke me
2739 #endif
2740
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747   (eval $ac_compile) 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } &&
2754          { ac_try='test -z "$ac_c_werror_flag"
2755                          || test ! -s conftest.err'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; }; then
2767   ac_compiler_gnu=yes
2768 else
2769   echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 ac_compiler_gnu=no
2773 fi
2774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2776
2777 fi
2778 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2780 GCC=`test $ac_compiler_gnu = yes && echo yes`
2781 ac_test_CFLAGS=${CFLAGS+set}
2782 ac_save_CFLAGS=$CFLAGS
2783 CFLAGS="-g"
2784 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2786 if test "${ac_cv_prog_cc_g+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795
2796 int
2797 main ()
2798 {
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806   (eval $ac_compile) 2>conftest.er1
2807   ac_status=$?
2808   grep -v '^ *+' conftest.er1 >conftest.err
2809   rm -f conftest.er1
2810   cat conftest.err >&5
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); } &&
2813          { ac_try='test -z "$ac_c_werror_flag"
2814                          || test ! -s conftest.err'
2815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816   (eval $ac_try) 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; } &&
2820          { ac_try='test -s conftest.$ac_objext'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; }; then
2826   ac_cv_prog_cc_g=yes
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 ac_cv_prog_cc_g=no
2832 fi
2833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 fi
2835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2837 if test "$ac_test_CFLAGS" = set; then
2838   CFLAGS=$ac_save_CFLAGS
2839 elif test $ac_cv_prog_cc_g = yes; then
2840   if test "$GCC" = yes; then
2841     CFLAGS="-g -O2"
2842   else
2843     CFLAGS="-g"
2844   fi
2845 else
2846   if test "$GCC" = yes; then
2847     CFLAGS="-O2"
2848   else
2849     CFLAGS=
2850   fi
2851 fi
2852 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2853 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2854 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   ac_cv_prog_cc_stdc=no
2858 ac_save_CC=$CC
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h.  */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h.  */
2865 #include <stdarg.h>
2866 #include <stdio.h>
2867 #include <sys/types.h>
2868 #include <sys/stat.h>
2869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2870 struct buf { int x; };
2871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2872 static char *e (p, i)
2873      char **p;
2874      int i;
2875 {
2876   return p[i];
2877 }
2878 static char *f (char * (*g) (char **, int), char **p, ...)
2879 {
2880   char *s;
2881   va_list v;
2882   va_start (v,p);
2883   s = g (p, va_arg (v,int));
2884   va_end (v);
2885   return s;
2886 }
2887
2888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2889    function prototypes and stuff, but not '\xHH' hex character constants.
2890    These don't provoke an error unfortunately, instead are silently treated
2891    as 'x'.  The following induces an error, until -std1 is added to get
2892    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2893    array size at least.  It's necessary to write '\x00'==0 to get something
2894    that's true only with -std1.  */
2895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2896
2897 int test (int i, double x);
2898 struct s1 {int (*f) (int a);};
2899 struct s2 {int (*f) (double a);};
2900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2901 int argc;
2902 char **argv;
2903 int
2904 main ()
2905 {
2906 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2907   ;
2908   return 0;
2909 }
2910 _ACEOF
2911 # Don't try gcc -ansi; that turns off useful extensions and
2912 # breaks some systems' header files.
2913 # AIX                   -qlanglvl=ansi
2914 # Ultrix and OSF/1      -std1
2915 # HP-UX 10.20 and later -Ae
2916 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2917 # SVR4                  -Xc -D__EXTENSIONS__
2918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2919 do
2920   CC="$ac_save_CC $ac_arg"
2921   rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923   (eval $ac_compile) 2>conftest.er1
2924   ac_status=$?
2925   grep -v '^ *+' conftest.er1 >conftest.err
2926   rm -f conftest.er1
2927   cat conftest.err >&5
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); } &&
2930          { ac_try='test -z "$ac_c_werror_flag"
2931                          || test ! -s conftest.err'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; } &&
2937          { ac_try='test -s conftest.$ac_objext'
2938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939   (eval $ac_try) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; }; then
2943   ac_cv_prog_cc_stdc=$ac_arg
2944 break
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 fi
2950 rm -f conftest.err conftest.$ac_objext
2951 done
2952 rm -f conftest.$ac_ext conftest.$ac_objext
2953 CC=$ac_save_CC
2954
2955 fi
2956
2957 case "x$ac_cv_prog_cc_stdc" in
2958   x|xno)
2959     echo "$as_me:$LINENO: result: none needed" >&5
2960 echo "${ECHO_T}none needed" >&6 ;;
2961   *)
2962     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2963 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2964     CC="$CC $ac_cv_prog_cc_stdc" ;;
2965 esac
2966
2967 # Some people use a C++ compiler to compile C.  Since we use `exit',
2968 # in C++ we need to declare it.  In case someone uses the same compiler
2969 # for both compiling C and C++ we need to have the C++ compiler decide
2970 # the declaration of exit, since it's the most demanding environment.
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #ifndef __cplusplus
2973   choke me
2974 #endif
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978   (eval $ac_compile) 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -z "$ac_c_werror_flag"
2986                          || test ! -s conftest.err'
2987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988   (eval $ac_try) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; } &&
2992          { ac_try='test -s conftest.$ac_objext'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; }; then
2998   for ac_declaration in \
2999    '' \
3000    'extern "C" void std::exit (int) throw (); using std::exit;' \
3001    'extern "C" void std::exit (int); using std::exit;' \
3002    'extern "C" void exit (int) throw ();' \
3003    'extern "C" void exit (int);' \
3004    'void exit (int);'
3005 do
3006   cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 $ac_declaration
3013 #include <stdlib.h>
3014 int
3015 main ()
3016 {
3017 exit (42);
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_c_werror_flag"
3032                          || test ! -s conftest.err'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; } &&
3038          { ac_try='test -s conftest.$ac_objext'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   :
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 continue
3050 fi
3051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052   cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058 $ac_declaration
3059 int
3060 main ()
3061 {
3062 exit (42);
3063   ;
3064   return 0;
3065 }
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069   (eval $ac_compile) 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } &&
3076          { ac_try='test -z "$ac_c_werror_flag"
3077                          || test ! -s conftest.err'
3078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; } &&
3083          { ac_try='test -s conftest.$ac_objext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   break
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 fi
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096 done
3097 rm -f conftest*
3098 if test -n "$ac_declaration"; then
3099   echo '#ifdef __cplusplus' >>confdefs.h
3100   echo $ac_declaration      >>confdefs.h
3101   echo '#endif'             >>confdefs.h
3102 fi
3103
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 fi
3109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 DEPDIR="${am__leading_dot}deps"
3116
3117           ac_config_commands="$ac_config_commands depfiles"
3118
3119
3120 am_make=${MAKE-make}
3121 cat > confinc << 'END'
3122 am__doit:
3123         @echo done
3124 .PHONY: am__doit
3125 END
3126 # If we don't find an include directive, just comment out the code.
3127 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3128 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3129 am__include="#"
3130 am__quote=
3131 _am_result=none
3132 # First try GNU make style include.
3133 echo "include confinc" > confmf
3134 # We grep out `Entering directory' and `Leaving directory'
3135 # messages which can occur if `w' ends up in MAKEFLAGS.
3136 # In particular we don't look at `^make:' because GNU make might
3137 # be invoked under some other name (usually "gmake"), in which
3138 # case it prints its new name instead of `make'.
3139 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3140    am__include=include
3141    am__quote=
3142    _am_result=GNU
3143 fi
3144 # Now try BSD make style include.
3145 if test "$am__include" = "#"; then
3146    echo '.include "confinc"' > confmf
3147    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3148       am__include=.include
3149       am__quote="\""
3150       _am_result=BSD
3151    fi
3152 fi
3153
3154
3155 echo "$as_me:$LINENO: result: $_am_result" >&5
3156 echo "${ECHO_T}$_am_result" >&6
3157 rm -f confinc confmf
3158
3159 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3160 if test "${enable_dependency_tracking+set}" = set; then
3161   enableval="$enable_dependency_tracking"
3162
3163 fi;
3164 if test "x$enable_dependency_tracking" != xno; then
3165   am_depcomp="$ac_aux_dir/depcomp"
3166   AMDEPBACKSLASH='\'
3167 fi
3168
3169
3170 if test "x$enable_dependency_tracking" != xno; then
3171   AMDEP_TRUE=
3172   AMDEP_FALSE='#'
3173 else
3174   AMDEP_TRUE='#'
3175   AMDEP_FALSE=
3176 fi
3177
3178
3179
3180
3181 depcc="$CC"   am_compiler_list=
3182
3183 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3184 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3185 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3186   echo $ECHO_N "(cached) $ECHO_C" >&6
3187 else
3188   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3189   # We make a subdir and do the tests there.  Otherwise we can end up
3190   # making bogus files that we don't know about and never remove.  For
3191   # instance it was reported that on HP-UX the gcc test will end up
3192   # making a dummy file named `D' -- because `-MD' means `put the output
3193   # in D'.
3194   mkdir conftest.dir
3195   # Copy depcomp to subdir because otherwise we won't find it if we're
3196   # using a relative directory.
3197   cp "$am_depcomp" conftest.dir
3198   cd conftest.dir
3199   # We will build objects and dependencies in a subdirectory because
3200   # it helps to detect inapplicable dependency modes.  For instance
3201   # both Tru64's cc and ICC support -MD to output dependencies as a
3202   # side effect of compilation, but ICC will put the dependencies in
3203   # the current directory while Tru64 will put them in the object
3204   # directory.
3205   mkdir sub
3206
3207   am_cv_CC_dependencies_compiler_type=none
3208   if test "$am_compiler_list" = ""; then
3209      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3210   fi
3211   for depmode in $am_compiler_list; do
3212     # Setup a source with many dependencies, because some compilers
3213     # like to wrap large dependency lists on column 80 (with \), and
3214     # we should not choose a depcomp mode which is confused by this.
3215     #
3216     # We need to recreate these files for each test, as the compiler may
3217     # overwrite some of them when testing with obscure command lines.
3218     # This happens at least with the AIX C compiler.
3219     : > sub/conftest.c
3220     for i in 1 2 3 4 5 6; do
3221       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3222       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3223       # Solaris 8's {/usr,}/bin/sh.
3224       touch sub/conftst$i.h
3225     done
3226     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3227
3228     case $depmode in
3229     nosideeffect)
3230       # after this tag, mechanisms are not by side-effect, so they'll
3231       # only be used when explicitly requested
3232       if test "x$enable_dependency_tracking" = xyes; then
3233         continue
3234       else
3235         break
3236       fi
3237       ;;
3238     none) break ;;
3239     esac
3240     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3241     # mode.  It turns out that the SunPro C++ compiler does not properly
3242     # handle `-M -o', and we need to detect this.
3243     if depmode=$depmode \
3244        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3245        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3246        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3247          >/dev/null 2>conftest.err &&
3248        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3249        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3250        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3251       # icc doesn't choke on unknown options, it will just issue warnings
3252       # or remarks (even with -Werror).  So we grep stderr for any message
3253       # that says an option was ignored or not supported.
3254       # When given -MP, icc 7.0 and 7.1 complain thusly:
3255       #   icc: Command line warning: ignoring option '-M'; no argument required
3256       # The diagnosis changed in icc 8.0:
3257       #   icc: Command line remark: option '-MP' not supported
3258       if (grep 'ignoring option' conftest.err ||
3259           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3260         am_cv_CC_dependencies_compiler_type=$depmode
3261         break
3262       fi
3263     fi
3264   done
3265
3266   cd ..
3267   rm -rf conftest.dir
3268 else
3269   am_cv_CC_dependencies_compiler_type=none
3270 fi
3271
3272 fi
3273 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3274 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3275 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3276
3277
3278
3279 if
3280   test "x$enable_dependency_tracking" != xno \
3281   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3282   am__fastdepCC_TRUE=
3283   am__fastdepCC_FALSE='#'
3284 else
3285   am__fastdepCC_TRUE='#'
3286   am__fastdepCC_FALSE=
3287 fi
3288
3289
3290
3291
3292
3293
3294 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3295 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3296 # in both places for now and restore CFLAGS at the end of config.
3297 save_CFLAGS="$CFLAGS"
3298
3299 # Add -Wall -Werror if we are using GCC.
3300 if test "x$GCC" = "xyes"; then
3301   XCFLAGS="$XCFLAGS -Wall -Werror"
3302 fi
3303
3304 # Find other programs we need.
3305 if test -n "$ac_tool_prefix"; then
3306   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3307 set dummy ${ac_tool_prefix}ar; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_AR+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   if test -n "$AR"; then
3314   ac_cv_prog_AR="$AR" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323     ac_cv_prog_AR="${ac_tool_prefix}ar"
3324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329
3330 fi
3331 fi
3332 AR=$ac_cv_prog_AR
3333 if test -n "$AR"; then
3334   echo "$as_me:$LINENO: result: $AR" >&5
3335 echo "${ECHO_T}$AR" >&6
3336 else
3337   echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3339 fi
3340
3341 fi
3342 if test -z "$ac_cv_prog_AR"; then
3343   ac_ct_AR=$AR
3344   # Extract the first word of "ar", so it can be a program name with args.
3345 set dummy ar; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   if test -n "$ac_ct_AR"; then
3352   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359   for ac_exec_ext in '' $ac_executable_extensions; do
3360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361     ac_cv_prog_ac_ct_AR="ar"
3362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366 done
3367
3368 fi
3369 fi
3370 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3371 if test -n "$ac_ct_AR"; then
3372   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3373 echo "${ECHO_T}$ac_ct_AR" >&6
3374 else
3375   echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3377 fi
3378
3379   AR=$ac_ct_AR
3380 else
3381   AR="$ac_cv_prog_AR"
3382 fi
3383
3384 if test -n "$ac_tool_prefix"; then
3385   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_prog_RANLIB+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   if test -n "$RANLIB"; then
3393   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400   for ac_exec_ext in '' $ac_executable_extensions; do
3401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407 done
3408
3409 fi
3410 fi
3411 RANLIB=$ac_cv_prog_RANLIB
3412 if test -n "$RANLIB"; then
3413   echo "$as_me:$LINENO: result: $RANLIB" >&5
3414 echo "${ECHO_T}$RANLIB" >&6
3415 else
3416   echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3418 fi
3419
3420 fi
3421 if test -z "$ac_cv_prog_RANLIB"; then
3422   ac_ct_RANLIB=$RANLIB
3423   # Extract the first word of "ranlib", so it can be a program name with args.
3424 set dummy ranlib; ac_word=$2
3425 echo "$as_me:$LINENO: checking for $ac_word" >&5
3426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   if test -n "$ac_ct_RANLIB"; then
3431   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436   IFS=$as_save_IFS
3437   test -z "$as_dir" && as_dir=.
3438   for ac_exec_ext in '' $ac_executable_extensions; do
3439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440     ac_cv_prog_ac_ct_RANLIB="ranlib"
3441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442     break 2
3443   fi
3444 done
3445 done
3446
3447   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3448 fi
3449 fi
3450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3451 if test -n "$ac_ct_RANLIB"; then
3452   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3453 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3454 else
3455   echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3457 fi
3458
3459   RANLIB=$ac_ct_RANLIB
3460 else
3461   RANLIB="$ac_cv_prog_RANLIB"
3462 fi
3463
3464 # Extract the first word of "perl", so it can be a program name with args.
3465 set dummy perl; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_PERL+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   case $PERL in
3472   [\\/]* | ?:[\\/]*)
3473   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3474   ;;
3475   *)
3476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489
3490   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3491   ;;
3492 esac
3493 fi
3494 PERL=$ac_cv_path_PERL
3495
3496 if test -n "$PERL"; then
3497   echo "$as_me:$LINENO: result: $PERL" >&5
3498 echo "${ECHO_T}$PERL" >&6
3499 else
3500   echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3502 fi
3503
3504 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3505 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3506 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3507 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   cat >conftest.make <<\_ACEOF
3511 all:
3512         @echo 'ac_maketemp="$(MAKE)"'
3513 _ACEOF
3514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3515 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3516 if test -n "$ac_maketemp"; then
3517   eval ac_cv_prog_make_${ac_make}_set=yes
3518 else
3519   eval ac_cv_prog_make_${ac_make}_set=no
3520 fi
3521 rm -f conftest.make
3522 fi
3523 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3524   echo "$as_me:$LINENO: result: yes" >&5
3525 echo "${ECHO_T}yes" >&6
3526   SET_MAKE=
3527 else
3528   echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3530   SET_MAKE="MAKE=${MAKE-make}"
3531 fi
3532
3533 # Find a good install program.  We prefer a C program (faster),
3534 # so one script is as good as another.  But avoid the broken or
3535 # incompatible versions:
3536 # SysV /etc/install, /usr/sbin/install
3537 # SunOS /usr/etc/install
3538 # IRIX /sbin/install
3539 # AIX /bin/install
3540 # AmigaOS /C/install, which installs bootblocks on floppy discs
3541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3544 # OS/2's system install, which has a completely different semantic
3545 # ./install, which can be erroneously created by make from ./install.sh.
3546 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3547 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3548 if test -z "$INSTALL"; then
3549 if test "${ac_cv_path_install+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557   # Account for people who put trailing slashes in PATH elements.
3558 case $as_dir/ in
3559   ./ | .// | /cC/* | \
3560   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3561   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3562   /usr/ucb/* ) ;;
3563   *)
3564     # OSF1 and SCO ODT 3.0 have their own names for install.
3565     # Don't use installbsd from OSF since it installs stuff as root
3566     # by default.
3567     for ac_prog in ginstall scoinst install; do
3568       for ac_exec_ext in '' $ac_executable_extensions; do
3569         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3570           if test $ac_prog = install &&
3571             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3572             # AIX install.  It has an incompatible calling convention.
3573             :
3574           elif test $ac_prog = install &&
3575             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3576             # program-specific install script used by HP pwplus--don't use.
3577             :
3578           else
3579             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3580             break 3
3581           fi
3582         fi
3583       done
3584     done
3585     ;;
3586 esac
3587 done
3588
3589
3590 fi
3591   if test "${ac_cv_path_install+set}" = set; then
3592     INSTALL=$ac_cv_path_install
3593   else
3594     # As a last resort, use the slow shell script.  We don't cache a
3595     # path for INSTALL within a source directory, because that will
3596     # break other packages using the cache if that directory is
3597     # removed, or if the path is relative.
3598     INSTALL=$ac_install_sh
3599   fi
3600 fi
3601 echo "$as_me:$LINENO: result: $INSTALL" >&5
3602 echo "${ECHO_T}$INSTALL" >&6
3603
3604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3605 # It thinks the first close brace ends the variable substitution.
3606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3607
3608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3609
3610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3611
3612
3613 # See if makeinfo has been installed and is modern enough
3614 # that we can use it.
3615
3616   # Extract the first word of "makeinfo", so it can be a program name with args.
3617 set dummy makeinfo; ac_word=$2
3618 echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   if test -n "$MAKEINFO"; then
3624   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_prog_MAKEINFO="makeinfo"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640 fi
3641 fi
3642 MAKEINFO=$ac_cv_prog_MAKEINFO
3643 if test -n "$MAKEINFO"; then
3644   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3645 echo "${ECHO_T}$MAKEINFO" >&6
3646 else
3647   echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6
3649 fi
3650
3651   if test -n "$MAKEINFO"; then
3652     # Found it, now check the version.
3653     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3654 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3655 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3659                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3660
3661                     case $ac_prog_version in
3662                       '')  gcc_cv_prog_makeinfo_modern=no;;
3663                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3664                       *)   gcc_cv_prog_makeinfo_modern=no;;
3665                     esac
3666
3667 fi
3668 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3669 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3670   else
3671     gcc_cv_prog_makeinfo_modern=no
3672   fi
3673   if test $gcc_cv_prog_makeinfo_modern = no; then
3674     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3675   fi
3676
3677
3678
3679 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3680   BUILD_INFO_TRUE=
3681   BUILD_INFO_FALSE='#'
3682 else
3683   BUILD_INFO_TRUE='#'
3684   BUILD_INFO_FALSE=
3685 fi
3686
3687
3688
3689 # Configure libtool
3690
3691
3692 macro_version='2.1a'
3693 macro_revision='1.2435'
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706 ltmain="$ac_aux_dir/ltmain.sh"
3707
3708 # Set options
3709
3710 enable_dlopen=no
3711
3712
3713 enable_win32_dll=no
3714
3715
3716 # Check whether --enable-shared or --disable-shared was given.
3717 if test "${enable_shared+set}" = set; then
3718   enableval="$enable_shared"
3719   p=${PACKAGE-default}
3720     case $enableval in
3721     yes) enable_shared=yes ;;
3722     no) enable_shared=no ;;
3723     *)
3724       enable_shared=no
3725       # Look at the argument we got.  We use all the common list separators.
3726       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3727       for pkg in $enableval; do
3728         IFS="$lt_save_ifs"
3729         if test "X$pkg" = "X$p"; then
3730           enable_shared=yes
3731         fi
3732       done
3733       IFS="$lt_save_ifs"
3734       ;;
3735     esac
3736 else
3737   enable_shared=yes
3738 fi;
3739
3740
3741
3742
3743
3744
3745
3746
3747 # Check whether --enable-static or --disable-static was given.
3748 if test "${enable_static+set}" = set; then
3749   enableval="$enable_static"
3750   p=${PACKAGE-default}
3751     case $enableval in
3752     yes) enable_static=yes ;;
3753     no) enable_static=no ;;
3754     *)
3755      enable_static=no
3756       # Look at the argument we got.  We use all the common list separators.
3757       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758       for pkg in $enableval; do
3759         IFS="$lt_save_ifs"
3760         if test "X$pkg" = "X$p"; then
3761           enable_static=yes
3762         fi
3763       done
3764       IFS="$lt_save_ifs"
3765       ;;
3766     esac
3767 else
3768   enable_static=yes
3769 fi;
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779 # Check whether --with-pic or --without-pic was given.
3780 if test "${with_pic+set}" = set; then
3781   withval="$with_pic"
3782   pic_mode="$withval"
3783 else
3784   pic_mode=default
3785 fi;
3786
3787 test -z "$pic_mode" && pic_mode=default
3788
3789
3790
3791
3792
3793
3794
3795 # Check whether --enable-fast-install or --disable-fast-install was given.
3796 if test "${enable_fast_install+set}" = set; then
3797   enableval="$enable_fast_install"
3798   p=${PACKAGE-default}
3799     case $enableval in
3800     yes) enable_fast_install=yes ;;
3801     no) enable_fast_install=no ;;
3802     *)
3803       enable_fast_install=no
3804       # Look at the argument we got.  We use all the common list separators.
3805       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806       for pkg in $enableval; do
3807         IFS="$lt_save_ifs"
3808         if test "X$pkg" = "X$p"; then
3809           enable_fast_install=yes
3810         fi
3811       done
3812       IFS="$lt_save_ifs"
3813       ;;
3814     esac
3815 else
3816   enable_fast_install=yes
3817 fi;
3818
3819
3820
3821
3822
3823
3824
3825
3826 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3827 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3828 if test "${lt_cv_path_SED+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   # Loop through the user's path and test for sed and gsed.
3832 # Then use that list of sed's as ones to test for truncation.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838   for lt_ac_prog in sed gsed; do
3839     for ac_exec_ext in '' $ac_executable_extensions; do
3840       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3841         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3842       fi
3843     done
3844   done
3845 done
3846 IFS=$as_save_IFS
3847 lt_ac_max=0
3848 lt_ac_count=0
3849 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3850 # along with /bin/sed that truncates output.
3851 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3852   test ! -f $lt_ac_sed && continue
3853   cat /dev/null > conftest.in
3854   lt_ac_count=0
3855   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3856   # Check for GNU sed and select it if it is found.
3857   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3858     lt_cv_path_SED=$lt_ac_sed
3859     break
3860   fi
3861   while true; do
3862     cat conftest.in conftest.in >conftest.tmp
3863     mv conftest.tmp conftest.in
3864     cp conftest.in conftest.nl
3865     echo >>conftest.nl
3866     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3867     cmp -s conftest.out conftest.nl || break
3868     # 10000 chars as input seems more than enough
3869     test $lt_ac_count -gt 10 && break
3870     lt_ac_count=`expr $lt_ac_count + 1`
3871     if test $lt_ac_count -gt $lt_ac_max; then
3872       lt_ac_max=$lt_ac_count
3873       lt_cv_path_SED=$lt_ac_sed
3874     fi
3875   done
3876 done
3877
3878 fi
3879
3880 SED=$lt_cv_path_SED
3881
3882 echo "$as_me:$LINENO: result: $SED" >&5
3883 echo "${ECHO_T}$SED" >&6
3884
3885 test -z "$SED" && SED=sed
3886 Xsed="$SED -e 1s/^X//"
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898 echo "$as_me:$LINENO: checking for egrep" >&5
3899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3900 if test "${ac_cv_prog_egrep+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3904     then ac_cv_prog_egrep='grep -E'
3905     else ac_cv_prog_egrep='egrep'
3906     fi
3907 fi
3908 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3909 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3910  EGREP=$ac_cv_prog_egrep
3911
3912
3913 echo "$as_me:$LINENO: checking for fgrep" >&5
3914 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3915 if test "${ac_cv_prog_fgrep+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3919     then ac_cv_prog_fgrep='grep -F'
3920     else ac_cv_prog_fgrep='fgrep'
3921     fi
3922 fi
3923 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3924 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3925  FGREP=$ac_cv_prog_fgrep
3926
3927
3928 test -z "$GREP" && GREP=grep
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3949 if test "${with_gnu_ld+set}" = set; then
3950   withval="$with_gnu_ld"
3951   test "$withval" = no || with_gnu_ld=yes
3952 else
3953   with_gnu_ld=no
3954 fi;
3955 ac_prog=ld
3956 if test "$GCC" = yes; then
3957   # Check if gcc -print-prog-name=ld gives a path.
3958   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3959 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3960   case $host in
3961   *-*-mingw*)
3962     # gcc leaves a trailing carriage return which upsets mingw
3963     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3964   *)
3965     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3966   esac
3967   case $ac_prog in
3968     # Accept absolute paths.
3969     [\\/]* | ?:[\\/]*)
3970       re_direlt='/[^/][^/]*/\.\./'
3971       # Canonicalize the pathname of ld
3972       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3973       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3974         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3975       done
3976       test -z "$LD" && LD="$ac_prog"
3977       ;;
3978   "")
3979     # If it fails, then pretend we aren't using GCC.
3980     ac_prog=ld
3981     ;;
3982   *)
3983     # If it is relative, then search for the first ld in PATH.
3984     with_gnu_ld=unknown
3985     ;;
3986   esac
3987 elif test "$with_gnu_ld" = yes; then
3988   echo "$as_me:$LINENO: checking for GNU ld" >&5
3989 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3990 else
3991   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3992 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3993 fi
3994 if test "${lt_cv_path_LD+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   if test -z "$LD"; then
3998   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3999   for ac_dir in $PATH; do
4000     IFS="$lt_save_ifs"
4001     test -z "$ac_dir" && ac_dir=.
4002     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4003       lt_cv_path_LD="$ac_dir/$ac_prog"
4004       # Check to see if the program is GNU ld.  I'd rather use --version,
4005       # but apparently some variants of GNU ld only accept -v.
4006       # Break only if it was the GNU/non-GNU ld that we prefer.
4007       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4008       *GNU* | *'with BFD'*)
4009         test "$with_gnu_ld" != no && break
4010         ;;
4011       *)
4012         test "$with_gnu_ld" != yes && break
4013         ;;
4014       esac
4015     fi
4016   done
4017   IFS="$lt_save_ifs"
4018 else
4019   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4020 fi
4021 fi
4022
4023 LD="$lt_cv_path_LD"
4024 if test -n "$LD"; then
4025   echo "$as_me:$LINENO: result: $LD" >&5
4026 echo "${ECHO_T}$LD" >&6
4027 else
4028   echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6
4030 fi
4031 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4032 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4033    { (exit 1); exit 1; }; }
4034 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4035 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4036 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4040 case `$LD -v 2>&1 </dev/null` in
4041 *GNU* | *'with BFD'*)
4042   lt_cv_prog_gnu_ld=yes
4043   ;;
4044 *)
4045   lt_cv_prog_gnu_ld=no
4046   ;;
4047 esac
4048 fi
4049 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4050 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4051 with_gnu_ld=$lt_cv_prog_gnu_ld
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4063 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4064 if test "${lt_cv_path_NM+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   if test -n "$NM"; then
4068   # Let the user override the test.
4069   lt_cv_path_NM="$NM"
4070 else
4071   lt_nm_to_check="${ac_tool_prefix}nm"
4072   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4073     lt_nm_to_check="$lt_nm_to_check nm"
4074   fi
4075   for lt_tmp_nm in $lt_nm_to_check; do
4076     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4077     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4078       IFS="$lt_save_ifs"
4079       test -z "$ac_dir" && ac_dir=.
4080       tmp_nm="$ac_dir/$lt_tmp_nm"
4081       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4082         # Check to see if the nm accepts a BSD-compat flag.
4083         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4084         #   nm: unknown option "B" ignored
4085         # Tru64's nm complains that /dev/null is an invalid object file
4086         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4087         */dev/null* | *'Invalid file or object type'*)
4088           lt_cv_path_NM="$tmp_nm -B"
4089           break
4090           ;;
4091         *)
4092           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4093           */dev/null*)
4094             lt_cv_path_NM="$tmp_nm -p"
4095             break
4096             ;;
4097           *)
4098             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4099             continue # so that we can try to find one that supports BSD flags
4100             ;;
4101           esac
4102           ;;
4103         esac
4104       fi
4105     done
4106     IFS="$lt_save_ifs"
4107   done
4108   : ${lt_cv_path_NM=no}
4109 fi
4110 fi
4111 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4112 echo "${ECHO_T}$lt_cv_path_NM" >&6
4113 if test "$lt_cv_path_NM" != "no"; then
4114   NM="$lt_cv_path_NM"
4115 else
4116   # Didn't find any BSD compatible name lister, look for dumpbin.
4117   if test -n "$ac_tool_prefix"; then
4118   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4119   do
4120     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   if test -n "$DUMPBIN"; then
4128   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135   for ac_exec_ext in '' $ac_executable_extensions; do
4136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142 done
4143
4144 fi
4145 fi
4146 DUMPBIN=$ac_cv_prog_DUMPBIN
4147 if test -n "$DUMPBIN"; then
4148   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4149 echo "${ECHO_T}$DUMPBIN" >&6
4150 else
4151   echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4153 fi
4154
4155     test -n "$DUMPBIN" && break
4156   done
4157 fi
4158 if test -z "$DUMPBIN"; then
4159   ac_ct_DUMPBIN=$DUMPBIN
4160   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4161 do
4162   # Extract the first word of "$ac_prog", so it can be a program name with args.
4163 set dummy $ac_prog; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   if test -n "$ac_ct_DUMPBIN"; then
4170   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_exec_ext in '' $ac_executable_extensions; do
4178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184 done
4185
4186 fi
4187 fi
4188 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4189 if test -n "$ac_ct_DUMPBIN"; then
4190   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4191 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4192 else
4193   echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4195 fi
4196
4197   test -n "$ac_ct_DUMPBIN" && break
4198 done
4199 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4200
4201   DUMPBIN=$ac_ct_DUMPBIN
4202 fi
4203
4204
4205   if test "$DUMPBIN" != ":"; then
4206     NM="$DUMPBIN"
4207   fi
4208 fi
4209 test -z "$NM" && NM=nm
4210
4211
4212
4213
4214
4215
4216 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4217 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4218 if test "${lt_cv_nm_interface+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   lt_cv_nm_interface="BSD nm"
4222   echo "int some_variable = 0;" > conftest.$ac_ext
4223   (eval echo "\"\$as_me:4223: $ac_compile\"" >&5)
4224   (eval "$ac_compile" 2>conftest.err)
4225   cat conftest.err >&5
4226   (eval echo "\"\$as_me:4226: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4227   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4228   cat conftest.err >&5
4229   (eval echo "\"\$as_me:4229: output\"" >&5)
4230   cat conftest.out >&5
4231   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4232     lt_cv_nm_interface="MS dumpbin"
4233   fi
4234   rm -f conftest*
4235 fi
4236 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4237 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4238
4239 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4240 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4241 LN_S=$as_ln_s
4242 if test "$LN_S" = "ln -s"; then
4243   echo "$as_me:$LINENO: result: yes" >&5
4244 echo "${ECHO_T}yes" >&6
4245 else
4246   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4247 echo "${ECHO_T}no, using $LN_S" >&6
4248 fi
4249
4250 # find the maximum length of command line arguments
4251 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4252 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4253 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256     i=0
4257   teststring="ABCD"
4258
4259   case $build_os in
4260   msdosdjgpp*)
4261     # On DJGPP, this test can blow up pretty badly due to problems in libc
4262     # (any single argument exceeding 2000 bytes causes a buffer overrun
4263     # during glob expansion).  Even if it were fixed, the result of this
4264     # check would be larger than it should be.
4265     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4266     ;;
4267
4268   gnu*)
4269     # Under GNU Hurd, this test is not required because there is
4270     # no limit to the length of command line arguments.
4271     # Libtool will interpret -1 as no limit whatsoever
4272     lt_cv_sys_max_cmd_len=-1;
4273     ;;
4274
4275   cygwin* | mingw*)
4276     # On Win9x/ME, this test blows up -- it succeeds, but takes
4277     # about 5 minutes as the teststring grows exponentially.
4278     # Worse, since 9x/ME are not pre-emptively multitasking,
4279     # you end up with a "frozen" computer, even though with patience
4280     # the test eventually succeeds (with a max line length of 256k).
4281     # Instead, let's just punt: use the minimum linelength reported by
4282     # all of the supported platforms: 8192 (on NT/2K/XP).
4283     lt_cv_sys_max_cmd_len=8192;
4284     ;;
4285
4286   amigaos*)
4287     # On AmigaOS with pdksh, this test takes hours, literally.
4288     # So we just punt and use a minimum line length of 8192.
4289     lt_cv_sys_max_cmd_len=8192;
4290     ;;
4291
4292   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4293     # This has been around since 386BSD, at least.  Likely further.
4294     if test -x /sbin/sysctl; then
4295       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4296     elif test -x /usr/sbin/sysctl; then
4297       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4298     else
4299       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4300     fi
4301     # And add a safety zone
4302     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4303     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4304     ;;
4305
4306   interix*)
4307     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4308     lt_cv_sys_max_cmd_len=196608
4309     ;;
4310
4311   osf*)
4312     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4313     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4314     # nice to cause kernel panics so lets avoid the loop below.
4315     # First set a reasonable default.
4316     lt_cv_sys_max_cmd_len=16384
4317     #
4318     if test -x /sbin/sysconfig; then
4319       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4320         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4321       esac
4322     fi
4323     ;;
4324   sco3.2v5*)
4325     lt_cv_sys_max_cmd_len=102400
4326     ;;
4327   sysv5* | sco5v6* | sysv4.2uw2*)
4328     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4329     if test -n "$kargmax"; then
4330       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4331     else
4332       lt_cv_sys_max_cmd_len=32768
4333     fi
4334     ;;
4335   *)
4336     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4337     if test -n $lt_cv_sys_max_cmd_len; then
4338       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4339       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4340     else
4341       # Make teststring a little bigger before we do anything with it.
4342       # a 1K string should be a reasonable start.
4343       for i in 1 2 3 4 5 6 7 8 ; do
4344         teststring=$teststring$teststring
4345       done
4346       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4347       # If test is not a shell built-in, we'll probably end up computing a
4348       # maximum length that is only half of the actual maximum length, but
4349       # we can't tell.
4350       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4351                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4352               test $i != 17 # 1/2 MB should be enough
4353       do
4354         i=`expr $i + 1`
4355         teststring=$teststring$teststring
4356       done
4357       # Only check the string length outside the loop.
4358       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4359       teststring=
4360       # Add a significant safety factor because C++ compilers can tack on
4361       # massive amounts of additional arguments before passing them to the
4362       # linker.  It appears as though 1/2 is a usable value.
4363       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4364     fi
4365     ;;
4366   esac
4367
4368 fi
4369
4370 if test -n $lt_cv_sys_max_cmd_len ; then
4371   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4372 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4373 else
4374   echo "$as_me:$LINENO: result: none" >&5
4375 echo "${ECHO_T}none" >&6
4376 fi
4377 max_cmd_len=$lt_cv_sys_max_cmd_len
4378
4379
4380
4381
4382
4383
4384
4385 : ${CP="cp -f"}
4386 : ${MV="mv -f"}
4387 : ${RM="rm -f"}
4388
4389 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4390 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4391 # Try some XSI features
4392 xsi_shell=no
4393 ( _lt_dummy="a/b/c"
4394   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4395       = c,a/b,, ) >/dev/null 2>&1 \
4396   && xsi_shell=yes
4397 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4398 echo "${ECHO_T}$xsi_shell" >&6
4399
4400
4401 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4402 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4403 lt_shell_append=no
4404 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4405     >/dev/null 2>&1 \
4406   && lt_shell_append=yes
4407 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4408 echo "${ECHO_T}$lt_shell_append" >&6
4409
4410
4411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4412   lt_unset=unset
4413 else
4414   lt_unset=false
4415 fi
4416
4417
4418
4419
4420
4421 # test EBCDIC or ASCII
4422 case `echo X|tr X '\101'` in
4423  A) # ASCII based system
4424     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4425   lt_SP2NL='tr \040 \012'
4426   lt_NL2SP='tr \015\012 \040\040'
4427   ;;
4428  *) # EBCDIC based system
4429   lt_SP2NL='tr \100 \n'
4430   lt_NL2SP='tr \r\n \100\100'
4431   ;;
4432 esac
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4443 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4444 if test "${lt_cv_ld_reload_flag+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   lt_cv_ld_reload_flag='-r'
4448 fi
4449 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4450 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4451 reload_flag=$lt_cv_ld_reload_flag
4452 case $reload_flag in
4453 "" | " "*) ;;
4454 *) reload_flag=" $reload_flag" ;;
4455 esac
4456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4457 case $host_os in
4458   darwin*)
4459     if test "$GCC" = yes; then
4460       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4461     else
4462       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4463     fi
4464     ;;
4465 esac
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4477 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4478 if test "${lt_cv_deplibs_check_method+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   lt_cv_file_magic_cmd='$MAGIC_CMD'
4482 lt_cv_file_magic_test_file=
4483 lt_cv_deplibs_check_method='unknown'
4484 # Need to set the preceding variable on all platforms that support
4485 # interlibrary dependencies.
4486 # 'none' -- dependencies not supported.
4487 # `unknown' -- same as none, but documents that we really don't know.
4488 # 'pass_all' -- all dependencies passed with no checks.
4489 # 'test_compile' -- check by making test program.
4490 # 'file_magic [[regex]]' -- check by looking for files in library path
4491 # which responds to the $file_magic_cmd with a given extended regex.
4492 # If you have `file' or equivalent on your system and you're not sure
4493 # whether `pass_all' will *always* work, you probably want this one.
4494
4495 case $host_os in
4496 aix[4-9]*)
4497   lt_cv_deplibs_check_method=pass_all
4498   ;;
4499
4500 beos*)
4501   lt_cv_deplibs_check_method=pass_all
4502   ;;
4503
4504 bsdi[45]*)
4505   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4506   lt_cv_file_magic_cmd='/usr/bin/file -L'
4507   lt_cv_file_magic_test_file=/shlib/libc.so
4508   ;;
4509
4510 cygwin*)
4511   # func_win32_libid is a shell function defined in ltmain.sh
4512   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4513   lt_cv_file_magic_cmd='func_win32_libid'
4514   ;;
4515
4516 mingw* | pw32*)
4517   # Base MSYS/MinGW do not provide the 'file' command needed by
4518   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4519   # unless we find 'file', for example because we are cross-compiling.
4520   if ( file / ) >/dev/null 2>&1; then
4521     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4522     lt_cv_file_magic_cmd='func_win32_libid'
4523   else
4524     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4525     lt_cv_file_magic_cmd='$OBJDUMP -f'
4526   fi
4527   ;;
4528
4529 darwin* | rhapsody*)
4530   lt_cv_deplibs_check_method=pass_all
4531   ;;
4532
4533 freebsd* | dragonfly*)
4534   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4535     case $host_cpu in
4536     i*86 )
4537       # Not sure whether the presence of OpenBSD here was a mistake.
4538       # Let's accept both of them until this is cleared up.
4539       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4540       lt_cv_file_magic_cmd=/usr/bin/file
4541       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4542       ;;
4543     esac
4544   else
4545     lt_cv_deplibs_check_method=pass_all
4546   fi
4547   ;;
4548
4549 gnu*)
4550   lt_cv_deplibs_check_method=pass_all
4551   ;;
4552
4553 hpux10.20* | hpux11*)
4554   lt_cv_file_magic_cmd=/usr/bin/file
4555   case $host_cpu in
4556   ia64*)
4557     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4558     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4559     ;;
4560   hppa*64*)
4561     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4562     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4563     ;;
4564   *)
4565     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4566     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4567     ;;
4568   esac
4569   ;;
4570
4571 interix[3-9]*)
4572   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4573   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4574   ;;
4575
4576 irix5* | irix6* | nonstopux*)
4577   case $LD in
4578   *-32|*"-32 ") libmagic=32-bit;;
4579   *-n32|*"-n32 ") libmagic=N32;;
4580   *-64|*"-64 ") libmagic=64-bit;;
4581   *) libmagic=never-match;;
4582   esac
4583   lt_cv_deplibs_check_method=pass_all
4584   ;;
4585
4586 # This must be Linux ELF.
4587 linux* | k*bsd*-gnu)
4588   lt_cv_deplibs_check_method=pass_all
4589   ;;
4590
4591 netbsd*)
4592   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4593     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4594   else
4595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4596   fi
4597   ;;
4598
4599 newos6*)
4600   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4601   lt_cv_file_magic_cmd=/usr/bin/file
4602   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4603   ;;
4604
4605 *nto* | *qnx*)
4606   lt_cv_deplibs_check_method=pass_all
4607   ;;
4608
4609 openbsd*)
4610   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4611     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4612   else
4613     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4614   fi
4615   ;;
4616
4617 osf3* | osf4* | osf5*)
4618   lt_cv_deplibs_check_method=pass_all
4619   ;;
4620
4621 rdos*)
4622   lt_cv_deplibs_check_method=pass_all
4623   ;;
4624
4625 solaris*)
4626   lt_cv_deplibs_check_method=pass_all
4627   ;;
4628
4629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4630   lt_cv_deplibs_check_method=pass_all
4631   ;;
4632
4633 sysv4 | sysv4.3*)
4634   case $host_vendor in
4635   motorola)
4636     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]'
4637     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4638     ;;
4639   ncr)
4640     lt_cv_deplibs_check_method=pass_all
4641     ;;
4642   sequent)
4643     lt_cv_file_magic_cmd='/bin/file'
4644     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4645     ;;
4646   sni)
4647     lt_cv_file_magic_cmd='/bin/file'
4648     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4649     lt_cv_file_magic_test_file=/lib/libc.so
4650     ;;
4651   siemens)
4652     lt_cv_deplibs_check_method=pass_all
4653     ;;
4654   pc)
4655     lt_cv_deplibs_check_method=pass_all
4656     ;;
4657   esac
4658   ;;
4659
4660 tpf*)
4661   lt_cv_deplibs_check_method=pass_all
4662   ;;
4663 esac
4664
4665 fi
4666 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4667 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4668 file_magic_cmd=$lt_cv_file_magic_cmd
4669 deplibs_check_method=$lt_cv_deplibs_check_method
4670 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 if test -n "$ac_tool_prefix"; then
4684   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}ar; ac_word=$2
4686 echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688 if test "${ac_cv_prog_AR+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   if test -n "$AR"; then
4692   ac_cv_prog_AR="$AR" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_exec_ext in '' $ac_executable_extensions; do
4700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_prog_AR="${ac_tool_prefix}ar"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707
4708 fi
4709 fi
4710 AR=$ac_cv_prog_AR
4711 if test -n "$AR"; then
4712   echo "$as_me:$LINENO: result: $AR" >&5
4713 echo "${ECHO_T}$AR" >&6
4714 else
4715   echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6
4717 fi
4718
4719 fi
4720 if test -z "$ac_cv_prog_AR"; then
4721   ac_ct_AR=$AR
4722   # Extract the first word of "ar", so it can be a program name with args.
4723 set dummy ar; ac_word=$2
4724 echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   if test -n "$ac_ct_AR"; then
4730   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737   for ac_exec_ext in '' $ac_executable_extensions; do
4738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739     ac_cv_prog_ac_ct_AR="ar"
4740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741     break 2
4742   fi
4743 done
4744 done
4745
4746   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4747 fi
4748 fi
4749 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4750 if test -n "$ac_ct_AR"; then
4751   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4752 echo "${ECHO_T}$ac_ct_AR" >&6
4753 else
4754   echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4756 fi
4757
4758   AR=$ac_ct_AR
4759 else
4760   AR="$ac_cv_prog_AR"
4761 fi
4762
4763 test -z "$AR" && AR=ar
4764 test -z "$AR_FLAGS" && AR_FLAGS=cru
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 if test -n "$ac_tool_prefix"; then
4777   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}strip; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_STRIP+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   if test -n "$STRIP"; then
4785   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800
4801 fi
4802 fi
4803 STRIP=$ac_cv_prog_STRIP
4804 if test -n "$STRIP"; then
4805   echo "$as_me:$LINENO: result: $STRIP" >&5
4806 echo "${ECHO_T}$STRIP" >&6
4807 else
4808   echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4810 fi
4811
4812 fi
4813 if test -z "$ac_cv_prog_STRIP"; then
4814   ac_ct_STRIP=$STRIP
4815   # Extract the first word of "strip", so it can be a program name with args.
4816 set dummy strip; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$ac_ct_STRIP"; then
4823   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832     ac_cv_prog_ac_ct_STRIP="strip"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838
4839   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4840 fi
4841 fi
4842 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4843 if test -n "$ac_ct_STRIP"; then
4844   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4845 echo "${ECHO_T}$ac_ct_STRIP" >&6
4846 else
4847   echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6
4849 fi
4850
4851   STRIP=$ac_ct_STRIP
4852 else
4853   STRIP="$ac_cv_prog_STRIP"
4854 fi
4855
4856 test -z "$STRIP" && STRIP=:
4857
4858
4859
4860
4861
4862
4863 if test -n "$ac_tool_prefix"; then
4864   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_RANLIB+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   if test -n "$RANLIB"; then
4872   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879   for ac_exec_ext in '' $ac_executable_extensions; do
4880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887
4888 fi
4889 fi
4890 RANLIB=$ac_cv_prog_RANLIB
4891 if test -n "$RANLIB"; then
4892   echo "$as_me:$LINENO: result: $RANLIB" >&5
4893 echo "${ECHO_T}$RANLIB" >&6
4894 else
4895   echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4897 fi
4898
4899 fi
4900 if test -z "$ac_cv_prog_RANLIB"; then
4901   ac_ct_RANLIB=$RANLIB
4902   # Extract the first word of "ranlib", so it can be a program name with args.
4903 set dummy ranlib; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$ac_ct_RANLIB"; then
4910   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919     ac_cv_prog_ac_ct_RANLIB="ranlib"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925
4926   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4927 fi
4928 fi
4929 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930 if test -n "$ac_ct_RANLIB"; then
4931   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4933 else
4934   echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4936 fi
4937
4938   RANLIB=$ac_ct_RANLIB
4939 else
4940   RANLIB="$ac_cv_prog_RANLIB"
4941 fi
4942
4943 test -z "$RANLIB" && RANLIB=:
4944
4945
4946
4947
4948
4949
4950 # Determine commands to create old-style static archives.
4951 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4952 old_postinstall_cmds='chmod 644 $oldlib'
4953 old_postuninstall_cmds=
4954
4955 if test -n "$RANLIB"; then
4956   case $host_os in
4957   openbsd*)
4958     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4959     ;;
4960   *)
4961     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4962     ;;
4963   esac
4964   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4965 fi
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000 # If no C compiler was specified, use CC.
5001 LTCC=${LTCC-"$CC"}
5002
5003 # If no C compiler flags were specified, use CFLAGS.
5004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5005
5006 # Allow CC to be a program name with arguments.
5007 compiler=$CC
5008
5009
5010 # Check for command to grab the raw symbol name followed by C symbol from nm.
5011 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5012 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5013 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016
5017 # These are sane defaults that work on at least a few old systems.
5018 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5019
5020 # Character class describing NM global symbol codes.
5021 symcode='[BCDEGRST]'
5022
5023 # Regexp to match symbols that can be accessed directly from C.
5024 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5025
5026 # Define system-specific variables.
5027 case $host_os in
5028 aix*)
5029   symcode='[BCDT]'
5030   ;;
5031 cygwin* | mingw* | pw32*)
5032   symcode='[ABCDGISTW]'
5033   ;;
5034 hpux*)
5035   if test "$host_cpu" = ia64; then
5036     symcode='[ABCDEGRST]'
5037   fi
5038   ;;
5039 irix* | nonstopux*)
5040   symcode='[BCDEGRST]'
5041   ;;
5042 osf*)
5043   symcode='[BCDEGQRST]'
5044   ;;
5045 solaris*)
5046   symcode='[BDRT]'
5047   ;;
5048 sco3.2v5*)
5049   symcode='[DT]'
5050   ;;
5051 sysv4.2uw2*)
5052   symcode='[DT]'
5053   ;;
5054 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5055   symcode='[ABDT]'
5056   ;;
5057 sysv4)
5058   symcode='[DFNSTU]'
5059   ;;
5060 esac
5061
5062 # If we're using GNU nm, then use its standard symbol codes.
5063 case `$NM -V 2>&1` in
5064 *GNU* | *'with BFD'*)
5065   symcode='[ABCDGIRSTW]' ;;
5066 esac
5067
5068 # Transform an extracted symbol line into a proper C declaration.
5069 # Some systems (esp. on ia64) link data and code symbols differently,
5070 # so use this general approach.
5071 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5072
5073 # Transform an extracted symbol line into symbol name and symbol address
5074 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5075
5076 # Handle CRLF in mingw tool chain
5077 opt_cr=
5078 case $build_os in
5079 mingw*)
5080   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5081   ;;
5082 esac
5083
5084 # Try without a prefix underscore, then with it.
5085 for ac_symprfx in "" "_"; do
5086
5087   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5088   symxfrm="\\1 $ac_symprfx\\2 \\2"
5089
5090   # Write the raw and C identifiers.
5091   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5092     # Fake it for dumpbin and say T for any non-static function
5093     # and D for any global variable.
5094     # Also find C++ and __fastcall symbols from MSVC++,
5095     # which start with @ or ?.
5096     lt_cv_sys_global_symbol_pipe="$AWK '"\
5097 "     {last_section=section; section=\$ 3};"\
5098 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5099 "     \$ 0!~/External *\|/{next};"\
5100 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5101 "     {if(hide[section]) next};"\
5102 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5103 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5104 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5105 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5106 "     ' prfx=^$ac_symprfx"
5107   else
5108     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5109   fi
5110
5111   # Check to see that the pipe works correctly.
5112   pipe_works=no
5113
5114   rm -f conftest*
5115   cat > conftest.$ac_ext <<_LT_EOF
5116 #ifdef __cplusplus
5117 extern "C" {
5118 #endif
5119 char nm_test_var;
5120 void nm_test_func(void);
5121 void nm_test_func(void){}
5122 #ifdef __cplusplus
5123 }
5124 #endif
5125 int main(){nm_test_var='a';nm_test_func();return(0);}
5126 _LT_EOF
5127
5128   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129   (eval $ac_compile) 2>&5
5130   ac_status=$?
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); }; then
5133     # Now try to grab the symbols.
5134     nlist=conftest.nm
5135     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5136   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } && test -s "$nlist"; then
5140       # Try sorting and uniquifying the output.
5141       if sort "$nlist" | uniq > "$nlist"T; then
5142         mv -f "$nlist"T "$nlist"
5143       else
5144         rm -f "$nlist"T
5145       fi
5146
5147       # Make sure that we snagged all the symbols we need.
5148       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5149         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5150           cat <<_LT_EOF > conftest.$ac_ext
5151 #ifdef __cplusplus
5152 extern "C" {
5153 #endif
5154
5155 _LT_EOF
5156           # Now generate the symbol file.
5157           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5158
5159           cat <<_LT_EOF >> conftest.$ac_ext
5160
5161 /* The mapping between symbol names and symbols.  */
5162 const struct {
5163   const char *name;
5164   void       *address;
5165 }
5166 lt__PROGRAM__LTX_preloaded_symbols[] =
5167 {
5168   { "@PROGRAM@", (void *) 0 },
5169 _LT_EOF
5170           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5171           cat <<\_LT_EOF >> conftest.$ac_ext
5172   {0, (void *) 0}
5173 };
5174
5175 /* This works around a problem in FreeBSD linker */
5176 #ifdef FREEBSD_WORKAROUND
5177 static const void *lt_preloaded_setup() {
5178   return lt__PROGRAM__LTX_preloaded_symbols;
5179 }
5180 #endif
5181
5182 #ifdef __cplusplus
5183 }
5184 #endif
5185 _LT_EOF
5186           # Now try linking the two files.
5187           mv conftest.$ac_objext conftstm.$ac_objext
5188           lt_save_LIBS="$LIBS"
5189           lt_save_CFLAGS="$CFLAGS"
5190           LIBS="conftstm.$ac_objext"
5191           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5192           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193   (eval $ac_link) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5197             pipe_works=yes
5198           fi
5199           LIBS="$lt_save_LIBS"
5200           CFLAGS="$lt_save_CFLAGS"
5201         else
5202           echo "cannot find nm_test_func in $nlist" >&5
5203         fi
5204       else
5205         echo "cannot find nm_test_var in $nlist" >&5
5206       fi
5207     else
5208       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5209     fi
5210   else
5211     echo "$progname: failed program was:" >&5
5212     cat conftest.$ac_ext >&5
5213   fi
5214   rm -f conftest* conftst*
5215
5216   # Do not use the global_symbol_pipe unless it works.
5217   if test "$pipe_works" = yes; then
5218     break
5219   else
5220     lt_cv_sys_global_symbol_pipe=
5221   fi
5222 done
5223
5224 fi
5225
5226 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5227   lt_cv_sys_global_symbol_to_cdecl=
5228 fi
5229 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5230   echo "$as_me:$LINENO: result: failed" >&5
5231 echo "${ECHO_T}failed" >&6
5232 else
5233   echo "$as_me:$LINENO: result: ok" >&5
5234 echo "${ECHO_T}ok" >&6
5235 fi
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5255 if test "${enable_libtool_lock+set}" = set; then
5256   enableval="$enable_libtool_lock"
5257
5258 fi;
5259 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5260
5261 # Some flags need to be propagated to the compiler or linker for good
5262 # libtool support.
5263 case $host in
5264 ia64-*-hpux*)
5265   # Find out which ABI we are using.
5266   echo 'int i;' > conftest.$ac_ext
5267   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268   (eval $ac_compile) 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); }; then
5272     case `/usr/bin/file conftest.$ac_objext` in
5273       *ELF-32*)
5274         HPUX_IA64_MODE="32"
5275         ;;
5276       *ELF-64*)
5277         HPUX_IA64_MODE="64"
5278         ;;
5279     esac
5280   fi
5281   rm -rf conftest*
5282   ;;
5283 *-*-irix6*)
5284   # Find out which ABI we are using.
5285   echo '#line 5285 "configure"' > conftest.$ac_ext
5286   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287   (eval $ac_compile) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); }; then
5291     if test "$lt_cv_prog_gnu_ld" = yes; then
5292       case `/usr/bin/file conftest.$ac_objext` in
5293         *32-bit*)
5294           LD="${LD-ld} -melf32bsmip"
5295           ;;
5296         *N32*)
5297           LD="${LD-ld} -melf32bmipn32"
5298           ;;
5299         *64-bit*)
5300           LD="${LD-ld} -melf64bmip"
5301         ;;
5302       esac
5303     else
5304       case `/usr/bin/file conftest.$ac_objext` in
5305         *32-bit*)
5306           LD="${LD-ld} -32"
5307           ;;
5308         *N32*)
5309           LD="${LD-ld} -n32"
5310           ;;
5311         *64-bit*)
5312           LD="${LD-ld} -64"
5313           ;;
5314       esac
5315     fi
5316   fi
5317   rm -rf conftest*
5318   ;;
5319
5320 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5321 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5322   # Find out which ABI we are using.
5323   echo 'int i;' > conftest.$ac_ext
5324   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325   (eval $ac_compile) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; then
5329     case `/usr/bin/file conftest.o` in
5330       *32-bit*)
5331         case $host in
5332           x86_64-*kfreebsd*-gnu)
5333             LD="${LD-ld} -m elf_i386_fbsd"
5334             ;;
5335           x86_64-*linux*)
5336             LD="${LD-ld} -m elf_i386"
5337             ;;
5338           ppc64-*linux*|powerpc64-*linux*)
5339             LD="${LD-ld} -m elf32ppclinux"
5340             ;;
5341           s390x-*linux*)
5342             LD="${LD-ld} -m elf_s390"
5343             ;;
5344           sparc64-*linux*)
5345             LD="${LD-ld} -m elf32_sparc"
5346             ;;
5347         esac
5348         ;;
5349       *64-bit*)
5350         case $host in
5351           x86_64-*kfreebsd*-gnu)
5352             LD="${LD-ld} -m elf_x86_64_fbsd"
5353             ;;
5354           x86_64-*linux*)
5355             LD="${LD-ld} -m elf_x86_64"
5356             ;;
5357           ppc*-*linux*|powerpc*-*linux*)
5358             LD="${LD-ld} -m elf64ppc"
5359             ;;
5360           s390*-*linux*|s390*-*tpf*)
5361             LD="${LD-ld} -m elf64_s390"
5362             ;;
5363           sparc*-*linux*)
5364             LD="${LD-ld} -m elf64_sparc"
5365             ;;
5366         esac
5367         ;;
5368     esac
5369   fi
5370   rm -rf conftest*
5371   ;;
5372
5373 *-*-sco3.2v5*)
5374   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5375   SAVE_CFLAGS="$CFLAGS"
5376   CFLAGS="$CFLAGS -belf"
5377   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5378 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5379 if test "${lt_cv_cc_needs_belf+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   ac_ext=c
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388      cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h.  */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h.  */
5394
5395 int
5396 main ()
5397 {
5398
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405   (eval $ac_link) 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } &&
5412          { ac_try='test -z "$ac_c_werror_flag"
5413                          || test ! -s conftest.err'
5414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415   (eval $ac_try) 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }; } &&
5419          { ac_try='test -s conftest$ac_exeext'
5420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421   (eval $ac_try) 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); }; }; then
5425   lt_cv_cc_needs_belf=yes
5426 else
5427   echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430 lt_cv_cc_needs_belf=no
5431 fi
5432 rm -f conftest.err conftest.$ac_objext \
5433       conftest$ac_exeext conftest.$ac_ext
5434      ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439
5440 fi
5441 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5442 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5443   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5444     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5445     CFLAGS="$SAVE_CFLAGS"
5446   fi
5447   ;;
5448 sparc*-*solaris*)
5449   # Find out which ABI we are using.
5450   echo 'int i;' > conftest.$ac_ext
5451   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452   (eval $ac_compile) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; then
5456     case `/usr/bin/file conftest.o` in
5457     *64-bit*)
5458       case $lt_cv_prog_gnu_ld in
5459       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5460       *)    LD="${LD-ld} -64" ;;
5461       esac
5462       ;;
5463     esac
5464   fi
5465   rm -rf conftest*
5466   ;;
5467 esac
5468
5469 need_locks="$enable_libtool_lock"
5470
5471 ac_ext=c
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5477 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5478 # On Suns, sometimes $CPP names a directory.
5479 if test -n "$CPP" && test -d "$CPP"; then
5480   CPP=
5481 fi
5482 if test -z "$CPP"; then
5483   if test "${ac_cv_prog_CPP+set}" = set; then
5484   echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486       # Double quotes because CPP needs to be expanded
5487     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5488     do
5489       ac_preproc_ok=false
5490 for ac_c_preproc_warn_flag in '' yes
5491 do
5492   # Use a header file that comes with gcc, so configuring glibc
5493   # with a fresh cross-compiler works.
5494   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495   # <limits.h> exists even on freestanding compilers.
5496   # On the NeXT, cc -E runs the code through the compiler's parser,
5497   # not just through cpp. "Syntax error" is here to catch this case.
5498   cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504 #ifdef __STDC__
5505 # include <limits.h>
5506 #else
5507 # include <assert.h>
5508 #endif
5509                      Syntax error
5510 _ACEOF
5511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } >/dev/null; then
5519   if test -s conftest.err; then
5520     ac_cpp_err=$ac_c_preproc_warn_flag
5521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5522   else
5523     ac_cpp_err=
5524   fi
5525 else
5526   ac_cpp_err=yes
5527 fi
5528 if test -z "$ac_cpp_err"; then
5529   :
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534   # Broken: fails on valid input.
5535 continue
5536 fi
5537 rm -f conftest.err conftest.$ac_ext
5538
5539   # OK, works on sane cases.  Now check whether non-existent headers
5540   # can be detected and how.
5541   cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h.  */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h.  */
5547 #include <ac_nonexistent.h>
5548 _ACEOF
5549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5550   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5551   ac_status=$?
5552   grep -v '^ *+' conftest.er1 >conftest.err
5553   rm -f conftest.er1
5554   cat conftest.err >&5
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); } >/dev/null; then
5557   if test -s conftest.err; then
5558     ac_cpp_err=$ac_c_preproc_warn_flag
5559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5560   else
5561     ac_cpp_err=
5562   fi
5563 else
5564   ac_cpp_err=yes
5565 fi
5566 if test -z "$ac_cpp_err"; then
5567   # Broken: success on invalid input.
5568 continue
5569 else
5570   echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5572
5573   # Passes both tests.
5574 ac_preproc_ok=:
5575 break
5576 fi
5577 rm -f conftest.err conftest.$ac_ext
5578
5579 done
5580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5581 rm -f conftest.err conftest.$ac_ext
5582 if $ac_preproc_ok; then
5583   break
5584 fi
5585
5586     done
5587     ac_cv_prog_CPP=$CPP
5588
5589 fi
5590   CPP=$ac_cv_prog_CPP
5591 else
5592   ac_cv_prog_CPP=$CPP
5593 fi
5594 echo "$as_me:$LINENO: result: $CPP" >&5
5595 echo "${ECHO_T}$CPP" >&6
5596 ac_preproc_ok=false
5597 for ac_c_preproc_warn_flag in '' yes
5598 do
5599   # Use a header file that comes with gcc, so configuring glibc
5600   # with a fresh cross-compiler works.
5601   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602   # <limits.h> exists even on freestanding compilers.
5603   # On the NeXT, cc -E runs the code through the compiler's parser,
5604   # not just through cpp. "Syntax error" is here to catch this case.
5605   cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 #ifdef __STDC__
5612 # include <limits.h>
5613 #else
5614 # include <assert.h>
5615 #endif
5616                      Syntax error
5617 _ACEOF
5618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5620   ac_status=$?
5621   grep -v '^ *+' conftest.er1 >conftest.err
5622   rm -f conftest.er1
5623   cat conftest.err >&5
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } >/dev/null; then
5626   if test -s conftest.err; then
5627     ac_cpp_err=$ac_c_preproc_warn_flag
5628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5629   else
5630     ac_cpp_err=
5631   fi
5632 else
5633   ac_cpp_err=yes
5634 fi
5635 if test -z "$ac_cpp_err"; then
5636   :
5637 else
5638   echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641   # Broken: fails on valid input.
5642 continue
5643 fi
5644 rm -f conftest.err conftest.$ac_ext
5645
5646   # OK, works on sane cases.  Now check whether non-existent headers
5647   # can be detected and how.
5648   cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 #include <ac_nonexistent.h>
5655 _ACEOF
5656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5658   ac_status=$?
5659   grep -v '^ *+' conftest.er1 >conftest.err
5660   rm -f conftest.er1
5661   cat conftest.err >&5
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } >/dev/null; then
5664   if test -s conftest.err; then
5665     ac_cpp_err=$ac_c_preproc_warn_flag
5666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5667   else
5668     ac_cpp_err=
5669   fi
5670 else
5671   ac_cpp_err=yes
5672 fi
5673 if test -z "$ac_cpp_err"; then
5674   # Broken: success on invalid input.
5675 continue
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680   # Passes both tests.
5681 ac_preproc_ok=:
5682 break
5683 fi
5684 rm -f conftest.err conftest.$ac_ext
5685
5686 done
5687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688 rm -f conftest.err conftest.$ac_ext
5689 if $ac_preproc_ok; then
5690   :
5691 else
5692   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5693 See \`config.log' for more details." >&5
5694 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5695 See \`config.log' for more details." >&2;}
5696    { (exit 1); exit 1; }; }
5697 fi
5698
5699 ac_ext=c
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704
5705
5706 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5707 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5708 if test "${ac_cv_header_stdc+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5717 #include <stdlib.h>
5718 #include <stdarg.h>
5719 #include <string.h>
5720 #include <float.h>
5721
5722 int
5723 main ()
5724 {
5725
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732   (eval $ac_compile) 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } &&
5739          { ac_try='test -z "$ac_c_werror_flag"
5740                          || test ! -s conftest.err'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; } &&
5746          { ac_try='test -s conftest.$ac_objext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   ac_cv_header_stdc=yes
5753 else
5754   echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 ac_cv_header_stdc=no
5758 fi
5759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5760
5761 if test $ac_cv_header_stdc = yes; then
5762   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5763   cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 #include <string.h>
5770
5771 _ACEOF
5772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5773   $EGREP "memchr" >/dev/null 2>&1; then
5774   :
5775 else
5776   ac_cv_header_stdc=no
5777 fi
5778 rm -f conftest*
5779
5780 fi
5781
5782 if test $ac_cv_header_stdc = yes; then
5783   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5784   cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 #include <stdlib.h>
5791
5792 _ACEOF
5793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5794   $EGREP "free" >/dev/null 2>&1; then
5795   :
5796 else
5797   ac_cv_header_stdc=no
5798 fi
5799 rm -f conftest*
5800
5801 fi
5802
5803 if test $ac_cv_header_stdc = yes; then
5804   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5805   if test "$cross_compiling" = yes; then
5806   :
5807 else
5808   cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814 #include <ctype.h>
5815 #if ((' ' & 0x0FF) == 0x020)
5816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5818 #else
5819 # define ISLOWER(c) \
5820                    (('a' <= (c) && (c) <= 'i') \
5821                      || ('j' <= (c) && (c) <= 'r') \
5822                      || ('s' <= (c) && (c) <= 'z'))
5823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5824 #endif
5825
5826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5827 int
5828 main ()
5829 {
5830   int i;
5831   for (i = 0; i < 256; i++)
5832     if (XOR (islower (i), ISLOWER (i))
5833         || toupper (i) != TOUPPER (i))
5834       exit(2);
5835   exit (0);
5836 }
5837 _ACEOF
5838 rm -f conftest$ac_exeext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5840   (eval $ac_link) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849   :
5850 else
5851   echo "$as_me: program exited with status $ac_status" >&5
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ( exit $ac_status )
5856 ac_cv_header_stdc=no
5857 fi
5858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 fi
5861 fi
5862 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5863 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5864 if test $ac_cv_header_stdc = yes; then
5865
5866 cat >>confdefs.h <<\_ACEOF
5867 #define STDC_HEADERS 1
5868 _ACEOF
5869
5870 fi
5871
5872 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5883                   inttypes.h stdint.h unistd.h
5884 do
5885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886 echo "$as_me:$LINENO: checking for $ac_header" >&5
5887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 $ac_includes_default
5898
5899 #include <$ac_header>
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903   (eval $ac_compile) 2>conftest.er1
5904   ac_status=$?
5905   grep -v '^ *+' conftest.er1 >conftest.err
5906   rm -f conftest.er1
5907   cat conftest.err >&5
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); } &&
5910          { ac_try='test -z "$ac_c_werror_flag"
5911                          || test ! -s conftest.err'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; } &&
5917          { ac_try='test -s conftest.$ac_objext'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   eval "$as_ac_Header=yes"
5924 else
5925   echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 eval "$as_ac_Header=no"
5929 fi
5930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 fi
5932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5935   cat >>confdefs.h <<_ACEOF
5936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5937 _ACEOF
5938
5939 fi
5940
5941 done
5942
5943
5944
5945 for ac_header in dlfcn.h
5946 do
5947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948 echo "$as_me:$LINENO: checking for $ac_header" >&5
5949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959 $ac_includes_default
5960
5961 #include <$ac_header>
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965   (eval $ac_compile) 2>conftest.er1
5966   ac_status=$?
5967   grep -v '^ *+' conftest.er1 >conftest.err
5968   rm -f conftest.er1
5969   cat conftest.err >&5
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); } &&
5972          { ac_try='test -z "$ac_c_werror_flag"
5973                          || test ! -s conftest.err'
5974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975   (eval $ac_try) 2>&5
5976   ac_status=$?
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); }; } &&
5979          { ac_try='test -s conftest.$ac_objext'
5980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981   (eval $ac_try) 2>&5
5982   ac_status=$?
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); }; }; then
5985   eval "$as_ac_Header=yes"
5986 else
5987   echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5989
5990 eval "$as_ac_Header=no"
5991 fi
5992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5993 fi
5994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5997   cat >>confdefs.h <<_ACEOF
5998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5999 _ACEOF
6000
6001 fi
6002
6003 done
6004
6005
6006
6007 # This can be used to rebuild libtool when needed
6008 LIBTOOL_DEPS="$ltmain"
6009
6010 # Always use our own libtool.
6011 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 test -z "$LN_S" && LN_S="ln -s"
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052 if test -n "${ZSH_VERSION+set}" ; then
6053    setopt NO_GLOB_SUBST
6054 fi
6055
6056 echo "$as_me:$LINENO: checking for objdir" >&5
6057 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6058 if test "${lt_cv_objdir+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   rm -f .libs 2>/dev/null
6062 mkdir .libs 2>/dev/null
6063 if test -d .libs; then
6064   lt_cv_objdir=.libs
6065 else
6066   # MS-DOS does not allow filenames that begin with a dot.
6067   lt_cv_objdir=_libs
6068 fi
6069 rmdir .libs 2>/dev/null
6070 fi
6071 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6072 echo "${ECHO_T}$lt_cv_objdir" >&6
6073 objdir=$lt_cv_objdir
6074
6075
6076
6077
6078
6079 cat >>confdefs.h <<_ACEOF
6080 #define LT_OBJDIR "$lt_cv_objdir/"
6081 _ACEOF
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099 case $host_os in
6100 aix3*)
6101   # AIX sometimes has problems with the GCC collect2 program.  For some
6102   # reason, if we set the COLLECT_NAMES environment variable, the problems
6103   # vanish in a puff of smoke.
6104   if test "X${COLLECT_NAMES+set}" != Xset; then
6105     COLLECT_NAMES=
6106     export COLLECT_NAMES
6107   fi
6108   ;;
6109 esac
6110
6111 # Sed substitution that helps us do robust quoting.  It backslashifies
6112 # metacharacters that are still active within double-quoted strings.
6113 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6114
6115 # Same as above, but do not quote variable references.
6116 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6117
6118 # Sed substitution to delay expansion of an escaped shell variable in a
6119 # double_quote_subst'ed string.
6120 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6121
6122 # Sed substitution to delay expansion of an escaped single quote.
6123 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6124
6125 # Sed substitution to avoid accidental globbing in evaled expressions
6126 no_glob_subst='s/\*/\\\*/g'
6127
6128 # Global variables:
6129 ofile=libtool
6130 can_build_shared=yes
6131
6132 # All known linkers require a `.a' archive for static linking (except MSVC,
6133 # which needs '.lib').
6134 libext=a
6135
6136 with_gnu_ld="$lt_cv_prog_gnu_ld"
6137
6138 old_CC="$CC"
6139 old_CFLAGS="$CFLAGS"
6140
6141 # Set sane defaults for various variables
6142 test -z "$CC" && CC=cc
6143 test -z "$LTCC" && LTCC=$CC
6144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6145 test -z "$LD" && LD=ld
6146 test -z "$ac_objext" && ac_objext=o
6147
6148 for cc_temp in $compiler""; do
6149   case $cc_temp in
6150     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6151     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6152     \-*) ;;
6153     *) break;;
6154   esac
6155 done
6156 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6157
6158
6159 # Only perform the check for file, if the check method requires it
6160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6161 case $deplibs_check_method in
6162 file_magic*)
6163   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6164     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6165 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   case $MAGIC_CMD in
6170 [\\/*] |  ?:[\\/]*)
6171   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6172   ;;
6173 *)
6174   lt_save_MAGIC_CMD="$MAGIC_CMD"
6175   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6176   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6177   for ac_dir in $ac_dummy; do
6178     IFS="$lt_save_ifs"
6179     test -z "$ac_dir" && ac_dir=.
6180     if test -f $ac_dir/${ac_tool_prefix}file; then
6181       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6182       if test -n "$file_magic_test_file"; then
6183         case $deplibs_check_method in
6184         "file_magic "*)
6185           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6186           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6188             $EGREP "$file_magic_regex" > /dev/null; then
6189             :
6190           else
6191             cat <<_LT_EOF 1>&2
6192
6193 *** Warning: the command libtool uses to detect shared libraries,
6194 *** $file_magic_cmd, produces output that libtool cannot recognize.
6195 *** The result is that libtool may fail to recognize shared libraries
6196 *** as such.  This will affect the creation of libtool libraries that
6197 *** depend on shared libraries, but programs linked with such libtool
6198 *** libraries will work regardless of this problem.  Nevertheless, you
6199 *** may want to report the problem to your system manager and/or to
6200 *** bug-libtool@gnu.org
6201
6202 _LT_EOF
6203           fi ;;
6204         esac
6205       fi
6206       break
6207     fi
6208   done
6209   IFS="$lt_save_ifs"
6210   MAGIC_CMD="$lt_save_MAGIC_CMD"
6211   ;;
6212 esac
6213 fi
6214
6215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216 if test -n "$MAGIC_CMD"; then
6217   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6218 echo "${ECHO_T}$MAGIC_CMD" >&6
6219 else
6220   echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6
6222 fi
6223
6224
6225
6226
6227
6228 if test -z "$lt_cv_path_MAGIC_CMD"; then
6229   if test -n "$ac_tool_prefix"; then
6230     echo "$as_me:$LINENO: checking for file" >&5
6231 echo $ECHO_N "checking for file... $ECHO_C" >&6
6232 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   case $MAGIC_CMD in
6236 [\\/*] |  ?:[\\/]*)
6237   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6238   ;;
6239 *)
6240   lt_save_MAGIC_CMD="$MAGIC_CMD"
6241   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6242   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6243   for ac_dir in $ac_dummy; do
6244     IFS="$lt_save_ifs"
6245     test -z "$ac_dir" && ac_dir=.
6246     if test -f $ac_dir/file; then
6247       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6248       if test -n "$file_magic_test_file"; then
6249         case $deplibs_check_method in
6250         "file_magic "*)
6251           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6252           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6253           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6254             $EGREP "$file_magic_regex" > /dev/null; then
6255             :
6256           else
6257             cat <<_LT_EOF 1>&2
6258
6259 *** Warning: the command libtool uses to detect shared libraries,
6260 *** $file_magic_cmd, produces output that libtool cannot recognize.
6261 *** The result is that libtool may fail to recognize shared libraries
6262 *** as such.  This will affect the creation of libtool libraries that
6263 *** depend on shared libraries, but programs linked with such libtool
6264 *** libraries will work regardless of this problem.  Nevertheless, you
6265 *** may want to report the problem to your system manager and/or to
6266 *** bug-libtool@gnu.org
6267
6268 _LT_EOF
6269           fi ;;
6270         esac
6271       fi
6272       break
6273     fi
6274   done
6275   IFS="$lt_save_ifs"
6276   MAGIC_CMD="$lt_save_MAGIC_CMD"
6277   ;;
6278 esac
6279 fi
6280
6281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6282 if test -n "$MAGIC_CMD"; then
6283   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6284 echo "${ECHO_T}$MAGIC_CMD" >&6
6285 else
6286   echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6288 fi
6289
6290
6291   else
6292     MAGIC_CMD=:
6293   fi
6294 fi
6295
6296   fi
6297   ;;
6298 esac
6299
6300 # Use C for the default configuration in the libtool script
6301
6302 lt_save_CC="$CC"
6303 ac_ext=c
6304 ac_cpp='$CPP $CPPFLAGS'
6305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6308
6309
6310 # Source file extension for C test sources.
6311 ac_ext=c
6312
6313 # Object file extension for compiled C test sources.
6314 objext=o
6315 objext=$objext
6316
6317 # Code to be used in simple compile tests
6318 lt_simple_compile_test_code="int some_variable = 0;"
6319
6320 # Code to be used in simple link tests
6321 lt_simple_link_test_code='int main(){return(0);}'
6322
6323
6324
6325
6326
6327
6328
6329 # If no C compiler was specified, use CC.
6330 LTCC=${LTCC-"$CC"}
6331
6332 # If no C compiler flags were specified, use CFLAGS.
6333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6334
6335 # Allow CC to be a program name with arguments.
6336 compiler=$CC
6337
6338 # Save the default compiler, since it gets overwritten when the other
6339 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6340 compiler_DEFAULT=$CC
6341
6342 # save warnings/boilerplate of simple test code
6343 ac_outfile=conftest.$ac_objext
6344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6346 _lt_compiler_boilerplate=`cat conftest.err`
6347 $RM conftest*
6348
6349 ac_outfile=conftest.$ac_objext
6350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6352 _lt_linker_boilerplate=`cat conftest.err`
6353 $RM conftest*
6354
6355
6356 ## CAVEAT EMPTOR:
6357 ## There is no encapsulation within the following macros, do not change
6358 ## the running order or otherwise move them around unless you know exactly
6359 ## what you are doing...
6360 if test -n "$compiler"; then
6361
6362 lt_prog_compiler_no_builtin_flag=
6363
6364 if test "$GCC" = yes; then
6365   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6366
6367   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6368 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6369 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6370   echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372   lt_cv_prog_compiler_rtti_exceptions=no
6373    ac_outfile=conftest.$ac_objext
6374    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6375    lt_compiler_flag="-fno-rtti -fno-exceptions"
6376    # Insert the option either (1) after the last *FLAGS variable, or
6377    # (2) before a word containing "conftest.", or (3) at the end.
6378    # Note that $ac_compile itself does not contain backslashes and begins
6379    # with a dollar sign (not a hyphen), so the echo should work correctly.
6380    # The option is referenced via a variable to avoid confusing sed.
6381    lt_compile=`echo "$ac_compile" | $SED \
6382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6384    -e 's:$: $lt_compiler_flag:'`
6385    (eval echo "\"\$as_me:6385: $lt_compile\"" >&5)
6386    (eval "$lt_compile" 2>conftest.err)
6387    ac_status=$?
6388    cat conftest.err >&5
6389    echo "$as_me:6389: \$? = $ac_status" >&5
6390    if (exit $ac_status) && test -s "$ac_outfile"; then
6391      # The compiler can only warn and ignore the option if not recognized
6392      # So say no if there are warnings other than the usual output.
6393      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6394      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6395      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6396        lt_cv_prog_compiler_rtti_exceptions=yes
6397      fi
6398    fi
6399    $RM conftest*
6400
6401 fi
6402 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6403 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6404
6405 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6406     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6407 else
6408     :
6409 fi
6410
6411 fi
6412
6413
6414
6415
6416
6417
6418   lt_prog_compiler_wl=
6419 lt_prog_compiler_pic=
6420 lt_prog_compiler_static=
6421
6422 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6423 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6424
6425   if test "$GCC" = yes; then
6426     lt_prog_compiler_wl='-Wl,'
6427     lt_prog_compiler_static='-static'
6428
6429     case $host_os in
6430       aix*)
6431       # All AIX code is PIC.
6432       if test "$host_cpu" = ia64; then
6433         # AIX 5 now supports IA64 processor
6434         lt_prog_compiler_static='-Bstatic'
6435       fi
6436       ;;
6437
6438     amigaos*)
6439       if test "$host_cpu" = m68k; then
6440         # FIXME: we need at least 68020 code to build shared libraries, but
6441         # adding the `-m68020' flag to GCC prevents building anything better,
6442         # like `-m68040'.
6443         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6444       fi
6445       ;;
6446
6447     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6448       # PIC is the default for these OSes.
6449       ;;
6450
6451     mingw* | cygwin* | pw32* | os2*)
6452       # This hack is so that the source file can tell whether it is being
6453       # built for inclusion in a dll (and should export symbols for example).
6454       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6455       # (--disable-auto-import) libraries
6456       lt_prog_compiler_pic='-DDLL_EXPORT'
6457       ;;
6458
6459     darwin* | rhapsody*)
6460       # PIC is the default on this platform
6461       # Common symbols not allowed in MH_DYLIB files
6462       lt_prog_compiler_pic='-fno-common'
6463       ;;
6464
6465     hpux*)
6466       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6467       # not for PA HP-UX.
6468       case $host_cpu in
6469       hppa*64*|ia64*)
6470         # +Z the default
6471         ;;
6472       *)
6473         lt_prog_compiler_pic='-fPIC'
6474         ;;
6475       esac
6476       ;;
6477
6478     interix[3-9]*)
6479       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6480       # Instead, we relocate shared libraries at runtime.
6481       ;;
6482
6483     msdosdjgpp*)
6484       # Just because we use GCC doesn't mean we suddenly get shared libraries
6485       # on systems that don't support them.
6486       lt_prog_compiler_can_build_shared=no
6487       enable_shared=no
6488       ;;
6489
6490     *nto* | *qnx*)
6491       # QNX uses GNU C++, but need to define -shared option too, otherwise
6492       # it will coredump.
6493       lt_prog_compiler_pic='-fPIC -shared'
6494       ;;
6495
6496     sysv4*MP*)
6497       if test -d /usr/nec; then
6498         lt_prog_compiler_pic=-Kconform_pic
6499       fi
6500       ;;
6501
6502     *)
6503       lt_prog_compiler_pic='-fPIC'
6504       ;;
6505     esac
6506   else
6507     # PORTME Check for flag to pass linker flags through the system compiler.
6508     case $host_os in
6509     aix*)
6510       lt_prog_compiler_wl='-Wl,'
6511       if test "$host_cpu" = ia64; then
6512         # AIX 5 now supports IA64 processor
6513         lt_prog_compiler_static='-Bstatic'
6514       else
6515         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6516       fi
6517       ;;
6518     darwin*)
6519       # PIC is the default on this platform
6520       # Common symbols not allowed in MH_DYLIB files
6521       case $cc_basename in
6522       xlc*)
6523         lt_prog_compiler_pic='-qnocommon'
6524         lt_prog_compiler_wl='-Wl,'
6525         ;;
6526       esac
6527       ;;
6528
6529     mingw* | cygwin* | pw32* | os2*)
6530       # This hack is so that the source file can tell whether it is being
6531       # built for inclusion in a dll (and should export symbols for example).
6532       lt_prog_compiler_pic='-DDLL_EXPORT'
6533       ;;
6534
6535     hpux9* | hpux10* | hpux11*)
6536       lt_prog_compiler_wl='-Wl,'
6537       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6538       # not for PA HP-UX.
6539       case $host_cpu in
6540       hppa*64*|ia64*)
6541         # +Z the default
6542         ;;
6543       *)
6544         lt_prog_compiler_pic='+Z'
6545         ;;
6546       esac
6547       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6548       lt_prog_compiler_static='${wl}-a ${wl}archive'
6549       ;;
6550
6551     irix5* | irix6* | nonstopux*)
6552       lt_prog_compiler_wl='-Wl,'
6553       # PIC (with -KPIC) is the default.
6554       lt_prog_compiler_static='-non_shared'
6555       ;;
6556
6557     linux* | k*bsd*-gnu)
6558       case $cc_basename in
6559       icc* | ecc*)
6560         lt_prog_compiler_wl='-Wl,'
6561         lt_prog_compiler_pic='-KPIC'
6562         lt_prog_compiler_static='-static'
6563         ;;
6564       pgcc* | pgf77* | pgf90* | pgf95*)
6565         # Portland Group compilers (*not* the Pentium gcc compiler,
6566         # which looks to be a dead project)
6567         lt_prog_compiler_wl='-Wl,'
6568         lt_prog_compiler_pic='-fpic'
6569         lt_prog_compiler_static='-Bstatic'
6570         ;;
6571       ccc*)
6572         lt_prog_compiler_wl='-Wl,'
6573         # All Alpha code is PIC.
6574         lt_prog_compiler_static='-non_shared'
6575         ;;
6576       *)
6577         case `$CC -V 2>&1 | sed 5q` in
6578         *Sun\ C*)
6579           # Sun C 5.9
6580           lt_prog_compiler_pic='-KPIC'
6581           lt_prog_compiler_static='-Bstatic'
6582           lt_prog_compiler_wl='-Wl,'
6583           ;;
6584         *Sun\ F*)
6585           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6586           lt_prog_compiler_pic='-KPIC'
6587           lt_prog_compiler_static='-Bstatic'
6588           lt_prog_compiler_wl=''
6589           ;;
6590         esac
6591         ;;
6592       esac
6593       ;;
6594
6595     newsos6)
6596       lt_prog_compiler_pic='-KPIC'
6597       lt_prog_compiler_static='-Bstatic'
6598       ;;
6599
6600     *nto* | *qnx*)
6601       # QNX uses GNU C++, but need to define -shared option too, otherwise
6602       # it will coredump.
6603       lt_prog_compiler_pic='-fPIC -shared'
6604       ;;
6605
6606     osf3* | osf4* | osf5*)
6607       lt_prog_compiler_wl='-Wl,'
6608       # All OSF/1 code is PIC.
6609       lt_prog_compiler_static='-non_shared'
6610       ;;
6611
6612     rdos*)
6613       lt_prog_compiler_static='-non_shared'
6614       ;;
6615
6616     solaris*)
6617       lt_prog_compiler_pic='-KPIC'
6618       lt_prog_compiler_static='-Bstatic'
6619       case $cc_basename in
6620       f77* | f90* | f95*)
6621         lt_prog_compiler_wl='-Qoption ld ';;
6622       *)
6623         lt_prog_compiler_wl='-Wl,';;
6624       esac
6625       ;;
6626
6627     sunos4*)
6628       lt_prog_compiler_wl='-Qoption ld '
6629       lt_prog_compiler_pic='-PIC'
6630       lt_prog_compiler_static='-Bstatic'
6631       ;;
6632
6633     sysv4 | sysv4.2uw2* | sysv4.3*)
6634       lt_prog_compiler_wl='-Wl,'
6635       lt_prog_compiler_pic='-KPIC'
6636       lt_prog_compiler_static='-Bstatic'
6637       ;;
6638
6639     sysv4*MP*)
6640       if test -d /usr/nec ;then
6641         lt_prog_compiler_pic='-Kconform_pic'
6642         lt_prog_compiler_static='-Bstatic'
6643       fi
6644       ;;
6645
6646     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6647       lt_prog_compiler_wl='-Wl,'
6648       lt_prog_compiler_pic='-KPIC'
6649       lt_prog_compiler_static='-Bstatic'
6650       ;;
6651
6652     unicos*)
6653       lt_prog_compiler_wl='-Wl,'
6654       lt_prog_compiler_can_build_shared=no
6655       ;;
6656
6657     uts4*)
6658       lt_prog_compiler_pic='-pic'
6659       lt_prog_compiler_static='-Bstatic'
6660       ;;
6661
6662     *)
6663       lt_prog_compiler_can_build_shared=no
6664       ;;
6665     esac
6666   fi
6667
6668 case $host_os in
6669   # For platforms which do not support PIC, -DPIC is meaningless:
6670   *djgpp*)
6671     lt_prog_compiler_pic=
6672     ;;
6673   *)
6674     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6675     ;;
6676 esac
6677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6678 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6679
6680
6681
6682
6683
6684
6685 #
6686 # Check to make sure the PIC flag actually works.
6687 #
6688 if test -n "$lt_prog_compiler_pic"; then
6689   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6690 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6691 if test "${lt_prog_compiler_pic_works+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   lt_prog_compiler_pic_works=no
6695    ac_outfile=conftest.$ac_objext
6696    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6697    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6698    # Insert the option either (1) after the last *FLAGS variable, or
6699    # (2) before a word containing "conftest.", or (3) at the end.
6700    # Note that $ac_compile itself does not contain backslashes and begins
6701    # with a dollar sign (not a hyphen), so the echo should work correctly.
6702    # The option is referenced via a variable to avoid confusing sed.
6703    lt_compile=`echo "$ac_compile" | $SED \
6704    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6705    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6706    -e 's:$: $lt_compiler_flag:'`
6707    (eval echo "\"\$as_me:6707: $lt_compile\"" >&5)
6708    (eval "$lt_compile" 2>conftest.err)
6709    ac_status=$?
6710    cat conftest.err >&5
6711    echo "$as_me:6711: \$? = $ac_status" >&5
6712    if (exit $ac_status) && test -s "$ac_outfile"; then
6713      # The compiler can only warn and ignore the option if not recognized
6714      # So say no if there are warnings other than the usual output.
6715      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6716      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6717      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6718        lt_prog_compiler_pic_works=yes
6719      fi
6720    fi
6721    $RM conftest*
6722
6723 fi
6724 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6725 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6726
6727 if test x"$lt_prog_compiler_pic_works" = xyes; then
6728     case $lt_prog_compiler_pic in
6729      "" | " "*) ;;
6730      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6731      esac
6732 else
6733     lt_prog_compiler_pic=
6734      lt_prog_compiler_can_build_shared=no
6735 fi
6736
6737 fi
6738
6739
6740
6741
6742
6743
6744 #
6745 # Check to make sure the static flag actually works.
6746 #
6747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6748 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6749 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6750 if test "${lt_prog_compiler_static_works+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   lt_prog_compiler_static_works=no
6754    save_LDFLAGS="$LDFLAGS"
6755    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6756    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6758      # The linker can only warn and ignore the option if not recognized
6759      # So say no if there are warnings
6760      if test -s conftest.err; then
6761        # Append any errors to the config.log.
6762        cat conftest.err 1>&5
6763        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6765        if diff conftest.exp conftest.er2 >/dev/null; then
6766          lt_prog_compiler_static_works=yes
6767        fi
6768      else
6769        lt_prog_compiler_static_works=yes
6770      fi
6771    fi
6772    $RM conftest*
6773    LDFLAGS="$save_LDFLAGS"
6774
6775 fi
6776 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6777 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6778
6779 if test x"$lt_prog_compiler_static_works" = xyes; then
6780     :
6781 else
6782     lt_prog_compiler_static=
6783 fi
6784
6785
6786
6787
6788
6789
6790
6791   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6792 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6793 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6794   echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796   lt_cv_prog_compiler_c_o=no
6797    $RM -r conftest 2>/dev/null
6798    mkdir conftest
6799    cd conftest
6800    mkdir out
6801    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6802
6803    lt_compiler_flag="-o out/conftest2.$ac_objext"
6804    # Insert the option either (1) after the last *FLAGS variable, or
6805    # (2) before a word containing "conftest.", or (3) at the end.
6806    # Note that $ac_compile itself does not contain backslashes and begins
6807    # with a dollar sign (not a hyphen), so the echo should work correctly.
6808    lt_compile=`echo "$ac_compile" | $SED \
6809    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6811    -e 's:$: $lt_compiler_flag:'`
6812    (eval echo "\"\$as_me:6812: $lt_compile\"" >&5)
6813    (eval "$lt_compile" 2>out/conftest.err)
6814    ac_status=$?
6815    cat out/conftest.err >&5
6816    echo "$as_me:6816: \$? = $ac_status" >&5
6817    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6818    then
6819      # The compiler can only warn and ignore the option if not recognized
6820      # So say no if there are warnings
6821      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6822      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6823      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6824        lt_cv_prog_compiler_c_o=yes
6825      fi
6826    fi
6827    chmod u+w . 2>&5
6828    $RM conftest*
6829    # SGI C++ compiler will create directory out/ii_files/ for
6830    # template instantiation
6831    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6832    $RM out/* && rmdir out
6833    cd ..
6834    $RM -r conftest
6835    $RM conftest*
6836
6837 fi
6838 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6839 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6840
6841
6842
6843
6844
6845
6846   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6848 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   lt_cv_prog_compiler_c_o=no
6852    $RM -r conftest 2>/dev/null
6853    mkdir conftest
6854    cd conftest
6855    mkdir out
6856    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6857
6858    lt_compiler_flag="-o out/conftest2.$ac_objext"
6859    # Insert the option either (1) after the last *FLAGS variable, or
6860    # (2) before a word containing "conftest.", or (3) at the end.
6861    # Note that $ac_compile itself does not contain backslashes and begins
6862    # with a dollar sign (not a hyphen), so the echo should work correctly.
6863    lt_compile=`echo "$ac_compile" | $SED \
6864    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6865    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6866    -e 's:$: $lt_compiler_flag:'`
6867    (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
6868    (eval "$lt_compile" 2>out/conftest.err)
6869    ac_status=$?
6870    cat out/conftest.err >&5
6871    echo "$as_me:6871: \$? = $ac_status" >&5
6872    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6873    then
6874      # The compiler can only warn and ignore the option if not recognized
6875      # So say no if there are warnings
6876      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6877      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6878      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6879        lt_cv_prog_compiler_c_o=yes
6880      fi
6881    fi
6882    chmod u+w . 2>&5
6883    $RM conftest*
6884    # SGI C++ compiler will create directory out/ii_files/ for
6885    # template instantiation
6886    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6887    $RM out/* && rmdir out
6888    cd ..
6889    $RM -r conftest
6890    $RM conftest*
6891
6892 fi
6893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6895
6896
6897
6898
6899 hard_links="nottested"
6900 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6901   # do not overwrite the value of need_locks provided by the user
6902   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6903 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6904   hard_links=yes
6905   $RM conftest*
6906   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6907   touch conftest.a
6908   ln conftest.a conftest.b 2>&5 || hard_links=no
6909   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6910   echo "$as_me:$LINENO: result: $hard_links" >&5
6911 echo "${ECHO_T}$hard_links" >&6
6912   if test "$hard_links" = no; then
6913     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6914 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6915     need_locks=warn
6916   fi
6917 else
6918   need_locks=no
6919 fi
6920
6921
6922
6923
6924
6925
6926   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6927 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6928
6929   runpath_var=
6930   allow_undefined_flag=
6931   always_export_symbols=no
6932   archive_cmds=
6933   archive_expsym_cmds=
6934   compiler_needs_object=no
6935   enable_shared_with_static_runtimes=no
6936   export_dynamic_flag_spec=
6937   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6938   hardcode_automatic=no
6939   hardcode_direct=no
6940   hardcode_direct_absolute=no
6941   hardcode_libdir_flag_spec=
6942   hardcode_libdir_flag_spec_ld=
6943   hardcode_libdir_separator=
6944   hardcode_minus_L=no
6945   hardcode_shlibpath_var=unsupported
6946   inherit_rpath=no
6947   link_all_deplibs=unknown
6948   module_cmds=
6949   module_expsym_cmds=
6950   old_archive_from_new_cmds=
6951   old_archive_from_expsyms_cmds=
6952   thread_safe_flag_spec=
6953   whole_archive_flag_spec=
6954   # include_expsyms should be a list of space-separated symbols to be *always*
6955   # included in the symbol list
6956   include_expsyms=
6957   # exclude_expsyms can be an extended regexp of symbols to exclude
6958   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6959   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6960   # as well as any symbol that contains `d'.
6961   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6962   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6963   # platforms (ab)use it in PIC code, but their linkers get confused if
6964   # the symbol is explicitly referenced.  Since portable code cannot
6965   # rely on this symbol name, it's probably fine to never include it in
6966   # preloaded symbol tables.
6967   extract_expsyms_cmds=
6968
6969   case $host_os in
6970   cygwin* | mingw* | pw32*)
6971     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6972     # When not using gcc, we currently assume that we are using
6973     # Microsoft Visual C++.
6974     if test "$GCC" != yes; then
6975       with_gnu_ld=no
6976     fi
6977     ;;
6978   interix*)
6979     # we just hope/assume this is gcc and not c89 (= MSVC++)
6980     with_gnu_ld=yes
6981     ;;
6982   openbsd*)
6983     with_gnu_ld=no
6984     ;;
6985   esac
6986
6987   ld_shlibs=yes
6988   if test "$with_gnu_ld" = yes; then
6989     # If archive_cmds runs LD, not CC, wlarc should be empty
6990     wlarc='${wl}'
6991
6992     # Set some defaults for GNU ld with shared library support. These
6993     # are reset later if shared libraries are not supported. Putting them
6994     # here allows them to be overridden if necessary.
6995     runpath_var=LD_RUN_PATH
6996     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6997     export_dynamic_flag_spec='${wl}--export-dynamic'
6998     # ancient GNU ld didn't support --whole-archive et. al.
6999     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7000       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7001     else
7002       whole_archive_flag_spec=
7003     fi
7004     supports_anon_versioning=no
7005     case `$LD -v 2>&1` in
7006       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7007       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7008       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7009       *\ 2.11.*) ;; # other 2.11 versions
7010       *) supports_anon_versioning=yes ;;
7011     esac
7012
7013     # See if GNU ld supports shared libraries.
7014     case $host_os in
7015     aix[3-9]*)
7016       # On AIX/PPC, the GNU linker is very broken
7017       if test "$host_cpu" != ia64; then
7018         ld_shlibs=no
7019         cat <<_LT_EOF 1>&2
7020
7021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7022 *** to be unable to reliably create shared libraries on AIX.
7023 *** Therefore, libtool is disabling shared libraries support.  If you
7024 *** really care for shared libraries, you may want to modify your PATH
7025 *** so that a non-GNU linker is found, and then restart.
7026
7027 _LT_EOF
7028       fi
7029       ;;
7030
7031     amigaos*)
7032       if test "$host_cpu" = m68k; then
7033         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)'
7034         hardcode_libdir_flag_spec='-L$libdir'
7035         hardcode_minus_L=yes
7036       fi
7037
7038       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7039       # that the semantics of dynamic libraries on AmigaOS, at least up
7040       # to version 4, is to share data among multiple programs linked
7041       # with the same dynamic library.  Since this doesn't match the
7042       # behavior of shared libraries on other platforms, we can't use
7043       # them.
7044       ld_shlibs=no
7045       ;;
7046
7047     beos*)
7048       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7049         allow_undefined_flag=unsupported
7050         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7051         # support --undefined.  This deserves some investigation.  FIXME
7052         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7053       else
7054         ld_shlibs=no
7055       fi
7056       ;;
7057
7058     cygwin* | mingw* | pw32*)
7059       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7060       # as there is no search path for DLLs.
7061       hardcode_libdir_flag_spec='-L$libdir'
7062       allow_undefined_flag=unsupported
7063       always_export_symbols=no
7064       enable_shared_with_static_runtimes=yes
7065       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7066
7067       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7068         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7069         # If the export-symbols file already is a .def file (1st line
7070         # is EXPORTS), use it as is; otherwise, prepend...
7071         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7072           cp $export_symbols $output_objdir/$soname.def;
7073         else
7074           echo EXPORTS > $output_objdir/$soname.def;
7075           cat $export_symbols >> $output_objdir/$soname.def;
7076         fi~
7077         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7078       else
7079         ld_shlibs=no
7080       fi
7081       ;;
7082
7083     interix[3-9]*)
7084       hardcode_direct=no
7085       hardcode_shlibpath_var=no
7086       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7087       export_dynamic_flag_spec='${wl}-E'
7088       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7089       # Instead, shared libraries are loaded at an image base (0x10000000 by
7090       # default) and relocated if they conflict, which is a slow very memory
7091       # consuming and fragmenting process.  To avoid this, we pick a random,
7092       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7093       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7094       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7095       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'
7096       ;;
7097
7098     gnu* | linux* | tpf* | k*bsd*-gnu)
7099       tmp_diet=no
7100       if test "$host_os" = linux-dietlibc; then
7101         case $cc_basename in
7102           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7103         esac
7104       fi
7105       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7106          && test "$tmp_diet" = no
7107       then
7108         tmp_addflag=
7109         case $cc_basename,$host_cpu in
7110         pgcc*)                          # Portland Group C compiler
7111           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7112           tmp_addflag=' $pic_flag'
7113           ;;
7114         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7115           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7116           tmp_addflag=' $pic_flag -Mnomain' ;;
7117         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7118           tmp_addflag=' -i_dynamic' ;;
7119         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7120           tmp_addflag=' -i_dynamic -nofor_main' ;;
7121         ifc* | ifort*)                  # Intel Fortran compiler
7122           tmp_addflag=' -nofor_main' ;;
7123         esac
7124         case `$CC -V 2>&1 | sed 5q` in
7125         *Sun\ C*)                       # Sun C 5.9
7126           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7127           compiler_needs_object=yes
7128           tmp_sharedflag='-G' ;;
7129         *Sun\ F*)                       # Sun Fortran 8.3
7130           tmp_sharedflag='-G' ;;
7131         *)
7132           tmp_sharedflag='-shared' ;;
7133         esac
7134         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7135
7136         if test "x$supports_anon_versioning" = xyes; then
7137           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7138             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7139             echo "local: *; };" >> $output_objdir/$libname.ver~
7140             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7141         fi
7142       else
7143         ld_shlibs=no
7144       fi
7145       ;;
7146
7147     netbsd*)
7148       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7149         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7150         wlarc=
7151       else
7152         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7153         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7154       fi
7155       ;;
7156
7157     solaris*)
7158       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7159         ld_shlibs=no
7160         cat <<_LT_EOF 1>&2
7161
7162 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7163 *** create shared libraries on Solaris systems.  Therefore, libtool
7164 *** is disabling shared libraries support.  We urge you to upgrade GNU
7165 *** binutils to release 2.9.1 or newer.  Another option is to modify
7166 *** your PATH or compiler configuration so that the native linker is
7167 *** used, and then restart.
7168
7169 _LT_EOF
7170       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7171         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7172         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7173       else
7174         ld_shlibs=no
7175       fi
7176       ;;
7177
7178     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7179       case `$LD -v 2>&1` in
7180         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7181         ld_shlibs=no
7182         cat <<_LT_EOF 1>&2
7183
7184 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7185 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7186 *** is disabling shared libraries support.  We urge you to upgrade GNU
7187 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7188 *** your PATH or compiler configuration so that the native linker is
7189 *** used, and then restart.
7190
7191 _LT_EOF
7192         ;;
7193         *)
7194           # For security reasons, it is highly recommended that you always
7195           # use absolute paths for naming shared libraries, and exclude the
7196           # DT_RUNPATH tag from executables and libraries.  But doing so
7197           # requires that you compile everything twice, which is a pain.
7198           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7199             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7201             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7202           else
7203             ld_shlibs=no
7204           fi
7205         ;;
7206       esac
7207       ;;
7208
7209     sunos4*)
7210       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7211       wlarc=
7212       hardcode_direct=yes
7213       hardcode_shlibpath_var=no
7214       ;;
7215
7216     *)
7217       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7218         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7219         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7220       else
7221         ld_shlibs=no
7222       fi
7223       ;;
7224     esac
7225
7226     if test "$ld_shlibs" = no; then
7227       runpath_var=
7228       hardcode_libdir_flag_spec=
7229       export_dynamic_flag_spec=
7230       whole_archive_flag_spec=
7231     fi
7232   else
7233     # PORTME fill in a description of your system's linker (not GNU ld)
7234     case $host_os in
7235     aix3*)
7236       allow_undefined_flag=unsupported
7237       always_export_symbols=yes
7238       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'
7239       # Note: this linker hardcodes the directories in LIBPATH if there
7240       # are no directories specified by -L.
7241       hardcode_minus_L=yes
7242       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7243         # Neither direct hardcoding nor static linking is supported with a
7244         # broken collect2.
7245         hardcode_direct=unsupported
7246       fi
7247       ;;
7248
7249     aix[4-9]*)
7250       if test "$host_cpu" = ia64; then
7251         # On IA64, the linker does run time linking by default, so we don't
7252         # have to do anything special.
7253         aix_use_runtimelinking=no
7254         exp_sym_flag='-Bexport'
7255         no_entry_flag=""
7256       else
7257         # If we're using GNU nm, then we don't want the "-C" option.
7258         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7259         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7260           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7261         else
7262           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'
7263         fi
7264         aix_use_runtimelinking=no
7265
7266         # Test if we are trying to use run time linking or normal
7267         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7268         # need to do runtime linking.
7269         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7270           for ld_flag in $LDFLAGS; do
7271           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7272             aix_use_runtimelinking=yes
7273             break
7274           fi
7275           done
7276           ;;
7277         esac
7278
7279         exp_sym_flag='-bexport'
7280         no_entry_flag='-bnoentry'
7281       fi
7282
7283       # When large executables or shared objects are built, AIX ld can
7284       # have problems creating the table of contents.  If linking a library
7285       # or program results in "error TOC overflow" add -mminimal-toc to
7286       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7287       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7288
7289       archive_cmds=''
7290       hardcode_direct=yes
7291       hardcode_direct_absolute=yes
7292       hardcode_libdir_separator=':'
7293       link_all_deplibs=yes
7294       file_list_spec='${wl}-f,'
7295
7296       if test "$GCC" = yes; then
7297         case $host_os in aix4.[012]|aix4.[012].*)
7298         # We only want to do this on AIX 4.2 and lower, the check
7299         # below for broken collect2 doesn't work under 4.3+
7300           collect2name=`${CC} -print-prog-name=collect2`
7301           if test -f "$collect2name" &&
7302            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7303           then
7304           # We have reworked collect2
7305           :
7306           else
7307           # We have old collect2
7308           hardcode_direct=unsupported
7309           # It fails to find uninstalled libraries when the uninstalled
7310           # path is not listed in the libpath.  Setting hardcode_minus_L
7311           # to unsupported forces relinking
7312           hardcode_minus_L=yes
7313           hardcode_libdir_flag_spec='-L$libdir'
7314           hardcode_libdir_separator=
7315           fi
7316           ;;
7317         esac
7318         shared_flag='-shared'
7319         if test "$aix_use_runtimelinking" = yes; then
7320           shared_flag="$shared_flag "'${wl}-G'
7321         fi
7322       else
7323         # not using gcc
7324         if test "$host_cpu" = ia64; then
7325         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7326         # chokes on -Wl,-G. The following line is correct:
7327           shared_flag='-G'
7328         else
7329           if test "$aix_use_runtimelinking" = yes; then
7330             shared_flag='${wl}-G'
7331           else
7332             shared_flag='${wl}-bM:SRE'
7333           fi
7334         fi
7335       fi
7336
7337       # It seems that -bexpall does not export symbols beginning with
7338       # underscore (_), so it is better to generate a list of symbols to export.
7339       always_export_symbols=yes
7340       if test "$aix_use_runtimelinking" = yes; then
7341         # Warning - without using the other runtime loading flags (-brtl),
7342         # -berok will link without error, but may produce a broken library.
7343         allow_undefined_flag='-berok'
7344         # Determine the default libpath from the value encoded in an
7345         # empty executable.
7346         cat >conftest.$ac_ext <<_ACEOF
7347 /* confdefs.h.  */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h.  */
7352
7353 int
7354 main ()
7355 {
7356
7357   ;
7358   return 0;
7359 }
7360 _ACEOF
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363   (eval $ac_link) 2>conftest.er1
7364   ac_status=$?
7365   grep -v '^ *+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
7367   cat conftest.err >&5
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } &&
7370          { ac_try='test -z "$ac_c_werror_flag"
7371                          || test ! -s conftest.err'
7372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373   (eval $ac_try) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }; } &&
7377          { ac_try='test -s conftest$ac_exeext'
7378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379   (eval $ac_try) 2>&5
7380   ac_status=$?
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); }; }; then
7383
7384 lt_aix_libpath_sed='
7385     /Import File Strings/,/^$/ {
7386         /^0/ {
7387             s/^0  *\(.*\)$/\1/
7388             p
7389         }
7390     }'
7391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7392 # Check for a 64-bit object if we didn't find anything.
7393 if test -z "$aix_libpath"; then
7394   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7395 fi
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400 fi
7401 rm -f conftest.err conftest.$ac_objext \
7402       conftest$ac_exeext conftest.$ac_ext
7403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7404
7405         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7406         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7407       else
7408         if test "$host_cpu" = ia64; then
7409           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7410           allow_undefined_flag="-z nodefs"
7411           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"
7412         else
7413          # Determine the default libpath from the value encoded in an
7414          # empty executable.
7415          cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h.  */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h.  */
7421
7422 int
7423 main ()
7424 {
7425
7426   ;
7427   return 0;
7428 }
7429 _ACEOF
7430 rm -f conftest.$ac_objext conftest$ac_exeext
7431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432   (eval $ac_link) 2>conftest.er1
7433   ac_status=$?
7434   grep -v '^ *+' conftest.er1 >conftest.err
7435   rm -f conftest.er1
7436   cat conftest.err >&5
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); } &&
7439          { ac_try='test -z "$ac_c_werror_flag"
7440                          || test ! -s conftest.err'
7441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442   (eval $ac_try) 2>&5
7443   ac_status=$?
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); }; } &&
7446          { ac_try='test -s conftest$ac_exeext'
7447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448   (eval $ac_try) 2>&5
7449   ac_status=$?
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); }; }; then
7452
7453 lt_aix_libpath_sed='
7454     /Import File Strings/,/^$/ {
7455         /^0/ {
7456             s/^0  *\(.*\)$/\1/
7457             p
7458         }
7459     }'
7460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7461 # Check for a 64-bit object if we didn't find anything.
7462 if test -z "$aix_libpath"; then
7463   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7464 fi
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 fi
7470 rm -f conftest.err conftest.$ac_objext \
7471       conftest$ac_exeext conftest.$ac_ext
7472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7473
7474          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7475           # Warning - without using the other run time loading flags,
7476           # -berok will link without error, but may produce a broken library.
7477           no_undefined_flag=' ${wl}-bernotok'
7478           allow_undefined_flag=' ${wl}-berok'
7479           # Exported symbols can be pulled into shared objects from archives
7480           whole_archive_flag_spec='$convenience'
7481           archive_cmds_need_lc=yes
7482           # This is similar to how AIX traditionally builds its shared libraries.
7483           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'
7484         fi
7485       fi
7486       ;;
7487
7488     amigaos*)
7489       if test "$host_cpu" = m68k; then
7490         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)'
7491         hardcode_libdir_flag_spec='-L$libdir'
7492         hardcode_minus_L=yes
7493       fi
7494       # see comment about different semantics on the GNU ld section
7495       ld_shlibs=no
7496       ;;
7497
7498     bsdi[45]*)
7499       export_dynamic_flag_spec=-rdynamic
7500       ;;
7501
7502     cygwin* | mingw* | pw32*)
7503       # When not using gcc, we currently assume that we are using
7504       # Microsoft Visual C++.
7505       # hardcode_libdir_flag_spec is actually meaningless, as there is
7506       # no search path for DLLs.
7507       hardcode_libdir_flag_spec=' '
7508       allow_undefined_flag=unsupported
7509       # Tell ltmain to make .lib files, not .a files.
7510       libext=lib
7511       # Tell ltmain to make .dll files, not .so files.
7512       shrext_cmds=".dll"
7513       # FIXME: Setting linknames here is a bad hack.
7514       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7515       # The linker will automatically build a .lib file if we build a DLL.
7516       old_archive_from_new_cmds='true'
7517       # FIXME: Should let the user specify the lib program.
7518       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7519       fix_srcfile_path='`cygpath -w "$srcfile"`'
7520       enable_shared_with_static_runtimes=yes
7521       ;;
7522
7523     darwin* | rhapsody*)
7524       case $host_os in
7525       rhapsody* | darwin1.[012])
7526         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7527         ;;
7528       *) # Darwin 1.3 on
7529         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7530         10.[012])
7531           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7532           ;;
7533         10.*)
7534           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7535           ;;
7536         esac
7537         ;;
7538       esac
7539       archive_cmds_need_lc=no
7540       hardcode_direct=no
7541       hardcode_automatic=yes
7542       hardcode_shlibpath_var=unsupported
7543       whole_archive_flag_spec=''
7544       link_all_deplibs=yes
7545       if test "$GCC" = yes ; then
7546         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   lt_cv_apple_cc_single_mod=no
7550         if test -z "${LT_MULTI_MODULE}"; then
7551           # By default we will add the -single_module flag. You can override
7552           # by either setting the environment variable LT_MULTI_MODULE
7553           # non-empty at configure time, or by adding -multi-module to the
7554           # link flags.
7555           echo "int foo(void){return 1;}" > conftest.c
7556           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7557               -dynamiclib ${wl}-single_module conftest.c
7558           if test -f libconftest.dylib; then
7559               lt_cv_apple_cc_single_mod=yes
7560               rm libconftest.dylib
7561           fi
7562           rm conftest.$ac_ext
7563         fi
7564 fi
7565
7566         output_verbose_link_cmd=echo
7567         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7568           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7569           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7570         else
7571           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7572           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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7573         fi
7574         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7575         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7576       else
7577         case $cc_basename in
7578         xlc*)
7579           output_verbose_link_cmd=echo
7580           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7581           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7582           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7583           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7584           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7585           ;;
7586         *)
7587           ld_shlibs=no
7588           ;;
7589         esac
7590       fi
7591       ;;
7592
7593     dgux*)
7594       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595       hardcode_libdir_flag_spec='-L$libdir'
7596       hardcode_shlibpath_var=no
7597       ;;
7598
7599     freebsd1*)
7600       ld_shlibs=no
7601       ;;
7602
7603     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7604     # support.  Future versions do this automatically, but an explicit c++rt0.o
7605     # does not break anything, and helps significantly (at the cost of a little
7606     # extra space).
7607     freebsd2.2*)
7608       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7609       hardcode_libdir_flag_spec='-R$libdir'
7610       hardcode_direct=yes
7611       hardcode_shlibpath_var=no
7612       ;;
7613
7614     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7615     freebsd2*)
7616       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7617       hardcode_direct=yes
7618       hardcode_minus_L=yes
7619       hardcode_shlibpath_var=no
7620       ;;
7621
7622     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7623     freebsd* | dragonfly*)
7624       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7625       hardcode_libdir_flag_spec='-R$libdir'
7626       hardcode_direct=yes
7627       hardcode_shlibpath_var=no
7628       ;;
7629
7630     hpux9*)
7631       if test "$GCC" = yes; then
7632         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'
7633       else
7634         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'
7635       fi
7636       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7637       hardcode_libdir_separator=:
7638       hardcode_direct=yes
7639
7640       # hardcode_minus_L: Not really in the search PATH,
7641       # but as the default location of the library.
7642       hardcode_minus_L=yes
7643       export_dynamic_flag_spec='${wl}-E'
7644       ;;
7645
7646     hpux10*)
7647       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7648         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7649       else
7650         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7651       fi
7652       if test "$with_gnu_ld" = no; then
7653         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7654         hardcode_libdir_flag_spec_ld='+b $libdir'
7655         hardcode_libdir_separator=:
7656         hardcode_direct=yes
7657         hardcode_direct_absolute=yes
7658         export_dynamic_flag_spec='${wl}-E'
7659         # hardcode_minus_L: Not really in the search PATH,
7660         # but as the default location of the library.
7661         hardcode_minus_L=yes
7662       fi
7663       ;;
7664
7665     hpux11*)
7666       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7667         case $host_cpu in
7668         hppa*64*)
7669           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7670           ;;
7671         ia64*)
7672           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7673           ;;
7674         *)
7675           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7676           ;;
7677         esac
7678       else
7679         case $host_cpu in
7680         hppa*64*)
7681           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7682           ;;
7683         ia64*)
7684           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7685           ;;
7686         *)
7687           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7688           ;;
7689         esac
7690       fi
7691       if test "$with_gnu_ld" = no; then
7692         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7693         hardcode_libdir_separator=:
7694
7695         case $host_cpu in
7696         hppa*64*|ia64*)
7697           hardcode_direct=no
7698           hardcode_shlibpath_var=no
7699           ;;
7700         *)
7701           hardcode_direct=yes
7702           hardcode_direct_absolute=yes
7703           export_dynamic_flag_spec='${wl}-E'
7704
7705           # hardcode_minus_L: Not really in the search PATH,
7706           # but as the default location of the library.
7707           hardcode_minus_L=yes
7708           ;;
7709         esac
7710       fi
7711       ;;
7712
7713     irix5* | irix6* | nonstopux*)
7714       if test "$GCC" = yes; then
7715         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7716         # Try to use the -exported_symbol ld option, if it does not
7717         # work, assume that -exports_file does not work either and
7718         # implicitly export all symbols.
7719         save_LDFLAGS="$LDFLAGS"
7720         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7721         cat >conftest.$ac_ext <<_ACEOF
7722 int foo(void) {}
7723 _ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726   (eval $ac_link) 2>conftest.er1
7727   ac_status=$?
7728   grep -v '^ *+' conftest.er1 >conftest.err
7729   rm -f conftest.er1
7730   cat conftest.err >&5
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); } &&
7733          { ac_try='test -z "$ac_c_werror_flag"
7734                          || test ! -s conftest.err'
7735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736   (eval $ac_try) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; } &&
7740          { ac_try='test -s conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7747
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 fi
7753 rm -f conftest.err conftest.$ac_objext \
7754       conftest$ac_exeext conftest.$ac_ext
7755         LDFLAGS="$save_LDFLAGS"
7756       else
7757         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7758         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7759       fi
7760       archive_cmds_need_lc='no'
7761       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7762       hardcode_libdir_separator=:
7763       inherit_rpath=yes
7764       link_all_deplibs=yes
7765       ;;
7766
7767     netbsd*)
7768       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7769         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7770       else
7771         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7772       fi
7773       hardcode_libdir_flag_spec='-R$libdir'
7774       hardcode_direct=yes
7775       hardcode_shlibpath_var=no
7776       ;;
7777
7778     newsos6)
7779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7780       hardcode_direct=yes
7781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7782       hardcode_libdir_separator=:
7783       hardcode_shlibpath_var=no
7784       ;;
7785
7786     *nto* | *qnx*)
7787       ;;
7788
7789     openbsd*)
7790       hardcode_direct=yes
7791       hardcode_shlibpath_var=no
7792       hardcode_direct_absolute=yes
7793       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7794         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7795         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7796         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7797         export_dynamic_flag_spec='${wl}-E'
7798       else
7799         case $host_os in
7800         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7801           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7802           hardcode_libdir_flag_spec='-R$libdir'
7803           ;;
7804         *)
7805           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7806           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7807           ;;
7808         esac
7809       fi
7810       ;;
7811
7812     os2*)
7813       hardcode_libdir_flag_spec='-L$libdir'
7814       hardcode_minus_L=yes
7815       allow_undefined_flag=unsupported
7816       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'
7817       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7818       ;;
7819
7820     osf3*)
7821       if test "$GCC" = yes; then
7822         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7823         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7824       else
7825         allow_undefined_flag=' -expect_unresolved \*'
7826         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7827       fi
7828       archive_cmds_need_lc='no'
7829       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830       hardcode_libdir_separator=:
7831       ;;
7832
7833     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7834       if test "$GCC" = yes; then
7835         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7836         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7837         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7838       else
7839         allow_undefined_flag=' -expect_unresolved \*'
7840         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7841         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~
7842         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7843
7844         # Both c and cxx compiler support -rpath directly
7845         hardcode_libdir_flag_spec='-rpath $libdir'
7846       fi
7847       archive_cmds_need_lc='no'
7848       hardcode_libdir_separator=:
7849       ;;
7850
7851     solaris*)
7852       no_undefined_flag=' -z defs'
7853       if test "$GCC" = yes; then
7854         wlarc='${wl}'
7855         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7856         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7857           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7858       else
7859         case `$CC -V 2>&1` in
7860         *"Compilers 5.0"*)
7861           wlarc=''
7862           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7864           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7865           ;;
7866         *)
7867           wlarc='${wl}'
7868           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7869           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7870           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7871           ;;
7872         esac
7873       fi
7874       hardcode_libdir_flag_spec='-R$libdir'
7875       hardcode_shlibpath_var=no
7876       case $host_os in
7877       solaris2.[0-5] | solaris2.[0-5].*) ;;
7878       *)
7879         # The compiler driver will combine and reorder linker options,
7880         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7881         # but is careful enough not to reorder.
7882         # Supported since Solaris 2.6 (maybe 2.5.1?)
7883         if test "$GCC" = yes; then
7884           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7885         else
7886           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7887         fi
7888         ;;
7889       esac
7890       link_all_deplibs=yes
7891       ;;
7892
7893     sunos4*)
7894       if test "x$host_vendor" = xsequent; then
7895         # Use $CC to link under sequent, because it throws in some extra .o
7896         # files that make .init and .fini sections work.
7897         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7898       else
7899         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7900       fi
7901       hardcode_libdir_flag_spec='-L$libdir'
7902       hardcode_direct=yes
7903       hardcode_minus_L=yes
7904       hardcode_shlibpath_var=no
7905       ;;
7906
7907     sysv4)
7908       case $host_vendor in
7909         sni)
7910           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7911           hardcode_direct=yes # is this really true???
7912         ;;
7913         siemens)
7914           ## LD is ld it makes a PLAMLIB
7915           ## CC just makes a GrossModule.
7916           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7917           reload_cmds='$CC -r -o $output$reload_objs'
7918           hardcode_direct=no
7919         ;;
7920         motorola)
7921           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7922           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7923         ;;
7924       esac
7925       runpath_var='LD_RUN_PATH'
7926       hardcode_shlibpath_var=no
7927       ;;
7928
7929     sysv4.3*)
7930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7931       hardcode_shlibpath_var=no
7932       export_dynamic_flag_spec='-Bexport'
7933       ;;
7934
7935     sysv4*MP*)
7936       if test -d /usr/nec; then
7937         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7938         hardcode_shlibpath_var=no
7939         runpath_var=LD_RUN_PATH
7940         hardcode_runpath_var=yes
7941         ld_shlibs=yes
7942       fi
7943       ;;
7944
7945     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7946       no_undefined_flag='${wl}-z,text'
7947       archive_cmds_need_lc=no
7948       hardcode_shlibpath_var=no
7949       runpath_var='LD_RUN_PATH'
7950
7951       if test "$GCC" = yes; then
7952         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7953         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7954       else
7955         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7956         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7957       fi
7958       ;;
7959
7960     sysv5* | sco3.2v5* | sco5v6*)
7961       # Note: We can NOT use -z defs as we might desire, because we do not
7962       # link with -lc, and that would cause any symbols used from libc to
7963       # always be unresolved, which means just about no library would
7964       # ever link correctly.  If we're not using GNU ld we use -z text
7965       # though, which does catch some bad symbols but isn't as heavy-handed
7966       # as -z defs.
7967       no_undefined_flag='${wl}-z,text'
7968       allow_undefined_flag='${wl}-z,nodefs'
7969       archive_cmds_need_lc=no
7970       hardcode_shlibpath_var=no
7971       hardcode_libdir_flag_spec='${wl}-R,$libdir'
7972       hardcode_libdir_separator=':'
7973       link_all_deplibs=yes
7974       export_dynamic_flag_spec='${wl}-Bexport'
7975       runpath_var='LD_RUN_PATH'
7976
7977       if test "$GCC" = yes; then
7978         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7979         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7980       else
7981         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7982         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7983       fi
7984       ;;
7985
7986     uts4*)
7987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7988       hardcode_libdir_flag_spec='-L$libdir'
7989       hardcode_shlibpath_var=no
7990       ;;
7991
7992     *)
7993       ld_shlibs=no
7994       ;;
7995     esac
7996
7997     if test x$host_vendor = xsni; then
7998       case $host in
7999       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8000         export_dynamic_flag_spec='${wl}-Blargedynsym'
8001         ;;
8002       esac
8003     fi
8004   fi
8005
8006 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8007 echo "${ECHO_T}$ld_shlibs" >&6
8008 test "$ld_shlibs" = no && can_build_shared=no
8009
8010 with_gnu_ld=$with_gnu_ld
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 #
8027 # Do we need to explicitly link libc?
8028 #
8029 case "x$archive_cmds_need_lc" in
8030 x|xyes)
8031   # Assume -lc should be added
8032   archive_cmds_need_lc=yes
8033
8034   if test "$enable_shared" = yes && test "$GCC" = yes; then
8035     case $archive_cmds in
8036     *'~'*)
8037       # FIXME: we may have to deal with multi-command sequences.
8038       ;;
8039     '$CC '*)
8040       # Test whether the compiler implicitly links with -lc since on some
8041       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8042       # to ld, don't add -lc before -lgcc.
8043       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8044 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8045       $RM conftest*
8046       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8047
8048       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049   (eval $ac_compile) 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } 2>conftest.err; then
8053         soname=conftest
8054         lib=conftest
8055         libobjs=conftest.$ac_objext
8056         deplibs=
8057         wl=$lt_prog_compiler_wl
8058         pic_flag=$lt_prog_compiler_pic
8059         compiler_flags=-v
8060         linker_flags=-v
8061         verstring=
8062         output_objdir=.
8063         libname=conftest
8064         lt_save_allow_undefined_flag=$allow_undefined_flag
8065         allow_undefined_flag=
8066         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8067   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); }
8071         then
8072           archive_cmds_need_lc=no
8073         else
8074           archive_cmds_need_lc=yes
8075         fi
8076         allow_undefined_flag=$lt_save_allow_undefined_flag
8077       else
8078         cat conftest.err 1>&5
8079       fi
8080       $RM conftest*
8081       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8082 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8083       ;;
8084     esac
8085   fi
8086   ;;
8087 esac
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8246 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8247 withGCC=$GCC
8248 if test "$withGCC" = yes; then
8249   case $host_os in
8250     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8251     *) lt_awk_arg="/^libraries:/" ;;
8252   esac
8253   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8254   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8255     # if the path contains ";" then we assume it to be the separator
8256     # otherwise default to the standard path separator (i.e. ":") - it is
8257     # assumed that no part of a normal pathname contains ";" but that should
8258     # okay in the real world where ";" in dirpaths is itself problematic.
8259     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8260   else
8261     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8262   fi
8263   # Ok, now we have the path, separated by spaces, we can step through it
8264   # and add multilib dir if necessary.
8265   lt_tmp_lt_search_path_spec=
8266   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8267   for lt_sys_path in $lt_search_path_spec; do
8268     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8269       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8270     else
8271       test -d "$lt_sys_path" && \
8272         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8273     fi
8274   done
8275   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8276 BEGIN {RS=" "; FS="/|\n";} {
8277   lt_foo="";
8278   lt_count=0;
8279   for (lt_i = NF; lt_i > 0; lt_i--) {
8280     if ($lt_i != "" && $lt_i != ".") {
8281       if ($lt_i == "..") {
8282         lt_count++;
8283       } else {
8284         if (lt_count == 0) {
8285           lt_foo="/" $lt_i lt_foo;
8286         } else {
8287           lt_count--;
8288         }
8289       }
8290     }
8291   }
8292   if (lt_foo != "") { lt_freq[lt_foo]++; }
8293   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8294 }'`
8295   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8296 else
8297   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8298 fi
8299 library_names_spec=
8300 libname_spec='lib$name'
8301 soname_spec=
8302 shrext_cmds=".so"
8303 postinstall_cmds=
8304 postuninstall_cmds=
8305 finish_cmds=
8306 finish_eval=
8307 shlibpath_var=
8308 shlibpath_overrides_runpath=unknown
8309 version_type=none
8310 dynamic_linker="$host_os ld.so"
8311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8312 need_lib_prefix=unknown
8313 hardcode_into_libs=no
8314
8315 # when you set need_version to no, make sure it does not cause -set_version
8316 # flags to be left without arguments
8317 need_version=unknown
8318
8319 case $host_os in
8320 aix3*)
8321   version_type=linux
8322   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8323   shlibpath_var=LIBPATH
8324
8325   # AIX 3 has no versioning support, so we append a major version to the name.
8326   soname_spec='${libname}${release}${shared_ext}$major'
8327   ;;
8328
8329 aix[4-9]*)
8330   version_type=linux
8331   need_lib_prefix=no
8332   need_version=no
8333   hardcode_into_libs=yes
8334   if test "$host_cpu" = ia64; then
8335     # AIX 5 supports IA64
8336     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8337     shlibpath_var=LD_LIBRARY_PATH
8338   else
8339     # With GCC up to 2.95.x, collect2 would create an import file
8340     # for dependence libraries.  The import file would start with
8341     # the line `#! .'.  This would cause the generated library to
8342     # depend on `.', always an invalid library.  This was fixed in
8343     # development snapshots of GCC prior to 3.0.
8344     case $host_os in
8345       aix4 | aix4.[01] | aix4.[01].*)
8346       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8347            echo ' yes '
8348            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8349         :
8350       else
8351         can_build_shared=no
8352       fi
8353       ;;
8354     esac
8355     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8356     # soname into executable. Probably we can add versioning support to
8357     # collect2, so additional links can be useful in future.
8358     if test "$aix_use_runtimelinking" = yes; then
8359       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8360       # instead of lib<name>.a to let people know that these are not
8361       # typical AIX shared libraries.
8362       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363     else
8364       # We preserve .a as extension for shared libraries through AIX4.2
8365       # and later when we are not doing run time linking.
8366       library_names_spec='${libname}${release}.a $libname.a'
8367       soname_spec='${libname}${release}${shared_ext}$major'
8368     fi
8369     shlibpath_var=LIBPATH
8370   fi
8371   ;;
8372
8373 amigaos*)
8374   if test "$host_cpu" = m68k; then
8375     library_names_spec='$libname.ixlibrary $libname.a'
8376     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8377     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
8378   else
8379     dynamic_linker=no
8380   fi
8381   ;;
8382
8383 beos*)
8384   library_names_spec='${libname}${shared_ext}'
8385   dynamic_linker="$host_os ld.so"
8386   shlibpath_var=LIBRARY_PATH
8387   ;;
8388
8389 bsdi[45]*)
8390   version_type=linux
8391   need_version=no
8392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8393   soname_spec='${libname}${release}${shared_ext}$major'
8394   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8395   shlibpath_var=LD_LIBRARY_PATH
8396   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8397   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8398   # the default ld.so.conf also contains /usr/contrib/lib and
8399   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8400   # libtool to hard-code these into programs
8401   ;;
8402
8403 cygwin* | mingw* | pw32*)
8404   version_type=windows
8405   shrext_cmds=".dll"
8406   need_version=no
8407   need_lib_prefix=no
8408
8409   case $withGCC,$host_os in
8410   yes,cygwin* | yes,mingw* | yes,pw32*)
8411     library_names_spec='$libname.dll.a'
8412     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8413     postinstall_cmds='base_file=`basename \${file}`~
8414       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8415       dldir=$destdir/`dirname \$dlpath`~
8416       test -d \$dldir || mkdir -p \$dldir~
8417       $install_prog $dir/$dlname \$dldir/$dlname~
8418       chmod a+x \$dldir/$dlname~
8419       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8420         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8421       fi'
8422     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8423       dlpath=$dir/\$dldll~
8424        $RM \$dlpath'
8425     shlibpath_overrides_runpath=yes
8426
8427     case $host_os in
8428     cygwin*)
8429       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8430       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8431       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8432       ;;
8433     mingw*)
8434       # MinGW DLLs use traditional 'lib' prefix
8435       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8436       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8437       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8438         # It is most probably a Windows format PATH printed by
8439         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8440         # path with ; separators, and with drive letters. We can handle the
8441         # drive letters (cygwin fileutils understands them), so leave them,
8442         # especially as we might pass files found there to a mingw objdump,
8443         # which wouldn't understand a cygwinified path. Ahh.
8444         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8445       else
8446         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8447       fi
8448       ;;
8449     pw32*)
8450       # pw32 DLLs use 'pw' prefix rather than 'lib'
8451       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8452       ;;
8453     esac
8454     ;;
8455
8456   *)
8457     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8458     ;;
8459   esac
8460   dynamic_linker='Win32 ld.exe'
8461   # FIXME: first we should search . and the directory the executable is in
8462   shlibpath_var=PATH
8463   ;;
8464
8465 darwin* | rhapsody*)
8466   dynamic_linker="$host_os dyld"
8467   version_type=darwin
8468   need_lib_prefix=no
8469   need_version=no
8470   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8471   soname_spec='${libname}${release}${major}$shared_ext'
8472   shlibpath_overrides_runpath=yes
8473   shlibpath_var=DYLD_LIBRARY_PATH
8474   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8475
8476   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8477   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8478   ;;
8479
8480 dgux*)
8481   version_type=linux
8482   need_lib_prefix=no
8483   need_version=no
8484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8485   soname_spec='${libname}${release}${shared_ext}$major'
8486   shlibpath_var=LD_LIBRARY_PATH
8487   ;;
8488
8489 freebsd1*)
8490   dynamic_linker=no
8491   ;;
8492
8493 freebsd* | dragonfly*)
8494   # DragonFly does not have aout.  When/if they implement a new
8495   # versioning mechanism, adjust this.
8496   if test -x /usr/bin/objformat; then
8497     objformat=`/usr/bin/objformat`
8498   else
8499     case $host_os in
8500     freebsd[123]*) objformat=aout ;;
8501     *) objformat=elf ;;
8502     esac
8503   fi
8504   version_type=freebsd-$objformat
8505   case $version_type in
8506     freebsd-elf*)
8507       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8508       need_version=no
8509       need_lib_prefix=no
8510       ;;
8511     freebsd-*)
8512       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8513       need_version=yes
8514       ;;
8515   esac
8516   shlibpath_var=LD_LIBRARY_PATH
8517   case $host_os in
8518   freebsd2*)
8519     shlibpath_overrides_runpath=yes
8520     ;;
8521   freebsd3.[01]* | freebsdelf3.[01]*)
8522     shlibpath_overrides_runpath=yes
8523     hardcode_into_libs=yes
8524     ;;
8525   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8526   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8527     shlibpath_overrides_runpath=no
8528     hardcode_into_libs=yes
8529     ;;
8530   *) # from 4.6 on, and DragonFly
8531     shlibpath_overrides_runpath=yes
8532     hardcode_into_libs=yes
8533     ;;
8534   esac
8535   ;;
8536
8537 gnu*)
8538   version_type=linux
8539   need_lib_prefix=no
8540   need_version=no
8541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8542   soname_spec='${libname}${release}${shared_ext}$major'
8543   shlibpath_var=LD_LIBRARY_PATH
8544   hardcode_into_libs=yes
8545   ;;
8546
8547 hpux9* | hpux10* | hpux11*)
8548   # Give a soname corresponding to the major version so that dld.sl refuses to
8549   # link against other versions.
8550   version_type=sunos
8551   need_lib_prefix=no
8552   need_version=no
8553   case $host_cpu in
8554   ia64*)
8555     shrext_cmds='.so'
8556     hardcode_into_libs=yes
8557     dynamic_linker="$host_os dld.so"
8558     shlibpath_var=LD_LIBRARY_PATH
8559     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561     soname_spec='${libname}${release}${shared_ext}$major'
8562     if test "X$HPUX_IA64_MODE" = X32; then
8563       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8564     else
8565       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8566     fi
8567     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8568     ;;
8569   hppa*64*)
8570     shrext_cmds='.sl'
8571     hardcode_into_libs=yes
8572     dynamic_linker="$host_os dld.sl"
8573     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8574     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8575     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8576     soname_spec='${libname}${release}${shared_ext}$major'
8577     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8578     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8579     ;;
8580   *)
8581     shrext_cmds='.sl'
8582     dynamic_linker="$host_os dld.sl"
8583     shlibpath_var=SHLIB_PATH
8584     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586     soname_spec='${libname}${release}${shared_ext}$major'
8587     ;;
8588   esac
8589   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8590   postinstall_cmds='chmod 555 $lib'
8591   ;;
8592
8593 interix[3-9]*)
8594   version_type=linux
8595   need_lib_prefix=no
8596   need_version=no
8597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8598   soname_spec='${libname}${release}${shared_ext}$major'
8599   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8600   shlibpath_var=LD_LIBRARY_PATH
8601   shlibpath_overrides_runpath=no
8602   hardcode_into_libs=yes
8603   ;;
8604
8605 irix5* | irix6* | nonstopux*)
8606   case $host_os in
8607     nonstopux*) version_type=nonstopux ;;
8608     *)
8609         if test "$lt_cv_prog_gnu_ld" = yes; then
8610                 version_type=linux
8611         else
8612                 version_type=irix
8613         fi ;;
8614   esac
8615   need_lib_prefix=no
8616   need_version=no
8617   soname_spec='${libname}${release}${shared_ext}$major'
8618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8619   case $host_os in
8620   irix5* | nonstopux*)
8621     libsuff= shlibsuff=
8622     ;;
8623   *)
8624     case $LD in # libtool.m4 will add one of these switches to LD
8625     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8626       libsuff= shlibsuff= libmagic=32-bit;;
8627     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8628       libsuff=32 shlibsuff=N32 libmagic=N32;;
8629     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8630       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8631     *) libsuff= shlibsuff= libmagic=never-match;;
8632     esac
8633     ;;
8634   esac
8635   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8636   shlibpath_overrides_runpath=no
8637   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8638   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8639   hardcode_into_libs=yes
8640   ;;
8641
8642 # No shared lib support for Linux oldld, aout, or coff.
8643 linux*oldld* | linux*aout* | linux*coff*)
8644   dynamic_linker=no
8645   ;;
8646
8647 # This must be Linux ELF.
8648 linux* | k*bsd*-gnu)
8649   version_type=linux
8650   need_lib_prefix=no
8651   need_version=no
8652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8653   soname_spec='${libname}${release}${shared_ext}$major'
8654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8655   shlibpath_var=LD_LIBRARY_PATH
8656   shlibpath_overrides_runpath=no
8657   # Some binutils ld are patched to set DT_RUNPATH
8658   save_LDFLAGS=$LDFLAGS
8659   save_libdir=$libdir
8660   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8661        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8662   cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668
8669 int
8670 main ()
8671 {
8672
8673   ;
8674   return 0;
8675 }
8676 _ACEOF
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8679   (eval $ac_link) 2>conftest.er1
8680   ac_status=$?
8681   grep -v '^ *+' conftest.er1 >conftest.err
8682   rm -f conftest.er1
8683   cat conftest.err >&5
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); } &&
8686          { ac_try='test -z "$ac_c_werror_flag"
8687                          || test ! -s conftest.err'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; } &&
8693          { ac_try='test -s conftest$ac_exeext'
8694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695   (eval $ac_try) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); }; }; then
8699   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8700   shlibpath_overrides_runpath=yes
8701 fi
8702
8703 else
8704   echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 fi
8708 rm -f conftest.err conftest.$ac_objext \
8709       conftest$ac_exeext conftest.$ac_ext
8710   LDFLAGS=$save_LDFLAGS
8711   libdir=$save_libdir
8712
8713   # This implies no fast_install, which is unacceptable.
8714   # Some rework will be needed to allow for fast_install
8715   # before this can be enabled.
8716   hardcode_into_libs=yes
8717
8718   # Append ld.so.conf contents to the search path
8719   if test -f /etc/ld.so.conf; then
8720     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8721     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8722   fi
8723
8724   # We used to test for /lib/ld.so.1 and disable shared libraries on
8725   # powerpc, because MkLinux only supported shared libraries with the
8726   # GNU dynamic linker.  Since this was broken with cross compilers,
8727   # most powerpc-linux boxes support dynamic linking these days and
8728   # people can always --disable-shared, the test was removed, and we
8729   # assume the GNU/Linux dynamic linker is in use.
8730   dynamic_linker='GNU/Linux ld.so'
8731   ;;
8732
8733 netbsd*)
8734   version_type=sunos
8735   need_lib_prefix=no
8736   need_version=no
8737   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8739     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8740     dynamic_linker='NetBSD (a.out) ld.so'
8741   else
8742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8743     soname_spec='${libname}${release}${shared_ext}$major'
8744     dynamic_linker='NetBSD ld.elf_so'
8745   fi
8746   shlibpath_var=LD_LIBRARY_PATH
8747   shlibpath_overrides_runpath=yes
8748   hardcode_into_libs=yes
8749   ;;
8750
8751 newsos6)
8752   version_type=linux
8753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8754   shlibpath_var=LD_LIBRARY_PATH
8755   shlibpath_overrides_runpath=yes
8756   ;;
8757
8758 *nto* | *qnx*)
8759   version_type=qnx
8760   need_lib_prefix=no
8761   need_version=no
8762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763   soname_spec='${libname}${release}${shared_ext}$major'
8764   shlibpath_var=LD_LIBRARY_PATH
8765   shlibpath_overrides_runpath=no
8766   hardcode_into_libs=yes
8767   dynamic_linker='ldqnx.so'
8768   ;;
8769
8770 openbsd*)
8771   version_type=sunos
8772   sys_lib_dlsearch_path_spec="/usr/lib"
8773   need_lib_prefix=no
8774   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8775   case $host_os in
8776     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8777     *)                          need_version=no  ;;
8778   esac
8779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8780   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8781   shlibpath_var=LD_LIBRARY_PATH
8782   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8783     case $host_os in
8784       openbsd2.[89] | openbsd2.[89].*)
8785         shlibpath_overrides_runpath=no
8786         ;;
8787       *)
8788         shlibpath_overrides_runpath=yes
8789         ;;
8790       esac
8791   else
8792     shlibpath_overrides_runpath=yes
8793   fi
8794   ;;
8795
8796 os2*)
8797   libname_spec='$name'
8798   shrext_cmds=".dll"
8799   need_lib_prefix=no
8800   library_names_spec='$libname${shared_ext} $libname.a'
8801   dynamic_linker='OS/2 ld.exe'
8802   shlibpath_var=LIBPATH
8803   ;;
8804
8805 osf3* | osf4* | osf5*)
8806   version_type=osf
8807   need_lib_prefix=no
8808   need_version=no
8809   soname_spec='${libname}${release}${shared_ext}$major'
8810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811   shlibpath_var=LD_LIBRARY_PATH
8812   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8813   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8814   ;;
8815
8816 rdos*)
8817   dynamic_linker=no
8818   ;;
8819
8820 solaris*)
8821   version_type=linux
8822   need_lib_prefix=no
8823   need_version=no
8824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825   soname_spec='${libname}${release}${shared_ext}$major'
8826   shlibpath_var=LD_LIBRARY_PATH
8827   shlibpath_overrides_runpath=yes
8828   hardcode_into_libs=yes
8829   # ldd complains unless libraries are executable
8830   postinstall_cmds='chmod +x $lib'
8831   ;;
8832
8833 sunos4*)
8834   version_type=sunos
8835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8836   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8837   shlibpath_var=LD_LIBRARY_PATH
8838   shlibpath_overrides_runpath=yes
8839   if test "$with_gnu_ld" = yes; then
8840     need_lib_prefix=no
8841   fi
8842   need_version=yes
8843   ;;
8844
8845 sysv4 | sysv4.3*)
8846   version_type=linux
8847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848   soname_spec='${libname}${release}${shared_ext}$major'
8849   shlibpath_var=LD_LIBRARY_PATH
8850   case $host_vendor in
8851     sni)
8852       shlibpath_overrides_runpath=no
8853       need_lib_prefix=no
8854       runpath_var=LD_RUN_PATH
8855       ;;
8856     siemens)
8857       need_lib_prefix=no
8858       ;;
8859     motorola)
8860       need_lib_prefix=no
8861       need_version=no
8862       shlibpath_overrides_runpath=no
8863       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8864       ;;
8865   esac
8866   ;;
8867
8868 sysv4*MP*)
8869   if test -d /usr/nec ;then
8870     version_type=linux
8871     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8872     soname_spec='$libname${shared_ext}.$major'
8873     shlibpath_var=LD_LIBRARY_PATH
8874   fi
8875   ;;
8876
8877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8878   version_type=freebsd-elf
8879   need_lib_prefix=no
8880   need_version=no
8881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8882   soname_spec='${libname}${release}${shared_ext}$major'
8883   shlibpath_var=LD_LIBRARY_PATH
8884   shlibpath_overrides_runpath=yes
8885   hardcode_into_libs=yes
8886   if test "$with_gnu_ld" = yes; then
8887     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8888   else
8889     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8890     case $host_os in
8891       sco3.2v5*)
8892         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8893         ;;
8894     esac
8895   fi
8896   sys_lib_dlsearch_path_spec='/usr/lib'
8897   ;;
8898
8899 tpf*)
8900   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8901   version_type=linux
8902   need_lib_prefix=no
8903   need_version=no
8904   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905   shlibpath_var=LD_LIBRARY_PATH
8906   shlibpath_overrides_runpath=no
8907   hardcode_into_libs=yes
8908   ;;
8909
8910 uts4*)
8911   version_type=linux
8912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913   soname_spec='${libname}${release}${shared_ext}$major'
8914   shlibpath_var=LD_LIBRARY_PATH
8915   ;;
8916
8917 *)
8918   dynamic_linker=no
8919   ;;
8920 esac
8921 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8922 echo "${ECHO_T}$dynamic_linker" >&6
8923 test "$dynamic_linker" = no && can_build_shared=no
8924
8925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8926 if test "$GCC" = yes; then
8927   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8928 fi
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9018 hardcode_action=
9019 if test -n "$hardcode_libdir_flag_spec" ||
9020    test -n "$runpath_var" ||
9021    test "X$hardcode_automatic" = "Xyes" ; then
9022
9023   # We can hardcode non-existent directories.
9024   if test "$hardcode_direct" != no &&
9025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9026      # have to relink, otherwise we might link with an installed library
9027      # when we should be linking with a yet-to-be-installed one
9028      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9029      test "$hardcode_minus_L" != no; then
9030     # Linking always hardcodes the temporary library directory.
9031     hardcode_action=relink
9032   else
9033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9034     hardcode_action=immediate
9035   fi
9036 else
9037   # We cannot hardcode anything, or else we can only hardcode existing
9038   # directories.
9039   hardcode_action=unsupported
9040 fi
9041 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9042 echo "${ECHO_T}$hardcode_action" >&6
9043
9044 if test "$hardcode_action" = relink ||
9045    test "$inherit_rpath" = yes; then
9046   # Fast installation is not supported
9047   enable_fast_install=no
9048 elif test "$shlibpath_overrides_runpath" = yes ||
9049      test "$enable_shared" = no; then
9050   # Fast installation is not necessary
9051   enable_fast_install=needless
9052 fi
9053
9054
9055
9056
9057
9058
9059   if test "x$enable_dlopen" != xyes; then
9060   enable_dlopen=unknown
9061   enable_dlopen_self=unknown
9062   enable_dlopen_self_static=unknown
9063 else
9064   lt_cv_dlopen=no
9065   lt_cv_dlopen_libs=
9066
9067   case $host_os in
9068   beos*)
9069     lt_cv_dlopen="load_add_on"
9070     lt_cv_dlopen_libs=
9071     lt_cv_dlopen_self=yes
9072     ;;
9073
9074   mingw* | pw32*)
9075     lt_cv_dlopen="LoadLibrary"
9076     lt_cv_dlopen_libs=
9077     ;;
9078
9079   cygwin*)
9080     lt_cv_dlopen="dlopen"
9081     lt_cv_dlopen_libs=
9082     ;;
9083
9084   darwin*)
9085   # if libdl is installed we need to link against it
9086     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-ldl  $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099
9100 /* Override any gcc2 internal prototype to avoid an error.  */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 /* We use char because int might match the return type of a gcc2
9105    builtin and then its argument prototype would still apply.  */
9106 char dlopen ();
9107 int
9108 main ()
9109 {
9110 dlopen ();
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117   (eval $ac_link) 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } &&
9124          { ac_try='test -z "$ac_c_werror_flag"
9125                          || test ! -s conftest.err'
9126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127   (eval $ac_try) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; } &&
9131          { ac_try='test -s conftest$ac_exeext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   ac_cv_lib_dl_dlopen=yes
9138 else
9139   echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_cv_lib_dl_dlopen=no
9143 fi
9144 rm -f conftest.err conftest.$ac_objext \
9145       conftest$ac_exeext conftest.$ac_ext
9146 LIBS=$ac_check_lib_save_LIBS
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9149 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9150 if test $ac_cv_lib_dl_dlopen = yes; then
9151   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9152 else
9153
9154     lt_cv_dlopen="dyld"
9155     lt_cv_dlopen_libs=
9156     lt_cv_dlopen_self=yes
9157
9158 fi
9159
9160     ;;
9161
9162   *)
9163     echo "$as_me:$LINENO: checking for shl_load" >&5
9164 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9165 if test "${ac_cv_func_shl_load+set}" = set; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h.  */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h.  */
9174 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9176 #define shl_load innocuous_shl_load
9177
9178 /* System header to define __stub macros and hopefully few prototypes,
9179     which can conflict with char shl_load (); below.
9180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9181     <limits.h> exists even on freestanding compilers.  */
9182
9183 #ifdef __STDC__
9184 # include <limits.h>
9185 #else
9186 # include <assert.h>
9187 #endif
9188
9189 #undef shl_load
9190
9191 /* Override any gcc2 internal prototype to avoid an error.  */
9192 #ifdef __cplusplus
9193 extern "C"
9194 {
9195 #endif
9196 /* We use char because int might match the return type of a gcc2
9197    builtin and then its argument prototype would still apply.  */
9198 char shl_load ();
9199 /* The GNU C library defines this for functions which it implements
9200     to always fail with ENOSYS.  Some functions are actually named
9201     something starting with __ and the normal name is an alias.  */
9202 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9203 choke me
9204 #else
9205 char (*f) () = shl_load;
9206 #endif
9207 #ifdef __cplusplus
9208 }
9209 #endif
9210
9211 int
9212 main ()
9213 {
9214 return f != shl_load;
9215   ;
9216   return 0;
9217 }
9218 _ACEOF
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221   (eval $ac_link) 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
9225   cat conftest.err >&5
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); } &&
9228          { ac_try='test -z "$ac_c_werror_flag"
9229                          || test ! -s conftest.err'
9230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231   (eval $ac_try) 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); }; } &&
9235          { ac_try='test -s conftest$ac_exeext'
9236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237   (eval $ac_try) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); }; }; then
9241   ac_cv_func_shl_load=yes
9242 else
9243   echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9245
9246 ac_cv_func_shl_load=no
9247 fi
9248 rm -f conftest.err conftest.$ac_objext \
9249       conftest$ac_exeext conftest.$ac_ext
9250 fi
9251 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9252 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9253 if test $ac_cv_func_shl_load = yes; then
9254   lt_cv_dlopen="shl_load"
9255 else
9256   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9257 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9258 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261   ac_check_lib_save_LIBS=$LIBS
9262 LIBS="-ldld  $LIBS"
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h.  */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h.  */
9269
9270 /* Override any gcc2 internal prototype to avoid an error.  */
9271 #ifdef __cplusplus
9272 extern "C"
9273 #endif
9274 /* We use char because int might match the return type of a gcc2
9275    builtin and then its argument prototype would still apply.  */
9276 char shl_load ();
9277 int
9278 main ()
9279 {
9280 shl_load ();
9281   ;
9282   return 0;
9283 }
9284 _ACEOF
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287   (eval $ac_link) 2>conftest.er1
9288   ac_status=$?
9289   grep -v '^ *+' conftest.er1 >conftest.err
9290   rm -f conftest.er1
9291   cat conftest.err >&5
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); } &&
9294          { ac_try='test -z "$ac_c_werror_flag"
9295                          || test ! -s conftest.err'
9296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297   (eval $ac_try) 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); }; } &&
9301          { ac_try='test -s conftest$ac_exeext'
9302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303   (eval $ac_try) 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); }; }; then
9307   ac_cv_lib_dld_shl_load=yes
9308 else
9309   echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312 ac_cv_lib_dld_shl_load=no
9313 fi
9314 rm -f conftest.err conftest.$ac_objext \
9315       conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9317 fi
9318 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9319 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9320 if test $ac_cv_lib_dld_shl_load = yes; then
9321   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9322 else
9323   echo "$as_me:$LINENO: checking for dlopen" >&5
9324 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9325 if test "${ac_cv_func_dlopen+set}" = set; then
9326   echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328   cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h.  */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h.  */
9334 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9336 #define dlopen innocuous_dlopen
9337
9338 /* System header to define __stub macros and hopefully few prototypes,
9339     which can conflict with char dlopen (); below.
9340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341     <limits.h> exists even on freestanding compilers.  */
9342
9343 #ifdef __STDC__
9344 # include <limits.h>
9345 #else
9346 # include <assert.h>
9347 #endif
9348
9349 #undef dlopen
9350
9351 /* Override any gcc2 internal prototype to avoid an error.  */
9352 #ifdef __cplusplus
9353 extern "C"
9354 {
9355 #endif
9356 /* We use char because int might match the return type of a gcc2
9357    builtin and then its argument prototype would still apply.  */
9358 char dlopen ();
9359 /* The GNU C library defines this for functions which it implements
9360     to always fail with ENOSYS.  Some functions are actually named
9361     something starting with __ and the normal name is an alias.  */
9362 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9363 choke me
9364 #else
9365 char (*f) () = dlopen;
9366 #endif
9367 #ifdef __cplusplus
9368 }
9369 #endif
9370
9371 int
9372 main ()
9373 {
9374 return f != dlopen;
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381   (eval $ac_link) 2>conftest.er1
9382   ac_status=$?
9383   grep -v '^ *+' conftest.er1 >conftest.err
9384   rm -f conftest.er1
9385   cat conftest.err >&5
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); } &&
9388          { ac_try='test -z "$ac_c_werror_flag"
9389                          || test ! -s conftest.err'
9390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391   (eval $ac_try) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; } &&
9395          { ac_try='test -s conftest$ac_exeext'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; }; then
9401   ac_cv_func_dlopen=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 ac_cv_func_dlopen=no
9407 fi
9408 rm -f conftest.err conftest.$ac_objext \
9409       conftest$ac_exeext conftest.$ac_ext
9410 fi
9411 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9412 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9413 if test $ac_cv_func_dlopen = yes; then
9414   lt_cv_dlopen="dlopen"
9415 else
9416   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9417 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9418 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421   ac_check_lib_save_LIBS=$LIBS
9422 LIBS="-ldl  $LIBS"
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429
9430 /* Override any gcc2 internal prototype to avoid an error.  */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 /* We use char because int might match the return type of a gcc2
9435    builtin and then its argument prototype would still apply.  */
9436 char dlopen ();
9437 int
9438 main ()
9439 {
9440 dlopen ();
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447   (eval $ac_link) 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } &&
9454          { ac_try='test -z "$ac_c_werror_flag"
9455                          || test ! -s conftest.err'
9456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457   (eval $ac_try) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); }; } &&
9461          { ac_try='test -s conftest$ac_exeext'
9462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463   (eval $ac_try) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); }; }; then
9467   ac_cv_lib_dl_dlopen=yes
9468 else
9469   echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472 ac_cv_lib_dl_dlopen=no
9473 fi
9474 rm -f conftest.err conftest.$ac_objext \
9475       conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9477 fi
9478 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9480 if test $ac_cv_lib_dl_dlopen = yes; then
9481   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9482 else
9483   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9484 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9485 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   ac_check_lib_save_LIBS=$LIBS
9489 LIBS="-lsvld  $LIBS"
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h.  */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h.  */
9496
9497 /* Override any gcc2 internal prototype to avoid an error.  */
9498 #ifdef __cplusplus
9499 extern "C"
9500 #endif
9501 /* We use char because int might match the return type of a gcc2
9502    builtin and then its argument prototype would still apply.  */
9503 char dlopen ();
9504 int
9505 main ()
9506 {
9507 dlopen ();
9508   ;
9509   return 0;
9510 }
9511 _ACEOF
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514   (eval $ac_link) 2>conftest.er1
9515   ac_status=$?
9516   grep -v '^ *+' conftest.er1 >conftest.err
9517   rm -f conftest.er1
9518   cat conftest.err >&5
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } &&
9521          { ac_try='test -z "$ac_c_werror_flag"
9522                          || test ! -s conftest.err'
9523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524   (eval $ac_try) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; } &&
9528          { ac_try='test -s conftest$ac_exeext'
9529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530   (eval $ac_try) 2>&5
9531   ac_status=$?
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); }; }; then
9534   ac_cv_lib_svld_dlopen=yes
9535 else
9536   echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9538
9539 ac_cv_lib_svld_dlopen=no
9540 fi
9541 rm -f conftest.err conftest.$ac_objext \
9542       conftest$ac_exeext conftest.$ac_ext
9543 LIBS=$ac_check_lib_save_LIBS
9544 fi
9545 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9546 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9547 if test $ac_cv_lib_svld_dlopen = yes; then
9548   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9549 else
9550   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9551 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9552 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   ac_check_lib_save_LIBS=$LIBS
9556 LIBS="-ldld  $LIBS"
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h.  */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h.  */
9563
9564 /* Override any gcc2 internal prototype to avoid an error.  */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 /* We use char because int might match the return type of a gcc2
9569    builtin and then its argument prototype would still apply.  */
9570 char dld_link ();
9571 int
9572 main ()
9573 {
9574 dld_link ();
9575   ;
9576   return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581   (eval $ac_link) 2>conftest.er1
9582   ac_status=$?
9583   grep -v '^ *+' conftest.er1 >conftest.err
9584   rm -f conftest.er1
9585   cat conftest.err >&5
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); } &&
9588          { ac_try='test -z "$ac_c_werror_flag"
9589                          || test ! -s conftest.err'
9590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591   (eval $ac_try) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; } &&
9595          { ac_try='test -s conftest$ac_exeext'
9596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597   (eval $ac_try) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); }; }; then
9601   ac_cv_lib_dld_dld_link=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606 ac_cv_lib_dld_dld_link=no
9607 fi
9608 rm -f conftest.err conftest.$ac_objext \
9609       conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9611 fi
9612 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9613 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9614 if test $ac_cv_lib_dld_dld_link = yes; then
9615   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9616 fi
9617
9618
9619 fi
9620
9621
9622 fi
9623
9624
9625 fi
9626
9627
9628 fi
9629
9630
9631 fi
9632
9633     ;;
9634   esac
9635
9636   if test "x$lt_cv_dlopen" != xno; then
9637     enable_dlopen=yes
9638   else
9639     enable_dlopen=no
9640   fi
9641
9642   case $lt_cv_dlopen in
9643   dlopen)
9644     save_CPPFLAGS="$CPPFLAGS"
9645     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9646
9647     save_LDFLAGS="$LDFLAGS"
9648     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9649
9650     save_LIBS="$LIBS"
9651     LIBS="$lt_cv_dlopen_libs $LIBS"
9652
9653     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9654 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9655 if test "${lt_cv_dlopen_self+set}" = set; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658           if test "$cross_compiling" = yes; then :
9659   lt_cv_dlopen_self=cross
9660 else
9661   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9662   lt_status=$lt_dlunknown
9663   cat > conftest.$ac_ext <<_LT_EOF
9664 #line 9664 "configure"
9665 #include "confdefs.h"
9666
9667 #if HAVE_DLFCN_H
9668 #include <dlfcn.h>
9669 #endif
9670
9671 #include <stdio.h>
9672
9673 #ifdef RTLD_GLOBAL
9674 #  define LT_DLGLOBAL           RTLD_GLOBAL
9675 #else
9676 #  ifdef DL_GLOBAL
9677 #    define LT_DLGLOBAL         DL_GLOBAL
9678 #  else
9679 #    define LT_DLGLOBAL         0
9680 #  endif
9681 #endif
9682
9683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9684    find out it does not work in some platform. */
9685 #ifndef LT_DLLAZY_OR_NOW
9686 #  ifdef RTLD_LAZY
9687 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9688 #  else
9689 #    ifdef DL_LAZY
9690 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9691 #    else
9692 #      ifdef RTLD_NOW
9693 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9694 #      else
9695 #        ifdef DL_NOW
9696 #          define LT_DLLAZY_OR_NOW      DL_NOW
9697 #        else
9698 #          define LT_DLLAZY_OR_NOW      0
9699 #        endif
9700 #      endif
9701 #    endif
9702 #  endif
9703 #endif
9704
9705 #ifdef __cplusplus
9706 extern "C" void exit (int);
9707 #endif
9708
9709 void fnord() { int i=42;}
9710 int main ()
9711 {
9712   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9713   int status = $lt_dlunknown;
9714
9715   if (self)
9716     {
9717       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9718       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9719       /* dlclose (self); */
9720     }
9721   else
9722     puts (dlerror ());
9723
9724     exit (status);
9725 }
9726 _LT_EOF
9727   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728   (eval $ac_link) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9732     (./conftest; exit; ) >&5 2>/dev/null
9733     lt_status=$?
9734     case x$lt_status in
9735       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9736       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9737       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9738     esac
9739   else :
9740     # compilation failed
9741     lt_cv_dlopen_self=no
9742   fi
9743 fi
9744 rm -fr conftest*
9745
9746
9747 fi
9748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9749 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9750
9751     if test "x$lt_cv_dlopen_self" = xyes; then
9752       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9753       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9754 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9755 if test "${lt_cv_dlopen_self_static+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758           if test "$cross_compiling" = yes; then :
9759   lt_cv_dlopen_self_static=cross
9760 else
9761   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9762   lt_status=$lt_dlunknown
9763   cat > conftest.$ac_ext <<_LT_EOF
9764 #line 9764 "configure"
9765 #include "confdefs.h"
9766
9767 #if HAVE_DLFCN_H
9768 #include <dlfcn.h>
9769 #endif
9770
9771 #include <stdio.h>
9772
9773 #ifdef RTLD_GLOBAL
9774 #  define LT_DLGLOBAL           RTLD_GLOBAL
9775 #else
9776 #  ifdef DL_GLOBAL
9777 #    define LT_DLGLOBAL         DL_GLOBAL
9778 #  else
9779 #    define LT_DLGLOBAL         0
9780 #  endif
9781 #endif
9782
9783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9784    find out it does not work in some platform. */
9785 #ifndef LT_DLLAZY_OR_NOW
9786 #  ifdef RTLD_LAZY
9787 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9788 #  else
9789 #    ifdef DL_LAZY
9790 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9791 #    else
9792 #      ifdef RTLD_NOW
9793 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9794 #      else
9795 #        ifdef DL_NOW
9796 #          define LT_DLLAZY_OR_NOW      DL_NOW
9797 #        else
9798 #          define LT_DLLAZY_OR_NOW      0
9799 #        endif
9800 #      endif
9801 #    endif
9802 #  endif
9803 #endif
9804
9805 #ifdef __cplusplus
9806 extern "C" void exit (int);
9807 #endif
9808
9809 void fnord() { int i=42;}
9810 int main ()
9811 {
9812   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9813   int status = $lt_dlunknown;
9814
9815   if (self)
9816     {
9817       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9818       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9819       /* dlclose (self); */
9820     }
9821   else
9822     puts (dlerror ());
9823
9824     exit (status);
9825 }
9826 _LT_EOF
9827   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828   (eval $ac_link) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9832     (./conftest; exit; ) >&5 2>/dev/null
9833     lt_status=$?
9834     case x$lt_status in
9835       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9836       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9837       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9838     esac
9839   else :
9840     # compilation failed
9841     lt_cv_dlopen_self_static=no
9842   fi
9843 fi
9844 rm -fr conftest*
9845
9846
9847 fi
9848 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9849 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9850     fi
9851
9852     CPPFLAGS="$save_CPPFLAGS"
9853     LDFLAGS="$save_LDFLAGS"
9854     LIBS="$save_LIBS"
9855     ;;
9856   esac
9857
9858   case $lt_cv_dlopen_self in
9859   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9860   *) enable_dlopen_self=unknown ;;
9861   esac
9862
9863   case $lt_cv_dlopen_self_static in
9864   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9865   *) enable_dlopen_self_static=unknown ;;
9866   esac
9867 fi
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885 striplib=
9886 old_striplib=
9887 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9888 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9889 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9890   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9891   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9892   echo "$as_me:$LINENO: result: yes" >&5
9893 echo "${ECHO_T}yes" >&6
9894 else
9895 # FIXME - insert some real tests, host_os isn't really good enough
9896   case $host_os in
9897   darwin*)
9898     if test -n "$STRIP" ; then
9899       striplib="$STRIP -x"
9900       old_striplib="$STRIP -S"
9901       echo "$as_me:$LINENO: result: yes" >&5
9902 echo "${ECHO_T}yes" >&6
9903     else
9904       echo "$as_me:$LINENO: result: no" >&5
9905 echo "${ECHO_T}no" >&6
9906     fi
9907     ;;
9908   *)
9909     echo "$as_me:$LINENO: result: no" >&5
9910 echo "${ECHO_T}no" >&6
9911     ;;
9912   esac
9913 fi
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926   # Report which library types will actually be built
9927   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9928 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9929   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9930 echo "${ECHO_T}$can_build_shared" >&6
9931
9932   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9933 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9934   test "$can_build_shared" = "no" && enable_shared=no
9935
9936   # On AIX, shared libraries and static libraries use the same namespace, and
9937   # are all built from PIC.
9938   case $host_os in
9939   aix3*)
9940     test "$enable_shared" = yes && enable_static=no
9941     if test -n "$RANLIB"; then
9942       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9943       postinstall_cmds='$RANLIB $lib'
9944     fi
9945     ;;
9946
9947   aix[4-9]*)
9948     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9949       test "$enable_shared" = yes && enable_static=no
9950     fi
9951     ;;
9952   esac
9953   echo "$as_me:$LINENO: result: $enable_shared" >&5
9954 echo "${ECHO_T}$enable_shared" >&6
9955
9956   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9957 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9958   # Make sure either enable_shared or enable_static is yes.
9959   test "$enable_shared" = yes || enable_static=yes
9960   echo "$as_me:$LINENO: result: $enable_static" >&5
9961 echo "${ECHO_T}$enable_static" >&6
9962
9963
9964
9965
9966 fi
9967 ac_ext=c
9968 ac_cpp='$CPP $CPPFLAGS'
9969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9972
9973 CC="$lt_save_CC"
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987                   ac_config_commands="$ac_config_commands libtool"
9988
9989
9990
9991
9992 # Only expand once:
9993
9994
9995
9996
9997
9998 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9999 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10000     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10001 if test "${enable_maintainer_mode+set}" = set; then
10002   enableval="$enable_maintainer_mode"
10003   USE_MAINTAINER_MODE=$enableval
10004 else
10005   USE_MAINTAINER_MODE=no
10006 fi;
10007   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10008 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10009
10010
10011 if test $USE_MAINTAINER_MODE = yes; then
10012   MAINTAINER_MODE_TRUE=
10013   MAINTAINER_MODE_FALSE='#'
10014 else
10015   MAINTAINER_MODE_TRUE='#'
10016   MAINTAINER_MODE_FALSE=
10017 fi
10018
10019   MAINT=$MAINTAINER_MODE_TRUE
10020
10021
10022
10023 # We need gfortran to compile parts of the library
10024 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10025 #AC_PROG_FC(gfortran)
10026 FC="$GFORTRAN"
10027 ac_ext=${FC_SRCEXT-f}
10028 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10029 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10030 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10031 if test -n "$ac_tool_prefix"; then
10032   for ac_prog in gfortran
10033   do
10034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10036 echo "$as_me:$LINENO: checking for $ac_word" >&5
10037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10038 if test "${ac_cv_prog_FC+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   if test -n "$FC"; then
10042   ac_cv_prog_FC="$FC" # Let the user override the test.
10043 else
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10046 do
10047   IFS=$as_save_IFS
10048   test -z "$as_dir" && as_dir=.
10049   for ac_exec_ext in '' $ac_executable_extensions; do
10050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10051     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10053     break 2
10054   fi
10055 done
10056 done
10057
10058 fi
10059 fi
10060 FC=$ac_cv_prog_FC
10061 if test -n "$FC"; then
10062   echo "$as_me:$LINENO: result: $FC" >&5
10063 echo "${ECHO_T}$FC" >&6
10064 else
10065   echo "$as_me:$LINENO: result: no" >&5
10066 echo "${ECHO_T}no" >&6
10067 fi
10068
10069     test -n "$FC" && break
10070   done
10071 fi
10072 if test -z "$FC"; then
10073   ac_ct_FC=$FC
10074   for ac_prog in gfortran
10075 do
10076   # Extract the first word of "$ac_prog", so it can be a program name with args.
10077 set dummy $ac_prog; ac_word=$2
10078 echo "$as_me:$LINENO: checking for $ac_word" >&5
10079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10080 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10081   echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083   if test -n "$ac_ct_FC"; then
10084   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10088 do
10089   IFS=$as_save_IFS
10090   test -z "$as_dir" && as_dir=.
10091   for ac_exec_ext in '' $ac_executable_extensions; do
10092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093     ac_cv_prog_ac_ct_FC="$ac_prog"
10094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10095     break 2
10096   fi
10097 done
10098 done
10099
10100 fi
10101 fi
10102 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10103 if test -n "$ac_ct_FC"; then
10104   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10105 echo "${ECHO_T}$ac_ct_FC" >&6
10106 else
10107   echo "$as_me:$LINENO: result: no" >&5
10108 echo "${ECHO_T}no" >&6
10109 fi
10110
10111   test -n "$ac_ct_FC" && break
10112 done
10113
10114   FC=$ac_ct_FC
10115 fi
10116
10117
10118 # Provide some information about the compiler.
10119 echo "$as_me:10119:" \
10120      "checking for Fortran compiler version" >&5
10121 ac_compiler=`set X $ac_compile; echo $2`
10122 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10123   (eval $ac_compiler --version </dev/null >&5) 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); }
10127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10128   (eval $ac_compiler -v </dev/null >&5) 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }
10132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10133   (eval $ac_compiler -V </dev/null >&5) 2>&5
10134   ac_status=$?
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); }
10137 rm -f a.out
10138
10139 # If we don't use `.F' as extension, the preprocessor is not run on the
10140 # input file.  (Note that this only needs to work for GNU compilers.)
10141 ac_save_ext=$ac_ext
10142 ac_ext=F
10143 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10144 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10145 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   cat >conftest.$ac_ext <<_ACEOF
10149       program main
10150 #ifndef __GNUC__
10151        choke me
10152 #endif
10153
10154       end
10155 _ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158   (eval $ac_compile) 2>conftest.er1
10159   ac_status=$?
10160   grep -v '^ *+' conftest.er1 >conftest.err
10161   rm -f conftest.er1
10162   cat conftest.err >&5
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } &&
10165          { ac_try='test -z "$ac_fc_werror_flag"
10166                          || test ! -s conftest.err'
10167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168   (eval $ac_try) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); }; } &&
10172          { ac_try='test -s conftest.$ac_objext'
10173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174   (eval $ac_try) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; }; then
10178   ac_compiler_gnu=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_compiler_gnu=no
10184 fi
10185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10186 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10187
10188 fi
10189 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10190 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10191 ac_ext=$ac_save_ext
10192 ac_test_FFLAGS=${FCFLAGS+set}
10193 ac_save_FFLAGS=$FCFLAGS
10194 FCFLAGS=
10195 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10196 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10197 if test "${ac_cv_prog_fc_g+set}" = set; then
10198   echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200   FCFLAGS=-g
10201 cat >conftest.$ac_ext <<_ACEOF
10202       program main
10203
10204       end
10205 _ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208   (eval $ac_compile) 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } &&
10215          { ac_try='test -z "$ac_fc_werror_flag"
10216                          || test ! -s conftest.err'
10217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218   (eval $ac_try) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; } &&
10222          { ac_try='test -s conftest.$ac_objext'
10223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224   (eval $ac_try) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   ac_cv_prog_fc_g=yes
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233 ac_cv_prog_fc_g=no
10234 fi
10235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236
10237 fi
10238 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10239 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10240 if test "$ac_test_FFLAGS" = set; then
10241   FCFLAGS=$ac_save_FFLAGS
10242 elif test $ac_cv_prog_fc_g = yes; then
10243   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10244     FCFLAGS="-g -O2"
10245   else
10246     FCFLAGS="-g"
10247   fi
10248 else
10249   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10250     FCFLAGS="-O2"
10251   else
10252     FCFLAGS=
10253   fi
10254 fi
10255
10256 ac_ext=c
10257 ac_cpp='$CPP $CPPFLAGS'
10258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10261
10262
10263 ac_ext=${FC_SRCEXT-f}
10264 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10265 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10266 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10267 if test -n "$ac_tool_prefix"; then
10268   for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10269   do
10270     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10272 echo "$as_me:$LINENO: checking for $ac_word" >&5
10273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10274 if test "${ac_cv_prog_FC+set}" = set; then
10275   echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277   if test -n "$FC"; then
10278   ac_cv_prog_FC="$FC" # Let the user override the test.
10279 else
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10282 do
10283   IFS=$as_save_IFS
10284   test -z "$as_dir" && as_dir=.
10285   for ac_exec_ext in '' $ac_executable_extensions; do
10286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10289     break 2
10290   fi
10291 done
10292 done
10293
10294 fi
10295 fi
10296 FC=$ac_cv_prog_FC
10297 if test -n "$FC"; then
10298   echo "$as_me:$LINENO: result: $FC" >&5
10299 echo "${ECHO_T}$FC" >&6
10300 else
10301   echo "$as_me:$LINENO: result: no" >&5
10302 echo "${ECHO_T}no" >&6
10303 fi
10304
10305     test -n "$FC" && break
10306   done
10307 fi
10308 if test -z "$FC"; then
10309   ac_ct_FC=$FC
10310   for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10311 do
10312   # Extract the first word of "$ac_prog", so it can be a program name with args.
10313 set dummy $ac_prog; ac_word=$2
10314 echo "$as_me:$LINENO: checking for $ac_word" >&5
10315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10316 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   if test -n "$ac_ct_FC"; then
10320   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10321 else
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10324 do
10325   IFS=$as_save_IFS
10326   test -z "$as_dir" && as_dir=.
10327   for ac_exec_ext in '' $ac_executable_extensions; do
10328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329     ac_cv_prog_ac_ct_FC="$ac_prog"
10330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10331     break 2
10332   fi
10333 done
10334 done
10335
10336 fi
10337 fi
10338 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10339 if test -n "$ac_ct_FC"; then
10340   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10341 echo "${ECHO_T}$ac_ct_FC" >&6
10342 else
10343   echo "$as_me:$LINENO: result: no" >&5
10344 echo "${ECHO_T}no" >&6
10345 fi
10346
10347   test -n "$ac_ct_FC" && break
10348 done
10349
10350   FC=$ac_ct_FC
10351 fi
10352
10353
10354 # Provide some information about the compiler.
10355 echo "$as_me:10355:" \
10356      "checking for Fortran compiler version" >&5
10357 ac_compiler=`set X $ac_compile; echo $2`
10358 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10359   (eval $ac_compiler --version </dev/null >&5) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }
10363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10364   (eval $ac_compiler -v </dev/null >&5) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }
10368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10369   (eval $ac_compiler -V </dev/null >&5) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }
10373 rm -f a.out
10374
10375 # If we don't use `.F' as extension, the preprocessor is not run on the
10376 # input file.  (Note that this only needs to work for GNU compilers.)
10377 ac_save_ext=$ac_ext
10378 ac_ext=F
10379 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10380 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10381 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10382   echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384   cat >conftest.$ac_ext <<_ACEOF
10385       program main
10386 #ifndef __GNUC__
10387        choke me
10388 #endif
10389
10390       end
10391 _ACEOF
10392 rm -f conftest.$ac_objext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394   (eval $ac_compile) 2>conftest.er1
10395   ac_status=$?
10396   grep -v '^ *+' conftest.er1 >conftest.err
10397   rm -f conftest.er1
10398   cat conftest.err >&5
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } &&
10401          { ac_try='test -z "$ac_fc_werror_flag"
10402                          || test ! -s conftest.err'
10403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404   (eval $ac_try) 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; } &&
10408          { ac_try='test -s conftest.$ac_objext'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; }; then
10414   ac_compiler_gnu=yes
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 ac_compiler_gnu=no
10420 fi
10421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10422 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10423
10424 fi
10425 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10426 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10427 ac_ext=$ac_save_ext
10428 ac_test_FFLAGS=${FCFLAGS+set}
10429 ac_save_FFLAGS=$FCFLAGS
10430 FCFLAGS=
10431 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10432 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10433 if test "${ac_cv_prog_fc_g+set}" = set; then
10434   echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436   FCFLAGS=-g
10437 cat >conftest.$ac_ext <<_ACEOF
10438       program main
10439
10440       end
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444   (eval $ac_compile) 2>conftest.er1
10445   ac_status=$?
10446   grep -v '^ *+' conftest.er1 >conftest.err
10447   rm -f conftest.er1
10448   cat conftest.err >&5
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -z "$ac_fc_werror_flag"
10452                          || test ! -s conftest.err'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; } &&
10458          { ac_try='test -s conftest.$ac_objext'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_cv_prog_fc_g=yes
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 ac_cv_prog_fc_g=no
10470 fi
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472
10473 fi
10474 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10475 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10476 if test "$ac_test_FFLAGS" = set; then
10477   FCFLAGS=$ac_save_FFLAGS
10478 elif test $ac_cv_prog_fc_g = yes; then
10479   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10480     FCFLAGS="-g -O2"
10481   else
10482     FCFLAGS="-g"
10483   fi
10484 else
10485   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10486     FCFLAGS="-O2"
10487   else
10488     FCFLAGS=
10489   fi
10490 fi
10491
10492 ac_ext=c
10493 ac_cpp='$CPP $CPPFLAGS'
10494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497
10498 if test -z "$FC" || test "X$FC" = "Xno"; then
10499   _lt_disable_FC=yes
10500 fi
10501
10502
10503
10504       ac_ext=${FC_SRCEXT-f}
10505 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10506 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10507 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10508
10509
10510 archive_cmds_need_lc_FC=no
10511 allow_undefined_flag_FC=
10512 always_export_symbols_FC=no
10513 archive_expsym_cmds_FC=
10514 export_dynamic_flag_spec_FC=
10515 hardcode_direct_FC=no
10516 hardcode_direct_absolute_FC=no
10517 hardcode_libdir_flag_spec_FC=
10518 hardcode_libdir_flag_spec_ld_FC=
10519 hardcode_libdir_separator_FC=
10520 hardcode_minus_L_FC=no
10521 hardcode_automatic_FC=no
10522 inherit_rpath_FC=no
10523 module_cmds_FC=
10524 module_expsym_cmds_FC=
10525 link_all_deplibs_FC=unknown
10526 old_archive_cmds_FC=$old_archive_cmds
10527 no_undefined_flag_FC=
10528 whole_archive_flag_spec_FC=
10529 enable_shared_with_static_runtimes_FC=no
10530
10531 # Source file extension for fc test sources.
10532 ac_ext=${ac_fc_srcext-f}
10533
10534 # Object file extension for compiled fc test sources.
10535 objext=o
10536 objext_FC=$objext
10537
10538 # No sense in running all these tests if we already determined that
10539 # the FC compiler isn't working.  Some variables (like enable_shared)
10540 # are currently assumed to apply to all compilers on this platform,
10541 # and will be corrupted by setting them based on a non-working compiler.
10542 if test "$_lt_disable_FC" != yes; then
10543   # Code to be used in simple compile tests
10544   lt_simple_compile_test_code="\
10545       subroutine t
10546       return
10547       end
10548 "
10549
10550   # Code to be used in simple link tests
10551   lt_simple_link_test_code="\
10552       program t
10553       end
10554 "
10555
10556   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10557
10558
10559
10560
10561
10562
10563 # If no C compiler was specified, use CC.
10564 LTCC=${LTCC-"$CC"}
10565
10566 # If no C compiler flags were specified, use CFLAGS.
10567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10568
10569 # Allow CC to be a program name with arguments.
10570 compiler=$CC
10571
10572
10573   # save warnings/boilerplate of simple test code
10574   ac_outfile=conftest.$ac_objext
10575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10577 _lt_compiler_boilerplate=`cat conftest.err`
10578 $RM conftest*
10579
10580   ac_outfile=conftest.$ac_objext
10581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10583 _lt_linker_boilerplate=`cat conftest.err`
10584 $RM conftest*
10585
10586
10587   # Allow CC to be a program name with arguments.
10588   lt_save_CC="$CC"
10589   CC=${FC-"f95"}
10590   compiler=$CC
10591   compiler_FC=$CC
10592   for cc_temp in $compiler""; do
10593   case $cc_temp in
10594     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10595     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10596     \-*) ;;
10597     *) break;;
10598   esac
10599 done
10600 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10601
10602
10603   if test -n "$compiler"; then
10604     echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10605 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10606     echo "$as_me:$LINENO: result: $can_build_shared" >&5
10607 echo "${ECHO_T}$can_build_shared" >&6
10608
10609     echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10610 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10611     test "$can_build_shared" = "no" && enable_shared=no
10612
10613     # On AIX, shared libraries and static libraries use the same namespace, and
10614     # are all built from PIC.
10615     case $host_os in
10616       aix3*)
10617         test "$enable_shared" = yes && enable_static=no
10618         if test -n "$RANLIB"; then
10619           archive_cmds="$archive_cmds~\$RANLIB \$lib"
10620           postinstall_cmds='$RANLIB $lib'
10621         fi
10622         ;;
10623       aix[4-9]*)
10624         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10625           test "$enable_shared" = yes && enable_static=no
10626         fi
10627         ;;
10628     esac
10629     echo "$as_me:$LINENO: result: $enable_shared" >&5
10630 echo "${ECHO_T}$enable_shared" >&6
10631
10632     echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10633 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10634     # Make sure either enable_shared or enable_static is yes.
10635     test "$enable_shared" = yes || enable_static=yes
10636     echo "$as_me:$LINENO: result: $enable_static" >&5
10637 echo "${ECHO_T}$enable_static" >&6
10638
10639     GCC_FC="$ac_cv_fc_compiler_gnu"
10640     LD_FC="$LD"
10641
10642     ## CAVEAT EMPTOR:
10643     ## There is no encapsulation within the following macros, do not change
10644     ## the running order or otherwise move them around unless you know exactly
10645     ## what you are doing...
10646     # Dependencies to place before and after the object being linked:
10647 predep_objects_FC=
10648 postdep_objects_FC=
10649 predeps_FC=
10650 postdeps_FC=
10651 compiler_lib_search_path_FC=
10652
10653 cat > conftest.$ac_ext <<_LT_EOF
10654       subroutine foo
10655       implicit none
10656       integer a
10657       a=0
10658       return
10659       end
10660 _LT_EOF
10661
10662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663   (eval $ac_compile) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; then
10667   # Parse the compiler output and extract the necessary
10668   # objects, libraries and library flags.
10669
10670   # Sentinel used to keep track of whether or not we are before
10671   # the conftest object file.
10672   pre_test_object_deps_done=no
10673
10674   # The `*' in the case matches for architectures that use `case' in
10675   # $output_verbose_cmd can trigger glob expansion during the loop
10676   # eval without this substitution.
10677   output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10678
10679   for p in `eval $output_verbose_link_cmd`; do
10680     case $p in
10681
10682     -L* | -R* | -l*)
10683        # Some compilers place space between "-{L,R}" and the path.
10684        # Remove the space.
10685        if test $p = "-L" ||
10686           test $p = "-R"; then
10687          prev=$p
10688          continue
10689        else
10690          prev=
10691        fi
10692
10693        if test "$pre_test_object_deps_done" = no; then
10694          case $p in
10695          -L* | -R*)
10696            # Internal compiler library paths should come after those
10697            # provided the user.  The postdeps already come after the
10698            # user supplied libs so there is no need to process them.
10699            if test -z "$compiler_lib_search_path_FC"; then
10700              compiler_lib_search_path_FC="${prev}${p}"
10701            else
10702              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10703            fi
10704            ;;
10705          # The "-l" case would never come before the object being
10706          # linked, so don't bother handling this case.
10707          esac
10708        else
10709          if test -z "$postdeps_FC"; then
10710            postdeps_FC="${prev}${p}"
10711          else
10712            postdeps_FC="${postdeps_FC} ${prev}${p}"
10713          fi
10714        fi
10715        ;;
10716
10717     *.$objext)
10718        # This assumes that the test object file only shows up
10719        # once in the compiler output.
10720        if test "$p" = "conftest.$objext"; then
10721          pre_test_object_deps_done=yes
10722          continue
10723        fi
10724
10725        if test "$pre_test_object_deps_done" = no; then
10726          if test -z "$predep_objects_FC"; then
10727            predep_objects_FC="$p"
10728          else
10729            predep_objects_FC="$predep_objects_FC $p"
10730          fi
10731        else
10732          if test -z "$postdep_objects_FC"; then
10733            postdep_objects_FC="$p"
10734          else
10735            postdep_objects_FC="$postdep_objects_FC $p"
10736          fi
10737        fi
10738        ;;
10739
10740     *) ;; # Ignore the rest.
10741
10742     esac
10743   done
10744
10745   # Clean up.
10746   rm -f a.out a.exe
10747 else
10748   echo "libtool.m4: error: problem compiling FC test program"
10749 fi
10750
10751 $RM -f confest.$objext
10752
10753 # PORTME: override above test on systems where it is broken
10754
10755
10756 case " $postdeps_FC " in
10757 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10758 esac
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785     lt_prog_compiler_wl_FC=
10786 lt_prog_compiler_pic_FC=
10787 lt_prog_compiler_static_FC=
10788
10789 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10790 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10791
10792   if test "$GCC" = yes; then
10793     lt_prog_compiler_wl_FC='-Wl,'
10794     lt_prog_compiler_static_FC='-static'
10795
10796     case $host_os in
10797       aix*)
10798       # All AIX code is PIC.
10799       if test "$host_cpu" = ia64; then
10800         # AIX 5 now supports IA64 processor
10801         lt_prog_compiler_static_FC='-Bstatic'
10802       fi
10803       ;;
10804
10805     amigaos*)
10806       if test "$host_cpu" = m68k; then
10807         # FIXME: we need at least 68020 code to build shared libraries, but
10808         # adding the `-m68020' flag to GCC prevents building anything better,
10809         # like `-m68040'.
10810         lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10811       fi
10812       ;;
10813
10814     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10815       # PIC is the default for these OSes.
10816       ;;
10817
10818     mingw* | cygwin* | pw32* | os2*)
10819       # This hack is so that the source file can tell whether it is being
10820       # built for inclusion in a dll (and should export symbols for example).
10821       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10822       # (--disable-auto-import) libraries
10823       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10824       ;;
10825
10826     darwin* | rhapsody*)
10827       # PIC is the default on this platform
10828       # Common symbols not allowed in MH_DYLIB files
10829       lt_prog_compiler_pic_FC='-fno-common'
10830       ;;
10831
10832     hpux*)
10833       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10834       # not for PA HP-UX.
10835       case $host_cpu in
10836       hppa*64*|ia64*)
10837         # +Z the default
10838         ;;
10839       *)
10840         lt_prog_compiler_pic_FC='-fPIC'
10841         ;;
10842       esac
10843       ;;
10844
10845     interix[3-9]*)
10846       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10847       # Instead, we relocate shared libraries at runtime.
10848       ;;
10849
10850     msdosdjgpp*)
10851       # Just because we use GCC doesn't mean we suddenly get shared libraries
10852       # on systems that don't support them.
10853       lt_prog_compiler_can_build_shared_FC=no
10854       enable_shared=no
10855       ;;
10856
10857     *nto* | *qnx*)
10858       # QNX uses GNU C++, but need to define -shared option too, otherwise
10859       # it will coredump.
10860       lt_prog_compiler_pic_FC='-fPIC -shared'
10861       ;;
10862
10863     sysv4*MP*)
10864       if test -d /usr/nec; then
10865         lt_prog_compiler_pic_FC=-Kconform_pic
10866       fi
10867       ;;
10868
10869     *)
10870       lt_prog_compiler_pic_FC='-fPIC'
10871       ;;
10872     esac
10873   else
10874     # PORTME Check for flag to pass linker flags through the system compiler.
10875     case $host_os in
10876     aix*)
10877       lt_prog_compiler_wl_FC='-Wl,'
10878       if test "$host_cpu" = ia64; then
10879         # AIX 5 now supports IA64 processor
10880         lt_prog_compiler_static_FC='-Bstatic'
10881       else
10882         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10883       fi
10884       ;;
10885     darwin*)
10886       # PIC is the default on this platform
10887       # Common symbols not allowed in MH_DYLIB files
10888       case $cc_basename in
10889       xlc*)
10890         lt_prog_compiler_pic_FC='-qnocommon'
10891         lt_prog_compiler_wl_FC='-Wl,'
10892         ;;
10893       esac
10894       ;;
10895
10896     mingw* | cygwin* | pw32* | os2*)
10897       # This hack is so that the source file can tell whether it is being
10898       # built for inclusion in a dll (and should export symbols for example).
10899       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10900       ;;
10901
10902     hpux9* | hpux10* | hpux11*)
10903       lt_prog_compiler_wl_FC='-Wl,'
10904       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10905       # not for PA HP-UX.
10906       case $host_cpu in
10907       hppa*64*|ia64*)
10908         # +Z the default
10909         ;;
10910       *)
10911         lt_prog_compiler_pic_FC='+Z'
10912         ;;
10913       esac
10914       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10915       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10916       ;;
10917
10918     irix5* | irix6* | nonstopux*)
10919       lt_prog_compiler_wl_FC='-Wl,'
10920       # PIC (with -KPIC) is the default.
10921       lt_prog_compiler_static_FC='-non_shared'
10922       ;;
10923
10924     linux* | k*bsd*-gnu)
10925       case $cc_basename in
10926       icc* | ecc*)
10927         lt_prog_compiler_wl_FC='-Wl,'
10928         lt_prog_compiler_pic_FC='-KPIC'
10929         lt_prog_compiler_static_FC='-static'
10930         ;;
10931       pgcc* | pgf77* | pgf90* | pgf95*)
10932         # Portland Group compilers (*not* the Pentium gcc compiler,
10933         # which looks to be a dead project)
10934         lt_prog_compiler_wl_FC='-Wl,'
10935         lt_prog_compiler_pic_FC='-fpic'
10936         lt_prog_compiler_static_FC='-Bstatic'
10937         ;;
10938       ccc*)
10939         lt_prog_compiler_wl_FC='-Wl,'
10940         # All Alpha code is PIC.
10941         lt_prog_compiler_static_FC='-non_shared'
10942         ;;
10943       *)
10944         case `$CC -V 2>&1 | sed 5q` in
10945         *Sun\ C*)
10946           # Sun C 5.9
10947           lt_prog_compiler_pic_FC='-KPIC'
10948           lt_prog_compiler_static_FC='-Bstatic'
10949           lt_prog_compiler_wl_FC='-Wl,'
10950           ;;
10951         *Sun\ F*)
10952           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10953           lt_prog_compiler_pic_FC='-KPIC'
10954           lt_prog_compiler_static_FC='-Bstatic'
10955           lt_prog_compiler_wl_FC=''
10956           ;;
10957         esac
10958         ;;
10959       esac
10960       ;;
10961
10962     newsos6)
10963       lt_prog_compiler_pic_FC='-KPIC'
10964       lt_prog_compiler_static_FC='-Bstatic'
10965       ;;
10966
10967     *nto* | *qnx*)
10968       # QNX uses GNU C++, but need to define -shared option too, otherwise
10969       # it will coredump.
10970       lt_prog_compiler_pic_FC='-fPIC -shared'
10971       ;;
10972
10973     osf3* | osf4* | osf5*)
10974       lt_prog_compiler_wl_FC='-Wl,'
10975       # All OSF/1 code is PIC.
10976       lt_prog_compiler_static_FC='-non_shared'
10977       ;;
10978
10979     rdos*)
10980       lt_prog_compiler_static_FC='-non_shared'
10981       ;;
10982
10983     solaris*)
10984       lt_prog_compiler_pic_FC='-KPIC'
10985       lt_prog_compiler_static_FC='-Bstatic'
10986       case $cc_basename in
10987       f77* | f90* | f95*)
10988         lt_prog_compiler_wl_FC='-Qoption ld ';;
10989       *)
10990         lt_prog_compiler_wl_FC='-Wl,';;
10991       esac
10992       ;;
10993
10994     sunos4*)
10995       lt_prog_compiler_wl_FC='-Qoption ld '
10996       lt_prog_compiler_pic_FC='-PIC'
10997       lt_prog_compiler_static_FC='-Bstatic'
10998       ;;
10999
11000     sysv4 | sysv4.2uw2* | sysv4.3*)
11001       lt_prog_compiler_wl_FC='-Wl,'
11002       lt_prog_compiler_pic_FC='-KPIC'
11003       lt_prog_compiler_static_FC='-Bstatic'
11004       ;;
11005
11006     sysv4*MP*)
11007       if test -d /usr/nec ;then
11008         lt_prog_compiler_pic_FC='-Kconform_pic'
11009         lt_prog_compiler_static_FC='-Bstatic'
11010       fi
11011       ;;
11012
11013     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11014       lt_prog_compiler_wl_FC='-Wl,'
11015       lt_prog_compiler_pic_FC='-KPIC'
11016       lt_prog_compiler_static_FC='-Bstatic'
11017       ;;
11018
11019     unicos*)
11020       lt_prog_compiler_wl_FC='-Wl,'
11021       lt_prog_compiler_can_build_shared_FC=no
11022       ;;
11023
11024     uts4*)
11025       lt_prog_compiler_pic_FC='-pic'
11026       lt_prog_compiler_static_FC='-Bstatic'
11027       ;;
11028
11029     *)
11030       lt_prog_compiler_can_build_shared_FC=no
11031       ;;
11032     esac
11033   fi
11034
11035 case $host_os in
11036   # For platforms which do not support PIC, -DPIC is meaningless:
11037   *djgpp*)
11038     lt_prog_compiler_pic_FC=
11039     ;;
11040   *)
11041     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11042     ;;
11043 esac
11044 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11045 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11046
11047
11048
11049 #
11050 # Check to make sure the PIC flag actually works.
11051 #
11052 if test -n "$lt_prog_compiler_pic_FC"; then
11053   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11055 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   lt_prog_compiler_pic_works_FC=no
11059    ac_outfile=conftest.$ac_objext
11060    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11061    lt_compiler_flag="$lt_prog_compiler_pic_FC"
11062    # Insert the option either (1) after the last *FLAGS variable, or
11063    # (2) before a word containing "conftest.", or (3) at the end.
11064    # Note that $ac_compile itself does not contain backslashes and begins
11065    # with a dollar sign (not a hyphen), so the echo should work correctly.
11066    # The option is referenced via a variable to avoid confusing sed.
11067    lt_compile=`echo "$ac_compile" | $SED \
11068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11070    -e 's:$: $lt_compiler_flag:'`
11071    (eval echo "\"\$as_me:11071: $lt_compile\"" >&5)
11072    (eval "$lt_compile" 2>conftest.err)
11073    ac_status=$?
11074    cat conftest.err >&5
11075    echo "$as_me:11075: \$? = $ac_status" >&5
11076    if (exit $ac_status) && test -s "$ac_outfile"; then
11077      # The compiler can only warn and ignore the option if not recognized
11078      # So say no if there are warnings other than the usual output.
11079      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11080      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11081      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11082        lt_prog_compiler_pic_works_FC=yes
11083      fi
11084    fi
11085    $RM conftest*
11086
11087 fi
11088 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11089 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11090
11091 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11092     case $lt_prog_compiler_pic_FC in
11093      "" | " "*) ;;
11094      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11095      esac
11096 else
11097     lt_prog_compiler_pic_FC=
11098      lt_prog_compiler_can_build_shared_FC=no
11099 fi
11100
11101 fi
11102
11103
11104
11105 #
11106 # Check to make sure the static flag actually works.
11107 #
11108 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11109 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11110 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11111 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11112   echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114   lt_prog_compiler_static_works_FC=no
11115    save_LDFLAGS="$LDFLAGS"
11116    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11117    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11118    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11119      # The linker can only warn and ignore the option if not recognized
11120      # So say no if there are warnings
11121      if test -s conftest.err; then
11122        # Append any errors to the config.log.
11123        cat conftest.err 1>&5
11124        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11125        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11126        if diff conftest.exp conftest.er2 >/dev/null; then
11127          lt_prog_compiler_static_works_FC=yes
11128        fi
11129      else
11130        lt_prog_compiler_static_works_FC=yes
11131      fi
11132    fi
11133    $RM conftest*
11134    LDFLAGS="$save_LDFLAGS"
11135
11136 fi
11137 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11138 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11139
11140 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11141     :
11142 else
11143     lt_prog_compiler_static_FC=
11144 fi
11145
11146
11147
11148
11149     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11151 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   lt_cv_prog_compiler_c_o_FC=no
11155    $RM -r conftest 2>/dev/null
11156    mkdir conftest
11157    cd conftest
11158    mkdir out
11159    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11160
11161    lt_compiler_flag="-o out/conftest2.$ac_objext"
11162    # Insert the option either (1) after the last *FLAGS variable, or
11163    # (2) before a word containing "conftest.", or (3) at the end.
11164    # Note that $ac_compile itself does not contain backslashes and begins
11165    # with a dollar sign (not a hyphen), so the echo should work correctly.
11166    lt_compile=`echo "$ac_compile" | $SED \
11167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11169    -e 's:$: $lt_compiler_flag:'`
11170    (eval echo "\"\$as_me:11170: $lt_compile\"" >&5)
11171    (eval "$lt_compile" 2>out/conftest.err)
11172    ac_status=$?
11173    cat out/conftest.err >&5
11174    echo "$as_me:11174: \$? = $ac_status" >&5
11175    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11176    then
11177      # The compiler can only warn and ignore the option if not recognized
11178      # So say no if there are warnings
11179      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11180      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11181      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11182        lt_cv_prog_compiler_c_o_FC=yes
11183      fi
11184    fi
11185    chmod u+w . 2>&5
11186    $RM conftest*
11187    # SGI C++ compiler will create directory out/ii_files/ for
11188    # template instantiation
11189    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11190    $RM out/* && rmdir out
11191    cd ..
11192    $RM -r conftest
11193    $RM conftest*
11194
11195 fi
11196 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11198
11199
11200
11201     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11202 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11203 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206   lt_cv_prog_compiler_c_o_FC=no
11207    $RM -r conftest 2>/dev/null
11208    mkdir conftest
11209    cd conftest
11210    mkdir out
11211    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11212
11213    lt_compiler_flag="-o out/conftest2.$ac_objext"
11214    # Insert the option either (1) after the last *FLAGS variable, or
11215    # (2) before a word containing "conftest.", or (3) at the end.
11216    # Note that $ac_compile itself does not contain backslashes and begins
11217    # with a dollar sign (not a hyphen), so the echo should work correctly.
11218    lt_compile=`echo "$ac_compile" | $SED \
11219    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11221    -e 's:$: $lt_compiler_flag:'`
11222    (eval echo "\"\$as_me:11222: $lt_compile\"" >&5)
11223    (eval "$lt_compile" 2>out/conftest.err)
11224    ac_status=$?
11225    cat out/conftest.err >&5
11226    echo "$as_me:11226: \$? = $ac_status" >&5
11227    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11228    then
11229      # The compiler can only warn and ignore the option if not recognized
11230      # So say no if there are warnings
11231      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11232      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11233      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11234        lt_cv_prog_compiler_c_o_FC=yes
11235      fi
11236    fi
11237    chmod u+w . 2>&5
11238    $RM conftest*
11239    # SGI C++ compiler will create directory out/ii_files/ for
11240    # template instantiation
11241    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11242    $RM out/* && rmdir out
11243    cd ..
11244    $RM -r conftest
11245    $RM conftest*
11246
11247 fi
11248 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11249 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11250
11251
11252
11253
11254 hard_links="nottested"
11255 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11256   # do not overwrite the value of need_locks provided by the user
11257   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11258 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11259   hard_links=yes
11260   $RM conftest*
11261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11262   touch conftest.a
11263   ln conftest.a conftest.b 2>&5 || hard_links=no
11264   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11265   echo "$as_me:$LINENO: result: $hard_links" >&5
11266 echo "${ECHO_T}$hard_links" >&6
11267   if test "$hard_links" = no; then
11268     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11269 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11270     need_locks=warn
11271   fi
11272 else
11273   need_locks=no
11274 fi
11275
11276
11277
11278     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11280
11281   runpath_var=
11282   allow_undefined_flag_FC=
11283   always_export_symbols_FC=no
11284   archive_cmds_FC=
11285   archive_expsym_cmds_FC=
11286   compiler_needs_object_FC=no
11287   enable_shared_with_static_runtimes_FC=no
11288   export_dynamic_flag_spec_FC=
11289   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11290   hardcode_automatic_FC=no
11291   hardcode_direct_FC=no
11292   hardcode_direct_absolute_FC=no
11293   hardcode_libdir_flag_spec_FC=
11294   hardcode_libdir_flag_spec_ld_FC=
11295   hardcode_libdir_separator_FC=
11296   hardcode_minus_L_FC=no
11297   hardcode_shlibpath_var_FC=unsupported
11298   inherit_rpath_FC=no
11299   link_all_deplibs_FC=unknown
11300   module_cmds_FC=
11301   module_expsym_cmds_FC=
11302   old_archive_from_new_cmds_FC=
11303   old_archive_from_expsyms_cmds_FC=
11304   thread_safe_flag_spec_FC=
11305   whole_archive_flag_spec_FC=
11306   # include_expsyms should be a list of space-separated symbols to be *always*
11307   # included in the symbol list
11308   include_expsyms_FC=
11309   # exclude_expsyms can be an extended regexp of symbols to exclude
11310   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11311   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11312   # as well as any symbol that contains `d'.
11313   exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11314   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11315   # platforms (ab)use it in PIC code, but their linkers get confused if
11316   # the symbol is explicitly referenced.  Since portable code cannot
11317   # rely on this symbol name, it's probably fine to never include it in
11318   # preloaded symbol tables.
11319   extract_expsyms_cmds=
11320
11321   case $host_os in
11322   cygwin* | mingw* | pw32*)
11323     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11324     # When not using gcc, we currently assume that we are using
11325     # Microsoft Visual C++.
11326     if test "$GCC" != yes; then
11327       with_gnu_ld=no
11328     fi
11329     ;;
11330   interix*)
11331     # we just hope/assume this is gcc and not c89 (= MSVC++)
11332     with_gnu_ld=yes
11333     ;;
11334   openbsd*)
11335     with_gnu_ld=no
11336     ;;
11337   esac
11338
11339   ld_shlibs_FC=yes
11340   if test "$with_gnu_ld" = yes; then
11341     # If archive_cmds runs LD, not CC, wlarc should be empty
11342     wlarc='${wl}'
11343
11344     # Set some defaults for GNU ld with shared library support. These
11345     # are reset later if shared libraries are not supported. Putting them
11346     # here allows them to be overridden if necessary.
11347     runpath_var=LD_RUN_PATH
11348     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11349     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11350     # ancient GNU ld didn't support --whole-archive et. al.
11351     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11352       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11353     else
11354       whole_archive_flag_spec_FC=
11355     fi
11356     supports_anon_versioning=no
11357     case `$LD -v 2>&1` in
11358       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11359       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11360       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11361       *\ 2.11.*) ;; # other 2.11 versions
11362       *) supports_anon_versioning=yes ;;
11363     esac
11364
11365     # See if GNU ld supports shared libraries.
11366     case $host_os in
11367     aix[3-9]*)
11368       # On AIX/PPC, the GNU linker is very broken
11369       if test "$host_cpu" != ia64; then
11370         ld_shlibs_FC=no
11371         cat <<_LT_EOF 1>&2
11372
11373 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11374 *** to be unable to reliably create shared libraries on AIX.
11375 *** Therefore, libtool is disabling shared libraries support.  If you
11376 *** really care for shared libraries, you may want to modify your PATH
11377 *** so that a non-GNU linker is found, and then restart.
11378
11379 _LT_EOF
11380       fi
11381       ;;
11382
11383     amigaos*)
11384       if test "$host_cpu" = m68k; then
11385         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)'
11386         hardcode_libdir_flag_spec_FC='-L$libdir'
11387         hardcode_minus_L_FC=yes
11388       fi
11389
11390       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11391       # that the semantics of dynamic libraries on AmigaOS, at least up
11392       # to version 4, is to share data among multiple programs linked
11393       # with the same dynamic library.  Since this doesn't match the
11394       # behavior of shared libraries on other platforms, we can't use
11395       # them.
11396       ld_shlibs_FC=no
11397       ;;
11398
11399     beos*)
11400       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11401         allow_undefined_flag_FC=unsupported
11402         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11403         # support --undefined.  This deserves some investigation.  FIXME
11404         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405       else
11406         ld_shlibs_FC=no
11407       fi
11408       ;;
11409
11410     cygwin* | mingw* | pw32*)
11411       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11412       # as there is no search path for DLLs.
11413       hardcode_libdir_flag_spec_FC='-L$libdir'
11414       allow_undefined_flag_FC=unsupported
11415       always_export_symbols_FC=no
11416       enable_shared_with_static_runtimes_FC=yes
11417       export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11418
11419       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11420         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11421         # If the export-symbols file already is a .def file (1st line
11422         # is EXPORTS), use it as is; otherwise, prepend...
11423         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11424           cp $export_symbols $output_objdir/$soname.def;
11425         else
11426           echo EXPORTS > $output_objdir/$soname.def;
11427           cat $export_symbols >> $output_objdir/$soname.def;
11428         fi~
11429         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11430       else
11431         ld_shlibs_FC=no
11432       fi
11433       ;;
11434
11435     interix[3-9]*)
11436       hardcode_direct_FC=no
11437       hardcode_shlibpath_var_FC=no
11438       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11439       export_dynamic_flag_spec_FC='${wl}-E'
11440       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11441       # Instead, shared libraries are loaded at an image base (0x10000000 by
11442       # default) and relocated if they conflict, which is a slow very memory
11443       # consuming and fragmenting process.  To avoid this, we pick a random,
11444       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11445       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11446       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'
11447       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'
11448       ;;
11449
11450     gnu* | linux* | tpf* | k*bsd*-gnu)
11451       tmp_diet=no
11452       if test "$host_os" = linux-dietlibc; then
11453         case $cc_basename in
11454           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11455         esac
11456       fi
11457       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11458          && test "$tmp_diet" = no
11459       then
11460         tmp_addflag=
11461         case $cc_basename,$host_cpu in
11462         pgcc*)                          # Portland Group C compiler
11463           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11464           tmp_addflag=' $pic_flag'
11465           ;;
11466         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11467           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11468           tmp_addflag=' $pic_flag -Mnomain' ;;
11469         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11470           tmp_addflag=' -i_dynamic' ;;
11471         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11472           tmp_addflag=' -i_dynamic -nofor_main' ;;
11473         ifc* | ifort*)                  # Intel Fortran compiler
11474           tmp_addflag=' -nofor_main' ;;
11475         esac
11476         case `$CC -V 2>&1 | sed 5q` in
11477         *Sun\ C*)                       # Sun C 5.9
11478           whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11479           compiler_needs_object_FC=yes
11480           tmp_sharedflag='-G' ;;
11481         *Sun\ F*)                       # Sun Fortran 8.3
11482           tmp_sharedflag='-G' ;;
11483         *)
11484           tmp_sharedflag='-shared' ;;
11485         esac
11486         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11487
11488         if test "x$supports_anon_versioning" = xyes; then
11489           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11490             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11491             echo "local: *; };" >> $output_objdir/$libname.ver~
11492             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11493         fi
11494       else
11495         ld_shlibs_FC=no
11496       fi
11497       ;;
11498
11499     netbsd*)
11500       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11501         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11502         wlarc=
11503       else
11504         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11505         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11506       fi
11507       ;;
11508
11509     solaris*)
11510       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11511         ld_shlibs_FC=no
11512         cat <<_LT_EOF 1>&2
11513
11514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11515 *** create shared libraries on Solaris systems.  Therefore, libtool
11516 *** is disabling shared libraries support.  We urge you to upgrade GNU
11517 *** binutils to release 2.9.1 or newer.  Another option is to modify
11518 *** your PATH or compiler configuration so that the native linker is
11519 *** used, and then restart.
11520
11521 _LT_EOF
11522       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11523         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11524         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11525       else
11526         ld_shlibs_FC=no
11527       fi
11528       ;;
11529
11530     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11531       case `$LD -v 2>&1` in
11532         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11533         ld_shlibs_FC=no
11534         cat <<_LT_EOF 1>&2
11535
11536 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11537 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11538 *** is disabling shared libraries support.  We urge you to upgrade GNU
11539 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11540 *** your PATH or compiler configuration so that the native linker is
11541 *** used, and then restart.
11542
11543 _LT_EOF
11544         ;;
11545         *)
11546           # For security reasons, it is highly recommended that you always
11547           # use absolute paths for naming shared libraries, and exclude the
11548           # DT_RUNPATH tag from executables and libraries.  But doing so
11549           # requires that you compile everything twice, which is a pain.
11550           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11551             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11552             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11553             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11554           else
11555             ld_shlibs_FC=no
11556           fi
11557         ;;
11558       esac
11559       ;;
11560
11561     sunos4*)
11562       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11563       wlarc=
11564       hardcode_direct_FC=yes
11565       hardcode_shlibpath_var_FC=no
11566       ;;
11567
11568     *)
11569       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11570         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11571         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11572       else
11573         ld_shlibs_FC=no
11574       fi
11575       ;;
11576     esac
11577
11578     if test "$ld_shlibs_FC" = no; then
11579       runpath_var=
11580       hardcode_libdir_flag_spec_FC=
11581       export_dynamic_flag_spec_FC=
11582       whole_archive_flag_spec_FC=
11583     fi
11584   else
11585     # PORTME fill in a description of your system's linker (not GNU ld)
11586     case $host_os in
11587     aix3*)
11588       allow_undefined_flag_FC=unsupported
11589       always_export_symbols_FC=yes
11590       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'
11591       # Note: this linker hardcodes the directories in LIBPATH if there
11592       # are no directories specified by -L.
11593       hardcode_minus_L_FC=yes
11594       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11595         # Neither direct hardcoding nor static linking is supported with a
11596         # broken collect2.
11597         hardcode_direct_FC=unsupported
11598       fi
11599       ;;
11600
11601     aix[4-9]*)
11602       if test "$host_cpu" = ia64; then
11603         # On IA64, the linker does run time linking by default, so we don't
11604         # have to do anything special.
11605         aix_use_runtimelinking=no
11606         exp_sym_flag='-Bexport'
11607         no_entry_flag=""
11608       else
11609         # If we're using GNU nm, then we don't want the "-C" option.
11610         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11611         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11612           export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11613         else
11614           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'
11615         fi
11616         aix_use_runtimelinking=no
11617
11618         # Test if we are trying to use run time linking or normal
11619         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11620         # need to do runtime linking.
11621         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11622           for ld_flag in $LDFLAGS; do
11623           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11624             aix_use_runtimelinking=yes
11625             break
11626           fi
11627           done
11628           ;;
11629         esac
11630
11631         exp_sym_flag='-bexport'
11632         no_entry_flag='-bnoentry'
11633       fi
11634
11635       # When large executables or shared objects are built, AIX ld can
11636       # have problems creating the table of contents.  If linking a library
11637       # or program results in "error TOC overflow" add -mminimal-toc to
11638       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11639       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11640
11641       archive_cmds_FC=''
11642       hardcode_direct_FC=yes
11643       hardcode_direct_absolute_FC=yes
11644       hardcode_libdir_separator_FC=':'
11645       link_all_deplibs_FC=yes
11646       file_list_spec_FC='${wl}-f,'
11647
11648       if test "$GCC" = yes; then
11649         case $host_os in aix4.[012]|aix4.[012].*)
11650         # We only want to do this on AIX 4.2 and lower, the check
11651         # below for broken collect2 doesn't work under 4.3+
11652           collect2name=`${CC} -print-prog-name=collect2`
11653           if test -f "$collect2name" &&
11654            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11655           then
11656           # We have reworked collect2
11657           :
11658           else
11659           # We have old collect2
11660           hardcode_direct_FC=unsupported
11661           # It fails to find uninstalled libraries when the uninstalled
11662           # path is not listed in the libpath.  Setting hardcode_minus_L
11663           # to unsupported forces relinking
11664           hardcode_minus_L_FC=yes
11665           hardcode_libdir_flag_spec_FC='-L$libdir'
11666           hardcode_libdir_separator_FC=
11667           fi
11668           ;;
11669         esac
11670         shared_flag='-shared'
11671         if test "$aix_use_runtimelinking" = yes; then
11672           shared_flag="$shared_flag "'${wl}-G'
11673         fi
11674       else
11675         # not using gcc
11676         if test "$host_cpu" = ia64; then
11677         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11678         # chokes on -Wl,-G. The following line is correct:
11679           shared_flag='-G'
11680         else
11681           if test "$aix_use_runtimelinking" = yes; then
11682             shared_flag='${wl}-G'
11683           else
11684             shared_flag='${wl}-bM:SRE'
11685           fi
11686         fi
11687       fi
11688
11689       # It seems that -bexpall does not export symbols beginning with
11690       # underscore (_), so it is better to generate a list of symbols to export.
11691       always_export_symbols_FC=yes
11692       if test "$aix_use_runtimelinking" = yes; then
11693         # Warning - without using the other runtime loading flags (-brtl),
11694         # -berok will link without error, but may produce a broken library.
11695         allow_undefined_flag_FC='-berok'
11696         # Determine the default libpath from the value encoded in an
11697         # empty executable.
11698         cat >conftest.$ac_ext <<_ACEOF
11699       program main
11700
11701       end
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705   (eval $ac_link) 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -z "$ac_fc_werror_flag"
11713                          || test ! -s conftest.err'
11714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715   (eval $ac_try) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; } &&
11719          { ac_try='test -s conftest$ac_exeext'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; }; then
11725
11726 lt_aix_libpath_sed='
11727     /Import File Strings/,/^$/ {
11728         /^0/ {
11729             s/^0  *\(.*\)$/\1/
11730             p
11731         }
11732     }'
11733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11734 # Check for a 64-bit object if we didn't find anything.
11735 if test -z "$aix_libpath"; then
11736   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11737 fi
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742 fi
11743 rm -f conftest.err conftest.$ac_objext \
11744       conftest$ac_exeext conftest.$ac_ext
11745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11746
11747         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11748         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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11749       else
11750         if test "$host_cpu" = ia64; then
11751           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11752           allow_undefined_flag_FC="-z nodefs"
11753           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"
11754         else
11755          # Determine the default libpath from the value encoded in an
11756          # empty executable.
11757          cat >conftest.$ac_ext <<_ACEOF
11758       program main
11759
11760       end
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764   (eval $ac_link) 2>conftest.er1
11765   ac_status=$?
11766   grep -v '^ *+' conftest.er1 >conftest.err
11767   rm -f conftest.er1
11768   cat conftest.err >&5
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -z "$ac_fc_werror_flag"
11772                          || test ! -s conftest.err'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; } &&
11778          { ac_try='test -s conftest$ac_exeext'
11779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780   (eval $ac_try) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; }; then
11784
11785 lt_aix_libpath_sed='
11786     /Import File Strings/,/^$/ {
11787         /^0/ {
11788             s/^0  *\(.*\)$/\1/
11789             p
11790         }
11791     }'
11792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11793 # Check for a 64-bit object if we didn't find anything.
11794 if test -z "$aix_libpath"; then
11795   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11796 fi
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 fi
11802 rm -f conftest.err conftest.$ac_objext \
11803       conftest$ac_exeext conftest.$ac_ext
11804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11805
11806          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11807           # Warning - without using the other run time loading flags,
11808           # -berok will link without error, but may produce a broken library.
11809           no_undefined_flag_FC=' ${wl}-bernotok'
11810           allow_undefined_flag_FC=' ${wl}-berok'
11811           # Exported symbols can be pulled into shared objects from archives
11812           whole_archive_flag_spec_FC='$convenience'
11813           archive_cmds_need_lc_FC=yes
11814           # This is similar to how AIX traditionally builds its shared libraries.
11815           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'
11816         fi
11817       fi
11818       ;;
11819
11820     amigaos*)
11821       if test "$host_cpu" = m68k; then
11822         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)'
11823         hardcode_libdir_flag_spec_FC='-L$libdir'
11824         hardcode_minus_L_FC=yes
11825       fi
11826       # see comment about different semantics on the GNU ld section
11827       ld_shlibs_FC=no
11828       ;;
11829
11830     bsdi[45]*)
11831       export_dynamic_flag_spec_FC=-rdynamic
11832       ;;
11833
11834     cygwin* | mingw* | pw32*)
11835       # When not using gcc, we currently assume that we are using
11836       # Microsoft Visual C++.
11837       # hardcode_libdir_flag_spec is actually meaningless, as there is
11838       # no search path for DLLs.
11839       hardcode_libdir_flag_spec_FC=' '
11840       allow_undefined_flag_FC=unsupported
11841       # Tell ltmain to make .lib files, not .a files.
11842       libext=lib
11843       # Tell ltmain to make .dll files, not .so files.
11844       shrext_cmds=".dll"
11845       # FIXME: Setting linknames here is a bad hack.
11846       archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11847       # The linker will automatically build a .lib file if we build a DLL.
11848       old_archive_from_new_cmds_FC='true'
11849       # FIXME: Should let the user specify the lib program.
11850       old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11851       fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11852       enable_shared_with_static_runtimes_FC=yes
11853       ;;
11854
11855     darwin* | rhapsody*)
11856       case $host_os in
11857       rhapsody* | darwin1.[012])
11858         allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11859         ;;
11860       *) # Darwin 1.3 on
11861         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11862         10.[012])
11863           allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11864           ;;
11865         10.*)
11866           allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11867           ;;
11868         esac
11869         ;;
11870       esac
11871       archive_cmds_need_lc_FC=no
11872       hardcode_direct_FC=no
11873       hardcode_automatic_FC=yes
11874       hardcode_shlibpath_var_FC=unsupported
11875       whole_archive_flag_spec_FC=''
11876       link_all_deplibs_FC=yes
11877       if test "$GCC" = yes ; then
11878         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   lt_cv_apple_cc_single_mod=no
11882         if test -z "${LT_MULTI_MODULE}"; then
11883           # By default we will add the -single_module flag. You can override
11884           # by either setting the environment variable LT_MULTI_MODULE
11885           # non-empty at configure time, or by adding -multi-module to the
11886           # link flags.
11887           echo "int foo(void){return 1;}" > conftest.c
11888           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11889               -dynamiclib ${wl}-single_module conftest.c
11890           if test -f libconftest.dylib; then
11891               lt_cv_apple_cc_single_mod=yes
11892               rm libconftest.dylib
11893           fi
11894           rm conftest.$ac_ext
11895         fi
11896 fi
11897
11898         output_verbose_link_cmd=echo
11899         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11900           archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11901           archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11902         else
11903           archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11904           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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11905         fi
11906         module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11907         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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11908       else
11909         case $cc_basename in
11910         xlc*)
11911           output_verbose_link_cmd=echo
11912           archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11913           module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11914           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11915           archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11916           module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11917           ;;
11918         *)
11919           ld_shlibs_FC=no
11920           ;;
11921         esac
11922       fi
11923       ;;
11924
11925     dgux*)
11926       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11927       hardcode_libdir_flag_spec_FC='-L$libdir'
11928       hardcode_shlibpath_var_FC=no
11929       ;;
11930
11931     freebsd1*)
11932       ld_shlibs_FC=no
11933       ;;
11934
11935     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11936     # support.  Future versions do this automatically, but an explicit c++rt0.o
11937     # does not break anything, and helps significantly (at the cost of a little
11938     # extra space).
11939     freebsd2.2*)
11940       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11941       hardcode_libdir_flag_spec_FC='-R$libdir'
11942       hardcode_direct_FC=yes
11943       hardcode_shlibpath_var_FC=no
11944       ;;
11945
11946     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11947     freebsd2*)
11948       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11949       hardcode_direct_FC=yes
11950       hardcode_minus_L_FC=yes
11951       hardcode_shlibpath_var_FC=no
11952       ;;
11953
11954     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11955     freebsd* | dragonfly*)
11956       archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11957       hardcode_libdir_flag_spec_FC='-R$libdir'
11958       hardcode_direct_FC=yes
11959       hardcode_shlibpath_var_FC=no
11960       ;;
11961
11962     hpux9*)
11963       if test "$GCC" = yes; then
11964         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'
11965       else
11966         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'
11967       fi
11968       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11969       hardcode_libdir_separator_FC=:
11970       hardcode_direct_FC=yes
11971
11972       # hardcode_minus_L: Not really in the search PATH,
11973       # but as the default location of the library.
11974       hardcode_minus_L_FC=yes
11975       export_dynamic_flag_spec_FC='${wl}-E'
11976       ;;
11977
11978     hpux10*)
11979       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11980         archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11981       else
11982         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11983       fi
11984       if test "$with_gnu_ld" = no; then
11985         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11986         hardcode_libdir_flag_spec_ld_FC='+b $libdir'
11987         hardcode_libdir_separator_FC=:
11988         hardcode_direct_FC=yes
11989         hardcode_direct_absolute_FC=yes
11990         export_dynamic_flag_spec_FC='${wl}-E'
11991         # hardcode_minus_L: Not really in the search PATH,
11992         # but as the default location of the library.
11993         hardcode_minus_L_FC=yes
11994       fi
11995       ;;
11996
11997     hpux11*)
11998       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11999         case $host_cpu in
12000         hppa*64*)
12001           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12002           ;;
12003         ia64*)
12004           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12005           ;;
12006         *)
12007           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12008           ;;
12009         esac
12010       else
12011         case $host_cpu in
12012         hppa*64*)
12013           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12014           ;;
12015         ia64*)
12016           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12017           ;;
12018         *)
12019           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12020           ;;
12021         esac
12022       fi
12023       if test "$with_gnu_ld" = no; then
12024         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12025         hardcode_libdir_separator_FC=:
12026
12027         case $host_cpu in
12028         hppa*64*|ia64*)
12029           hardcode_direct_FC=no
12030           hardcode_shlibpath_var_FC=no
12031           ;;
12032         *)
12033           hardcode_direct_FC=yes
12034           hardcode_direct_absolute_FC=yes
12035           export_dynamic_flag_spec_FC='${wl}-E'
12036
12037           # hardcode_minus_L: Not really in the search PATH,
12038           # but as the default location of the library.
12039           hardcode_minus_L_FC=yes
12040           ;;
12041         esac
12042       fi
12043       ;;
12044
12045     irix5* | irix6* | nonstopux*)
12046       if test "$GCC" = yes; then
12047         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12048         # Try to use the -exported_symbol ld option, if it does not
12049         # work, assume that -exports_file does not work either and
12050         # implicitly export all symbols.
12051         save_LDFLAGS="$LDFLAGS"
12052         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12053         cat >conftest.$ac_ext <<_ACEOF
12054 int foo(void) {}
12055 _ACEOF
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058   (eval $ac_link) 2>conftest.er1
12059   ac_status=$?
12060   grep -v '^ *+' conftest.er1 >conftest.err
12061   rm -f conftest.er1
12062   cat conftest.err >&5
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); } &&
12065          { ac_try='test -z "$ac_fc_werror_flag"
12066                          || test ! -s conftest.err'
12067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068   (eval $ac_try) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; } &&
12072          { ac_try='test -s conftest$ac_exeext'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078   archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12079
12080 else
12081   echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12083
12084 fi
12085 rm -f conftest.err conftest.$ac_objext \
12086       conftest$ac_exeext conftest.$ac_ext
12087         LDFLAGS="$save_LDFLAGS"
12088       else
12089         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12090         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12091       fi
12092       archive_cmds_need_lc_FC='no'
12093       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12094       hardcode_libdir_separator_FC=:
12095       inherit_rpath_FC=yes
12096       link_all_deplibs_FC=yes
12097       ;;
12098
12099     netbsd*)
12100       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12101         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12102       else
12103         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12104       fi
12105       hardcode_libdir_flag_spec_FC='-R$libdir'
12106       hardcode_direct_FC=yes
12107       hardcode_shlibpath_var_FC=no
12108       ;;
12109
12110     newsos6)
12111       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12112       hardcode_direct_FC=yes
12113       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12114       hardcode_libdir_separator_FC=:
12115       hardcode_shlibpath_var_FC=no
12116       ;;
12117
12118     *nto* | *qnx*)
12119       ;;
12120
12121     openbsd*)
12122       hardcode_direct_FC=yes
12123       hardcode_shlibpath_var_FC=no
12124       hardcode_direct_absolute_FC=yes
12125       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12126         archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12127         archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12128         hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12129         export_dynamic_flag_spec_FC='${wl}-E'
12130       else
12131         case $host_os in
12132         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12133           archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12134           hardcode_libdir_flag_spec_FC='-R$libdir'
12135           ;;
12136         *)
12137           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12138           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12139           ;;
12140         esac
12141       fi
12142       ;;
12143
12144     os2*)
12145       hardcode_libdir_flag_spec_FC='-L$libdir'
12146       hardcode_minus_L_FC=yes
12147       allow_undefined_flag_FC=unsupported
12148       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'
12149       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12150       ;;
12151
12152     osf3*)
12153       if test "$GCC" = yes; then
12154         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12155         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12156       else
12157         allow_undefined_flag_FC=' -expect_unresolved \*'
12158         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12159       fi
12160       archive_cmds_need_lc_FC='no'
12161       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12162       hardcode_libdir_separator_FC=:
12163       ;;
12164
12165     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12166       if test "$GCC" = yes; then
12167         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12168         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12169         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12170       else
12171         allow_undefined_flag_FC=' -expect_unresolved \*'
12172         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12173         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~
12174         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12175
12176         # Both c and cxx compiler support -rpath directly
12177         hardcode_libdir_flag_spec_FC='-rpath $libdir'
12178       fi
12179       archive_cmds_need_lc_FC='no'
12180       hardcode_libdir_separator_FC=:
12181       ;;
12182
12183     solaris*)
12184       no_undefined_flag_FC=' -z defs'
12185       if test "$GCC" = yes; then
12186         wlarc='${wl}'
12187         archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12189           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12190       else
12191         case `$CC -V 2>&1` in
12192         *"Compilers 5.0"*)
12193           wlarc=''
12194           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12195           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12196           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12197           ;;
12198         *)
12199           wlarc='${wl}'
12200           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12201           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12202           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12203           ;;
12204         esac
12205       fi
12206       hardcode_libdir_flag_spec_FC='-R$libdir'
12207       hardcode_shlibpath_var_FC=no
12208       case $host_os in
12209       solaris2.[0-5] | solaris2.[0-5].*) ;;
12210       *)
12211         # The compiler driver will combine and reorder linker options,
12212         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12213         # but is careful enough not to reorder.
12214         # Supported since Solaris 2.6 (maybe 2.5.1?)
12215         if test "$GCC" = yes; then
12216           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12217         else
12218           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12219         fi
12220         ;;
12221       esac
12222       link_all_deplibs_FC=yes
12223       ;;
12224
12225     sunos4*)
12226       if test "x$host_vendor" = xsequent; then
12227         # Use $CC to link under sequent, because it throws in some extra .o
12228         # files that make .init and .fini sections work.
12229         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12230       else
12231         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12232       fi
12233       hardcode_libdir_flag_spec_FC='-L$libdir'
12234       hardcode_direct_FC=yes
12235       hardcode_minus_L_FC=yes
12236       hardcode_shlibpath_var_FC=no
12237       ;;
12238
12239     sysv4)
12240       case $host_vendor in
12241         sni)
12242           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12243           hardcode_direct_FC=yes # is this really true???
12244         ;;
12245         siemens)
12246           ## LD is ld it makes a PLAMLIB
12247           ## CC just makes a GrossModule.
12248           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12249           reload_cmds_FC='$CC -r -o $output$reload_objs'
12250           hardcode_direct_FC=no
12251         ;;
12252         motorola)
12253           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12254           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12255         ;;
12256       esac
12257       runpath_var='LD_RUN_PATH'
12258       hardcode_shlibpath_var_FC=no
12259       ;;
12260
12261     sysv4.3*)
12262       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12263       hardcode_shlibpath_var_FC=no
12264       export_dynamic_flag_spec_FC='-Bexport'
12265       ;;
12266
12267     sysv4*MP*)
12268       if test -d /usr/nec; then
12269         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12270         hardcode_shlibpath_var_FC=no
12271         runpath_var=LD_RUN_PATH
12272         hardcode_runpath_var=yes
12273         ld_shlibs_FC=yes
12274       fi
12275       ;;
12276
12277     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12278       no_undefined_flag_FC='${wl}-z,text'
12279       archive_cmds_need_lc_FC=no
12280       hardcode_shlibpath_var_FC=no
12281       runpath_var='LD_RUN_PATH'
12282
12283       if test "$GCC" = yes; then
12284         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12286       else
12287         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12289       fi
12290       ;;
12291
12292     sysv5* | sco3.2v5* | sco5v6*)
12293       # Note: We can NOT use -z defs as we might desire, because we do not
12294       # link with -lc, and that would cause any symbols used from libc to
12295       # always be unresolved, which means just about no library would
12296       # ever link correctly.  If we're not using GNU ld we use -z text
12297       # though, which does catch some bad symbols but isn't as heavy-handed
12298       # as -z defs.
12299       no_undefined_flag_FC='${wl}-z,text'
12300       allow_undefined_flag_FC='${wl}-z,nodefs'
12301       archive_cmds_need_lc_FC=no
12302       hardcode_shlibpath_var_FC=no
12303       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12304       hardcode_libdir_separator_FC=':'
12305       link_all_deplibs_FC=yes
12306       export_dynamic_flag_spec_FC='${wl}-Bexport'
12307       runpath_var='LD_RUN_PATH'
12308
12309       if test "$GCC" = yes; then
12310         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12312       else
12313         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12315       fi
12316       ;;
12317
12318     uts4*)
12319       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320       hardcode_libdir_flag_spec_FC='-L$libdir'
12321       hardcode_shlibpath_var_FC=no
12322       ;;
12323
12324     *)
12325       ld_shlibs_FC=no
12326       ;;
12327     esac
12328
12329     if test x$host_vendor = xsni; then
12330       case $host in
12331       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12332         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12333         ;;
12334       esac
12335     fi
12336   fi
12337
12338 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12339 echo "${ECHO_T}$ld_shlibs_FC" >&6
12340 test "$ld_shlibs_FC" = no && can_build_shared=no
12341
12342 with_gnu_ld_FC=$with_gnu_ld
12343
12344
12345
12346
12347
12348
12349 #
12350 # Do we need to explicitly link libc?
12351 #
12352 case "x$archive_cmds_need_lc_FC" in
12353 x|xyes)
12354   # Assume -lc should be added
12355   archive_cmds_need_lc_FC=yes
12356
12357   if test "$enable_shared" = yes && test "$GCC" = yes; then
12358     case $archive_cmds_FC in
12359     *'~'*)
12360       # FIXME: we may have to deal with multi-command sequences.
12361       ;;
12362     '$CC '*)
12363       # Test whether the compiler implicitly links with -lc since on some
12364       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12365       # to ld, don't add -lc before -lgcc.
12366       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12367 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12368       $RM conftest*
12369       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12370
12371       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12372   (eval $ac_compile) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); } 2>conftest.err; then
12376         soname=conftest
12377         lib=conftest
12378         libobjs=conftest.$ac_objext
12379         deplibs=
12380         wl=$lt_prog_compiler_wl_FC
12381         pic_flag=$lt_prog_compiler_pic_FC
12382         compiler_flags=-v
12383         linker_flags=-v
12384         verstring=
12385         output_objdir=.
12386         libname=conftest
12387         lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12388         allow_undefined_flag_FC=
12389         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12390   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }
12394         then
12395           archive_cmds_need_lc_FC=no
12396         else
12397           archive_cmds_need_lc_FC=yes
12398         fi
12399         allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12400       else
12401         cat conftest.err 1>&5
12402       fi
12403       $RM conftest*
12404       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12405 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12406       ;;
12407     esac
12408   fi
12409   ;;
12410 esac
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12476 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12477 withGCC=$ac_cv_fc_compiler_gnu
12478 library_names_spec=
12479 libname_spec='lib$name'
12480 soname_spec=
12481 shrext_cmds=".so"
12482 postinstall_cmds=
12483 postuninstall_cmds=
12484 finish_cmds=
12485 finish_eval=
12486 shlibpath_var=
12487 shlibpath_overrides_runpath=unknown
12488 version_type=none
12489 dynamic_linker="$host_os ld.so"
12490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12491 need_lib_prefix=unknown
12492 hardcode_into_libs=no
12493
12494 # when you set need_version to no, make sure it does not cause -set_version
12495 # flags to be left without arguments
12496 need_version=unknown
12497
12498 case $host_os in
12499 aix3*)
12500   version_type=linux
12501   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12502   shlibpath_var=LIBPATH
12503
12504   # AIX 3 has no versioning support, so we append a major version to the name.
12505   soname_spec='${libname}${release}${shared_ext}$major'
12506   ;;
12507
12508 aix[4-9]*)
12509   version_type=linux
12510   need_lib_prefix=no
12511   need_version=no
12512   hardcode_into_libs=yes
12513   if test "$host_cpu" = ia64; then
12514     # AIX 5 supports IA64
12515     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12516     shlibpath_var=LD_LIBRARY_PATH
12517   else
12518     # With GCC up to 2.95.x, collect2 would create an import file
12519     # for dependence libraries.  The import file would start with
12520     # the line `#! .'.  This would cause the generated library to
12521     # depend on `.', always an invalid library.  This was fixed in
12522     # development snapshots of GCC prior to 3.0.
12523     case $host_os in
12524       aix4 | aix4.[01] | aix4.[01].*)
12525       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12526            echo ' yes '
12527            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12528         :
12529       else
12530         can_build_shared=no
12531       fi
12532       ;;
12533     esac
12534     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12535     # soname into executable. Probably we can add versioning support to
12536     # collect2, so additional links can be useful in future.
12537     if test "$aix_use_runtimelinking" = yes; then
12538       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12539       # instead of lib<name>.a to let people know that these are not
12540       # typical AIX shared libraries.
12541       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542     else
12543       # We preserve .a as extension for shared libraries through AIX4.2
12544       # and later when we are not doing run time linking.
12545       library_names_spec='${libname}${release}.a $libname.a'
12546       soname_spec='${libname}${release}${shared_ext}$major'
12547     fi
12548     shlibpath_var=LIBPATH
12549   fi
12550   ;;
12551
12552 amigaos*)
12553   if test "$host_cpu" = m68k; then
12554     library_names_spec='$libname.ixlibrary $libname.a'
12555     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12556     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
12557   else
12558     dynamic_linker=no
12559   fi
12560   ;;
12561
12562 beos*)
12563   library_names_spec='${libname}${shared_ext}'
12564   dynamic_linker="$host_os ld.so"
12565   shlibpath_var=LIBRARY_PATH
12566   ;;
12567
12568 bsdi[45]*)
12569   version_type=linux
12570   need_version=no
12571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572   soname_spec='${libname}${release}${shared_ext}$major'
12573   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12574   shlibpath_var=LD_LIBRARY_PATH
12575   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12576   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12577   # the default ld.so.conf also contains /usr/contrib/lib and
12578   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12579   # libtool to hard-code these into programs
12580   ;;
12581
12582 cygwin* | mingw* | pw32*)
12583   version_type=windows
12584   shrext_cmds=".dll"
12585   need_version=no
12586   need_lib_prefix=no
12587
12588   case $withGCC,$host_os in
12589   yes,cygwin* | yes,mingw* | yes,pw32*)
12590     library_names_spec='$libname.dll.a'
12591     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12592     postinstall_cmds='base_file=`basename \${file}`~
12593       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12594       dldir=$destdir/`dirname \$dlpath`~
12595       test -d \$dldir || mkdir -p \$dldir~
12596       $install_prog $dir/$dlname \$dldir/$dlname~
12597       chmod a+x \$dldir/$dlname~
12598       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12599         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12600       fi'
12601     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12602       dlpath=$dir/\$dldll~
12603        $RM \$dlpath'
12604     shlibpath_overrides_runpath=yes
12605
12606     case $host_os in
12607     cygwin*)
12608       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12609       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12610       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12611       ;;
12612     mingw*)
12613       # MinGW DLLs use traditional 'lib' prefix
12614       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12615       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12616       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12617         # It is most probably a Windows format PATH printed by
12618         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12619         # path with ; separators, and with drive letters. We can handle the
12620         # drive letters (cygwin fileutils understands them), so leave them,
12621         # especially as we might pass files found there to a mingw objdump,
12622         # which wouldn't understand a cygwinified path. Ahh.
12623         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12624       else
12625         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12626       fi
12627       ;;
12628     pw32*)
12629       # pw32 DLLs use 'pw' prefix rather than 'lib'
12630       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12631       ;;
12632     esac
12633     ;;
12634
12635   *)
12636     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12637     ;;
12638   esac
12639   dynamic_linker='Win32 ld.exe'
12640   # FIXME: first we should search . and the directory the executable is in
12641   shlibpath_var=PATH
12642   ;;
12643
12644 darwin* | rhapsody*)
12645   dynamic_linker="$host_os dyld"
12646   version_type=darwin
12647   need_lib_prefix=no
12648   need_version=no
12649   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12650   soname_spec='${libname}${release}${major}$shared_ext'
12651   shlibpath_overrides_runpath=yes
12652   shlibpath_var=DYLD_LIBRARY_PATH
12653   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12654
12655   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12656   ;;
12657
12658 dgux*)
12659   version_type=linux
12660   need_lib_prefix=no
12661   need_version=no
12662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12663   soname_spec='${libname}${release}${shared_ext}$major'
12664   shlibpath_var=LD_LIBRARY_PATH
12665   ;;
12666
12667 freebsd1*)
12668   dynamic_linker=no
12669   ;;
12670
12671 freebsd* | dragonfly*)
12672   # DragonFly does not have aout.  When/if they implement a new
12673   # versioning mechanism, adjust this.
12674   if test -x /usr/bin/objformat; then
12675     objformat=`/usr/bin/objformat`
12676   else
12677     case $host_os in
12678     freebsd[123]*) objformat=aout ;;
12679     *) objformat=elf ;;
12680     esac
12681   fi
12682   version_type=freebsd-$objformat
12683   case $version_type in
12684     freebsd-elf*)
12685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12686       need_version=no
12687       need_lib_prefix=no
12688       ;;
12689     freebsd-*)
12690       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12691       need_version=yes
12692       ;;
12693   esac
12694   shlibpath_var=LD_LIBRARY_PATH
12695   case $host_os in
12696   freebsd2*)
12697     shlibpath_overrides_runpath=yes
12698     ;;
12699   freebsd3.[01]* | freebsdelf3.[01]*)
12700     shlibpath_overrides_runpath=yes
12701     hardcode_into_libs=yes
12702     ;;
12703   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12704   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12705     shlibpath_overrides_runpath=no
12706     hardcode_into_libs=yes
12707     ;;
12708   *) # from 4.6 on, and DragonFly
12709     shlibpath_overrides_runpath=yes
12710     hardcode_into_libs=yes
12711     ;;
12712   esac
12713   ;;
12714
12715 gnu*)
12716   version_type=linux
12717   need_lib_prefix=no
12718   need_version=no
12719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12720   soname_spec='${libname}${release}${shared_ext}$major'
12721   shlibpath_var=LD_LIBRARY_PATH
12722   hardcode_into_libs=yes
12723   ;;
12724
12725 hpux9* | hpux10* | hpux11*)
12726   # Give a soname corresponding to the major version so that dld.sl refuses to
12727   # link against other versions.
12728   version_type=sunos
12729   need_lib_prefix=no
12730   need_version=no
12731   case $host_cpu in
12732   ia64*)
12733     shrext_cmds='.so'
12734     hardcode_into_libs=yes
12735     dynamic_linker="$host_os dld.so"
12736     shlibpath_var=LD_LIBRARY_PATH
12737     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739     soname_spec='${libname}${release}${shared_ext}$major'
12740     if test "X$HPUX_IA64_MODE" = X32; then
12741       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12742     else
12743       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12744     fi
12745     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12746     ;;
12747   hppa*64*)
12748     shrext_cmds='.sl'
12749     hardcode_into_libs=yes
12750     dynamic_linker="$host_os dld.sl"
12751     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12752     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754     soname_spec='${libname}${release}${shared_ext}$major'
12755     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12756     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12757     ;;
12758   *)
12759     shrext_cmds='.sl'
12760     dynamic_linker="$host_os dld.sl"
12761     shlibpath_var=SHLIB_PATH
12762     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764     soname_spec='${libname}${release}${shared_ext}$major'
12765     ;;
12766   esac
12767   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12768   postinstall_cmds='chmod 555 $lib'
12769   ;;
12770
12771 interix[3-9]*)
12772   version_type=linux
12773   need_lib_prefix=no
12774   need_version=no
12775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12776   soname_spec='${libname}${release}${shared_ext}$major'
12777   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12778   shlibpath_var=LD_LIBRARY_PATH
12779   shlibpath_overrides_runpath=no
12780   hardcode_into_libs=yes
12781   ;;
12782
12783 irix5* | irix6* | nonstopux*)
12784   case $host_os in
12785     nonstopux*) version_type=nonstopux ;;
12786     *)
12787         if test "$lt_cv_prog_gnu_ld" = yes; then
12788                 version_type=linux
12789         else
12790                 version_type=irix
12791         fi ;;
12792   esac
12793   need_lib_prefix=no
12794   need_version=no
12795   soname_spec='${libname}${release}${shared_ext}$major'
12796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12797   case $host_os in
12798   irix5* | nonstopux*)
12799     libsuff= shlibsuff=
12800     ;;
12801   *)
12802     case $LD in # libtool.m4 will add one of these switches to LD
12803     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12804       libsuff= shlibsuff= libmagic=32-bit;;
12805     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12806       libsuff=32 shlibsuff=N32 libmagic=N32;;
12807     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12808       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12809     *) libsuff= shlibsuff= libmagic=never-match;;
12810     esac
12811     ;;
12812   esac
12813   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12814   shlibpath_overrides_runpath=no
12815   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12816   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12817   hardcode_into_libs=yes
12818   ;;
12819
12820 # No shared lib support for Linux oldld, aout, or coff.
12821 linux*oldld* | linux*aout* | linux*coff*)
12822   dynamic_linker=no
12823   ;;
12824
12825 # This must be Linux ELF.
12826 linux* | k*bsd*-gnu)
12827   version_type=linux
12828   need_lib_prefix=no
12829   need_version=no
12830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831   soname_spec='${libname}${release}${shared_ext}$major'
12832   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12833   shlibpath_var=LD_LIBRARY_PATH
12834   shlibpath_overrides_runpath=no
12835   # Some binutils ld are patched to set DT_RUNPATH
12836   save_LDFLAGS=$LDFLAGS
12837   save_libdir=$libdir
12838   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12839        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12840   cat >conftest.$ac_ext <<_ACEOF
12841       program main
12842
12843       end
12844 _ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847   (eval $ac_link) 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } &&
12854          { ac_try='test -z "$ac_fc_werror_flag"
12855                          || test ! -s conftest.err'
12856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857   (eval $ac_try) 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; } &&
12861          { ac_try='test -s conftest$ac_exeext'
12862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863   (eval $ac_try) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; }; then
12867   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12868   shlibpath_overrides_runpath=yes
12869 fi
12870
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 fi
12876 rm -f conftest.err conftest.$ac_objext \
12877       conftest$ac_exeext conftest.$ac_ext
12878   LDFLAGS=$save_LDFLAGS
12879   libdir=$save_libdir
12880
12881   # This implies no fast_install, which is unacceptable.
12882   # Some rework will be needed to allow for fast_install
12883   # before this can be enabled.
12884   hardcode_into_libs=yes
12885
12886   # Append ld.so.conf contents to the search path
12887   if test -f /etc/ld.so.conf; then
12888     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12889     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12890   fi
12891
12892   # We used to test for /lib/ld.so.1 and disable shared libraries on
12893   # powerpc, because MkLinux only supported shared libraries with the
12894   # GNU dynamic linker.  Since this was broken with cross compilers,
12895   # most powerpc-linux boxes support dynamic linking these days and
12896   # people can always --disable-shared, the test was removed, and we
12897   # assume the GNU/Linux dynamic linker is in use.
12898   dynamic_linker='GNU/Linux ld.so'
12899   ;;
12900
12901 netbsd*)
12902   version_type=sunos
12903   need_lib_prefix=no
12904   need_version=no
12905   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12907     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12908     dynamic_linker='NetBSD (a.out) ld.so'
12909   else
12910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12911     soname_spec='${libname}${release}${shared_ext}$major'
12912     dynamic_linker='NetBSD ld.elf_so'
12913   fi
12914   shlibpath_var=LD_LIBRARY_PATH
12915   shlibpath_overrides_runpath=yes
12916   hardcode_into_libs=yes
12917   ;;
12918
12919 newsos6)
12920   version_type=linux
12921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922   shlibpath_var=LD_LIBRARY_PATH
12923   shlibpath_overrides_runpath=yes
12924   ;;
12925
12926 *nto* | *qnx*)
12927   version_type=qnx
12928   need_lib_prefix=no
12929   need_version=no
12930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931   soname_spec='${libname}${release}${shared_ext}$major'
12932   shlibpath_var=LD_LIBRARY_PATH
12933   shlibpath_overrides_runpath=no
12934   hardcode_into_libs=yes
12935   dynamic_linker='ldqnx.so'
12936   ;;
12937
12938 openbsd*)
12939   version_type=sunos
12940   sys_lib_dlsearch_path_spec="/usr/lib"
12941   need_lib_prefix=no
12942   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12943   case $host_os in
12944     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12945     *)                          need_version=no  ;;
12946   esac
12947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12948   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12949   shlibpath_var=LD_LIBRARY_PATH
12950   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12951     case $host_os in
12952       openbsd2.[89] | openbsd2.[89].*)
12953         shlibpath_overrides_runpath=no
12954         ;;
12955       *)
12956         shlibpath_overrides_runpath=yes
12957         ;;
12958       esac
12959   else
12960     shlibpath_overrides_runpath=yes
12961   fi
12962   ;;
12963
12964 os2*)
12965   libname_spec='$name'
12966   shrext_cmds=".dll"
12967   need_lib_prefix=no
12968   library_names_spec='$libname${shared_ext} $libname.a'
12969   dynamic_linker='OS/2 ld.exe'
12970   shlibpath_var=LIBPATH
12971   ;;
12972
12973 osf3* | osf4* | osf5*)
12974   version_type=osf
12975   need_lib_prefix=no
12976   need_version=no
12977   soname_spec='${libname}${release}${shared_ext}$major'
12978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979   shlibpath_var=LD_LIBRARY_PATH
12980   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12981   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12982   ;;
12983
12984 rdos*)
12985   dynamic_linker=no
12986   ;;
12987
12988 solaris*)
12989   version_type=linux
12990   need_lib_prefix=no
12991   need_version=no
12992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12993   soname_spec='${libname}${release}${shared_ext}$major'
12994   shlibpath_var=LD_LIBRARY_PATH
12995   shlibpath_overrides_runpath=yes
12996   hardcode_into_libs=yes
12997   # ldd complains unless libraries are executable
12998   postinstall_cmds='chmod +x $lib'
12999   ;;
13000
13001 sunos4*)
13002   version_type=sunos
13003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13004   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13005   shlibpath_var=LD_LIBRARY_PATH
13006   shlibpath_overrides_runpath=yes
13007   if test "$with_gnu_ld" = yes; then
13008     need_lib_prefix=no
13009   fi
13010   need_version=yes
13011   ;;
13012
13013 sysv4 | sysv4.3*)
13014   version_type=linux
13015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13016   soname_spec='${libname}${release}${shared_ext}$major'
13017   shlibpath_var=LD_LIBRARY_PATH
13018   case $host_vendor in
13019     sni)
13020       shlibpath_overrides_runpath=no
13021       need_lib_prefix=no
13022       runpath_var=LD_RUN_PATH
13023       ;;
13024     siemens)
13025       need_lib_prefix=no
13026       ;;
13027     motorola)
13028       need_lib_prefix=no
13029       need_version=no
13030       shlibpath_overrides_runpath=no
13031       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13032       ;;
13033   esac
13034   ;;
13035
13036 sysv4*MP*)
13037   if test -d /usr/nec ;then
13038     version_type=linux
13039     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13040     soname_spec='$libname${shared_ext}.$major'
13041     shlibpath_var=LD_LIBRARY_PATH
13042   fi
13043   ;;
13044
13045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13046   version_type=freebsd-elf
13047   need_lib_prefix=no
13048   need_version=no
13049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13050   soname_spec='${libname}${release}${shared_ext}$major'
13051   shlibpath_var=LD_LIBRARY_PATH
13052   shlibpath_overrides_runpath=yes
13053   hardcode_into_libs=yes
13054   if test "$with_gnu_ld" = yes; then
13055     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13056   else
13057     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13058     case $host_os in
13059       sco3.2v5*)
13060         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13061         ;;
13062     esac
13063   fi
13064   sys_lib_dlsearch_path_spec='/usr/lib'
13065   ;;
13066
13067 tpf*)
13068   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13069   version_type=linux
13070   need_lib_prefix=no
13071   need_version=no
13072   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073   shlibpath_var=LD_LIBRARY_PATH
13074   shlibpath_overrides_runpath=no
13075   hardcode_into_libs=yes
13076   ;;
13077
13078 uts4*)
13079   version_type=linux
13080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081   soname_spec='${libname}${release}${shared_ext}$major'
13082   shlibpath_var=LD_LIBRARY_PATH
13083   ;;
13084
13085 *)
13086   dynamic_linker=no
13087   ;;
13088 esac
13089 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13090 echo "${ECHO_T}$dynamic_linker" >&6
13091 test "$dynamic_linker" = no && can_build_shared=no
13092
13093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13094 if test "$GCC" = yes; then
13095   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13096 fi
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13134 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13135 hardcode_action_FC=
13136 if test -n "$hardcode_libdir_flag_spec_FC" ||
13137    test -n "$runpath_var_FC" ||
13138    test "X$hardcode_automatic_FC" = "Xyes" ; then
13139
13140   # We can hardcode non-existent directories.
13141   if test "$hardcode_direct_FC" != no &&
13142      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13143      # have to relink, otherwise we might link with an installed library
13144      # when we should be linking with a yet-to-be-installed one
13145      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13146      test "$hardcode_minus_L_FC" != no; then
13147     # Linking always hardcodes the temporary library directory.
13148     hardcode_action_FC=relink
13149   else
13150     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13151     hardcode_action_FC=immediate
13152   fi
13153 else
13154   # We cannot hardcode anything, or else we can only hardcode existing
13155   # directories.
13156   hardcode_action_FC=unsupported
13157 fi
13158 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13159 echo "${ECHO_T}$hardcode_action_FC" >&6
13160
13161 if test "$hardcode_action_FC" = relink ||
13162    test "$inherit_rpath_FC" = yes; then
13163   # Fast installation is not supported
13164   enable_fast_install=no
13165 elif test "$shlibpath_overrides_runpath" = yes ||
13166      test "$enable_shared" = no; then
13167   # Fast installation is not necessary
13168   enable_fast_install=needless
13169 fi
13170
13171
13172
13173
13174
13175
13176
13177   fi # test -n "$compiler"
13178
13179   CC="$lt_save_CC"
13180 fi # test "$_lt_disable_FC" != yes
13181
13182 ac_ext=c
13183 ac_cpp='$CPP $CPPFLAGS'
13184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13187
13188
13189 FCFLAGS="$FCFLAGS -Wall"
13190
13191 # For libtool versioning info, format is CURRENT:REVISION:AGE
13192 libtool_VERSION=1:0:0
13193
13194
13195 # Check header files.
13196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13198 if test "${ac_cv_header_stdc+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201   cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h.  */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h.  */
13207 #include <stdlib.h>
13208 #include <stdarg.h>
13209 #include <string.h>
13210 #include <float.h>
13211
13212 int
13213 main ()
13214 {
13215
13216   ;
13217   return 0;
13218 }
13219 _ACEOF
13220 rm -f conftest.$ac_objext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222   (eval $ac_compile) 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -z "$ac_c_werror_flag"
13230                          || test ! -s conftest.err'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; } &&
13236          { ac_try='test -s conftest.$ac_objext'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   ac_cv_header_stdc=yes
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 ac_cv_header_stdc=no
13248 fi
13249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13250
13251 if test $ac_cv_header_stdc = yes; then
13252   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13253   cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259 #include <string.h>
13260
13261 _ACEOF
13262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263   $EGREP "memchr" >/dev/null 2>&1; then
13264   :
13265 else
13266   ac_cv_header_stdc=no
13267 fi
13268 rm -f conftest*
13269
13270 fi
13271
13272 if test $ac_cv_header_stdc = yes; then
13273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13274   cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280 #include <stdlib.h>
13281
13282 _ACEOF
13283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13284   $EGREP "free" >/dev/null 2>&1; then
13285   :
13286 else
13287   ac_cv_header_stdc=no
13288 fi
13289 rm -f conftest*
13290
13291 fi
13292
13293 if test $ac_cv_header_stdc = yes; then
13294   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13295   if test "$cross_compiling" = yes; then
13296   :
13297 else
13298   cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h.  */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h.  */
13304 #include <ctype.h>
13305 #if ((' ' & 0x0FF) == 0x020)
13306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13308 #else
13309 # define ISLOWER(c) \
13310                    (('a' <= (c) && (c) <= 'i') \
13311                      || ('j' <= (c) && (c) <= 'r') \
13312                      || ('s' <= (c) && (c) <= 'z'))
13313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13314 #endif
13315
13316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13317 int
13318 main ()
13319 {
13320   int i;
13321   for (i = 0; i < 256; i++)
13322     if (XOR (islower (i), ISLOWER (i))
13323         || toupper (i) != TOUPPER (i))
13324       exit(2);
13325   exit (0);
13326 }
13327 _ACEOF
13328 rm -f conftest$ac_exeext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330   (eval $ac_link) 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335   (eval $ac_try) 2>&5
13336   ac_status=$?
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); }; }; then
13339   :
13340 else
13341   echo "$as_me: program exited with status $ac_status" >&5
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 ( exit $ac_status )
13346 ac_cv_header_stdc=no
13347 fi
13348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13349 fi
13350 fi
13351 fi
13352 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13354 if test $ac_cv_header_stdc = yes; then
13355
13356 cat >>confdefs.h <<\_ACEOF
13357 #define STDC_HEADERS 1
13358 _ACEOF
13359
13360 fi
13361
13362 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13363 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13364 if test "${ac_cv_header_time+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h.  */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h.  */
13373 #include <sys/types.h>
13374 #include <sys/time.h>
13375 #include <time.h>
13376
13377 int
13378 main ()
13379 {
13380 if ((struct tm *) 0)
13381 return 0;
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388   (eval $ac_compile) 2>conftest.er1
13389   ac_status=$?
13390   grep -v '^ *+' conftest.er1 >conftest.err
13391   rm -f conftest.er1
13392   cat conftest.err >&5
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } &&
13395          { ac_try='test -z "$ac_c_werror_flag"
13396                          || test ! -s conftest.err'
13397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398   (eval $ac_try) 2>&5
13399   ac_status=$?
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); }; } &&
13402          { ac_try='test -s conftest.$ac_objext'
13403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404   (eval $ac_try) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }; then
13408   ac_cv_header_time=yes
13409 else
13410   echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413 ac_cv_header_time=no
13414 fi
13415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13416 fi
13417 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13418 echo "${ECHO_T}$ac_cv_header_time" >&6
13419 if test $ac_cv_header_time = yes; then
13420
13421 cat >>confdefs.h <<\_ACEOF
13422 #define TIME_WITH_SYS_TIME 1
13423 _ACEOF
13424
13425 fi
13426
13427
13428
13429
13430
13431 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
13432 do
13433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13435   echo "$as_me:$LINENO: checking for $ac_header" >&5
13436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13438   echo $ECHO_N "(cached) $ECHO_C" >&6
13439 fi
13440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13442 else
13443   # Is the header compilable?
13444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13446 cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h.  */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h.  */
13452 $ac_includes_default
13453 #include <$ac_header>
13454 _ACEOF
13455 rm -f conftest.$ac_objext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13457   (eval $ac_compile) 2>conftest.er1
13458   ac_status=$?
13459   grep -v '^ *+' conftest.er1 >conftest.err
13460   rm -f conftest.er1
13461   cat conftest.err >&5
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); } &&
13464          { ac_try='test -z "$ac_c_werror_flag"
13465                          || test ! -s conftest.err'
13466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467   (eval $ac_try) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; } &&
13471          { ac_try='test -s conftest.$ac_objext'
13472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473   (eval $ac_try) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; }; then
13477   ac_header_compiler=yes
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 ac_header_compiler=no
13483 fi
13484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 echo "${ECHO_T}$ac_header_compiler" >&6
13487
13488 # Is the header present?
13489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 #include <$ac_header>
13498 _ACEOF
13499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13501   ac_status=$?
13502   grep -v '^ *+' conftest.er1 >conftest.err
13503   rm -f conftest.er1
13504   cat conftest.err >&5
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } >/dev/null; then
13507   if test -s conftest.err; then
13508     ac_cpp_err=$ac_c_preproc_warn_flag
13509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13510   else
13511     ac_cpp_err=
13512   fi
13513 else
13514   ac_cpp_err=yes
13515 fi
13516 if test -z "$ac_cpp_err"; then
13517   ac_header_preproc=yes
13518 else
13519   echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522   ac_header_preproc=no
13523 fi
13524 rm -f conftest.err conftest.$ac_ext
13525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6
13527
13528 # So?  What about this header?
13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530   yes:no: )
13531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13535     ac_header_preproc=yes
13536     ;;
13537   no:yes:* )
13538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13540     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13541 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13542     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13544     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13545 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13548     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13550     (
13551       cat <<\_ASBOX
13552 ## ----------------------------------------------------- ##
13553 ## Report this to the GNU OpenMP Runtime Library lists.  ##
13554 ## ----------------------------------------------------- ##
13555 _ASBOX
13556     ) |
13557       sed "s/^/$as_me: WARNING:     /" >&2
13558     ;;
13559 esac
13560 echo "$as_me:$LINENO: checking for $ac_header" >&5
13561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13563   echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565   eval "$as_ac_Header=\$ac_header_preproc"
13566 fi
13567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13569
13570 fi
13571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13572   cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13574 _ACEOF
13575
13576 fi
13577
13578 done
13579
13580
13581
13582
13583 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
13584
13585 acx_cv_header_stdint=stddef.h
13586 acx_cv_header_stdint_kind="(already complete)"
13587 for i in stdint.h $inttype_headers; do
13588   unset ac_cv_type_uintptr_t
13589   unset ac_cv_type_uintmax_t
13590   unset ac_cv_type_int_least32_t
13591   unset ac_cv_type_int_fast32_t
13592   unset ac_cv_type_uint64_t
13593   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13594   echo "$as_me:$LINENO: checking for uintmax_t" >&5
13595 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13596 if test "${ac_cv_type_uintmax_t+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h.  */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h.  */
13605 #include <sys/types.h>
13606 #include <$i>
13607
13608 int
13609 main ()
13610 {
13611 if ((uintmax_t *) 0)
13612   return 0;
13613 if (sizeof (uintmax_t))
13614   return 0;
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 rm -f conftest.$ac_objext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13621   (eval $ac_compile) 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -z "$ac_c_werror_flag"
13629                          || test ! -s conftest.err'
13630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631   (eval $ac_try) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }; } &&
13635          { ac_try='test -s conftest.$ac_objext'
13636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637   (eval $ac_try) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; }; then
13641   ac_cv_type_uintmax_t=yes
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 ac_cv_type_uintmax_t=no
13647 fi
13648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13649 fi
13650 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13651 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13652 if test $ac_cv_type_uintmax_t = yes; then
13653   acx_cv_header_stdint=$i
13654 else
13655   continue
13656 fi
13657
13658   echo "$as_me:$LINENO: checking for uintptr_t" >&5
13659 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13660 if test "${ac_cv_type_uintptr_t+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669 #include <sys/types.h>
13670 #include <$i>
13671
13672 int
13673 main ()
13674 {
13675 if ((uintptr_t *) 0)
13676   return 0;
13677 if (sizeof (uintptr_t))
13678   return 0;
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 rm -f conftest.$ac_objext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685   (eval $ac_compile) 2>conftest.er1
13686   ac_status=$?
13687   grep -v '^ *+' conftest.er1 >conftest.err
13688   rm -f conftest.er1
13689   cat conftest.err >&5
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); } &&
13692          { ac_try='test -z "$ac_c_werror_flag"
13693                          || test ! -s conftest.err'
13694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695   (eval $ac_try) 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); }; } &&
13699          { ac_try='test -s conftest.$ac_objext'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; }; then
13705   ac_cv_type_uintptr_t=yes
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13709
13710 ac_cv_type_uintptr_t=no
13711 fi
13712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13715 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13716 if test $ac_cv_type_uintptr_t = yes; then
13717   :
13718 else
13719   acx_cv_header_stdint_kind="(mostly complete)"
13720 fi
13721
13722   echo "$as_me:$LINENO: checking for int_least32_t" >&5
13723 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13724 if test "${ac_cv_type_int_least32_t+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 #include <sys/types.h>
13734 #include <$i>
13735
13736 int
13737 main ()
13738 {
13739 if ((int_least32_t *) 0)
13740   return 0;
13741 if (sizeof (int_least32_t))
13742   return 0;
13743   ;
13744   return 0;
13745 }
13746 _ACEOF
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749   (eval $ac_compile) 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } &&
13756          { ac_try='test -z "$ac_c_werror_flag"
13757                          || test ! -s conftest.err'
13758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759   (eval $ac_try) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; } &&
13763          { ac_try='test -s conftest.$ac_objext'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   ac_cv_type_int_least32_t=yes
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 ac_cv_type_int_least32_t=no
13775 fi
13776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13777 fi
13778 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13779 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13780 if test $ac_cv_type_int_least32_t = yes; then
13781   :
13782 else
13783   acx_cv_header_stdint_kind="(mostly complete)"
13784 fi
13785
13786   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13787 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13788 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13789   echo $ECHO_N "(cached) $ECHO_C" >&6
13790 else
13791   cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h.  */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h.  */
13797 #include <sys/types.h>
13798 #include <$i>
13799
13800 int
13801 main ()
13802 {
13803 if ((int_fast32_t *) 0)
13804   return 0;
13805 if (sizeof (int_fast32_t))
13806   return 0;
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 rm -f conftest.$ac_objext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813   (eval $ac_compile) 2>conftest.er1
13814   ac_status=$?
13815   grep -v '^ *+' conftest.er1 >conftest.err
13816   rm -f conftest.er1
13817   cat conftest.err >&5
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); } &&
13820          { ac_try='test -z "$ac_c_werror_flag"
13821                          || test ! -s conftest.err'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; } &&
13827          { ac_try='test -s conftest.$ac_objext'
13828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829   (eval $ac_try) 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; }; then
13833   ac_cv_type_int_fast32_t=yes
13834 else
13835   echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838 ac_cv_type_int_fast32_t=no
13839 fi
13840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13841 fi
13842 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13843 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13844 if test $ac_cv_type_int_fast32_t = yes; then
13845   :
13846 else
13847   acx_cv_header_stdint_kind="(mostly complete)"
13848 fi
13849
13850   echo "$as_me:$LINENO: checking for uint64_t" >&5
13851 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13852 if test "${ac_cv_type_uint64_t+set}" = set; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855   cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861 #include <sys/types.h>
13862 #include <$i>
13863
13864 int
13865 main ()
13866 {
13867 if ((uint64_t *) 0)
13868   return 0;
13869 if (sizeof (uint64_t))
13870   return 0;
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 rm -f conftest.$ac_objext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877   (eval $ac_compile) 2>conftest.er1
13878   ac_status=$?
13879   grep -v '^ *+' conftest.er1 >conftest.err
13880   rm -f conftest.er1
13881   cat conftest.err >&5
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } &&
13884          { ac_try='test -z "$ac_c_werror_flag"
13885                          || test ! -s conftest.err'
13886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887   (eval $ac_try) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; } &&
13891          { ac_try='test -s conftest.$ac_objext'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }; then
13897   ac_cv_type_uint64_t=yes
13898 else
13899   echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902 ac_cv_type_uint64_t=no
13903 fi
13904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13905 fi
13906 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13907 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13908 if test $ac_cv_type_uint64_t = yes; then
13909   :
13910 else
13911   acx_cv_header_stdint_kind="(lacks uint64_t)"
13912 fi
13913
13914   break
13915 done
13916 if test "$acx_cv_header_stdint" = stddef.h; then
13917   acx_cv_header_stdint_kind="(lacks uintmax_t)"
13918   for i in stdint.h $inttype_headers; do
13919     unset ac_cv_type_uintptr_t
13920     unset ac_cv_type_uint32_t
13921     unset ac_cv_type_uint64_t
13922     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13923     echo "$as_me:$LINENO: checking for uint32_t" >&5
13924 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13925 if test "${ac_cv_type_uint32_t+set}" = set; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 #include <sys/types.h>
13935 #include <$i>
13936
13937 int
13938 main ()
13939 {
13940 if ((uint32_t *) 0)
13941   return 0;
13942 if (sizeof (uint32_t))
13943   return 0;
13944   ;
13945   return 0;
13946 }
13947 _ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950   (eval $ac_compile) 2>conftest.er1
13951   ac_status=$?
13952   grep -v '^ *+' conftest.er1 >conftest.err
13953   rm -f conftest.er1
13954   cat conftest.err >&5
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); } &&
13957          { ac_try='test -z "$ac_c_werror_flag"
13958                          || test ! -s conftest.err'
13959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960   (eval $ac_try) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; } &&
13964          { ac_try='test -s conftest.$ac_objext'
13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966   (eval $ac_try) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; }; then
13970   ac_cv_type_uint32_t=yes
13971 else
13972   echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13974
13975 ac_cv_type_uint32_t=no
13976 fi
13977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13978 fi
13979 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13980 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13981 if test $ac_cv_type_uint32_t = yes; then
13982   acx_cv_header_stdint=$i
13983 else
13984   continue
13985 fi
13986
13987     echo "$as_me:$LINENO: checking for uint64_t" >&5
13988 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13989 if test "${ac_cv_type_uint64_t+set}" = set; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h.  */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h.  */
13998 #include <sys/types.h>
13999 #include <$i>
14000
14001 int
14002 main ()
14003 {
14004 if ((uint64_t *) 0)
14005   return 0;
14006 if (sizeof (uint64_t))
14007   return 0;
14008   ;
14009   return 0;
14010 }
14011 _ACEOF
14012 rm -f conftest.$ac_objext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14014   (eval $ac_compile) 2>conftest.er1
14015   ac_status=$?
14016   grep -v '^ *+' conftest.er1 >conftest.err
14017   rm -f conftest.er1
14018   cat conftest.err >&5
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); } &&
14021          { ac_try='test -z "$ac_c_werror_flag"
14022                          || test ! -s conftest.err'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; } &&
14028          { ac_try='test -s conftest.$ac_objext'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; }; then
14034   ac_cv_type_uint64_t=yes
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039 ac_cv_type_uint64_t=no
14040 fi
14041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14042 fi
14043 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14044 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14045
14046     echo "$as_me:$LINENO: checking for uintptr_t" >&5
14047 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14048 if test "${ac_cv_type_uintptr_t+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h.  */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h.  */
14057 #include <sys/types.h>
14058 #include <$i>
14059
14060 int
14061 main ()
14062 {
14063 if ((uintptr_t *) 0)
14064   return 0;
14065 if (sizeof (uintptr_t))
14066   return 0;
14067   ;
14068   return 0;
14069 }
14070 _ACEOF
14071 rm -f conftest.$ac_objext
14072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073   (eval $ac_compile) 2>conftest.er1
14074   ac_status=$?
14075   grep -v '^ *+' conftest.er1 >conftest.err
14076   rm -f conftest.er1
14077   cat conftest.err >&5
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } &&
14080          { ac_try='test -z "$ac_c_werror_flag"
14081                          || test ! -s conftest.err'
14082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083   (eval $ac_try) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; } &&
14087          { ac_try='test -s conftest.$ac_objext'
14088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089   (eval $ac_try) 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; }; then
14093   ac_cv_type_uintptr_t=yes
14094 else
14095   echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14097
14098 ac_cv_type_uintptr_t=no
14099 fi
14100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14101 fi
14102 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14103 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14104
14105     break
14106   done
14107 fi
14108 if test "$acx_cv_header_stdint" = stddef.h; then
14109   acx_cv_header_stdint_kind="(u_intXX_t style)"
14110   for i in sys/types.h $inttype_headers; do
14111     unset ac_cv_type_u_int32_t
14112     unset ac_cv_type_u_int64_t
14113     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14114     echo "$as_me:$LINENO: checking for u_int32_t" >&5
14115 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14116 if test "${ac_cv_type_u_int32_t+set}" = set; then
14117   echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119   cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 #include <sys/types.h>
14126 #include <$i>
14127
14128 int
14129 main ()
14130 {
14131 if ((u_int32_t *) 0)
14132   return 0;
14133 if (sizeof (u_int32_t))
14134   return 0;
14135   ;
14136   return 0;
14137 }
14138 _ACEOF
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141   (eval $ac_compile) 2>conftest.er1
14142   ac_status=$?
14143   grep -v '^ *+' conftest.er1 >conftest.err
14144   rm -f conftest.er1
14145   cat conftest.err >&5
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } &&
14148          { ac_try='test -z "$ac_c_werror_flag"
14149                          || test ! -s conftest.err'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; } &&
14155          { ac_try='test -s conftest.$ac_objext'
14156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157   (eval $ac_try) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; }; then
14161   ac_cv_type_u_int32_t=yes
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_cv_type_u_int32_t=no
14167 fi
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14169 fi
14170 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14171 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14172 if test $ac_cv_type_u_int32_t = yes; then
14173   acx_cv_header_stdint=$i
14174 else
14175   continue
14176 fi
14177
14178     echo "$as_me:$LINENO: checking for u_int64_t" >&5
14179 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14180 if test "${ac_cv_type_u_int64_t+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h.  */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h.  */
14189 #include <sys/types.h>
14190 #include <$i>
14191
14192 int
14193 main ()
14194 {
14195 if ((u_int64_t *) 0)
14196   return 0;
14197 if (sizeof (u_int64_t))
14198   return 0;
14199   ;
14200   return 0;
14201 }
14202 _ACEOF
14203 rm -f conftest.$ac_objext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205   (eval $ac_compile) 2>conftest.er1
14206   ac_status=$?
14207   grep -v '^ *+' conftest.er1 >conftest.err
14208   rm -f conftest.er1
14209   cat conftest.err >&5
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } &&
14212          { ac_try='test -z "$ac_c_werror_flag"
14213                          || test ! -s conftest.err'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; } &&
14219          { ac_try='test -s conftest.$ac_objext'
14220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221   (eval $ac_try) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; }; then
14225   ac_cv_type_u_int64_t=yes
14226 else
14227   echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230 ac_cv_type_u_int64_t=no
14231 fi
14232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14233 fi
14234 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14235 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14236
14237     break
14238   done
14239 fi
14240 if test "$acx_cv_header_stdint" = stddef.h; then
14241   acx_cv_header_stdint_kind="(using manual detection)"
14242 fi
14243
14244 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14245 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14246 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14247 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14248 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14249
14250 # ----------------- Summarize what we found so far
14251
14252 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14253 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14254
14255 case `$as_basename gstdint.h ||
14256 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14257          Xgstdint.h : 'X\(//\)$' \| \
14258          Xgstdint.h : 'X\(/\)$' \| \
14259          .     : '\(.\)' 2>/dev/null ||
14260 echo X/gstdint.h |
14261     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14262           /^X\/\(\/\/\)$/{ s//\1/; q; }
14263           /^X\/\(\/\).*/{ s//\1/; q; }
14264           s/.*/./; q'` in
14265   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14266 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14267   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14268 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14269   *) ;;
14270 esac
14271
14272 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14273 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14274
14275 # ----------------- done included file, check C basic types --------
14276
14277 # Lacking an uintptr_t?  Test size of void *
14278 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14279   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14280 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14281 if test "${ac_cv_type_void_p+set}" = set; then
14282   echo $ECHO_N "(cached) $ECHO_C" >&6
14283 else
14284   cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h.  */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h.  */
14290 $ac_includes_default
14291 int
14292 main ()
14293 {
14294 if ((void * *) 0)
14295   return 0;
14296 if (sizeof (void *))
14297   return 0;
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14304   (eval $ac_compile) 2>conftest.er1
14305   ac_status=$?
14306   grep -v '^ *+' conftest.er1 >conftest.err
14307   rm -f conftest.er1
14308   cat conftest.err >&5
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); } &&
14311          { ac_try='test -z "$ac_c_werror_flag"
14312                          || test ! -s conftest.err'
14313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314   (eval $ac_try) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); }; } &&
14318          { ac_try='test -s conftest.$ac_objext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_cv_type_void_p=yes
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 ac_cv_type_void_p=no
14330 fi
14331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14332 fi
14333 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14334 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14335
14336 echo "$as_me:$LINENO: checking size of void *" >&5
14337 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14338 if test "${ac_cv_sizeof_void_p+set}" = set; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341   if test "$ac_cv_type_void_p" = yes; then
14342   # The cast to unsigned long works around a bug in the HP C Compiler
14343   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14344   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14345   # This bug is HP SR number 8606223364.
14346   if test "$cross_compiling" = yes; then
14347   # Depending upon the size, compute the lo and hi bounds.
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h.  */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h.  */
14354 $ac_includes_default
14355 int
14356 main ()
14357 {
14358 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14359 test_array [0] = 0
14360
14361   ;
14362   return 0;
14363 }
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367   (eval $ac_compile) 2>conftest.er1
14368   ac_status=$?
14369   grep -v '^ *+' conftest.er1 >conftest.err
14370   rm -f conftest.er1
14371   cat conftest.err >&5
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } &&
14374          { ac_try='test -z "$ac_c_werror_flag"
14375                          || test ! -s conftest.err'
14376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377   (eval $ac_try) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; } &&
14381          { ac_try='test -s conftest.$ac_objext'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   ac_lo=0 ac_mid=0
14388   while :; do
14389     cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395 $ac_includes_default
14396 int
14397 main ()
14398 {
14399 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14400 test_array [0] = 0
14401
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408   (eval $ac_compile) 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -z "$ac_c_werror_flag"
14416                          || test ! -s conftest.err'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; } &&
14422          { ac_try='test -s conftest.$ac_objext'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428   ac_hi=$ac_mid; break
14429 else
14430   echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14432
14433 ac_lo=`expr $ac_mid + 1`
14434                     if test $ac_lo -le $ac_mid; then
14435                       ac_lo= ac_hi=
14436                       break
14437                     fi
14438                     ac_mid=`expr 2 '*' $ac_mid + 1`
14439 fi
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441   done
14442 else
14443   echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14445
14446 cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h.  */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h.  */
14452 $ac_includes_default
14453 int
14454 main ()
14455 {
14456 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14457 test_array [0] = 0
14458
14459   ;
14460   return 0;
14461 }
14462 _ACEOF
14463 rm -f conftest.$ac_objext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465   (eval $ac_compile) 2>conftest.er1
14466   ac_status=$?
14467   grep -v '^ *+' conftest.er1 >conftest.err
14468   rm -f conftest.er1
14469   cat conftest.err >&5
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); } &&
14472          { ac_try='test -z "$ac_c_werror_flag"
14473                          || test ! -s conftest.err'
14474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475   (eval $ac_try) 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; } &&
14479          { ac_try='test -s conftest.$ac_objext'
14480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481   (eval $ac_try) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); }; }; then
14485   ac_hi=-1 ac_mid=-1
14486   while :; do
14487     cat >conftest.$ac_ext <<_ACEOF
14488 /* confdefs.h.  */
14489 _ACEOF
14490 cat confdefs.h >>conftest.$ac_ext
14491 cat >>conftest.$ac_ext <<_ACEOF
14492 /* end confdefs.h.  */
14493 $ac_includes_default
14494 int
14495 main ()
14496 {
14497 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14498 test_array [0] = 0
14499
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 rm -f conftest.$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506   (eval $ac_compile) 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -z "$ac_c_werror_flag"
14514                          || test ! -s conftest.err'
14515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516   (eval $ac_try) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); }; } &&
14520          { ac_try='test -s conftest.$ac_objext'
14521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522   (eval $ac_try) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); }; }; then
14526   ac_lo=$ac_mid; break
14527 else
14528   echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14530
14531 ac_hi=`expr '(' $ac_mid ')' - 1`
14532                        if test $ac_mid -le $ac_hi; then
14533                          ac_lo= ac_hi=
14534                          break
14535                        fi
14536                        ac_mid=`expr 2 '*' $ac_mid`
14537 fi
14538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539   done
14540 else
14541   echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14543
14544 ac_lo= ac_hi=
14545 fi
14546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547 fi
14548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14549 # Binary search between lo and hi bounds.
14550 while test "x$ac_lo" != "x$ac_hi"; do
14551   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14552   cat >conftest.$ac_ext <<_ACEOF
14553 /* confdefs.h.  */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h.  */
14558 $ac_includes_default
14559 int
14560 main ()
14561 {
14562 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14563 test_array [0] = 0
14564
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571   (eval $ac_compile) 2>conftest.er1
14572   ac_status=$?
14573   grep -v '^ *+' conftest.er1 >conftest.err
14574   rm -f conftest.er1
14575   cat conftest.err >&5
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } &&
14578          { ac_try='test -z "$ac_c_werror_flag"
14579                          || test ! -s conftest.err'
14580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581   (eval $ac_try) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; } &&
14585          { ac_try='test -s conftest.$ac_objext'
14586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587   (eval $ac_try) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; }; then
14591   ac_hi=$ac_mid
14592 else
14593   echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596 ac_lo=`expr '(' $ac_mid ')' + 1`
14597 fi
14598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14599 done
14600 case $ac_lo in
14601 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14602 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14603 See \`config.log' for more details." >&5
14604 echo "$as_me: error: cannot compute sizeof (void *), 77
14605 See \`config.log' for more details." >&2;}
14606    { (exit 1); exit 1; }; } ;;
14607 esac
14608 else
14609   if test "$cross_compiling" = yes; then
14610   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14611 See \`config.log' for more details." >&5
14612 echo "$as_me: error: cannot run test program while cross compiling
14613 See \`config.log' for more details." >&2;}
14614    { (exit 1); exit 1; }; }
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 $ac_includes_default
14623 long longval () { return (long) (sizeof (void *)); }
14624 unsigned long ulongval () { return (long) (sizeof (void *)); }
14625 #include <stdio.h>
14626 #include <stdlib.h>
14627 int
14628 main ()
14629 {
14630
14631   FILE *f = fopen ("conftest.val", "w");
14632   if (! f)
14633     exit (1);
14634   if (((long) (sizeof (void *))) < 0)
14635     {
14636       long i = longval ();
14637       if (i != ((long) (sizeof (void *))))
14638         exit (1);
14639       fprintf (f, "%ld\n", i);
14640     }
14641   else
14642     {
14643       unsigned long i = ulongval ();
14644       if (i != ((long) (sizeof (void *))))
14645         exit (1);
14646       fprintf (f, "%lu\n", i);
14647     }
14648   exit (ferror (f) || fclose (f) != 0);
14649
14650   ;
14651   return 0;
14652 }
14653 _ACEOF
14654 rm -f conftest$ac_exeext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14656   (eval $ac_link) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; }; then
14665   ac_cv_sizeof_void_p=`cat conftest.val`
14666 else
14667   echo "$as_me: program exited with status $ac_status" >&5
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ( exit $ac_status )
14672 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14673 See \`config.log' for more details." >&5
14674 echo "$as_me: error: cannot compute sizeof (void *), 77
14675 See \`config.log' for more details." >&2;}
14676    { (exit 1); exit 1; }; }
14677 fi
14678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14679 fi
14680 fi
14681 rm -f conftest.val
14682 else
14683   ac_cv_sizeof_void_p=0
14684 fi
14685 fi
14686 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14687 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14688 cat >>confdefs.h <<_ACEOF
14689 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14690 _ACEOF
14691
14692  ;;
14693 esac
14694
14695 # Lacking an uint64_t?  Test size of long
14696 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14697   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14698 echo $ECHO_N "checking for long... $ECHO_C" >&6
14699 if test "${ac_cv_type_long+set}" = set; then
14700   echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702   cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708 $ac_includes_default
14709 int
14710 main ()
14711 {
14712 if ((long *) 0)
14713   return 0;
14714 if (sizeof (long))
14715   return 0;
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722   (eval $ac_compile) 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } &&
14729          { ac_try='test -z "$ac_c_werror_flag"
14730                          || test ! -s conftest.err'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; } &&
14736          { ac_try='test -s conftest.$ac_objext'
14737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738   (eval $ac_try) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; }; then
14742   ac_cv_type_long=yes
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ac_cv_type_long=no
14748 fi
14749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14750 fi
14751 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14752 echo "${ECHO_T}$ac_cv_type_long" >&6
14753
14754 echo "$as_me:$LINENO: checking size of long" >&5
14755 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14756 if test "${ac_cv_sizeof_long+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   if test "$ac_cv_type_long" = yes; then
14760   # The cast to unsigned long works around a bug in the HP C Compiler
14761   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14762   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14763   # This bug is HP SR number 8606223364.
14764   if test "$cross_compiling" = yes; then
14765   # Depending upon the size, compute the lo and hi bounds.
14766 cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772 $ac_includes_default
14773 int
14774 main ()
14775 {
14776 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14777 test_array [0] = 0
14778
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785   (eval $ac_compile) 2>conftest.er1
14786   ac_status=$?
14787   grep -v '^ *+' conftest.er1 >conftest.err
14788   rm -f conftest.er1
14789   cat conftest.err >&5
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); } &&
14792          { ac_try='test -z "$ac_c_werror_flag"
14793                          || test ! -s conftest.err'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; } &&
14799          { ac_try='test -s conftest.$ac_objext'
14800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801   (eval $ac_try) 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; }; then
14805   ac_lo=0 ac_mid=0
14806   while :; do
14807     cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h.  */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h.  */
14813 $ac_includes_default
14814 int
14815 main ()
14816 {
14817 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14818 test_array [0] = 0
14819
14820   ;
14821   return 0;
14822 }
14823 _ACEOF
14824 rm -f conftest.$ac_objext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826   (eval $ac_compile) 2>conftest.er1
14827   ac_status=$?
14828   grep -v '^ *+' conftest.er1 >conftest.err
14829   rm -f conftest.er1
14830   cat conftest.err >&5
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); } &&
14833          { ac_try='test -z "$ac_c_werror_flag"
14834                          || test ! -s conftest.err'
14835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836   (eval $ac_try) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); }; } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   ac_hi=$ac_mid; break
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_lo=`expr $ac_mid + 1`
14852                     if test $ac_lo -le $ac_mid; then
14853                       ac_lo= ac_hi=
14854                       break
14855                     fi
14856                     ac_mid=`expr 2 '*' $ac_mid + 1`
14857 fi
14858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14859   done
14860 else
14861   echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h.  */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h.  */
14870 $ac_includes_default
14871 int
14872 main ()
14873 {
14874 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14875 test_array [0] = 0
14876
14877   ;
14878   return 0;
14879 }
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883   (eval $ac_compile) 2>conftest.er1
14884   ac_status=$?
14885   grep -v '^ *+' conftest.er1 >conftest.err
14886   rm -f conftest.er1
14887   cat conftest.err >&5
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); } &&
14890          { ac_try='test -z "$ac_c_werror_flag"
14891                          || test ! -s conftest.err'
14892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893   (eval $ac_try) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; } &&
14897          { ac_try='test -s conftest.$ac_objext'
14898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899   (eval $ac_try) 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; }; then
14903   ac_hi=-1 ac_mid=-1
14904   while :; do
14905     cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h.  */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h.  */
14911 $ac_includes_default
14912 int
14913 main ()
14914 {
14915 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14916 test_array [0] = 0
14917
14918   ;
14919   return 0;
14920 }
14921 _ACEOF
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924   (eval $ac_compile) 2>conftest.er1
14925   ac_status=$?
14926   grep -v '^ *+' conftest.er1 >conftest.err
14927   rm -f conftest.er1
14928   cat conftest.err >&5
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } &&
14931          { ac_try='test -z "$ac_c_werror_flag"
14932                          || test ! -s conftest.err'
14933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934   (eval $ac_try) 2>&5
14935   ac_status=$?
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); }; } &&
14938          { ac_try='test -s conftest.$ac_objext'
14939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940   (eval $ac_try) 2>&5
14941   ac_status=$?
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); }; }; then
14944   ac_lo=$ac_mid; break
14945 else
14946   echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14948
14949 ac_hi=`expr '(' $ac_mid ')' - 1`
14950                        if test $ac_mid -le $ac_hi; then
14951                          ac_lo= ac_hi=
14952                          break
14953                        fi
14954                        ac_mid=`expr 2 '*' $ac_mid`
14955 fi
14956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14957   done
14958 else
14959   echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962 ac_lo= ac_hi=
14963 fi
14964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14965 fi
14966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14967 # Binary search between lo and hi bounds.
14968 while test "x$ac_lo" != "x$ac_hi"; do
14969   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14970   cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976 $ac_includes_default
14977 int
14978 main ()
14979 {
14980 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14981 test_array [0] = 0
14982
14983   ;
14984   return 0;
14985 }
14986 _ACEOF
14987 rm -f conftest.$ac_objext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14989   (eval $ac_compile) 2>conftest.er1
14990   ac_status=$?
14991   grep -v '^ *+' conftest.er1 >conftest.err
14992   rm -f conftest.er1
14993   cat conftest.err >&5
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); } &&
14996          { ac_try='test -z "$ac_c_werror_flag"
14997                          || test ! -s conftest.err'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; } &&
15003          { ac_try='test -s conftest.$ac_objext'
15004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005   (eval $ac_try) 2>&5
15006   ac_status=$?
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); }; }; then
15009   ac_hi=$ac_mid
15010 else
15011   echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15013
15014 ac_lo=`expr '(' $ac_mid ')' + 1`
15015 fi
15016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15017 done
15018 case $ac_lo in
15019 ?*) ac_cv_sizeof_long=$ac_lo;;
15020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15021 See \`config.log' for more details." >&5
15022 echo "$as_me: error: cannot compute sizeof (long), 77
15023 See \`config.log' for more details." >&2;}
15024    { (exit 1); exit 1; }; } ;;
15025 esac
15026 else
15027   if test "$cross_compiling" = yes; then
15028   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15029 See \`config.log' for more details." >&5
15030 echo "$as_me: error: cannot run test program while cross compiling
15031 See \`config.log' for more details." >&2;}
15032    { (exit 1); exit 1; }; }
15033 else
15034   cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h.  */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h.  */
15040 $ac_includes_default
15041 long longval () { return (long) (sizeof (long)); }
15042 unsigned long ulongval () { return (long) (sizeof (long)); }
15043 #include <stdio.h>
15044 #include <stdlib.h>
15045 int
15046 main ()
15047 {
15048
15049   FILE *f = fopen ("conftest.val", "w");
15050   if (! f)
15051     exit (1);
15052   if (((long) (sizeof (long))) < 0)
15053     {
15054       long i = longval ();
15055       if (i != ((long) (sizeof (long))))
15056         exit (1);
15057       fprintf (f, "%ld\n", i);
15058     }
15059   else
15060     {
15061       unsigned long i = ulongval ();
15062       if (i != ((long) (sizeof (long))))
15063         exit (1);
15064       fprintf (f, "%lu\n", i);
15065     }
15066   exit (ferror (f) || fclose (f) != 0);
15067
15068   ;
15069   return 0;
15070 }
15071 _ACEOF
15072 rm -f conftest$ac_exeext
15073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15074   (eval $ac_link) 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079   (eval $ac_try) 2>&5
15080   ac_status=$?
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); }; }; then
15083   ac_cv_sizeof_long=`cat conftest.val`
15084 else
15085   echo "$as_me: program exited with status $ac_status" >&5
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15088
15089 ( exit $ac_status )
15090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15091 See \`config.log' for more details." >&5
15092 echo "$as_me: error: cannot compute sizeof (long), 77
15093 See \`config.log' for more details." >&2;}
15094    { (exit 1); exit 1; }; }
15095 fi
15096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15097 fi
15098 fi
15099 rm -f conftest.val
15100 else
15101   ac_cv_sizeof_long=0
15102 fi
15103 fi
15104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15105 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15106 cat >>confdefs.h <<_ACEOF
15107 #define SIZEOF_LONG $ac_cv_sizeof_long
15108 _ACEOF
15109
15110  ;;
15111 esac
15112
15113 if test $acx_cv_header_stdint = stddef.h; then
15114   # Lacking a good header?  Test size of everything and deduce all types.
15115   echo "$as_me:$LINENO: checking for int" >&5
15116 echo $ECHO_N "checking for int... $ECHO_C" >&6
15117 if test "${ac_cv_type_int+set}" = set; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 $ac_includes_default
15127 int
15128 main ()
15129 {
15130 if ((int *) 0)
15131   return 0;
15132 if (sizeof (int))
15133   return 0;
15134   ;
15135   return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest.$ac_objext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140   (eval $ac_compile) 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -z "$ac_c_werror_flag"
15148                          || test ! -s conftest.err'
15149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150   (eval $ac_try) 2>&5
15151   ac_status=$?
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); }; } &&
15154          { ac_try='test -s conftest.$ac_objext'
15155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156   (eval $ac_try) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); }; }; then
15160   ac_cv_type_int=yes
15161 else
15162   echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15164
15165 ac_cv_type_int=no
15166 fi
15167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15168 fi
15169 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15170 echo "${ECHO_T}$ac_cv_type_int" >&6
15171
15172 echo "$as_me:$LINENO: checking size of int" >&5
15173 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15174 if test "${ac_cv_sizeof_int+set}" = set; then
15175   echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177   if test "$ac_cv_type_int" = yes; then
15178   # The cast to unsigned long works around a bug in the HP C Compiler
15179   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15180   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15181   # This bug is HP SR number 8606223364.
15182   if test "$cross_compiling" = yes; then
15183   # Depending upon the size, compute the lo and hi bounds.
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h.  */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h.  */
15190 $ac_includes_default
15191 int
15192 main ()
15193 {
15194 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15195 test_array [0] = 0
15196
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 rm -f conftest.$ac_objext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203   (eval $ac_compile) 2>conftest.er1
15204   ac_status=$?
15205   grep -v '^ *+' conftest.er1 >conftest.err
15206   rm -f conftest.er1
15207   cat conftest.err >&5
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); } &&
15210          { ac_try='test -z "$ac_c_werror_flag"
15211                          || test ! -s conftest.err'
15212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213   (eval $ac_try) 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); }; } &&
15217          { ac_try='test -s conftest.$ac_objext'
15218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219   (eval $ac_try) 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); }; }; then
15223   ac_lo=0 ac_mid=0
15224   while :; do
15225     cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h.  */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h.  */
15231 $ac_includes_default
15232 int
15233 main ()
15234 {
15235 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15236 test_array [0] = 0
15237
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244   (eval $ac_compile) 2>conftest.er1
15245   ac_status=$?
15246   grep -v '^ *+' conftest.er1 >conftest.err
15247   rm -f conftest.er1
15248   cat conftest.err >&5
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); } &&
15251          { ac_try='test -z "$ac_c_werror_flag"
15252                          || test ! -s conftest.err'
15253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254   (eval $ac_try) 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; } &&
15258          { ac_try='test -s conftest.$ac_objext'
15259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260   (eval $ac_try) 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; }; then
15264   ac_hi=$ac_mid; break
15265 else
15266   echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269 ac_lo=`expr $ac_mid + 1`
15270                     if test $ac_lo -le $ac_mid; then
15271                       ac_lo= ac_hi=
15272                       break
15273                     fi
15274                     ac_mid=`expr 2 '*' $ac_mid + 1`
15275 fi
15276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15277   done
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h.  */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h.  */
15288 $ac_includes_default
15289 int
15290 main ()
15291 {
15292 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15293 test_array [0] = 0
15294
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301   (eval $ac_compile) 2>conftest.er1
15302   ac_status=$?
15303   grep -v '^ *+' conftest.er1 >conftest.err
15304   rm -f conftest.er1
15305   cat conftest.err >&5
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); } &&
15308          { ac_try='test -z "$ac_c_werror_flag"
15309                          || test ! -s conftest.err'
15310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311   (eval $ac_try) 2>&5
15312   ac_status=$?
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); }; } &&
15315          { ac_try='test -s conftest.$ac_objext'
15316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317   (eval $ac_try) 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; }; then
15321   ac_hi=-1 ac_mid=-1
15322   while :; do
15323     cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h.  */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h.  */
15329 $ac_includes_default
15330 int
15331 main ()
15332 {
15333 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15334 test_array [0] = 0
15335
15336   ;
15337   return 0;
15338 }
15339 _ACEOF
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342   (eval $ac_compile) 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } &&
15349          { ac_try='test -z "$ac_c_werror_flag"
15350                          || test ! -s conftest.err'
15351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352   (eval $ac_try) 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; } &&
15356          { ac_try='test -s conftest.$ac_objext'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; }; then
15362   ac_lo=$ac_mid; break
15363 else
15364   echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15366
15367 ac_hi=`expr '(' $ac_mid ')' - 1`
15368                        if test $ac_mid -le $ac_hi; then
15369                          ac_lo= ac_hi=
15370                          break
15371                        fi
15372                        ac_mid=`expr 2 '*' $ac_mid`
15373 fi
15374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15375   done
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380 ac_lo= ac_hi=
15381 fi
15382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15383 fi
15384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15385 # Binary search between lo and hi bounds.
15386 while test "x$ac_lo" != "x$ac_hi"; do
15387   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15388   cat >conftest.$ac_ext <<_ACEOF
15389 /* confdefs.h.  */
15390 _ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h.  */
15394 $ac_includes_default
15395 int
15396 main ()
15397 {
15398 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15399 test_array [0] = 0
15400
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 rm -f conftest.$ac_objext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407   (eval $ac_compile) 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -z "$ac_c_werror_flag"
15415                          || test ! -s conftest.err'
15416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417   (eval $ac_try) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); }; } &&
15421          { ac_try='test -s conftest.$ac_objext'
15422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423   (eval $ac_try) 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); }; }; then
15427   ac_hi=$ac_mid
15428 else
15429   echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432 ac_lo=`expr '(' $ac_mid ')' + 1`
15433 fi
15434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15435 done
15436 case $ac_lo in
15437 ?*) ac_cv_sizeof_int=$ac_lo;;
15438 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15439 See \`config.log' for more details." >&5
15440 echo "$as_me: error: cannot compute sizeof (int), 77
15441 See \`config.log' for more details." >&2;}
15442    { (exit 1); exit 1; }; } ;;
15443 esac
15444 else
15445   if test "$cross_compiling" = yes; then
15446   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15447 See \`config.log' for more details." >&5
15448 echo "$as_me: error: cannot run test program while cross compiling
15449 See \`config.log' for more details." >&2;}
15450    { (exit 1); exit 1; }; }
15451 else
15452   cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h.  */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h.  */
15458 $ac_includes_default
15459 long longval () { return (long) (sizeof (int)); }
15460 unsigned long ulongval () { return (long) (sizeof (int)); }
15461 #include <stdio.h>
15462 #include <stdlib.h>
15463 int
15464 main ()
15465 {
15466
15467   FILE *f = fopen ("conftest.val", "w");
15468   if (! f)
15469     exit (1);
15470   if (((long) (sizeof (int))) < 0)
15471     {
15472       long i = longval ();
15473       if (i != ((long) (sizeof (int))))
15474         exit (1);
15475       fprintf (f, "%ld\n", i);
15476     }
15477   else
15478     {
15479       unsigned long i = ulongval ();
15480       if (i != ((long) (sizeof (int))))
15481         exit (1);
15482       fprintf (f, "%lu\n", i);
15483     }
15484   exit (ferror (f) || fclose (f) != 0);
15485
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest$ac_exeext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15492   (eval $ac_link) 2>&5
15493   ac_status=$?
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497   (eval $ac_try) 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; }; then
15501   ac_cv_sizeof_int=`cat conftest.val`
15502 else
15503   echo "$as_me: program exited with status $ac_status" >&5
15504 echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15506
15507 ( exit $ac_status )
15508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15509 See \`config.log' for more details." >&5
15510 echo "$as_me: error: cannot compute sizeof (int), 77
15511 See \`config.log' for more details." >&2;}
15512    { (exit 1); exit 1; }; }
15513 fi
15514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15515 fi
15516 fi
15517 rm -f conftest.val
15518 else
15519   ac_cv_sizeof_int=0
15520 fi
15521 fi
15522 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15523 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15524 cat >>confdefs.h <<_ACEOF
15525 #define SIZEOF_INT $ac_cv_sizeof_int
15526 _ACEOF
15527
15528
15529   echo "$as_me:$LINENO: checking for short" >&5
15530 echo $ECHO_N "checking for short... $ECHO_C" >&6
15531 if test "${ac_cv_type_short+set}" = set; then
15532   echo $ECHO_N "(cached) $ECHO_C" >&6
15533 else
15534   cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540 $ac_includes_default
15541 int
15542 main ()
15543 {
15544 if ((short *) 0)
15545   return 0;
15546 if (sizeof (short))
15547   return 0;
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554   (eval $ac_compile) 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -z "$ac_c_werror_flag"
15562                          || test ! -s conftest.err'
15563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564   (eval $ac_try) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; } &&
15568          { ac_try='test -s conftest.$ac_objext'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_cv_type_short=yes
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579 ac_cv_type_short=no
15580 fi
15581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15582 fi
15583 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15584 echo "${ECHO_T}$ac_cv_type_short" >&6
15585
15586 echo "$as_me:$LINENO: checking size of short" >&5
15587 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15588 if test "${ac_cv_sizeof_short+set}" = set; then
15589   echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591   if test "$ac_cv_type_short" = yes; then
15592   # The cast to unsigned long works around a bug in the HP C Compiler
15593   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15594   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15595   # This bug is HP SR number 8606223364.
15596   if test "$cross_compiling" = yes; then
15597   # Depending upon the size, compute the lo and hi bounds.
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 $ac_includes_default
15605 int
15606 main ()
15607 {
15608 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15609 test_array [0] = 0
15610
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 rm -f conftest.$ac_objext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617   (eval $ac_compile) 2>conftest.er1
15618   ac_status=$?
15619   grep -v '^ *+' conftest.er1 >conftest.err
15620   rm -f conftest.er1
15621   cat conftest.err >&5
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } &&
15624          { ac_try='test -z "$ac_c_werror_flag"
15625                          || test ! -s conftest.err'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; } &&
15631          { ac_try='test -s conftest.$ac_objext'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637   ac_lo=0 ac_mid=0
15638   while :; do
15639     cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h.  */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h.  */
15645 $ac_includes_default
15646 int
15647 main ()
15648 {
15649 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15650 test_array [0] = 0
15651
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 rm -f conftest.$ac_objext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658   (eval $ac_compile) 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -z "$ac_c_werror_flag"
15666                          || test ! -s conftest.err'
15667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668   (eval $ac_try) 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; } &&
15672          { ac_try='test -s conftest.$ac_objext'
15673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674   (eval $ac_try) 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; }; then
15678   ac_hi=$ac_mid; break
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683 ac_lo=`expr $ac_mid + 1`
15684                     if test $ac_lo -le $ac_mid; then
15685                       ac_lo= ac_hi=
15686                       break
15687                     fi
15688                     ac_mid=`expr 2 '*' $ac_mid + 1`
15689 fi
15690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15691   done
15692 else
15693   echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15695
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h.  */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h.  */
15702 $ac_includes_default
15703 int
15704 main ()
15705 {
15706 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15707 test_array [0] = 0
15708
15709   ;
15710   return 0;
15711 }
15712 _ACEOF
15713 rm -f conftest.$ac_objext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15715   (eval $ac_compile) 2>conftest.er1
15716   ac_status=$?
15717   grep -v '^ *+' conftest.er1 >conftest.err
15718   rm -f conftest.er1
15719   cat conftest.err >&5
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); } &&
15722          { ac_try='test -z "$ac_c_werror_flag"
15723                          || test ! -s conftest.err'
15724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725   (eval $ac_try) 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; } &&
15729          { ac_try='test -s conftest.$ac_objext'
15730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731   (eval $ac_try) 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; }; then
15735   ac_hi=-1 ac_mid=-1
15736   while :; do
15737     cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743 $ac_includes_default
15744 int
15745 main ()
15746 {
15747 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15748 test_array [0] = 0
15749
15750   ;
15751   return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756   (eval $ac_compile) 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } &&
15763          { ac_try='test -z "$ac_c_werror_flag"
15764                          || test ! -s conftest.err'
15765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766   (eval $ac_try) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; } &&
15770          { ac_try='test -s conftest.$ac_objext'
15771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772   (eval $ac_try) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_lo=$ac_mid; break
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_hi=`expr '(' $ac_mid ')' - 1`
15782                        if test $ac_mid -le $ac_hi; then
15783                          ac_lo= ac_hi=
15784                          break
15785                        fi
15786                        ac_mid=`expr 2 '*' $ac_mid`
15787 fi
15788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15789   done
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 ac_lo= ac_hi=
15795 fi
15796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15797 fi
15798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15799 # Binary search between lo and hi bounds.
15800 while test "x$ac_lo" != "x$ac_hi"; do
15801   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15802   cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h.  */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h.  */
15808 $ac_includes_default
15809 int
15810 main ()
15811 {
15812 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15813 test_array [0] = 0
15814
15815   ;
15816   return 0;
15817 }
15818 _ACEOF
15819 rm -f conftest.$ac_objext
15820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821   (eval $ac_compile) 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } &&
15828          { ac_try='test -z "$ac_c_werror_flag"
15829                          || test ! -s conftest.err'
15830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831   (eval $ac_try) 2>&5
15832   ac_status=$?
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); }; } &&
15835          { ac_try='test -s conftest.$ac_objext'
15836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837   (eval $ac_try) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); }; }; then
15841   ac_hi=$ac_mid
15842 else
15843   echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 ac_lo=`expr '(' $ac_mid ')' + 1`
15847 fi
15848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15849 done
15850 case $ac_lo in
15851 ?*) ac_cv_sizeof_short=$ac_lo;;
15852 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15853 See \`config.log' for more details." >&5
15854 echo "$as_me: error: cannot compute sizeof (short), 77
15855 See \`config.log' for more details." >&2;}
15856    { (exit 1); exit 1; }; } ;;
15857 esac
15858 else
15859   if test "$cross_compiling" = yes; then
15860   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15861 See \`config.log' for more details." >&5
15862 echo "$as_me: error: cannot run test program while cross compiling
15863 See \`config.log' for more details." >&2;}
15864    { (exit 1); exit 1; }; }
15865 else
15866   cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h.  */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h.  */
15872 $ac_includes_default
15873 long longval () { return (long) (sizeof (short)); }
15874 unsigned long ulongval () { return (long) (sizeof (short)); }
15875 #include <stdio.h>
15876 #include <stdlib.h>
15877 int
15878 main ()
15879 {
15880
15881   FILE *f = fopen ("conftest.val", "w");
15882   if (! f)
15883     exit (1);
15884   if (((long) (sizeof (short))) < 0)
15885     {
15886       long i = longval ();
15887       if (i != ((long) (sizeof (short))))
15888         exit (1);
15889       fprintf (f, "%ld\n", i);
15890     }
15891   else
15892     {
15893       unsigned long i = ulongval ();
15894       if (i != ((long) (sizeof (short))))
15895         exit (1);
15896       fprintf (f, "%lu\n", i);
15897     }
15898   exit (ferror (f) || fclose (f) != 0);
15899
15900   ;
15901   return 0;
15902 }
15903 _ACEOF
15904 rm -f conftest$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906   (eval $ac_link) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; }; then
15915   ac_cv_sizeof_short=`cat conftest.val`
15916 else
15917   echo "$as_me: program exited with status $ac_status" >&5
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ( exit $ac_status )
15922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15923 See \`config.log' for more details." >&5
15924 echo "$as_me: error: cannot compute sizeof (short), 77
15925 See \`config.log' for more details." >&2;}
15926    { (exit 1); exit 1; }; }
15927 fi
15928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15929 fi
15930 fi
15931 rm -f conftest.val
15932 else
15933   ac_cv_sizeof_short=0
15934 fi
15935 fi
15936 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15937 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15938 cat >>confdefs.h <<_ACEOF
15939 #define SIZEOF_SHORT $ac_cv_sizeof_short
15940 _ACEOF
15941
15942
15943   echo "$as_me:$LINENO: checking for char" >&5
15944 echo $ECHO_N "checking for char... $ECHO_C" >&6
15945 if test "${ac_cv_type_char+set}" = set; then
15946   echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948   cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954 $ac_includes_default
15955 int
15956 main ()
15957 {
15958 if ((char *) 0)
15959   return 0;
15960 if (sizeof (char))
15961   return 0;
15962   ;
15963   return 0;
15964 }
15965 _ACEOF
15966 rm -f conftest.$ac_objext
15967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15968   (eval $ac_compile) 2>conftest.er1
15969   ac_status=$?
15970   grep -v '^ *+' conftest.er1 >conftest.err
15971   rm -f conftest.er1
15972   cat conftest.err >&5
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); } &&
15975          { ac_try='test -z "$ac_c_werror_flag"
15976                          || test ! -s conftest.err'
15977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978   (eval $ac_try) 2>&5
15979   ac_status=$?
15980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981   (exit $ac_status); }; } &&
15982          { ac_try='test -s conftest.$ac_objext'
15983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984   (eval $ac_try) 2>&5
15985   ac_status=$?
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); }; }; then
15988   ac_cv_type_char=yes
15989 else
15990   echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15992
15993 ac_cv_type_char=no
15994 fi
15995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15996 fi
15997 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15998 echo "${ECHO_T}$ac_cv_type_char" >&6
15999
16000 echo "$as_me:$LINENO: checking size of char" >&5
16001 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16002 if test "${ac_cv_sizeof_char+set}" = set; then
16003   echo $ECHO_N "(cached) $ECHO_C" >&6
16004 else
16005   if test "$ac_cv_type_char" = yes; then
16006   # The cast to unsigned long works around a bug in the HP C Compiler
16007   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16008   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16009   # This bug is HP SR number 8606223364.
16010   if test "$cross_compiling" = yes; then
16011   # Depending upon the size, compute the lo and hi bounds.
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h.  */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h.  */
16018 $ac_includes_default
16019 int
16020 main ()
16021 {
16022 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16023 test_array [0] = 0
16024
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031   (eval $ac_compile) 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } &&
16038          { ac_try='test -z "$ac_c_werror_flag"
16039                          || test ! -s conftest.err'
16040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041   (eval $ac_try) 2>&5
16042   ac_status=$?
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); }; } &&
16045          { ac_try='test -s conftest.$ac_objext'
16046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047   (eval $ac_try) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; }; then
16051   ac_lo=0 ac_mid=0
16052   while :; do
16053     cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059 $ac_includes_default
16060 int
16061 main ()
16062 {
16063 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16064 test_array [0] = 0
16065
16066   ;
16067   return 0;
16068 }
16069 _ACEOF
16070 rm -f conftest.$ac_objext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072   (eval $ac_compile) 2>conftest.er1
16073   ac_status=$?
16074   grep -v '^ *+' conftest.er1 >conftest.err
16075   rm -f conftest.er1
16076   cat conftest.err >&5
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } &&
16079          { ac_try='test -z "$ac_c_werror_flag"
16080                          || test ! -s conftest.err'
16081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082   (eval $ac_try) 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; } &&
16086          { ac_try='test -s conftest.$ac_objext'
16087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088   (eval $ac_try) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   ac_hi=$ac_mid; break
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 ac_lo=`expr $ac_mid + 1`
16098                     if test $ac_lo -le $ac_mid; then
16099                       ac_lo= ac_hi=
16100                       break
16101                     fi
16102                     ac_mid=`expr 2 '*' $ac_mid + 1`
16103 fi
16104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16105   done
16106 else
16107   echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h.  */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h.  */
16116 $ac_includes_default
16117 int
16118 main ()
16119 {
16120 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16121 test_array [0] = 0
16122
16123   ;
16124   return 0;
16125 }
16126 _ACEOF
16127 rm -f conftest.$ac_objext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129   (eval $ac_compile) 2>conftest.er1
16130   ac_status=$?
16131   grep -v '^ *+' conftest.er1 >conftest.err
16132   rm -f conftest.er1
16133   cat conftest.err >&5
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); } &&
16136          { ac_try='test -z "$ac_c_werror_flag"
16137                          || test ! -s conftest.err'
16138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139   (eval $ac_try) 2>&5
16140   ac_status=$?
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); }; } &&
16143          { ac_try='test -s conftest.$ac_objext'
16144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145   (eval $ac_try) 2>&5
16146   ac_status=$?
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); }; }; then
16149   ac_hi=-1 ac_mid=-1
16150   while :; do
16151     cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h.  */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h.  */
16157 $ac_includes_default
16158 int
16159 main ()
16160 {
16161 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16162 test_array [0] = 0
16163
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170   (eval $ac_compile) 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } &&
16177          { ac_try='test -z "$ac_c_werror_flag"
16178                          || test ! -s conftest.err'
16179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180   (eval $ac_try) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; } &&
16184          { ac_try='test -s conftest.$ac_objext'
16185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186   (eval $ac_try) 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; }; then
16190   ac_lo=$ac_mid; break
16191 else
16192   echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 ac_hi=`expr '(' $ac_mid ')' - 1`
16196                        if test $ac_mid -le $ac_hi; then
16197                          ac_lo= ac_hi=
16198                          break
16199                        fi
16200                        ac_mid=`expr 2 '*' $ac_mid`
16201 fi
16202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16203   done
16204 else
16205   echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16207
16208 ac_lo= ac_hi=
16209 fi
16210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16211 fi
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213 # Binary search between lo and hi bounds.
16214 while test "x$ac_lo" != "x$ac_hi"; do
16215   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16216   cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h.  */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h.  */
16222 $ac_includes_default
16223 int
16224 main ()
16225 {
16226 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16227 test_array [0] = 0
16228
16229   ;
16230   return 0;
16231 }
16232 _ACEOF
16233 rm -f conftest.$ac_objext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16235   (eval $ac_compile) 2>conftest.er1
16236   ac_status=$?
16237   grep -v '^ *+' conftest.er1 >conftest.err
16238   rm -f conftest.er1
16239   cat conftest.err >&5
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); } &&
16242          { ac_try='test -z "$ac_c_werror_flag"
16243                          || test ! -s conftest.err'
16244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245   (eval $ac_try) 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; } &&
16249          { ac_try='test -s conftest.$ac_objext'
16250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251   (eval $ac_try) 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); }; }; then
16255   ac_hi=$ac_mid
16256 else
16257   echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16259
16260 ac_lo=`expr '(' $ac_mid ')' + 1`
16261 fi
16262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16263 done
16264 case $ac_lo in
16265 ?*) ac_cv_sizeof_char=$ac_lo;;
16266 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16267 See \`config.log' for more details." >&5
16268 echo "$as_me: error: cannot compute sizeof (char), 77
16269 See \`config.log' for more details." >&2;}
16270    { (exit 1); exit 1; }; } ;;
16271 esac
16272 else
16273   if test "$cross_compiling" = yes; then
16274   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16275 See \`config.log' for more details." >&5
16276 echo "$as_me: error: cannot run test program while cross compiling
16277 See \`config.log' for more details." >&2;}
16278    { (exit 1); exit 1; }; }
16279 else
16280   cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h.  */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h.  */
16286 $ac_includes_default
16287 long longval () { return (long) (sizeof (char)); }
16288 unsigned long ulongval () { return (long) (sizeof (char)); }
16289 #include <stdio.h>
16290 #include <stdlib.h>
16291 int
16292 main ()
16293 {
16294
16295   FILE *f = fopen ("conftest.val", "w");
16296   if (! f)
16297     exit (1);
16298   if (((long) (sizeof (char))) < 0)
16299     {
16300       long i = longval ();
16301       if (i != ((long) (sizeof (char))))
16302         exit (1);
16303       fprintf (f, "%ld\n", i);
16304     }
16305   else
16306     {
16307       unsigned long i = ulongval ();
16308       if (i != ((long) (sizeof (char))))
16309         exit (1);
16310       fprintf (f, "%lu\n", i);
16311     }
16312   exit (ferror (f) || fclose (f) != 0);
16313
16314   ;
16315   return 0;
16316 }
16317 _ACEOF
16318 rm -f conftest$ac_exeext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16320   (eval $ac_link) 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325   (eval $ac_try) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; }; then
16329   ac_cv_sizeof_char=`cat conftest.val`
16330 else
16331   echo "$as_me: program exited with status $ac_status" >&5
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 ( exit $ac_status )
16336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16337 See \`config.log' for more details." >&5
16338 echo "$as_me: error: cannot compute sizeof (char), 77
16339 See \`config.log' for more details." >&2;}
16340    { (exit 1); exit 1; }; }
16341 fi
16342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16343 fi
16344 fi
16345 rm -f conftest.val
16346 else
16347   ac_cv_sizeof_char=0
16348 fi
16349 fi
16350 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16351 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16352 cat >>confdefs.h <<_ACEOF
16353 #define SIZEOF_CHAR $ac_cv_sizeof_char
16354 _ACEOF
16355
16356
16357
16358   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16359 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16360   case "$ac_cv_sizeof_char" in
16361     1) acx_cv_type_int8_t=char ;;
16362     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16363 echo "$as_me: error: no 8-bit type" >&2;}
16364    { (exit please report a bug); exit please report a bug; }; }
16365   esac
16366   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16367 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16368
16369   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16370 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16371   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16372     2:*) acx_cv_type_int16_t=int ;;
16373     *:2) acx_cv_type_int16_t=short ;;
16374     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16375 echo "$as_me: error: no 16-bit type" >&2;}
16376    { (exit please report a bug); exit please report a bug; }; }
16377   esac
16378   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16379 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16380
16381   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16382 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16383   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16384     4:*) acx_cv_type_int32_t=int ;;
16385     *:4) acx_cv_type_int32_t=long ;;
16386     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16387 echo "$as_me: error: no 32-bit type" >&2;}
16388    { (exit please report a bug); exit please report a bug; }; }
16389   esac
16390   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16391 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16392 fi
16393
16394 # These tests are here to make the output prettier
16395
16396 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16397   case "$ac_cv_sizeof_long" in
16398     8) acx_cv_type_int64_t=long ;;
16399   esac
16400   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16401 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16402   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16403 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16404 fi
16405
16406 # Now we can use the above types
16407
16408 if test "$ac_cv_type_uintptr_t" != yes; then
16409   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16410 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16411   case $ac_cv_sizeof_void_p in
16412     2) acx_cv_type_intptr_t=int16_t ;;
16413     4) acx_cv_type_intptr_t=int32_t ;;
16414     8) acx_cv_type_intptr_t=int64_t ;;
16415     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16416 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16417    { (exit please report a bug); exit please report a bug; }; }
16418   esac
16419   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16420 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16421 fi
16422
16423 # ----------------- done all checks, emit header -------------
16424           ac_config_commands="$ac_config_commands gstdint.h"
16425
16426
16427
16428
16429 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
16430 # In case the pthread.h system header is not found, this test will fail.
16431 XPCFLAGS=""
16432 CFLAGS="$CFLAGS -pthread"
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h.  */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h.  */
16439 #include <pthread.h>
16440    void *g(void *d) { return NULL; }
16441 int
16442 main ()
16443 {
16444 pthread_t t; pthread_create(&t,NULL,g,NULL);
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451   (eval $ac_link) 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } &&
16458          { ac_try='test -z "$ac_c_werror_flag"
16459                          || test ! -s conftest.err'
16460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461   (eval $ac_try) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); }; } &&
16465          { ac_try='test -s conftest$ac_exeext'
16466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467   (eval $ac_try) 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; }; then
16471   XPCFLAGS=" -Wc,-pthread"
16472 else
16473   echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16475
16476 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16477   cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h.  */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h.  */
16483 #include <pthread.h>
16484      void *g(void *d) { return NULL; }
16485 int
16486 main ()
16487 {
16488 pthread_t t; pthread_create(&t,NULL,g,NULL);
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16495   (eval $ac_link) 2>conftest.er1
16496   ac_status=$?
16497   grep -v '^ *+' conftest.er1 >conftest.err
16498   rm -f conftest.er1
16499   cat conftest.err >&5
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); } &&
16502          { ac_try='test -z "$ac_c_werror_flag"
16503                          || test ! -s conftest.err'
16504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505   (eval $ac_try) 2>&5
16506   ac_status=$?
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); }; } &&
16509          { ac_try='test -s conftest$ac_exeext'
16510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511   (eval $ac_try) 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; }; then
16515   :
16516 else
16517   echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16519
16520 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16521 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16522    { (exit 1); exit 1; }; }
16523 fi
16524 rm -f conftest.err conftest.$ac_objext \
16525       conftest$ac_exeext conftest.$ac_ext
16526 fi
16527 rm -f conftest.err conftest.$ac_objext \
16528       conftest$ac_exeext conftest.$ac_ext
16529
16530 # Check for functions needed.
16531
16532
16533 for ac_func in getloadavg clock_gettime
16534 do
16535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16536 echo "$as_me:$LINENO: checking for $ac_func" >&5
16537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16538 if eval "test \"\${$as_ac_var+set}\" = set"; then
16539   echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541   cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h.  */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h.  */
16547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16549 #define $ac_func innocuous_$ac_func
16550
16551 /* System header to define __stub macros and hopefully few prototypes,
16552     which can conflict with char $ac_func (); below.
16553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16554     <limits.h> exists even on freestanding compilers.  */
16555
16556 #ifdef __STDC__
16557 # include <limits.h>
16558 #else
16559 # include <assert.h>
16560 #endif
16561
16562 #undef $ac_func
16563
16564 /* Override any gcc2 internal prototype to avoid an error.  */
16565 #ifdef __cplusplus
16566 extern "C"
16567 {
16568 #endif
16569 /* We use char because int might match the return type of a gcc2
16570    builtin and then its argument prototype would still apply.  */
16571 char $ac_func ();
16572 /* The GNU C library defines this for functions which it implements
16573     to always fail with ENOSYS.  Some functions are actually named
16574     something starting with __ and the normal name is an alias.  */
16575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16576 choke me
16577 #else
16578 char (*f) () = $ac_func;
16579 #endif
16580 #ifdef __cplusplus
16581 }
16582 #endif
16583
16584 int
16585 main ()
16586 {
16587 return f != $ac_func;
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594   (eval $ac_link) 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } &&
16601          { ac_try='test -z "$ac_c_werror_flag"
16602                          || test ! -s conftest.err'
16603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604   (eval $ac_try) 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }; } &&
16608          { ac_try='test -s conftest$ac_exeext'
16609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610   (eval $ac_try) 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; }; then
16614   eval "$as_ac_var=yes"
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 eval "$as_ac_var=no"
16620 fi
16621 rm -f conftest.err conftest.$ac_objext \
16622       conftest$ac_exeext conftest.$ac_ext
16623 fi
16624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16626 if test `eval echo '${'$as_ac_var'}'` = yes; then
16627   cat >>confdefs.h <<_ACEOF
16628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16629 _ACEOF
16630
16631 fi
16632 done
16633
16634
16635 # Check for broken semaphore implementation on darwin.
16636 # sem_init returns: sem_init error: Function not implemented.
16637 case "$host" in
16638   *-darwin*)
16639
16640 cat >>confdefs.h <<\_ACEOF
16641 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16642 _ACEOF
16643
16644     ;;
16645 esac
16646
16647  # Check whether --enable-linux-futex or --disable-linux-futex was given.
16648 if test "${enable_linux_futex+set}" = set; then
16649   enableval="$enable_linux_futex"
16650
16651       case "$enableval" in
16652        yes|no|default) ;;
16653        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16654 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16655    { (exit 1); exit 1; }; } ;;
16656                           esac
16657
16658 else
16659   enable_linux_futex=default
16660 fi;
16661
16662 case "$target" in
16663   *-linux*)
16664     case "$enable_linux_futex" in
16665       default)
16666         # If headers don't have gettid/futex syscalls definition, then
16667         # default to no, otherwise there will be compile time failures.
16668         # Otherwise, default to yes.  If we don't detect we are
16669         # compiled/linked against NPTL and not cross-compiling, check
16670         # if programs are run by default against NPTL and if not, issue
16671         # a warning.
16672         enable_linux_futex=no
16673         cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h.  */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h.  */
16679 #include <sys/syscall.h>
16680            int lk;
16681 int
16682 main ()
16683 {
16684 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691   (eval $ac_link) 2>conftest.er1
16692   ac_status=$?
16693   grep -v '^ *+' conftest.er1 >conftest.err
16694   rm -f conftest.er1
16695   cat conftest.err >&5
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } &&
16698          { ac_try='test -z "$ac_c_werror_flag"
16699                          || test ! -s conftest.err'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; } &&
16705          { ac_try='test -s conftest$ac_exeext'
16706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707   (eval $ac_try) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711   save_LIBS="$LIBS"
16712            LIBS="-lpthread $LIBS"
16713            cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h.  */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h.  */
16719 #ifndef _GNU_SOURCE
16720              #define _GNU_SOURCE 1
16721              #endif
16722              #include <pthread.h>
16723              pthread_t th; void *status;
16724 int
16725 main ()
16726 {
16727 pthread_tryjoin_np (th, &status);
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734   (eval $ac_link) 2>conftest.er1
16735   ac_status=$?
16736   grep -v '^ *+' conftest.er1 >conftest.err
16737   rm -f conftest.er1
16738   cat conftest.err >&5
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } &&
16741          { ac_try='test -z "$ac_c_werror_flag"
16742                          || test ! -s conftest.err'
16743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744   (eval $ac_try) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; } &&
16748          { ac_try='test -s conftest$ac_exeext'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754   enable_linux_futex=yes
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 if test x$cross_compiling = xno; then
16760                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16761                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16762                  { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16763 If so, please configure with --disable-linux-futex" >&5
16764 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16765 If so, please configure with --disable-linux-futex" >&2;}
16766                fi
16767              fi
16768              enable_linux_futex=yes
16769 fi
16770 rm -f conftest.err conftest.$ac_objext \
16771       conftest$ac_exeext conftest.$ac_ext
16772            LIBS="$save_LIBS"
16773 else
16774   echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777 fi
16778 rm -f conftest.err conftest.$ac_objext \
16779       conftest$ac_exeext conftest.$ac_ext
16780         ;;
16781       yes)
16782         cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h.  */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h.  */
16788 #include <sys/syscall.h>
16789            int lk;
16790 int
16791 main ()
16792 {
16793 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800   (eval $ac_link) 2>conftest.er1
16801   ac_status=$?
16802   grep -v '^ *+' conftest.er1 >conftest.err
16803   rm -f conftest.er1
16804   cat conftest.err >&5
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); } &&
16807          { ac_try='test -z "$ac_c_werror_flag"
16808                          || test ! -s conftest.err'
16809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810   (eval $ac_try) 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; } &&
16814          { ac_try='test -s conftest$ac_exeext'
16815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816   (eval $ac_try) 2>&5
16817   ac_status=$?
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }; }; then
16820   :
16821 else
16822   echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16826 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16827    { (exit 1); exit 1; }; }
16828 fi
16829 rm -f conftest.err conftest.$ac_objext \
16830       conftest$ac_exeext conftest.$ac_ext
16831         ;;
16832     esac
16833     ;;
16834   *)
16835     enable_linux_futex=no
16836     ;;
16837 esac
16838 if test x$enable_linux_futex = xyes; then
16839   :
16840 fi
16841
16842
16843 # Check for pthread_{,attr_}[sg]etaffinity_np.
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850 #define _GNU_SOURCE
16851    #include <pthread.h>
16852 int
16853 main ()
16854 {
16855 cpu_set_t cpuset;
16856    pthread_attr_t attr;
16857    pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16858    if (CPU_ISSET (0, &cpuset))
16859      CPU_SET (1, &cpuset);
16860    else
16861      CPU_ZERO (&cpuset);
16862    pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16863    pthread_attr_init (&attr);
16864    pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16865    pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16866   ;
16867   return 0;
16868 }
16869 _ACEOF
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872   (eval $ac_link) 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } &&
16879          { ac_try='test -z "$ac_c_werror_flag"
16880                          || test ! -s conftest.err'
16881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882   (eval $ac_try) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; } &&
16886          { ac_try='test -s conftest$ac_exeext'
16887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888   (eval $ac_try) 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; }; then
16892
16893 cat >>confdefs.h <<\_ACEOF
16894 #define HAVE_PTHREAD_AFFINITY_NP 1
16895 _ACEOF
16896
16897 else
16898   echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 fi
16902 rm -f conftest.err conftest.$ac_objext \
16903       conftest$ac_exeext conftest.$ac_ext
16904
16905 # At least for glibc, clock_gettime is in librt.  But don't pull that
16906 # in if it still doesn't give us the function we want.
16907 if test $ac_cv_func_clock_gettime = no; then
16908   echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16909 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16910 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913   ac_check_lib_save_LIBS=$LIBS
16914 LIBS="-lrt  $LIBS"
16915 cat >conftest.$ac_ext <<_ACEOF
16916 /* confdefs.h.  */
16917 _ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h.  */
16921
16922 /* Override any gcc2 internal prototype to avoid an error.  */
16923 #ifdef __cplusplus
16924 extern "C"
16925 #endif
16926 /* We use char because int might match the return type of a gcc2
16927    builtin and then its argument prototype would still apply.  */
16928 char clock_gettime ();
16929 int
16930 main ()
16931 {
16932 clock_gettime ();
16933   ;
16934   return 0;
16935 }
16936 _ACEOF
16937 rm -f conftest.$ac_objext conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939   (eval $ac_link) 2>conftest.er1
16940   ac_status=$?
16941   grep -v '^ *+' conftest.er1 >conftest.err
16942   rm -f conftest.er1
16943   cat conftest.err >&5
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } &&
16946          { ac_try='test -z "$ac_c_werror_flag"
16947                          || test ! -s conftest.err'
16948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949   (eval $ac_try) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; } &&
16953          { ac_try='test -s conftest$ac_exeext'
16954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955   (eval $ac_try) 2>&5
16956   ac_status=$?
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); }; }; then
16959   ac_cv_lib_rt_clock_gettime=yes
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 ac_cv_lib_rt_clock_gettime=no
16965 fi
16966 rm -f conftest.err conftest.$ac_objext \
16967       conftest$ac_exeext conftest.$ac_ext
16968 LIBS=$ac_check_lib_save_LIBS
16969 fi
16970 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
16971 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
16972 if test $ac_cv_lib_rt_clock_gettime = yes; then
16973   LIBS="-lrt $LIBS"
16974
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_CLOCK_GETTIME 1
16977 _ACEOF
16978
16979 fi
16980
16981 fi
16982
16983 # See if we support thread-local storage.
16984
16985    # Check whether --enable-tls or --disable-tls was given.
16986 if test "${enable_tls+set}" = set; then
16987   enableval="$enable_tls"
16988
16989       case "$enableval" in
16990        yes|no) ;;
16991        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16992 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16993    { (exit 1); exit 1; }; } ;;
16994       esac
16995
16996 else
16997   enable_tls=yes
16998 fi;
16999
17000   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17001 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17002 if test "${gcc_cv_have_tls+set}" = set; then
17003   echo $ECHO_N "(cached) $ECHO_C" >&6
17004 else
17005
17006     if test "$cross_compiling" = yes; then
17007                 cat >conftest.$ac_ext <<_ACEOF
17008 __thread int a; int b; int main() { return a = b; }
17009 _ACEOF
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012   (eval $ac_link) 2>conftest.er1
17013   ac_status=$?
17014   grep -v '^ *+' conftest.er1 >conftest.err
17015   rm -f conftest.er1
17016   cat conftest.err >&5
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); } &&
17019          { ac_try='test -z "$ac_c_werror_flag"
17020                          || test ! -s conftest.err'
17021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022   (eval $ac_try) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; } &&
17026          { ac_try='test -s conftest$ac_exeext'
17027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028   (eval $ac_try) 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; }; then
17032   gcc_cv_have_tls=yes
17033 else
17034   echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 gcc_cv_have_tls=no
17038 fi
17039 rm -f conftest.err conftest.$ac_objext \
17040       conftest$ac_exeext conftest.$ac_ext
17041
17042
17043 else
17044   cat >conftest.$ac_ext <<_ACEOF
17045 __thread int a; int b; int main() { return a = b; }
17046 _ACEOF
17047 rm -f conftest$ac_exeext
17048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17049   (eval $ac_link) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054   (eval $ac_try) 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }; }; then
17058                       chktls_save_LDFLAGS="$LDFLAGS"
17059       LDFLAGS="-static $LDFLAGS"
17060       cat >conftest.$ac_ext <<_ACEOF
17061 int main() { return 0; }
17062 _ACEOF
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17065   (eval $ac_link) 2>conftest.er1
17066   ac_status=$?
17067   grep -v '^ *+' conftest.er1 >conftest.err
17068   rm -f conftest.er1
17069   cat conftest.err >&5
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); } &&
17072          { ac_try='test -z "$ac_c_werror_flag"
17073                          || test ! -s conftest.err'
17074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075   (eval $ac_try) 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; } &&
17079          { ac_try='test -s conftest$ac_exeext'
17080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081   (eval $ac_try) 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); }; }; then
17085   if test "$cross_compiling" = yes; then
17086   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17087 See \`config.log' for more details." >&5
17088 echo "$as_me: error: cannot run test program while cross compiling
17089 See \`config.log' for more details." >&2;}
17090    { (exit 1); exit 1; }; }
17091 else
17092   cat >conftest.$ac_ext <<_ACEOF
17093 __thread int a; int b; int main() { return a = b; }
17094 _ACEOF
17095 rm -f conftest$ac_exeext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17097   (eval $ac_link) 2>&5
17098   ac_status=$?
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102   (eval $ac_try) 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); }; }; then
17106   gcc_cv_have_tls=yes
17107 else
17108   echo "$as_me: program exited with status $ac_status" >&5
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 ( exit $ac_status )
17113 gcc_cv_have_tls=no
17114 fi
17115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17116 fi
17117 else
17118   echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 gcc_cv_have_tls=yes
17122 fi
17123 rm -f conftest.err conftest.$ac_objext \
17124       conftest$ac_exeext conftest.$ac_ext
17125       LDFLAGS="$chktls_save_LDFLAGS"
17126       if test $gcc_cv_have_tls = yes; then
17127                                                 chktls_save_CFLAGS="$CFLAGS"
17128         thread_CFLAGS=failed
17129         for flag in '' '-pthread' '-lpthread'; do
17130           CFLAGS="$flag $chktls_save_CFLAGS"
17131           cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137 #include <pthread.h>
17138                 void *g(void *d) { return NULL; }
17139 int
17140 main ()
17141 {
17142 pthread_t t; pthread_create(&t,NULL,g,NULL);
17143   ;
17144   return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17149   (eval $ac_link) 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } &&
17156          { ac_try='test -z "$ac_c_werror_flag"
17157                          || test ! -s conftest.err'
17158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159   (eval $ac_try) 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; } &&
17163          { ac_try='test -s conftest$ac_exeext'
17164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169   thread_CFLAGS="$flag"
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 fi
17175 rm -f conftest.err conftest.$ac_objext \
17176       conftest$ac_exeext conftest.$ac_ext
17177           if test "X$thread_CFLAGS" != Xfailed; then
17178             break
17179           fi
17180         done
17181         CFLAGS="$chktls_save_CFLAGS"
17182         if test "X$thread_CFLAGS" != Xfailed; then
17183           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17184           if test "$cross_compiling" = yes; then
17185   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17186 See \`config.log' for more details." >&5
17187 echo "$as_me: error: cannot run test program while cross compiling
17188 See \`config.log' for more details." >&2;}
17189    { (exit 1); exit 1; }; }
17190 else
17191   cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h.  */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h.  */
17197 #include <pthread.h>
17198                 __thread int a;
17199                 static int *a_in_other_thread;
17200                 static void *
17201                 thread_func (void *arg)
17202                 {
17203                   a_in_other_thread = &a;
17204                   return (void *)0;
17205                 }
17206 int
17207 main ()
17208 {
17209 pthread_t thread;
17210                 void *thread_retval;
17211                 int *a_in_main_thread;
17212                 if (pthread_create (&thread, (pthread_attr_t *)0,
17213                                     thread_func, (void *)0))
17214                   return 0;
17215                 a_in_main_thread = &a;
17216                 if (pthread_join (thread, &thread_retval))
17217                   return 0;
17218                 return (a_in_other_thread == a_in_main_thread);
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest$ac_exeext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225   (eval $ac_link) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230   (eval $ac_try) 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; }; then
17234   gcc_cv_have_tls=yes
17235 else
17236   echo "$as_me: program exited with status $ac_status" >&5
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240 ( exit $ac_status )
17241 gcc_cv_have_tls=no
17242 fi
17243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17244 fi
17245           CFLAGS="$chktls_save_CFLAGS"
17246         fi
17247       fi
17248 else
17249   echo "$as_me: program exited with status $ac_status" >&5
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17252
17253 ( exit $ac_status )
17254 gcc_cv_have_tls=no
17255 fi
17256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17257 fi
17258 fi
17259 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17260 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17261   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17262
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_TLS 1
17265 _ACEOF
17266
17267   fi
17268
17269 # See what sort of export controls are availible.
17270
17271   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17272 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17273 if test "${have_attribute_visibility+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276
17277   save_CFLAGS="$CFLAGS"
17278   CFLAGS="$CFLAGS -Werror"
17279   cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h.  */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h.  */
17285 void __attribute__((visibility("hidden"))) foo(void) { }
17286 int
17287 main ()
17288 {
17289
17290   ;
17291   return 0;
17292 }
17293 _ACEOF
17294 rm -f conftest.$ac_objext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296   (eval $ac_compile) 2>conftest.er1
17297   ac_status=$?
17298   grep -v '^ *+' conftest.er1 >conftest.err
17299   rm -f conftest.er1
17300   cat conftest.err >&5
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); } &&
17303          { ac_try='test -z "$ac_c_werror_flag"
17304                          || test ! -s conftest.err'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; } &&
17310          { ac_try='test -s conftest.$ac_objext'
17311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312   (eval $ac_try) 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; }; then
17316   have_attribute_visibility=yes
17317 else
17318   echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17320
17321 have_attribute_visibility=no
17322 fi
17323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324   CFLAGS="$save_CFLAGS"
17325 fi
17326 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17327 echo "${ECHO_T}$have_attribute_visibility" >&6
17328   if test $have_attribute_visibility = yes; then
17329
17330 cat >>confdefs.h <<\_ACEOF
17331 #define HAVE_ATTRIBUTE_VISIBILITY 1
17332 _ACEOF
17333
17334   fi
17335
17336   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17337 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17338 if test "${have_attribute_dllexport+set}" = set; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341
17342   save_CFLAGS="$CFLAGS"
17343   CFLAGS="$CFLAGS -Werror"
17344   cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350 void __attribute__((dllexport)) foo(void) { }
17351 int
17352 main ()
17353 {
17354
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17361   (eval $ac_compile) 2>conftest.er1
17362   ac_status=$?
17363   grep -v '^ *+' conftest.er1 >conftest.err
17364   rm -f conftest.er1
17365   cat conftest.err >&5
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); } &&
17368          { ac_try='test -z "$ac_c_werror_flag"
17369                          || test ! -s conftest.err'
17370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371   (eval $ac_try) 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; } &&
17375          { ac_try='test -s conftest.$ac_objext'
17376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377   (eval $ac_try) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; }; then
17381   have_attribute_dllexport=yes
17382 else
17383   echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 have_attribute_dllexport=no
17387 fi
17388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17389   CFLAGS="$save_CFLAGS"
17390 fi
17391 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17392 echo "${ECHO_T}$have_attribute_dllexport" >&6
17393   if test $have_attribute_dllexport = yes; then
17394
17395 cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17397 _ACEOF
17398
17399   fi
17400
17401   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17402 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17403 if test "${have_attribute_alias+set}" = set; then
17404   echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406
17407   cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413
17414 void foo(void) { }
17415 extern void bar(void) __attribute__((alias("foo")));
17416 int
17417 main ()
17418 {
17419 bar();
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426   (eval $ac_link) 2>conftest.er1
17427   ac_status=$?
17428   grep -v '^ *+' conftest.er1 >conftest.err
17429   rm -f conftest.er1
17430   cat conftest.err >&5
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } &&
17433          { ac_try='test -z "$ac_c_werror_flag"
17434                          || test ! -s conftest.err'
17435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436   (eval $ac_try) 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); }; } &&
17440          { ac_try='test -s conftest$ac_exeext'
17441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442   (eval $ac_try) 2>&5
17443   ac_status=$?
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); }; }; then
17446   have_attribute_alias=yes
17447 else
17448   echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 have_attribute_alias=no
17452 fi
17453 rm -f conftest.err conftest.$ac_objext \
17454       conftest$ac_exeext conftest.$ac_ext
17455 fi
17456 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17457 echo "${ECHO_T}$have_attribute_alias" >&6
17458   if test $have_attribute_alias = yes; then
17459
17460 cat >>confdefs.h <<\_ACEOF
17461 #define HAVE_ATTRIBUTE_ALIAS 1
17462 _ACEOF
17463
17464   fi
17465
17466
17467 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17468 if test "${with_gnu_ld+set}" = set; then
17469   withval="$with_gnu_ld"
17470   test "$withval" = no || with_gnu_ld=yes
17471 else
17472   with_gnu_ld=no
17473 fi;
17474 ac_prog=ld
17475 if test "$GCC" = yes; then
17476   # Check if gcc -print-prog-name=ld gives a path.
17477   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17478 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17479   case $host in
17480   *-*-mingw*)
17481     # gcc leaves a trailing carriage return which upsets mingw
17482     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17483   *)
17484     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17485   esac
17486   case $ac_prog in
17487     # Accept absolute paths.
17488     [\\/]* | ?:[\\/]*)
17489       re_direlt='/[^/][^/]*/\.\./'
17490       # Canonicalize the pathname of ld
17491       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17492       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17493         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17494       done
17495       test -z "$LD" && LD="$ac_prog"
17496       ;;
17497   "")
17498     # If it fails, then pretend we aren't using GCC.
17499     ac_prog=ld
17500     ;;
17501   *)
17502     # If it is relative, then search for the first ld in PATH.
17503     with_gnu_ld=unknown
17504     ;;
17505   esac
17506 elif test "$with_gnu_ld" = yes; then
17507   echo "$as_me:$LINENO: checking for GNU ld" >&5
17508 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17509 else
17510   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17511 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17512 fi
17513 if test "${lt_cv_path_LD+set}" = set; then
17514   echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17516   if test -z "$LD"; then
17517   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17518   for ac_dir in $PATH; do
17519     IFS="$lt_save_ifs"
17520     test -z "$ac_dir" && ac_dir=.
17521     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17522       lt_cv_path_LD="$ac_dir/$ac_prog"
17523       # Check to see if the program is GNU ld.  I'd rather use --version,
17524       # but apparently some variants of GNU ld only accept -v.
17525       # Break only if it was the GNU/non-GNU ld that we prefer.
17526       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17527       *GNU* | *'with BFD'*)
17528         test "$with_gnu_ld" != no && break
17529         ;;
17530       *)
17531         test "$with_gnu_ld" != yes && break
17532         ;;
17533       esac
17534     fi
17535   done
17536   IFS="$lt_save_ifs"
17537 else
17538   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17539 fi
17540 fi
17541
17542 LD="$lt_cv_path_LD"
17543 if test -n "$LD"; then
17544   echo "$as_me:$LINENO: result: $LD" >&5
17545 echo "${ECHO_T}$LD" >&6
17546 else
17547   echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6
17549 fi
17550 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17551 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17552    { (exit 1); exit 1; }; }
17553 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17554 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17555 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17559 case `$LD -v 2>&1 </dev/null` in
17560 *GNU* | *'with BFD'*)
17561   lt_cv_prog_gnu_ld=yes
17562   ;;
17563 *)
17564   lt_cv_prog_gnu_ld=no
17565   ;;
17566 esac
17567 fi
17568 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17569 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17570 with_gnu_ld=$lt_cv_prog_gnu_ld
17571
17572
17573
17574
17575
17576
17577
17578   # If we're not using GNU ld, then there's no point in even trying these
17579   # tests.  Check for that first.  We should have already tested for gld
17580   # by now (in libtool), but require it now just to be safe...
17581   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17582   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17583
17584
17585
17586   # The name set by libtool depends on the version of libtool.  Shame on us
17587   # for depending on an impl detail, but c'est la vie.  Older versions used
17588   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17589   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17590   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
17591   # set (hence we're using an older libtool), then set it.
17592   if test x${with_gnu_ld+set} != xset; then
17593     if test x${ac_cv_prog_gnu_ld+set} != xset; then
17594       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
17595       with_gnu_ld=no
17596     else
17597       with_gnu_ld=$ac_cv_prog_gnu_ld
17598     fi
17599   fi
17600
17601   # Start by getting the version number.  I think the libtool test already
17602   # does some of this, but throws away the result.
17603
17604   ldver=`$LD --version 2>/dev/null | head -1 | \
17605          sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17606
17607   libgomp_gnu_ld_version=`echo $ldver | \
17608          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17609
17610   # Set --gc-sections.
17611   if test "$with_gnu_ld" = "notbroken"; then
17612     # GNU ld it is!  Joy and bunny rabbits!
17613
17614     # All these tests are for C++; save the language and the compiler flags.
17615     # Need to do this so that g++ won't try to link in libstdc++
17616     ac_test_CFLAGS="${CFLAGS+set}"
17617     ac_save_CFLAGS="$CFLAGS"
17618     CFLAGS='-x c++  -Wl,--gc-sections'
17619
17620     # Check for -Wl,--gc-sections
17621     # XXX This test is broken at the moment, as symbols required for linking
17622     # are now in libsupc++ (not built yet).  In addition, this test has
17623     # cored on solaris in the past.  In addition, --gc-sections doesn't
17624     # really work at the moment (keeps on discarding used sections, first
17625     # .eh_frame and now some of the glibc sections for iconv).
17626     # Bzzzzt.  Thanks for playing, maybe next time.
17627     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17628 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17629     if test "$cross_compiling" = yes; then
17630   ac_sectionLDflags=yes
17631 else
17632   cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h.  */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h.  */
17638
17639      int main(void)
17640      {
17641        try { throw 1; }
17642        catch (...) { };
17643        return 0;
17644      }
17645
17646 _ACEOF
17647 rm -f conftest$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649   (eval $ac_link) 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654   (eval $ac_try) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; }; then
17658   ac_sectionLDflags=yes
17659 else
17660   echo "$as_me: program exited with status $ac_status" >&5
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17663
17664 ( exit $ac_status )
17665 ac_sectionLDflags=no
17666 fi
17667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17668 fi
17669     if test "$ac_test_CFLAGS" = set; then
17670       CFLAGS="$ac_save_CFLAGS"
17671     else
17672       # this is the suspicious part
17673       CFLAGS=''
17674     fi
17675     if test "$ac_sectionLDflags" = "yes"; then
17676       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17677     fi
17678     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17679 echo "${ECHO_T}$ac_sectionLDflags" >&6
17680   fi
17681
17682   # Set linker optimization flags.
17683   if test x"$with_gnu_ld" = x"yes"; then
17684     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17685   fi
17686
17687
17688
17689
17690
17691
17692  # Check whether --enable-symvers or --disable-symvers was given.
17693 if test "${enable_symvers+set}" = set; then
17694   enableval="$enable_symvers"
17695
17696       case "$enableval" in
17697        yes|no|gnu) ;;
17698        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17699 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17700    { (exit 1); exit 1; }; } ;;
17701                           esac
17702
17703 else
17704   enable_symvers=yes
17705 fi;
17706
17707
17708 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17709 # don't know enough about $LD to do tricks...
17710
17711 # FIXME  The following test is too strict, in theory.
17712 if test $enable_shared = no ||
17713         test "x$LD" = x ||
17714         test x$libgomp_gnu_ld_version = x; then
17715   enable_symvers=no
17716 fi
17717
17718 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17719 if test $enable_symvers != no; then
17720   echo "$as_me:$LINENO: checking for shared libgcc" >&5
17721 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17722   ac_save_CFLAGS="$CFLAGS"
17723   CFLAGS=' -lgcc_s'
17724   cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730
17731 int
17732 main ()
17733 {
17734 return 0;
17735   ;
17736   return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext conftest$ac_exeext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741   (eval $ac_link) 2>conftest.er1
17742   ac_status=$?
17743   grep -v '^ *+' conftest.er1 >conftest.err
17744   rm -f conftest.er1
17745   cat conftest.err >&5
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } &&
17748          { ac_try='test -z "$ac_c_werror_flag"
17749                          || test ! -s conftest.err'
17750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751   (eval $ac_try) 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; } &&
17755          { ac_try='test -s conftest$ac_exeext'
17756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757   (eval $ac_try) 2>&5
17758   ac_status=$?
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); }; }; then
17761   libgomp_shared_libgcc=yes
17762 else
17763   echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17765
17766 libgomp_shared_libgcc=no
17767 fi
17768 rm -f conftest.err conftest.$ac_objext \
17769       conftest$ac_exeext conftest.$ac_ext
17770   CFLAGS="$ac_save_CFLAGS"
17771   if test $libgomp_shared_libgcc = no; then
17772     cat > conftest.c <<EOF
17773 int main (void) { return 0; }
17774 EOF
17775     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17776                              -shared -shared-libgcc -o conftest.so \
17777                              conftest.c -v 2>&1 >/dev/null \
17778                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17779     rm -f conftest.c conftest.so
17780     if test x${libgomp_libgcc_s_suffix+set} = xset; then
17781       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17782       cat >conftest.$ac_ext <<_ACEOF
17783 /* confdefs.h.  */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h.  */
17788
17789 int
17790 main ()
17791 {
17792 return 0;
17793   ;
17794   return 0;
17795 }
17796 _ACEOF
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17799   (eval $ac_link) 2>conftest.er1
17800   ac_status=$?
17801   grep -v '^ *+' conftest.er1 >conftest.err
17802   rm -f conftest.er1
17803   cat conftest.err >&5
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); } &&
17806          { ac_try='test -z "$ac_c_werror_flag"
17807                          || test ! -s conftest.err'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; } &&
17813          { ac_try='test -s conftest$ac_exeext'
17814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815   (eval $ac_try) 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; }; then
17819   libgomp_shared_libgcc=yes
17820 else
17821   echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824 fi
17825 rm -f conftest.err conftest.$ac_objext \
17826       conftest$ac_exeext conftest.$ac_ext
17827       CFLAGS="$ac_save_CFLAGS"
17828     fi
17829   fi
17830   echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17831 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17832 fi
17833
17834 # For GNU ld, we need at least this version.  The format is described in
17835 # LIBGOMP_CHECK_LINKER_FEATURES above.
17836 libgomp_min_gnu_ld_version=21400
17837 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17838
17839 # Check to see if unspecified "yes" value can win, given results above.
17840 # Change "yes" into either "no" or a style name.
17841 if test $enable_symvers = yes; then
17842   if test $with_gnu_ld = yes &&
17843      test $libgomp_shared_libgcc = yes;
17844   then
17845     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17846       enable_symvers=gnu
17847     else
17848       # The right tools, the right setup, but too old.  Fallbacks?
17849       { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17850 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17851       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17852 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17853       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17854 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17855       { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17856 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17857       if test $libgomp_gnu_ld_version -ge 21200 ; then
17858         # Globbing fix is present, proper block support is not.
17859                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17860 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17861         enable_symvers=no
17862       else
17863         # 2.11 or older.
17864         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17865 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17866         enable_symvers=no
17867       fi
17868     fi
17869   else
17870     # just fail for now
17871     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17872 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17873     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17874 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17875     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17876 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17877     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17878 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17879     enable_symvers=no
17880   fi
17881 fi
17882
17883
17884
17885 if test $enable_symvers != no; then
17886   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17887   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17888 else
17889   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17890   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17891 fi
17892
17893 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17894 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17895
17896
17897 # Get target configury.
17898 . ${srcdir}/configure.tgt
17899 CFLAGS="$save_CFLAGS $XCFLAGS"
17900
17901 # Check for __sync_val_compare_and_swap, but only after the target has
17902 # had a chance to set XCFLAGS.
17903
17904   echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17905 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17906 if test "${have_sync_builtins+set}" = set; then
17907   echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909
17910   cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916
17917 int
17918 main ()
17919 {
17920 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17921   ;
17922   return 0;
17923 }
17924 _ACEOF
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17927   (eval $ac_link) 2>conftest.er1
17928   ac_status=$?
17929   grep -v '^ *+' conftest.er1 >conftest.err
17930   rm -f conftest.er1
17931   cat conftest.err >&5
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); } &&
17934          { ac_try='test -z "$ac_c_werror_flag"
17935                          || test ! -s conftest.err'
17936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937   (eval $ac_try) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); }; } &&
17941          { ac_try='test -s conftest$ac_exeext'
17942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943   (eval $ac_try) 2>&5
17944   ac_status=$?
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); }; }; then
17947   have_sync_builtins=yes
17948 else
17949   echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17951
17952 have_sync_builtins=no
17953 fi
17954 rm -f conftest.err conftest.$ac_objext \
17955       conftest$ac_exeext conftest.$ac_ext
17956 fi
17957 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
17958 echo "${ECHO_T}$have_sync_builtins" >&6
17959   if test $have_sync_builtins = yes; then
17960
17961 cat >>confdefs.h <<\_ACEOF
17962 #define HAVE_SYNC_BUILTINS 1
17963 _ACEOF
17964
17965   fi
17966
17967 XCFLAGS="$XCFLAGS$XPCFLAGS"
17968
17969
17970
17971
17972
17973 # Cleanup and exit.
17974 CFLAGS="$save_CFLAGS"
17975 cat >confcache <<\_ACEOF
17976 # This file is a shell script that caches the results of configure
17977 # tests run on this system so they can be shared between configure
17978 # scripts and configure runs, see configure's option --config-cache.
17979 # It is not useful on other systems.  If it contains results you don't
17980 # want to keep, you may remove or edit it.
17981 #
17982 # config.status only pays attention to the cache file if you give it
17983 # the --recheck option to rerun configure.
17984 #
17985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17987 # following values.
17988
17989 _ACEOF
17990
17991 # The following way of writing the cache mishandles newlines in values,
17992 # but we know of no workaround that is simple, portable, and efficient.
17993 # So, don't put newlines in cache variables' values.
17994 # Ultrix sh set writes to stderr and can't be redirected directly,
17995 # and sets the high bit in the cache file unless we assign to the vars.
17996 {
17997   (set) 2>&1 |
17998     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17999     *ac_space=\ *)
18000       # `set' does not quote correctly, so add quotes (double-quote
18001       # substitution turns \\\\ into \\, and sed turns \\ into \).
18002       sed -n \
18003         "s/'/'\\\\''/g;
18004           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18005       ;;
18006     *)
18007       # `set' quotes correctly as required by POSIX, so do not add quotes.
18008       sed -n \
18009         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18010       ;;
18011     esac;
18012 } |
18013   sed '
18014      t clear
18015      : clear
18016      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18017      t end
18018      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18019      : end' >>confcache
18020 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18021   if test -w $cache_file; then
18022     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18023     cat confcache >$cache_file
18024   else
18025     echo "not updating unwritable cache $cache_file"
18026   fi
18027 fi
18028 rm -f confcache
18029
18030 if test ${multilib} = yes; then
18031   multilib_arg="--enable-multilib"
18032 else
18033   multilib_arg=
18034 fi
18035
18036 # Set up the set of libraries that we need to link against for libgomp.
18037 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18038 # which will force linkage against -lpthread (or equivalent for the system).
18039 # That's not 100% ideal, but about the best we can do easily.
18040 if test $enable_shared = yes; then
18041   link_gomp="-lgomp %{static: $LIBS}"
18042 else
18043   link_gomp="-lgomp $LIBS"
18044 fi
18045
18046
18047
18048
18049 if test "$ac_cv_fc_compiler_gnu" = yes; then
18050   USE_FORTRAN_TRUE=
18051   USE_FORTRAN_FALSE='#'
18052 else
18053   USE_FORTRAN_TRUE='#'
18054   USE_FORTRAN_FALSE=
18055 fi
18056
18057
18058 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18059 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
18060 # the underscore here and update the PREREQ.  If it doesn't, then we'll
18061 # need to copy this macro to our acinclude.m4.
18062 save_CFLAGS="$CFLAGS"
18063 for i in $config_path; do
18064   if test -f $srcdir/config/$i/omp-lock.h; then
18065     CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18066     break
18067   fi
18068 done
18069
18070 if test "$cross_compiling" = yes; then
18071   # Depending upon the size, compute the lo and hi bounds.
18072 cat >conftest.$ac_ext <<_ACEOF
18073 /* confdefs.h.  */
18074 _ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h.  */
18078
18079 int
18080 main ()
18081 {
18082 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18083 test_array [0] = 0
18084
18085   ;
18086   return 0;
18087 }
18088 _ACEOF
18089 rm -f conftest.$ac_objext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18091   (eval $ac_compile) 2>conftest.er1
18092   ac_status=$?
18093   grep -v '^ *+' conftest.er1 >conftest.err
18094   rm -f conftest.er1
18095   cat conftest.err >&5
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); } &&
18098          { ac_try='test -z "$ac_c_werror_flag"
18099                          || test ! -s conftest.err'
18100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101   (eval $ac_try) 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; } &&
18105          { ac_try='test -s conftest.$ac_objext'
18106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107   (eval $ac_try) 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); }; }; then
18111   ac_lo=0 ac_mid=0
18112   while :; do
18113     cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h.  */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h.  */
18119
18120 int
18121 main ()
18122 {
18123 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18124 test_array [0] = 0
18125
18126   ;
18127   return 0;
18128 }
18129 _ACEOF
18130 rm -f conftest.$ac_objext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132   (eval $ac_compile) 2>conftest.er1
18133   ac_status=$?
18134   grep -v '^ *+' conftest.er1 >conftest.err
18135   rm -f conftest.er1
18136   cat conftest.err >&5
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); } &&
18139          { ac_try='test -z "$ac_c_werror_flag"
18140                          || test ! -s conftest.err'
18141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142   (eval $ac_try) 2>&5
18143   ac_status=$?
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); }; } &&
18146          { ac_try='test -s conftest.$ac_objext'
18147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148   (eval $ac_try) 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); }; }; then
18152   ac_hi=$ac_mid; break
18153 else
18154   echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18156
18157 ac_lo=`expr $ac_mid + 1`
18158                     if test $ac_lo -le $ac_mid; then
18159                       ac_lo= ac_hi=
18160                       break
18161                     fi
18162                     ac_mid=`expr 2 '*' $ac_mid + 1`
18163 fi
18164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18165   done
18166 else
18167   echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176
18177 int
18178 main ()
18179 {
18180 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18181 test_array [0] = 0
18182
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext
18188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189   (eval $ac_compile) 2>conftest.er1
18190   ac_status=$?
18191   grep -v '^ *+' conftest.er1 >conftest.err
18192   rm -f conftest.er1
18193   cat conftest.err >&5
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); } &&
18196          { ac_try='test -z "$ac_c_werror_flag"
18197                          || test ! -s conftest.err'
18198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199   (eval $ac_try) 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; } &&
18203          { ac_try='test -s conftest.$ac_objext'
18204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205   (eval $ac_try) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); }; }; then
18209   ac_hi=-1 ac_mid=-1
18210   while :; do
18211     cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h.  */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h.  */
18217
18218 int
18219 main ()
18220 {
18221 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18222 test_array [0] = 0
18223
18224   ;
18225   return 0;
18226 }
18227 _ACEOF
18228 rm -f conftest.$ac_objext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230   (eval $ac_compile) 2>conftest.er1
18231   ac_status=$?
18232   grep -v '^ *+' conftest.er1 >conftest.err
18233   rm -f conftest.er1
18234   cat conftest.err >&5
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); } &&
18237          { ac_try='test -z "$ac_c_werror_flag"
18238                          || test ! -s conftest.err'
18239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240   (eval $ac_try) 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; } &&
18244          { ac_try='test -s conftest.$ac_objext'
18245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246   (eval $ac_try) 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; }; then
18250   ac_lo=$ac_mid; break
18251 else
18252   echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255 ac_hi=`expr '(' $ac_mid ')' - 1`
18256                        if test $ac_mid -le $ac_hi; then
18257                          ac_lo= ac_hi=
18258                          break
18259                        fi
18260                        ac_mid=`expr 2 '*' $ac_mid`
18261 fi
18262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18263   done
18264 else
18265   echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18267
18268 ac_lo= ac_hi=
18269 fi
18270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18271 fi
18272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18273 # Binary search between lo and hi bounds.
18274 while test "x$ac_lo" != "x$ac_hi"; do
18275   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18276   cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h.  */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h.  */
18282
18283 int
18284 main ()
18285 {
18286 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18287 test_array [0] = 0
18288
18289   ;
18290   return 0;
18291 }
18292 _ACEOF
18293 rm -f conftest.$ac_objext
18294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18295   (eval $ac_compile) 2>conftest.er1
18296   ac_status=$?
18297   grep -v '^ *+' conftest.er1 >conftest.err
18298   rm -f conftest.er1
18299   cat conftest.err >&5
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); } &&
18302          { ac_try='test -z "$ac_c_werror_flag"
18303                          || test ! -s conftest.err'
18304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305   (eval $ac_try) 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; } &&
18309          { ac_try='test -s conftest.$ac_objext'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; }; then
18315   ac_hi=$ac_mid
18316 else
18317   echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 ac_lo=`expr '(' $ac_mid ')' + 1`
18321 fi
18322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18323 done
18324 case $ac_lo in
18325 ?*) OMP_LOCK_SIZE=$ac_lo;;
18326 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18327 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18328    { (exit 1); exit 1; }; } ;;
18329 esac
18330 else
18331   if test "$cross_compiling" = yes; then
18332   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18333 See \`config.log' for more details." >&5
18334 echo "$as_me: error: cannot run test program while cross compiling
18335 See \`config.log' for more details." >&2;}
18336    { (exit 1); exit 1; }; }
18337 else
18338   cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344
18345 long longval () { return sizeof (omp_lock_t); }
18346 unsigned long ulongval () { return sizeof (omp_lock_t); }
18347 #include <stdio.h>
18348 #include <stdlib.h>
18349 int
18350 main ()
18351 {
18352
18353   FILE *f = fopen ("conftest.val", "w");
18354   if (! f)
18355     exit (1);
18356   if ((sizeof (omp_lock_t)) < 0)
18357     {
18358       long i = longval ();
18359       if (i != (sizeof (omp_lock_t)))
18360         exit (1);
18361       fprintf (f, "%ld\n", i);
18362     }
18363   else
18364     {
18365       unsigned long i = ulongval ();
18366       if (i != (sizeof (omp_lock_t)))
18367         exit (1);
18368       fprintf (f, "%lu\n", i);
18369     }
18370   exit (ferror (f) || fclose (f) != 0);
18371
18372   ;
18373   return 0;
18374 }
18375 _ACEOF
18376 rm -f conftest$ac_exeext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378   (eval $ac_link) 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383   (eval $ac_try) 2>&5
18384   ac_status=$?
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); }; }; then
18387   OMP_LOCK_SIZE=`cat conftest.val`
18388 else
18389   echo "$as_me: program exited with status $ac_status" >&5
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18392
18393 ( exit $ac_status )
18394 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18395 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18396    { (exit 1); exit 1; }; }
18397 fi
18398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18399 fi
18400 fi
18401 rm -f conftest.val
18402 if test "$cross_compiling" = yes; then
18403   # Depending upon the size, compute the lo and hi bounds.
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h.  */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h.  */
18410
18411 int
18412 main ()
18413 {
18414 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18415 test_array [0] = 0
18416
18417   ;
18418   return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest.$ac_objext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423   (eval $ac_compile) 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } &&
18430          { ac_try='test -z "$ac_c_werror_flag"
18431                          || test ! -s conftest.err'
18432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433   (eval $ac_try) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; } &&
18437          { ac_try='test -s conftest.$ac_objext'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   ac_lo=0 ac_mid=0
18444   while :; do
18445     cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h.  */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h.  */
18451
18452 int
18453 main ()
18454 {
18455 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18456 test_array [0] = 0
18457
18458   ;
18459   return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464   (eval $ac_compile) 2>conftest.er1
18465   ac_status=$?
18466   grep -v '^ *+' conftest.er1 >conftest.err
18467   rm -f conftest.er1
18468   cat conftest.err >&5
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); } &&
18471          { ac_try='test -z "$ac_c_werror_flag"
18472                          || test ! -s conftest.err'
18473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474   (eval $ac_try) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; } &&
18478          { ac_try='test -s conftest.$ac_objext'
18479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480   (eval $ac_try) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; }; then
18484   ac_hi=$ac_mid; break
18485 else
18486   echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18488
18489 ac_lo=`expr $ac_mid + 1`
18490                     if test $ac_lo -le $ac_mid; then
18491                       ac_lo= ac_hi=
18492                       break
18493                     fi
18494                     ac_mid=`expr 2 '*' $ac_mid + 1`
18495 fi
18496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18497   done
18498 else
18499   echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18501
18502 cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h.  */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h.  */
18508
18509 int
18510 main ()
18511 {
18512 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18513 test_array [0] = 0
18514
18515   ;
18516   return 0;
18517 }
18518 _ACEOF
18519 rm -f conftest.$ac_objext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521   (eval $ac_compile) 2>conftest.er1
18522   ac_status=$?
18523   grep -v '^ *+' conftest.er1 >conftest.err
18524   rm -f conftest.er1
18525   cat conftest.err >&5
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); } &&
18528          { ac_try='test -z "$ac_c_werror_flag"
18529                          || test ! -s conftest.err'
18530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531   (eval $ac_try) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest.$ac_objext'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_hi=-1 ac_mid=-1
18542   while :; do
18543     cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h.  */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h.  */
18549
18550 int
18551 main ()
18552 {
18553 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18554 test_array [0] = 0
18555
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562   (eval $ac_compile) 2>conftest.er1
18563   ac_status=$?
18564   grep -v '^ *+' conftest.er1 >conftest.err
18565   rm -f conftest.er1
18566   cat conftest.err >&5
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); } &&
18569          { ac_try='test -z "$ac_c_werror_flag"
18570                          || test ! -s conftest.err'
18571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572   (eval $ac_try) 2>&5
18573   ac_status=$?
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); }; } &&
18576          { ac_try='test -s conftest.$ac_objext'
18577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578   (eval $ac_try) 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; }; then
18582   ac_lo=$ac_mid; break
18583 else
18584   echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18586
18587 ac_hi=`expr '(' $ac_mid ')' - 1`
18588                        if test $ac_mid -le $ac_hi; then
18589                          ac_lo= ac_hi=
18590                          break
18591                        fi
18592                        ac_mid=`expr 2 '*' $ac_mid`
18593 fi
18594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18595   done
18596 else
18597   echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18599
18600 ac_lo= ac_hi=
18601 fi
18602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18603 fi
18604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18605 # Binary search between lo and hi bounds.
18606 while test "x$ac_lo" != "x$ac_hi"; do
18607   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18608   cat >conftest.$ac_ext <<_ACEOF
18609 /* confdefs.h.  */
18610 _ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h.  */
18614
18615 int
18616 main ()
18617 {
18618 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18619 test_array [0] = 0
18620
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627   (eval $ac_compile) 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } &&
18634          { ac_try='test -z "$ac_c_werror_flag"
18635                          || test ! -s conftest.err'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; } &&
18641          { ac_try='test -s conftest.$ac_objext'
18642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643   (eval $ac_try) 2>&5
18644   ac_status=$?
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); }; }; then
18647   ac_hi=$ac_mid
18648 else
18649   echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 ac_lo=`expr '(' $ac_mid ')' + 1`
18653 fi
18654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18655 done
18656 case $ac_lo in
18657 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18658 '')  ;;
18659 esac
18660 else
18661   if test "$cross_compiling" = yes; then
18662   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18663 See \`config.log' for more details." >&5
18664 echo "$as_me: error: cannot run test program while cross compiling
18665 See \`config.log' for more details." >&2;}
18666    { (exit 1); exit 1; }; }
18667 else
18668   cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674
18675 long longval () { return __alignof (omp_lock_t); }
18676 unsigned long ulongval () { return __alignof (omp_lock_t); }
18677 #include <stdio.h>
18678 #include <stdlib.h>
18679 int
18680 main ()
18681 {
18682
18683   FILE *f = fopen ("conftest.val", "w");
18684   if (! f)
18685     exit (1);
18686   if ((__alignof (omp_lock_t)) < 0)
18687     {
18688       long i = longval ();
18689       if (i != (__alignof (omp_lock_t)))
18690         exit (1);
18691       fprintf (f, "%ld\n", i);
18692     }
18693   else
18694     {
18695       unsigned long i = ulongval ();
18696       if (i != (__alignof (omp_lock_t)))
18697         exit (1);
18698       fprintf (f, "%lu\n", i);
18699     }
18700   exit (ferror (f) || fclose (f) != 0);
18701
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 rm -f conftest$ac_exeext
18707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18708   (eval $ac_link) 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713   (eval $ac_try) 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; }; then
18717   OMP_LOCK_ALIGN=`cat conftest.val`
18718 else
18719   echo "$as_me: program exited with status $ac_status" >&5
18720 echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18722
18723 fi
18724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18725 fi
18726 fi
18727 rm -f conftest.val
18728 if test "$cross_compiling" = yes; then
18729   # Depending upon the size, compute the lo and hi bounds.
18730 cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h.  */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h.  */
18736
18737 int
18738 main ()
18739 {
18740 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18741 test_array [0] = 0
18742
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 rm -f conftest.$ac_objext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18749   (eval $ac_compile) 2>conftest.er1
18750   ac_status=$?
18751   grep -v '^ *+' conftest.er1 >conftest.err
18752   rm -f conftest.er1
18753   cat conftest.err >&5
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); } &&
18756          { ac_try='test -z "$ac_c_werror_flag"
18757                          || test ! -s conftest.err'
18758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759   (eval $ac_try) 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; } &&
18763          { ac_try='test -s conftest.$ac_objext'
18764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765   (eval $ac_try) 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; }; then
18769   ac_lo=0 ac_mid=0
18770   while :; do
18771     cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h.  */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h.  */
18777
18778 int
18779 main ()
18780 {
18781 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18782 test_array [0] = 0
18783
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790   (eval $ac_compile) 2>conftest.er1
18791   ac_status=$?
18792   grep -v '^ *+' conftest.er1 >conftest.err
18793   rm -f conftest.er1
18794   cat conftest.err >&5
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); } &&
18797          { ac_try='test -z "$ac_c_werror_flag"
18798                          || test ! -s conftest.err'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; } &&
18804          { ac_try='test -s conftest.$ac_objext'
18805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806   (eval $ac_try) 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; }; then
18810   ac_hi=$ac_mid; break
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ac_lo=`expr $ac_mid + 1`
18816                     if test $ac_lo -le $ac_mid; then
18817                       ac_lo= ac_hi=
18818                       break
18819                     fi
18820                     ac_mid=`expr 2 '*' $ac_mid + 1`
18821 fi
18822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18823   done
18824 else
18825   echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18827
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h.  */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h.  */
18834
18835 int
18836 main ()
18837 {
18838 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18839 test_array [0] = 0
18840
18841   ;
18842   return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext
18846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847   (eval $ac_compile) 2>conftest.er1
18848   ac_status=$?
18849   grep -v '^ *+' conftest.er1 >conftest.err
18850   rm -f conftest.er1
18851   cat conftest.err >&5
18852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); } &&
18854          { ac_try='test -z "$ac_c_werror_flag"
18855                          || test ! -s conftest.err'
18856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857   (eval $ac_try) 2>&5
18858   ac_status=$?
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); }; } &&
18861          { ac_try='test -s conftest.$ac_objext'
18862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863   (eval $ac_try) 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; }; then
18867   ac_hi=-1 ac_mid=-1
18868   while :; do
18869     cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875
18876 int
18877 main ()
18878 {
18879 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18880 test_array [0] = 0
18881
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext
18887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888   (eval $ac_compile) 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } &&
18895          { ac_try='test -z "$ac_c_werror_flag"
18896                          || test ! -s conftest.err'
18897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898   (eval $ac_try) 2>&5
18899   ac_status=$?
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); }; } &&
18902          { ac_try='test -s conftest.$ac_objext'
18903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904   (eval $ac_try) 2>&5
18905   ac_status=$?
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); }; }; then
18908   ac_lo=$ac_mid; break
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913 ac_hi=`expr '(' $ac_mid ')' - 1`
18914                        if test $ac_mid -le $ac_hi; then
18915                          ac_lo= ac_hi=
18916                          break
18917                        fi
18918                        ac_mid=`expr 2 '*' $ac_mid`
18919 fi
18920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18921   done
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926 ac_lo= ac_hi=
18927 fi
18928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18929 fi
18930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18931 # Binary search between lo and hi bounds.
18932 while test "x$ac_lo" != "x$ac_hi"; do
18933   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18934   cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h.  */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h.  */
18940
18941 int
18942 main ()
18943 {
18944 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18945 test_array [0] = 0
18946
18947   ;
18948   return 0;
18949 }
18950 _ACEOF
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953   (eval $ac_compile) 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } &&
18960          { ac_try='test -z "$ac_c_werror_flag"
18961                          || test ! -s conftest.err'
18962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963   (eval $ac_try) 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; } &&
18967          { ac_try='test -s conftest.$ac_objext'
18968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969   (eval $ac_try) 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; }; then
18973   ac_hi=$ac_mid
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978 ac_lo=`expr '(' $ac_mid ')' + 1`
18979 fi
18980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981 done
18982 case $ac_lo in
18983 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
18984 '')  ;;
18985 esac
18986 else
18987   if test "$cross_compiling" = yes; then
18988   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18989 See \`config.log' for more details." >&5
18990 echo "$as_me: error: cannot run test program while cross compiling
18991 See \`config.log' for more details." >&2;}
18992    { (exit 1); exit 1; }; }
18993 else
18994   cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 long longval () { return sizeof (omp_nest_lock_t); }
19002 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19003 #include <stdio.h>
19004 #include <stdlib.h>
19005 int
19006 main ()
19007 {
19008
19009   FILE *f = fopen ("conftest.val", "w");
19010   if (! f)
19011     exit (1);
19012   if ((sizeof (omp_nest_lock_t)) < 0)
19013     {
19014       long i = longval ();
19015       if (i != (sizeof (omp_nest_lock_t)))
19016         exit (1);
19017       fprintf (f, "%ld\n", i);
19018     }
19019   else
19020     {
19021       unsigned long i = ulongval ();
19022       if (i != (sizeof (omp_nest_lock_t)))
19023         exit (1);
19024       fprintf (f, "%lu\n", i);
19025     }
19026   exit (ferror (f) || fclose (f) != 0);
19027
19028   ;
19029   return 0;
19030 }
19031 _ACEOF
19032 rm -f conftest$ac_exeext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19034   (eval $ac_link) 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039   (eval $ac_try) 2>&5
19040   ac_status=$?
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); }; }; then
19043   OMP_NEST_LOCK_SIZE=`cat conftest.val`
19044 else
19045   echo "$as_me: program exited with status $ac_status" >&5
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19048
19049 fi
19050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19051 fi
19052 fi
19053 rm -f conftest.val
19054 if test "$cross_compiling" = yes; then
19055   # Depending upon the size, compute the lo and hi bounds.
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h.  */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h.  */
19062
19063 int
19064 main ()
19065 {
19066 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19067 test_array [0] = 0
19068
19069   ;
19070   return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19075   (eval $ac_compile) 2>conftest.er1
19076   ac_status=$?
19077   grep -v '^ *+' conftest.er1 >conftest.err
19078   rm -f conftest.er1
19079   cat conftest.err >&5
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); } &&
19082          { ac_try='test -z "$ac_c_werror_flag"
19083                          || test ! -s conftest.err'
19084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085   (eval $ac_try) 2>&5
19086   ac_status=$?
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); }; } &&
19089          { ac_try='test -s conftest.$ac_objext'
19090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091   (eval $ac_try) 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   ac_lo=0 ac_mid=0
19096   while :; do
19097     cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h.  */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h.  */
19103
19104 int
19105 main ()
19106 {
19107 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19108 test_array [0] = 0
19109
19110   ;
19111   return 0;
19112 }
19113 _ACEOF
19114 rm -f conftest.$ac_objext
19115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19116   (eval $ac_compile) 2>conftest.er1
19117   ac_status=$?
19118   grep -v '^ *+' conftest.er1 >conftest.err
19119   rm -f conftest.er1
19120   cat conftest.err >&5
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); } &&
19123          { ac_try='test -z "$ac_c_werror_flag"
19124                          || test ! -s conftest.err'
19125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126   (eval $ac_try) 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; } &&
19130          { ac_try='test -s conftest.$ac_objext'
19131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132   (eval $ac_try) 2>&5
19133   ac_status=$?
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); }; }; then
19136   ac_hi=$ac_mid; break
19137 else
19138   echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19140
19141 ac_lo=`expr $ac_mid + 1`
19142                     if test $ac_lo -le $ac_mid; then
19143                       ac_lo= ac_hi=
19144                       break
19145                     fi
19146                     ac_mid=`expr 2 '*' $ac_mid + 1`
19147 fi
19148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19149   done
19150 else
19151   echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160
19161 int
19162 main ()
19163 {
19164 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19165 test_array [0] = 0
19166
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 rm -f conftest.$ac_objext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19173   (eval $ac_compile) 2>conftest.er1
19174   ac_status=$?
19175   grep -v '^ *+' conftest.er1 >conftest.err
19176   rm -f conftest.er1
19177   cat conftest.err >&5
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); } &&
19180          { ac_try='test -z "$ac_c_werror_flag"
19181                          || test ! -s conftest.err'
19182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183   (eval $ac_try) 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; } &&
19187          { ac_try='test -s conftest.$ac_objext'
19188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189   (eval $ac_try) 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); }; }; then
19193   ac_hi=-1 ac_mid=-1
19194   while :; do
19195     cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h.  */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h.  */
19201
19202 int
19203 main ()
19204 {
19205 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19206 test_array [0] = 0
19207
19208   ;
19209   return 0;
19210 }
19211 _ACEOF
19212 rm -f conftest.$ac_objext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19214   (eval $ac_compile) 2>conftest.er1
19215   ac_status=$?
19216   grep -v '^ *+' conftest.er1 >conftest.err
19217   rm -f conftest.er1
19218   cat conftest.err >&5
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); } &&
19221          { ac_try='test -z "$ac_c_werror_flag"
19222                          || test ! -s conftest.err'
19223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224   (eval $ac_try) 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; } &&
19228          { ac_try='test -s conftest.$ac_objext'
19229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230   (eval $ac_try) 2>&5
19231   ac_status=$?
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); }; }; then
19234   ac_lo=$ac_mid; break
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239 ac_hi=`expr '(' $ac_mid ')' - 1`
19240                        if test $ac_mid -le $ac_hi; then
19241                          ac_lo= ac_hi=
19242                          break
19243                        fi
19244                        ac_mid=`expr 2 '*' $ac_mid`
19245 fi
19246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19247   done
19248 else
19249   echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19251
19252 ac_lo= ac_hi=
19253 fi
19254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19255 fi
19256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19257 # Binary search between lo and hi bounds.
19258 while test "x$ac_lo" != "x$ac_hi"; do
19259   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19260   cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266
19267 int
19268 main ()
19269 {
19270 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19271 test_array [0] = 0
19272
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext
19278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19279   (eval $ac_compile) 2>conftest.er1
19280   ac_status=$?
19281   grep -v '^ *+' conftest.er1 >conftest.err
19282   rm -f conftest.er1
19283   cat conftest.err >&5
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); } &&
19286          { ac_try='test -z "$ac_c_werror_flag"
19287                          || test ! -s conftest.err'
19288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289   (eval $ac_try) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; } &&
19293          { ac_try='test -s conftest.$ac_objext'
19294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295   (eval $ac_try) 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   ac_hi=$ac_mid
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 ac_lo=`expr '(' $ac_mid ')' + 1`
19305 fi
19306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19307 done
19308 case $ac_lo in
19309 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19310 '')  ;;
19311 esac
19312 else
19313   if test "$cross_compiling" = yes; then
19314   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19315 See \`config.log' for more details." >&5
19316 echo "$as_me: error: cannot run test program while cross compiling
19317 See \`config.log' for more details." >&2;}
19318    { (exit 1); exit 1; }; }
19319 else
19320   cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326
19327 long longval () { return __alignof (omp_nest_lock_t); }
19328 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19329 #include <stdio.h>
19330 #include <stdlib.h>
19331 int
19332 main ()
19333 {
19334
19335   FILE *f = fopen ("conftest.val", "w");
19336   if (! f)
19337     exit (1);
19338   if ((__alignof (omp_nest_lock_t)) < 0)
19339     {
19340       long i = longval ();
19341       if (i != (__alignof (omp_nest_lock_t)))
19342         exit (1);
19343       fprintf (f, "%ld\n", i);
19344     }
19345   else
19346     {
19347       unsigned long i = ulongval ();
19348       if (i != (__alignof (omp_nest_lock_t)))
19349         exit (1);
19350       fprintf (f, "%lu\n", i);
19351     }
19352   exit (ferror (f) || fclose (f) != 0);
19353
19354   ;
19355   return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest$ac_exeext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360   (eval $ac_link) 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365   (eval $ac_try) 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; }; then
19369   OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19370 else
19371   echo "$as_me: program exited with status $ac_status" >&5
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 fi
19376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19377 fi
19378 fi
19379 rm -f conftest.val
19380
19381 # If the lock fits in an integer, then arrange for Fortran to use that
19382 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
19383 # Except that we don't have a way at present to multi-lib the installed
19384 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19385 # actual target.
19386 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19387 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19388 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19389   OMP_LOCK_KIND=8
19390 fi
19391 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19392   OMP_NEST_LOCK_KIND=8
19393 fi
19394
19395
19396
19397
19398
19399
19400
19401 CFLAGS="$save_CFLAGS"
19402
19403                                         ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19404
19405                               ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19406
19407 cat >confcache <<\_ACEOF
19408 # This file is a shell script that caches the results of configure
19409 # tests run on this system so they can be shared between configure
19410 # scripts and configure runs, see configure's option --config-cache.
19411 # It is not useful on other systems.  If it contains results you don't
19412 # want to keep, you may remove or edit it.
19413 #
19414 # config.status only pays attention to the cache file if you give it
19415 # the --recheck option to rerun configure.
19416 #
19417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19419 # following values.
19420
19421 _ACEOF
19422
19423 # The following way of writing the cache mishandles newlines in values,
19424 # but we know of no workaround that is simple, portable, and efficient.
19425 # So, don't put newlines in cache variables' values.
19426 # Ultrix sh set writes to stderr and can't be redirected directly,
19427 # and sets the high bit in the cache file unless we assign to the vars.
19428 {
19429   (set) 2>&1 |
19430     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19431     *ac_space=\ *)
19432       # `set' does not quote correctly, so add quotes (double-quote
19433       # substitution turns \\\\ into \\, and sed turns \\ into \).
19434       sed -n \
19435         "s/'/'\\\\''/g;
19436           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19437       ;;
19438     *)
19439       # `set' quotes correctly as required by POSIX, so do not add quotes.
19440       sed -n \
19441         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19442       ;;
19443     esac;
19444 } |
19445   sed '
19446      t clear
19447      : clear
19448      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19449      t end
19450      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19451      : end' >>confcache
19452 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19453   if test -w $cache_file; then
19454     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19455     cat confcache >$cache_file
19456   else
19457     echo "not updating unwritable cache $cache_file"
19458   fi
19459 fi
19460 rm -f confcache
19461
19462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19463 # Let make expand exec_prefix.
19464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19465
19466 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19467 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19468 # trailing colons and then remove the whole line if VPATH becomes empty
19469 # (actually we leave an empty line to preserve line numbers).
19470 if test "x$srcdir" = x.; then
19471   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19472 s/:*\$(srcdir):*/:/;
19473 s/:*\${srcdir}:*/:/;
19474 s/:*@srcdir@:*/:/;
19475 s/^\([^=]*=[     ]*\):*/\1/;
19476 s/:*$//;
19477 s/^[^=]*=[       ]*$//;
19478 }'
19479 fi
19480
19481 DEFS=-DHAVE_CONFIG_H
19482
19483 ac_libobjs=
19484 ac_ltlibobjs=
19485 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19486   # 1. Remove the extension, and $U if already installed.
19487   ac_i=`echo "$ac_i" |
19488          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19489   # 2. Add them.
19490   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19491   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19492 done
19493 LIBOBJS=$ac_libobjs
19494
19495 LTLIBOBJS=$ac_ltlibobjs
19496
19497
19498 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19499   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19500 Usually this means the macro was only invoked conditionally." >&5
19501 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19502 Usually this means the macro was only invoked conditionally." >&2;}
19503    { (exit 1); exit 1; }; }
19504 fi
19505 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19506   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19507 Usually this means the macro was only invoked conditionally." >&5
19508 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19509 Usually this means the macro was only invoked conditionally." >&2;}
19510    { (exit 1); exit 1; }; }
19511 fi
19512 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19513   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19514 Usually this means the macro was only invoked conditionally." >&5
19515 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19516 Usually this means the macro was only invoked conditionally." >&2;}
19517    { (exit 1); exit 1; }; }
19518 fi
19519 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19520   { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19521 Usually this means the macro was only invoked conditionally." >&5
19522 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19523 Usually this means the macro was only invoked conditionally." >&2;}
19524    { (exit 1); exit 1; }; }
19525 fi
19526 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19527   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19528 Usually this means the macro was only invoked conditionally." >&5
19529 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19530 Usually this means the macro was only invoked conditionally." >&2;}
19531    { (exit 1); exit 1; }; }
19532 fi
19533 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19534   { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19535 Usually this means the macro was only invoked conditionally." >&5
19536 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19537 Usually this means the macro was only invoked conditionally." >&2;}
19538    { (exit 1); exit 1; }; }
19539 fi
19540 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19541   { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19542 Usually this means the macro was only invoked conditionally." >&5
19543 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19544 Usually this means the macro was only invoked conditionally." >&2;}
19545    { (exit 1); exit 1; }; }
19546 fi
19547
19548 : ${CONFIG_STATUS=./config.status}
19549 ac_clean_files_save=$ac_clean_files
19550 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19551 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19552 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19553 cat >$CONFIG_STATUS <<_ACEOF
19554 #! $SHELL
19555 # Generated by $as_me.
19556 # Run this file to recreate the current configuration.
19557 # Compiler output produced by configure, useful for debugging
19558 # configure, is in config.log if it exists.
19559
19560 debug=false
19561 ac_cs_recheck=false
19562 ac_cs_silent=false
19563 SHELL=\${CONFIG_SHELL-$SHELL}
19564 _ACEOF
19565
19566 cat >>$CONFIG_STATUS <<\_ACEOF
19567 ## --------------------- ##
19568 ## M4sh Initialization.  ##
19569 ## --------------------- ##
19570
19571 # Be Bourne compatible
19572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19573   emulate sh
19574   NULLCMD=:
19575   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19576   # is contrary to our usage.  Disable this feature.
19577   alias -g '${1+"$@"}'='"$@"'
19578 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19579   set -o posix
19580 fi
19581 DUALCASE=1; export DUALCASE # for MKS sh
19582
19583 # Support unset when possible.
19584 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19585   as_unset=unset
19586 else
19587   as_unset=false
19588 fi
19589
19590
19591 # Work around bugs in pre-3.0 UWIN ksh.
19592 $as_unset ENV MAIL MAILPATH
19593 PS1='$ '
19594 PS2='> '
19595 PS4='+ '
19596
19597 # NLS nuisances.
19598 for as_var in \
19599   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19600   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19601   LC_TELEPHONE LC_TIME
19602 do
19603   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19604     eval $as_var=C; export $as_var
19605   else
19606     $as_unset $as_var
19607   fi
19608 done
19609
19610 # Required to use basename.
19611 if expr a : '\(a\)' >/dev/null 2>&1; then
19612   as_expr=expr
19613 else
19614   as_expr=false
19615 fi
19616
19617 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19618   as_basename=basename
19619 else
19620   as_basename=false
19621 fi
19622
19623
19624 # Name of the executable.
19625 as_me=`$as_basename "$0" ||
19626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19627          X"$0" : 'X\(//\)$' \| \
19628          X"$0" : 'X\(/\)$' \| \
19629          .     : '\(.\)' 2>/dev/null ||
19630 echo X/"$0" |
19631     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19632           /^X\/\(\/\/\)$/{ s//\1/; q; }
19633           /^X\/\(\/\).*/{ s//\1/; q; }
19634           s/.*/./; q'`
19635
19636
19637 # PATH needs CR, and LINENO needs CR and PATH.
19638 # Avoid depending upon Character Ranges.
19639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19642 as_cr_digits='0123456789'
19643 as_cr_alnum=$as_cr_Letters$as_cr_digits
19644
19645 # The user is always right.
19646 if test "${PATH_SEPARATOR+set}" != set; then
19647   echo "#! /bin/sh" >conf$$.sh
19648   echo  "exit 0"   >>conf$$.sh
19649   chmod +x conf$$.sh
19650   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19651     PATH_SEPARATOR=';'
19652   else
19653     PATH_SEPARATOR=:
19654   fi
19655   rm -f conf$$.sh
19656 fi
19657
19658
19659   as_lineno_1=$LINENO
19660   as_lineno_2=$LINENO
19661   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19662   test "x$as_lineno_1" != "x$as_lineno_2" &&
19663   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19664   # Find who we are.  Look in the path if we contain no path at all
19665   # relative or not.
19666   case $0 in
19667     *[\\/]* ) as_myself=$0 ;;
19668     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669 for as_dir in $PATH
19670 do
19671   IFS=$as_save_IFS
19672   test -z "$as_dir" && as_dir=.
19673   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19674 done
19675
19676        ;;
19677   esac
19678   # We did not find ourselves, most probably we were run as `sh COMMAND'
19679   # in which case we are not to be found in the path.
19680   if test "x$as_myself" = x; then
19681     as_myself=$0
19682   fi
19683   if test ! -f "$as_myself"; then
19684     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19685 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19686    { (exit 1); exit 1; }; }
19687   fi
19688   case $CONFIG_SHELL in
19689   '')
19690     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19691 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19692 do
19693   IFS=$as_save_IFS
19694   test -z "$as_dir" && as_dir=.
19695   for as_base in sh bash ksh sh5; do
19696          case $as_dir in
19697          /*)
19698            if ("$as_dir/$as_base" -c '
19699   as_lineno_1=$LINENO
19700   as_lineno_2=$LINENO
19701   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19702   test "x$as_lineno_1" != "x$as_lineno_2" &&
19703   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19704              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19705              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19706              CONFIG_SHELL=$as_dir/$as_base
19707              export CONFIG_SHELL
19708              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19709            fi;;
19710          esac
19711        done
19712 done
19713 ;;
19714   esac
19715
19716   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19717   # uniformly replaced by the line number.  The first 'sed' inserts a
19718   # line-number line before each line; the second 'sed' does the real
19719   # work.  The second script uses 'N' to pair each line-number line
19720   # with the numbered line, and appends trailing '-' during
19721   # substitution so that $LINENO is not a special case at line end.
19722   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19723   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19724   sed '=' <$as_myself |
19725     sed '
19726       N
19727       s,$,-,
19728       : loop
19729       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19730       t loop
19731       s,-$,,
19732       s,^['$as_cr_digits']*\n,,
19733     ' >$as_me.lineno &&
19734   chmod +x $as_me.lineno ||
19735     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19736 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19737    { (exit 1); exit 1; }; }
19738
19739   # Don't try to exec as it changes $[0], causing all sort of problems
19740   # (the dirname of $[0] is not the place where we might find the
19741   # original and so on.  Autoconf is especially sensible to this).
19742   . ./$as_me.lineno
19743   # Exit status is that of the last command.
19744   exit
19745 }
19746
19747
19748 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19749   *c*,-n*) ECHO_N= ECHO_C='
19750 ' ECHO_T='      ' ;;
19751   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19752   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19753 esac
19754
19755 if expr a : '\(a\)' >/dev/null 2>&1; then
19756   as_expr=expr
19757 else
19758   as_expr=false
19759 fi
19760
19761 rm -f conf$$ conf$$.exe conf$$.file
19762 echo >conf$$.file
19763 if ln -s conf$$.file conf$$ 2>/dev/null; then
19764   # We could just check for DJGPP; but this test a) works b) is more generic
19765   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19766   if test -f conf$$.exe; then
19767     # Don't use ln at all; we don't have any links
19768     as_ln_s='cp -p'
19769   else
19770     as_ln_s='ln -s'
19771   fi
19772 elif ln conf$$.file conf$$ 2>/dev/null; then
19773   as_ln_s=ln
19774 else
19775   as_ln_s='cp -p'
19776 fi
19777 rm -f conf$$ conf$$.exe conf$$.file
19778
19779 if mkdir -p . 2>/dev/null; then
19780   as_mkdir_p=:
19781 else
19782   test -d ./-p && rmdir ./-p
19783   as_mkdir_p=false
19784 fi
19785
19786 as_executable_p="test -f"
19787
19788 # Sed expression to map a string onto a valid CPP name.
19789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19790
19791 # Sed expression to map a string onto a valid variable name.
19792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19793
19794
19795 # IFS
19796 # We need space, tab and new line, in precisely that order.
19797 as_nl='
19798 '
19799 IFS="   $as_nl"
19800
19801 # CDPATH.
19802 $as_unset CDPATH
19803
19804 exec 6>&1
19805
19806 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19807 # report actual input values of CONFIG_FILES etc. instead of their
19808 # values after options handling.  Logging --version etc. is OK.
19809 exec 5>>config.log
19810 {
19811   echo
19812   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19813 ## Running $as_me. ##
19814 _ASBOX
19815 } >&5
19816 cat >&5 <<_CSEOF
19817
19818 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19819 generated by GNU Autoconf 2.59.  Invocation command line was
19820
19821   CONFIG_FILES    = $CONFIG_FILES
19822   CONFIG_HEADERS  = $CONFIG_HEADERS
19823   CONFIG_LINKS    = $CONFIG_LINKS
19824   CONFIG_COMMANDS = $CONFIG_COMMANDS
19825   $ $0 $@
19826
19827 _CSEOF
19828 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19829 echo >&5
19830 _ACEOF
19831
19832 # Files that config.status was made for.
19833 if test -n "$ac_config_files"; then
19834   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19835 fi
19836
19837 if test -n "$ac_config_headers"; then
19838   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19839 fi
19840
19841 if test -n "$ac_config_links"; then
19842   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19843 fi
19844
19845 if test -n "$ac_config_commands"; then
19846   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19847 fi
19848
19849 cat >>$CONFIG_STATUS <<\_ACEOF
19850
19851 ac_cs_usage="\
19852 \`$as_me' instantiates files from templates according to the
19853 current configuration.
19854
19855 Usage: $0 [OPTIONS] [FILE]...
19856
19857   -h, --help       print this help, then exit
19858   -V, --version    print version number, then exit
19859   -q, --quiet      do not print progress messages
19860   -d, --debug      don't remove temporary files
19861       --recheck    update $as_me by reconfiguring in the same conditions
19862   --file=FILE[:TEMPLATE]
19863                    instantiate the configuration file FILE
19864   --header=FILE[:TEMPLATE]
19865                    instantiate the configuration header FILE
19866
19867 Configuration files:
19868 $config_files
19869
19870 Configuration headers:
19871 $config_headers
19872
19873 Configuration commands:
19874 $config_commands
19875
19876 Report bugs to <bug-autoconf@gnu.org>."
19877 _ACEOF
19878
19879 cat >>$CONFIG_STATUS <<_ACEOF
19880 ac_cs_version="\\
19881 GNU OpenMP Runtime Library config.status 1.0
19882 configured by $0, generated by GNU Autoconf 2.59,
19883   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19884
19885 Copyright (C) 2003 Free Software Foundation, Inc.
19886 This config.status script is free software; the Free Software Foundation
19887 gives unlimited permission to copy, distribute and modify it."
19888 srcdir=$srcdir
19889 INSTALL="$INSTALL"
19890 _ACEOF
19891
19892 cat >>$CONFIG_STATUS <<\_ACEOF
19893 # If no file are specified by the user, then we need to provide default
19894 # value.  By we need to know if files were specified by the user.
19895 ac_need_defaults=:
19896 while test $# != 0
19897 do
19898   case $1 in
19899   --*=*)
19900     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19901     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19902     ac_shift=:
19903     ;;
19904   -*)
19905     ac_option=$1
19906     ac_optarg=$2
19907     ac_shift=shift
19908     ;;
19909   *) # This is not an option, so the user has probably given explicit
19910      # arguments.
19911      ac_option=$1
19912      ac_need_defaults=false;;
19913   esac
19914
19915   case $ac_option in
19916   # Handling of the options.
19917 _ACEOF
19918 cat >>$CONFIG_STATUS <<\_ACEOF
19919   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19920     ac_cs_recheck=: ;;
19921   --version | --vers* | -V )
19922     echo "$ac_cs_version"; exit 0 ;;
19923   --he | --h)
19924     # Conflict between --help and --header
19925     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19926 Try \`$0 --help' for more information." >&5
19927 echo "$as_me: error: ambiguous option: $1
19928 Try \`$0 --help' for more information." >&2;}
19929    { (exit 1); exit 1; }; };;
19930   --help | --hel | -h )
19931     echo "$ac_cs_usage"; exit 0 ;;
19932   --debug | --d* | -d )
19933     debug=: ;;
19934   --file | --fil | --fi | --f )
19935     $ac_shift
19936     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19937     ac_need_defaults=false;;
19938   --header | --heade | --head | --hea )
19939     $ac_shift
19940     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19941     ac_need_defaults=false;;
19942   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19943   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19944     ac_cs_silent=: ;;
19945
19946   # This is an error.
19947   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19948 Try \`$0 --help' for more information." >&5
19949 echo "$as_me: error: unrecognized option: $1
19950 Try \`$0 --help' for more information." >&2;}
19951    { (exit 1); exit 1; }; } ;;
19952
19953   *) ac_config_targets="$ac_config_targets $1" ;;
19954
19955   esac
19956   shift
19957 done
19958
19959 ac_configure_extra_args=
19960
19961 if $ac_cs_silent; then
19962   exec 6>/dev/null
19963   ac_configure_extra_args="$ac_configure_extra_args --silent"
19964 fi
19965
19966 _ACEOF
19967 cat >>$CONFIG_STATUS <<_ACEOF
19968 if \$ac_cs_recheck; then
19969   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19970   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19971 fi
19972
19973 _ACEOF
19974
19975 cat >>$CONFIG_STATUS <<_ACEOF
19976 #
19977 # INIT-COMMANDS section.
19978 #
19979
19980
19981 srcdir="$srcdir"
19982 host="$host"
19983 target="$target"
19984 with_multisubdir="$with_multisubdir"
19985 with_multisrctop="$with_multisrctop"
19986 with_target_subdir="$with_target_subdir"
19987 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19988 multi_basedir="$multi_basedir"
19989 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19990 CC="$CC"
19991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19992
19993
19994 # The HP-UX ksh and POSIX shell print the target directory to stdout
19995 # if CDPATH is set.
19996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19997
19998 sed_quote_subst='$sed_quote_subst'
19999 double_quote_subst='$double_quote_subst'
20000 delay_variable_subst='$delay_variable_subst'
20001 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20002 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20003 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20004 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20005 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20006 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20007 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20008 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20009 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20010 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20011 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20012 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20013 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20014 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20015 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20016 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20017 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20018 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20019 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20020 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20021 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20022 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20023 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20024 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20025 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20026 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20027 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20028 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20029 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20030 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20031 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20032 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20033 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20034 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20035 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20036 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20037 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20038 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20039 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20040 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20041 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20042 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20043 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20044 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20045 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20046 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20047 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20048 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20049 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20050 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20051 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20052 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20053 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20054 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20055 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20056 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20057 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20058 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20059 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20060 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20061 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20062 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20063 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20064 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20065 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20066 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20067 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20068 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20069 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20070 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20071 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20072 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20073 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20074 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20075 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20076 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20077 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20078 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20079 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20080 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20081 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20082 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20083 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20084 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20085 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20086 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20087 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20088 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20089 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20090 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20091 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20092 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20093 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20094 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20095 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20096 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20097 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20098 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20099 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20100 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20101 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20102 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20103 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20104 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20105 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20106 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20107 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20108 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20109 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20110 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20111 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20112 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20113 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20114 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20115 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20116 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20117 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20118 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20119 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20120 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20121 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20122 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20123 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20124 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20125 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20126 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20127 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20128 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20129 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20130 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20131 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20132 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20133 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20134 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20135 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20136 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20137 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20138 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20139 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20140 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20141 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20142 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20143 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20144 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20145 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20146 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20147 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20148 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20149 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20150 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20151 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20152 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20153 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20154 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20155 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20156 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20157 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20158 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20159 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20160 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20161 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20162 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20163
20164 LTCC='$LTCC'
20165 LTCFLAGS='$LTCFLAGS'
20166 compiler='$compiler_DEFAULT'
20167
20168 # Quote evaled strings.
20169 for var in SED \
20170 GREP \
20171 EGREP \
20172 FGREP \
20173 LD \
20174 NM \
20175 LN_S \
20176 lt_SP2NL \
20177 lt_NL2SP \
20178 reload_flag \
20179 deplibs_check_method \
20180 file_magic_cmd \
20181 AR \
20182 AR_FLAGS \
20183 STRIP \
20184 RANLIB \
20185 CC \
20186 CFLAGS \
20187 compiler \
20188 lt_cv_sys_global_symbol_pipe \
20189 lt_cv_sys_global_symbol_to_cdecl \
20190 lt_cv_sys_global_symbol_to_c_name_address \
20191 SHELL \
20192 ECHO \
20193 lt_prog_compiler_no_builtin_flag \
20194 lt_prog_compiler_wl \
20195 lt_prog_compiler_pic \
20196 lt_prog_compiler_static \
20197 lt_cv_prog_compiler_c_o \
20198 need_locks \
20199 shrext_cmds \
20200 export_dynamic_flag_spec \
20201 whole_archive_flag_spec \
20202 compiler_needs_object \
20203 with_gnu_ld \
20204 allow_undefined_flag \
20205 no_undefined_flag \
20206 hardcode_libdir_flag_spec \
20207 hardcode_libdir_flag_spec_ld \
20208 hardcode_libdir_separator \
20209 fix_srcfile_path \
20210 exclude_expsyms \
20211 include_expsyms \
20212 file_list_spec \
20213 variables_saved_for_relink \
20214 libname_spec \
20215 library_names_spec \
20216 soname_spec \
20217 finish_eval \
20218 old_striplib \
20219 striplib \
20220 predep_objects \
20221 postdep_objects \
20222 predeps \
20223 postdeps \
20224 compiler_lib_search_path \
20225 LD_FC \
20226 compiler_FC \
20227 lt_prog_compiler_no_builtin_flag_FC \
20228 lt_prog_compiler_wl_FC \
20229 lt_prog_compiler_pic_FC \
20230 lt_prog_compiler_static_FC \
20231 lt_cv_prog_compiler_c_o_FC \
20232 export_dynamic_flag_spec_FC \
20233 whole_archive_flag_spec_FC \
20234 compiler_needs_object_FC \
20235 with_gnu_ld_FC \
20236 allow_undefined_flag_FC \
20237 no_undefined_flag_FC \
20238 hardcode_libdir_flag_spec_FC \
20239 hardcode_libdir_flag_spec_ld_FC \
20240 hardcode_libdir_separator_FC \
20241 fix_srcfile_path_FC \
20242 exclude_expsyms_FC \
20243 include_expsyms_FC \
20244 file_list_spec_FC \
20245 predep_objects_FC \
20246 postdep_objects_FC \
20247 predeps_FC \
20248 postdeps_FC \
20249 compiler_lib_search_path_FC; do
20250     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20251     *[\\\\\\\`\\"\\\$]*)
20252       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20253       ;;
20254     *)
20255       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20256       ;;
20257     esac
20258 done
20259
20260 # Double-quote double-evaled strings.
20261 for var in reload_cmds \
20262 old_postinstall_cmds \
20263 old_postuninstall_cmds \
20264 old_archive_cmds \
20265 extract_expsyms_cmds \
20266 old_archive_from_new_cmds \
20267 old_archive_from_expsyms_cmds \
20268 archive_cmds \
20269 archive_expsym_cmds \
20270 module_cmds \
20271 module_expsym_cmds \
20272 export_symbols_cmds \
20273 prelink_cmds \
20274 postinstall_cmds \
20275 postuninstall_cmds \
20276 finish_cmds \
20277 sys_lib_search_path_spec \
20278 sys_lib_dlsearch_path_spec \
20279 old_archive_cmds_FC \
20280 old_archive_from_new_cmds_FC \
20281 old_archive_from_expsyms_cmds_FC \
20282 archive_cmds_FC \
20283 archive_expsym_cmds_FC \
20284 module_cmds_FC \
20285 module_expsym_cmds_FC \
20286 export_symbols_cmds_FC \
20287 prelink_cmds_FC; do
20288     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20289     *[\\\\\\\`\\"\\\$]*)
20290       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20291       ;;
20292     *)
20293       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20294       ;;
20295     esac
20296 done
20297
20298 # Fix-up fallback echo if it was mangled by the above quoting rules.
20299 case \$lt_ECHO in
20300 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20301   ;;
20302 esac
20303
20304 ac_aux_dir='$ac_aux_dir'
20305 xsi_shell='$xsi_shell'
20306 lt_shell_append='$lt_shell_append'
20307
20308 # See if we are running on zsh, and set the options which allow our
20309 # commands through without removal of \ escapes INIT.
20310 if test -n "\${ZSH_VERSION+set}" ; then
20311    setopt NO_GLOB_SUBST
20312 fi
20313
20314
20315     PACKAGE='$PACKAGE'
20316     VERSION='$VERSION'
20317     TIMESTAMP='$TIMESTAMP'
20318     RM='$RM'
20319     ofile='$ofile'
20320
20321
20322
20323
20324
20325
20326 GCC="$GCC"
20327 CC="$CC"
20328 acx_cv_header_stdint="$acx_cv_header_stdint"
20329 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20330 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20331 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20332 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20333 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20334 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20335 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20336 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20337 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20338 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20339 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20340 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20341 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20342
20343
20344 _ACEOF
20345
20346
20347
20348 cat >>$CONFIG_STATUS <<\_ACEOF
20349 for ac_config_target in $ac_config_targets
20350 do
20351   case "$ac_config_target" in
20352   # Handling of arguments.
20353   "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20354   "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20355   "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20356   "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20357   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20358   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20359   "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20360   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20361   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20362   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20363   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20364   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20365   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20366 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20367    { (exit 1); exit 1; }; };;
20368   esac
20369 done
20370
20371 # If the user did not use the arguments to specify the items to instantiate,
20372 # then the envvar interface is used.  Set only those that are not.
20373 # We use the long form for the default assignment because of an extremely
20374 # bizarre bug on SunOS 4.1.3.
20375 if $ac_need_defaults; then
20376   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20377   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20378   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20379 fi
20380
20381 # Have a temporary directory for convenience.  Make it in the build tree
20382 # simply because there is no reason to put it here, and in addition,
20383 # creating and moving files from /tmp can sometimes cause problems.
20384 # Create a temporary directory, and hook for its removal unless debugging.
20385 $debug ||
20386 {
20387   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20388   trap '{ (exit 1); exit 1; }' 1 2 13 15
20389 }
20390
20391 # Create a (secure) tmp directory for tmp files.
20392
20393 {
20394   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20395   test -n "$tmp" && test -d "$tmp"
20396 }  ||
20397 {
20398   tmp=./confstat$$-$RANDOM
20399   (umask 077 && mkdir $tmp)
20400 } ||
20401 {
20402    echo "$me: cannot create a temporary directory in ." >&2
20403    { (exit 1); exit 1; }
20404 }
20405
20406 _ACEOF
20407
20408 cat >>$CONFIG_STATUS <<_ACEOF
20409
20410 #
20411 # CONFIG_FILES section.
20412 #
20413
20414 # No need to generate the scripts if there are no CONFIG_FILES.
20415 # This happens for instance when ./config.status config.h
20416 if test -n "\$CONFIG_FILES"; then
20417   # Protect against being on the right side of a sed subst in config.status.
20418   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20419    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20420 s,@SHELL@,$SHELL,;t t
20421 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20422 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20423 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20424 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20425 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20426 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20427 s,@exec_prefix@,$exec_prefix,;t t
20428 s,@prefix@,$prefix,;t t
20429 s,@program_transform_name@,$program_transform_name,;t t
20430 s,@bindir@,$bindir,;t t
20431 s,@sbindir@,$sbindir,;t t
20432 s,@libexecdir@,$libexecdir,;t t
20433 s,@datadir@,$datadir,;t t
20434 s,@sysconfdir@,$sysconfdir,;t t
20435 s,@sharedstatedir@,$sharedstatedir,;t t
20436 s,@localstatedir@,$localstatedir,;t t
20437 s,@libdir@,$libdir,;t t
20438 s,@includedir@,$includedir,;t t
20439 s,@oldincludedir@,$oldincludedir,;t t
20440 s,@infodir@,$infodir,;t t
20441 s,@mandir@,$mandir,;t t
20442 s,@build_alias@,$build_alias,;t t
20443 s,@host_alias@,$host_alias,;t t
20444 s,@target_alias@,$target_alias,;t t
20445 s,@DEFS@,$DEFS,;t t
20446 s,@ECHO_C@,$ECHO_C,;t t
20447 s,@ECHO_N@,$ECHO_N,;t t
20448 s,@ECHO_T@,$ECHO_T,;t t
20449 s,@LIBS@,$LIBS,;t t
20450 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20451 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20452 s,@build@,$build,;t t
20453 s,@build_cpu@,$build_cpu,;t t
20454 s,@build_vendor@,$build_vendor,;t t
20455 s,@build_os@,$build_os,;t t
20456 s,@host@,$host,;t t
20457 s,@host_cpu@,$host_cpu,;t t
20458 s,@host_vendor@,$host_vendor,;t t
20459 s,@host_os@,$host_os,;t t
20460 s,@target@,$target,;t t
20461 s,@target_cpu@,$target_cpu,;t t
20462 s,@target_vendor@,$target_vendor,;t t
20463 s,@target_os@,$target_os,;t t
20464 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20465 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20466 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20467 s,@CYGPATH_W@,$CYGPATH_W,;t t
20468 s,@PACKAGE@,$PACKAGE,;t t
20469 s,@VERSION@,$VERSION,;t t
20470 s,@ACLOCAL@,$ACLOCAL,;t t
20471 s,@AUTOCONF@,$AUTOCONF,;t t
20472 s,@AUTOMAKE@,$AUTOMAKE,;t t
20473 s,@AUTOHEADER@,$AUTOHEADER,;t t
20474 s,@MAKEINFO@,$MAKEINFO,;t t
20475 s,@install_sh@,$install_sh,;t t
20476 s,@STRIP@,$STRIP,;t t
20477 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20478 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20479 s,@mkdir_p@,$mkdir_p,;t t
20480 s,@AWK@,$AWK,;t t
20481 s,@SET_MAKE@,$SET_MAKE,;t t
20482 s,@am__leading_dot@,$am__leading_dot,;t t
20483 s,@AMTAR@,$AMTAR,;t t
20484 s,@am__tar@,$am__tar,;t t
20485 s,@am__untar@,$am__untar,;t t
20486 s,@multi_basedir@,$multi_basedir,;t t
20487 s,@toolexecdir@,$toolexecdir,;t t
20488 s,@toolexeclibdir@,$toolexeclibdir,;t t
20489 s,@CC@,$CC,;t t
20490 s,@ac_ct_CC@,$ac_ct_CC,;t t
20491 s,@EXEEXT@,$EXEEXT,;t t
20492 s,@OBJEXT@,$OBJEXT,;t t
20493 s,@DEPDIR@,$DEPDIR,;t t
20494 s,@am__include@,$am__include,;t t
20495 s,@am__quote@,$am__quote,;t t
20496 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20497 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20498 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20499 s,@CCDEPMODE@,$CCDEPMODE,;t t
20500 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20501 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20502 s,@CFLAGS@,$CFLAGS,;t t
20503 s,@AR@,$AR,;t t
20504 s,@ac_ct_AR@,$ac_ct_AR,;t t
20505 s,@RANLIB@,$RANLIB,;t t
20506 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20507 s,@PERL@,$PERL,;t t
20508 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20509 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20510 s,@LIBTOOL@,$LIBTOOL,;t t
20511 s,@SED@,$SED,;t t
20512 s,@EGREP@,$EGREP,;t t
20513 s,@FGREP@,$FGREP,;t t
20514 s,@GREP@,$GREP,;t t
20515 s,@LD@,$LD,;t t
20516 s,@DUMPBIN@,$DUMPBIN,;t t
20517 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20518 s,@NM@,$NM,;t t
20519 s,@LN_S@,$LN_S,;t t
20520 s,@lt_ECHO@,$lt_ECHO,;t t
20521 s,@CPP@,$CPP,;t t
20522 s,@CPPFLAGS@,$CPPFLAGS,;t t
20523 s,@enable_shared@,$enable_shared,;t t
20524 s,@enable_static@,$enable_static,;t t
20525 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20526 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20527 s,@MAINT@,$MAINT,;t t
20528 s,@FC@,$FC,;t t
20529 s,@FCFLAGS@,$FCFLAGS,;t t
20530 s,@LDFLAGS@,$LDFLAGS,;t t
20531 s,@ac_ct_FC@,$ac_ct_FC,;t t
20532 s,@libtool_VERSION@,$libtool_VERSION,;t t
20533 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20534 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20535 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20536 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20537 s,@config_path@,$config_path,;t t
20538 s,@XCFLAGS@,$XCFLAGS,;t t
20539 s,@XLDFLAGS@,$XLDFLAGS,;t t
20540 s,@link_gomp@,$link_gomp,;t t
20541 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20542 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20543 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20544 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20545 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20546 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20547 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20548 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20549 s,@LIBOBJS@,$LIBOBJS,;t t
20550 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20551 CEOF
20552
20553 _ACEOF
20554
20555   cat >>$CONFIG_STATUS <<\_ACEOF
20556   # Split the substitutions into bite-sized pieces for seds with
20557   # small command number limits, like on Digital OSF/1 and HP-UX.
20558   ac_max_sed_lines=48
20559   ac_sed_frag=1 # Number of current file.
20560   ac_beg=1 # First line for current file.
20561   ac_end=$ac_max_sed_lines # Line after last line for current file.
20562   ac_more_lines=:
20563   ac_sed_cmds=
20564   while $ac_more_lines; do
20565     if test $ac_beg -gt 1; then
20566       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20567     else
20568       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20569     fi
20570     if test ! -s $tmp/subs.frag; then
20571       ac_more_lines=false
20572     else
20573       # The purpose of the label and of the branching condition is to
20574       # speed up the sed processing (if there are no `@' at all, there
20575       # is no need to browse any of the substitutions).
20576       # These are the two extra sed commands mentioned above.
20577       (echo ':t
20578   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20579       if test -z "$ac_sed_cmds"; then
20580         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20581       else
20582         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20583       fi
20584       ac_sed_frag=`expr $ac_sed_frag + 1`
20585       ac_beg=$ac_end
20586       ac_end=`expr $ac_end + $ac_max_sed_lines`
20587     fi
20588   done
20589   if test -z "$ac_sed_cmds"; then
20590     ac_sed_cmds=cat
20591   fi
20592 fi # test -n "$CONFIG_FILES"
20593
20594 _ACEOF
20595 cat >>$CONFIG_STATUS <<\_ACEOF
20596 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20597   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20598   case $ac_file in
20599   - | *:- | *:-:* ) # input from stdin
20600         cat >$tmp/stdin
20601         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20602         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20603   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20604         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20605   * )   ac_file_in=$ac_file.in ;;
20606   esac
20607
20608   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20609   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20611          X"$ac_file" : 'X\(//\)[^/]' \| \
20612          X"$ac_file" : 'X\(//\)$' \| \
20613          X"$ac_file" : 'X\(/\)' \| \
20614          .     : '\(.\)' 2>/dev/null ||
20615 echo X"$ac_file" |
20616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20617           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20618           /^X\(\/\/\)$/{ s//\1/; q; }
20619           /^X\(\/\).*/{ s//\1/; q; }
20620           s/.*/./; q'`
20621   { if $as_mkdir_p; then
20622     mkdir -p "$ac_dir"
20623   else
20624     as_dir="$ac_dir"
20625     as_dirs=
20626     while test ! -d "$as_dir"; do
20627       as_dirs="$as_dir $as_dirs"
20628       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20630          X"$as_dir" : 'X\(//\)[^/]' \| \
20631          X"$as_dir" : 'X\(//\)$' \| \
20632          X"$as_dir" : 'X\(/\)' \| \
20633          .     : '\(.\)' 2>/dev/null ||
20634 echo X"$as_dir" |
20635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20636           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20637           /^X\(\/\/\)$/{ s//\1/; q; }
20638           /^X\(\/\).*/{ s//\1/; q; }
20639           s/.*/./; q'`
20640     done
20641     test ! -n "$as_dirs" || mkdir $as_dirs
20642   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20644    { (exit 1); exit 1; }; }; }
20645
20646   ac_builddir=.
20647
20648 if test "$ac_dir" != .; then
20649   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20650   # A "../" for each directory in $ac_dir_suffix.
20651   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20652 else
20653   ac_dir_suffix= ac_top_builddir=
20654 fi
20655
20656 case $srcdir in
20657   .)  # No --srcdir option.  We are building in place.
20658     ac_srcdir=.
20659     if test -z "$ac_top_builddir"; then
20660        ac_top_srcdir=.
20661     else
20662        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20663     fi ;;
20664   [\\/]* | ?:[\\/]* )  # Absolute path.
20665     ac_srcdir=$srcdir$ac_dir_suffix;
20666     ac_top_srcdir=$srcdir ;;
20667   *) # Relative path.
20668     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20669     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20670 esac
20671
20672 # Do not use `cd foo && pwd` to compute absolute paths, because
20673 # the directories may not exist.
20674 case `pwd` in
20675 .) ac_abs_builddir="$ac_dir";;
20676 *)
20677   case "$ac_dir" in
20678   .) ac_abs_builddir=`pwd`;;
20679   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20680   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20681   esac;;
20682 esac
20683 case $ac_abs_builddir in
20684 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20685 *)
20686   case ${ac_top_builddir}. in
20687   .) ac_abs_top_builddir=$ac_abs_builddir;;
20688   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20689   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20690   esac;;
20691 esac
20692 case $ac_abs_builddir in
20693 .) ac_abs_srcdir=$ac_srcdir;;
20694 *)
20695   case $ac_srcdir in
20696   .) ac_abs_srcdir=$ac_abs_builddir;;
20697   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20698   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20699   esac;;
20700 esac
20701 case $ac_abs_builddir in
20702 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20703 *)
20704   case $ac_top_srcdir in
20705   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20706   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20707   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20708   esac;;
20709 esac
20710
20711
20712   case $INSTALL in
20713   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20714   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20715   esac
20716
20717   if test x"$ac_file" != x-; then
20718     { echo "$as_me:$LINENO: creating $ac_file" >&5
20719 echo "$as_me: creating $ac_file" >&6;}
20720     rm -f "$ac_file"
20721   fi
20722   # Let's still pretend it is `configure' which instantiates (i.e., don't
20723   # use $as_me), people would be surprised to read:
20724   #    /* config.h.  Generated by config.status.  */
20725   if test x"$ac_file" = x-; then
20726     configure_input=
20727   else
20728     configure_input="$ac_file.  "
20729   fi
20730   configure_input=$configure_input"Generated from `echo $ac_file_in |
20731                                      sed 's,.*/,,'` by configure."
20732
20733   # First look for the input files in the build tree, otherwise in the
20734   # src tree.
20735   ac_file_inputs=`IFS=:
20736     for f in $ac_file_in; do
20737       case $f in
20738       -) echo $tmp/stdin ;;
20739       [\\/$]*)
20740          # Absolute (can't be DOS-style, as IFS=:)
20741          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20742 echo "$as_me: error: cannot find input file: $f" >&2;}
20743    { (exit 1); exit 1; }; }
20744          echo "$f";;
20745       *) # Relative
20746          if test -f "$f"; then
20747            # Build tree
20748            echo "$f"
20749          elif test -f "$srcdir/$f"; then
20750            # Source tree
20751            echo "$srcdir/$f"
20752          else
20753            # /dev/null tree
20754            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20755 echo "$as_me: error: cannot find input file: $f" >&2;}
20756    { (exit 1); exit 1; }; }
20757          fi;;
20758       esac
20759     done` || { (exit 1); exit 1; }
20760 _ACEOF
20761 cat >>$CONFIG_STATUS <<_ACEOF
20762   sed "$ac_vpsub
20763 $extrasub
20764 _ACEOF
20765 cat >>$CONFIG_STATUS <<\_ACEOF
20766 :t
20767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20768 s,@configure_input@,$configure_input,;t t
20769 s,@srcdir@,$ac_srcdir,;t t
20770 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20771 s,@top_srcdir@,$ac_top_srcdir,;t t
20772 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20773 s,@builddir@,$ac_builddir,;t t
20774 s,@abs_builddir@,$ac_abs_builddir,;t t
20775 s,@top_builddir@,$ac_top_builddir,;t t
20776 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20777 s,@INSTALL@,$ac_INSTALL,;t t
20778 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20779   rm -f $tmp/stdin
20780   if test x"$ac_file" != x-; then
20781     mv $tmp/out $ac_file
20782   else
20783     cat $tmp/out
20784     rm -f $tmp/out
20785   fi
20786
20787 done
20788 _ACEOF
20789 cat >>$CONFIG_STATUS <<\_ACEOF
20790
20791 #
20792 # CONFIG_HEADER section.
20793 #
20794
20795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20797 #
20798 # ac_d sets the value in "#define NAME VALUE" lines.
20799 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20800 ac_dB='[         ].*$,\1#\2'
20801 ac_dC=' '
20802 ac_dD=',;t'
20803 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20804 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20805 ac_uB='$,\1#\2define\3'
20806 ac_uC=' '
20807 ac_uD=',;t'
20808
20809 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20810   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20811   case $ac_file in
20812   - | *:- | *:-:* ) # input from stdin
20813         cat >$tmp/stdin
20814         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20815         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20816   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20817         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20818   * )   ac_file_in=$ac_file.in ;;
20819   esac
20820
20821   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20822 echo "$as_me: creating $ac_file" >&6;}
20823
20824   # First look for the input files in the build tree, otherwise in the
20825   # src tree.
20826   ac_file_inputs=`IFS=:
20827     for f in $ac_file_in; do
20828       case $f in
20829       -) echo $tmp/stdin ;;
20830       [\\/$]*)
20831          # Absolute (can't be DOS-style, as IFS=:)
20832          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20833 echo "$as_me: error: cannot find input file: $f" >&2;}
20834    { (exit 1); exit 1; }; }
20835          # Do quote $f, to prevent DOS paths from being IFS'd.
20836          echo "$f";;
20837       *) # Relative
20838          if test -f "$f"; then
20839            # Build tree
20840            echo "$f"
20841          elif test -f "$srcdir/$f"; then
20842            # Source tree
20843            echo "$srcdir/$f"
20844          else
20845            # /dev/null tree
20846            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20847 echo "$as_me: error: cannot find input file: $f" >&2;}
20848    { (exit 1); exit 1; }; }
20849          fi;;
20850       esac
20851     done` || { (exit 1); exit 1; }
20852   # Remove the trailing spaces.
20853   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20854
20855 _ACEOF
20856
20857 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20858 # `conftest.undefs', that substitutes the proper values into
20859 # config.h.in to produce config.h.  The first handles `#define'
20860 # templates, and the second `#undef' templates.
20861 # And first: Protect against being on the right side of a sed subst in
20862 # config.status.  Protect against being in an unquoted here document
20863 # in config.status.
20864 rm -f conftest.defines conftest.undefs
20865 # Using a here document instead of a string reduces the quoting nightmare.
20866 # Putting comments in sed scripts is not portable.
20867 #
20868 # `end' is used to avoid that the second main sed command (meant for
20869 # 0-ary CPP macros) applies to n-ary macro definitions.
20870 # See the Autoconf documentation for `clear'.
20871 cat >confdef2sed.sed <<\_ACEOF
20872 s/[\\&,]/\\&/g
20873 s,[\\$`],\\&,g
20874 t clear
20875 : clear
20876 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20877 t end
20878 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20879 : end
20880 _ACEOF
20881 # If some macros were called several times there might be several times
20882 # the same #defines, which is useless.  Nevertheless, we may not want to
20883 # sort them, since we want the *last* AC-DEFINE to be honored.
20884 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20885 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20886 rm -f confdef2sed.sed
20887
20888 # This sed command replaces #undef with comments.  This is necessary, for
20889 # example, in the case of _POSIX_SOURCE, which is predefined and required
20890 # on some systems where configure will not decide to define it.
20891 cat >>conftest.undefs <<\_ACEOF
20892 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20893 _ACEOF
20894
20895 # Break up conftest.defines because some shells have a limit on the size
20896 # of here documents, and old seds have small limits too (100 cmds).
20897 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20898 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20899 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20900 echo '  :' >>$CONFIG_STATUS
20901 rm -f conftest.tail
20902 while grep . conftest.defines >/dev/null
20903 do
20904   # Write a limited-size here document to $tmp/defines.sed.
20905   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20906   # Speed up: don't consider the non `#define' lines.
20907   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20908   # Work around the forget-to-reset-the-flag bug.
20909   echo 't clr' >>$CONFIG_STATUS
20910   echo ': clr' >>$CONFIG_STATUS
20911   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20912   echo 'CEOF
20913   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20914   rm -f $tmp/in
20915   mv $tmp/out $tmp/in
20916 ' >>$CONFIG_STATUS
20917   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20918   rm -f conftest.defines
20919   mv conftest.tail conftest.defines
20920 done
20921 rm -f conftest.defines
20922 echo '  fi # grep' >>$CONFIG_STATUS
20923 echo >>$CONFIG_STATUS
20924
20925 # Break up conftest.undefs because some shells have a limit on the size
20926 # of here documents, and old seds have small limits too (100 cmds).
20927 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20928 rm -f conftest.tail
20929 while grep . conftest.undefs >/dev/null
20930 do
20931   # Write a limited-size here document to $tmp/undefs.sed.
20932   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20933   # Speed up: don't consider the non `#undef'
20934   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20935   # Work around the forget-to-reset-the-flag bug.
20936   echo 't clr' >>$CONFIG_STATUS
20937   echo ': clr' >>$CONFIG_STATUS
20938   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20939   echo 'CEOF
20940   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20941   rm -f $tmp/in
20942   mv $tmp/out $tmp/in
20943 ' >>$CONFIG_STATUS
20944   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20945   rm -f conftest.undefs
20946   mv conftest.tail conftest.undefs
20947 done
20948 rm -f conftest.undefs
20949
20950 cat >>$CONFIG_STATUS <<\_ACEOF
20951   # Let's still pretend it is `configure' which instantiates (i.e., don't
20952   # use $as_me), people would be surprised to read:
20953   #    /* config.h.  Generated by config.status.  */
20954   if test x"$ac_file" = x-; then
20955     echo "/* Generated by configure.  */" >$tmp/config.h
20956   else
20957     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20958   fi
20959   cat $tmp/in >>$tmp/config.h
20960   rm -f $tmp/in
20961   if test x"$ac_file" != x-; then
20962     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20963       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20964 echo "$as_me: $ac_file is unchanged" >&6;}
20965     else
20966       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20968          X"$ac_file" : 'X\(//\)[^/]' \| \
20969          X"$ac_file" : 'X\(//\)$' \| \
20970          X"$ac_file" : 'X\(/\)' \| \
20971          .     : '\(.\)' 2>/dev/null ||
20972 echo X"$ac_file" |
20973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20974           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20975           /^X\(\/\/\)$/{ s//\1/; q; }
20976           /^X\(\/\).*/{ s//\1/; q; }
20977           s/.*/./; q'`
20978       { if $as_mkdir_p; then
20979     mkdir -p "$ac_dir"
20980   else
20981     as_dir="$ac_dir"
20982     as_dirs=
20983     while test ! -d "$as_dir"; do
20984       as_dirs="$as_dir $as_dirs"
20985       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20987          X"$as_dir" : 'X\(//\)[^/]' \| \
20988          X"$as_dir" : 'X\(//\)$' \| \
20989          X"$as_dir" : 'X\(/\)' \| \
20990          .     : '\(.\)' 2>/dev/null ||
20991 echo X"$as_dir" |
20992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20993           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20994           /^X\(\/\/\)$/{ s//\1/; q; }
20995           /^X\(\/\).*/{ s//\1/; q; }
20996           s/.*/./; q'`
20997     done
20998     test ! -n "$as_dirs" || mkdir $as_dirs
20999   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21001    { (exit 1); exit 1; }; }; }
21002
21003       rm -f $ac_file
21004       mv $tmp/config.h $ac_file
21005     fi
21006   else
21007     cat $tmp/config.h
21008     rm -f $tmp/config.h
21009   fi
21010 # Compute $ac_file's index in $config_headers.
21011 _am_stamp_count=1
21012 for _am_header in $config_headers :; do
21013   case $_am_header in
21014     $ac_file | $ac_file:* )
21015       break ;;
21016     * )
21017       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21018   esac
21019 done
21020 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21021 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21022          X$ac_file : 'X\(//\)[^/]' \| \
21023          X$ac_file : 'X\(//\)$' \| \
21024          X$ac_file : 'X\(/\)' \| \
21025          .     : '\(.\)' 2>/dev/null ||
21026 echo X$ac_file |
21027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21029           /^X\(\/\/\)$/{ s//\1/; q; }
21030           /^X\(\/\).*/{ s//\1/; q; }
21031           s/.*/./; q'`/stamp-h$_am_stamp_count
21032 done
21033 _ACEOF
21034 cat >>$CONFIG_STATUS <<\_ACEOF
21035
21036 #
21037 # CONFIG_COMMANDS section.
21038 #
21039 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21040   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21041   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21042   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21043 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21044          X"$ac_dest" : 'X\(//\)[^/]' \| \
21045          X"$ac_dest" : 'X\(//\)$' \| \
21046          X"$ac_dest" : 'X\(/\)' \| \
21047          .     : '\(.\)' 2>/dev/null ||
21048 echo X"$ac_dest" |
21049     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21050           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21051           /^X\(\/\/\)$/{ s//\1/; q; }
21052           /^X\(\/\).*/{ s//\1/; q; }
21053           s/.*/./; q'`
21054   { if $as_mkdir_p; then
21055     mkdir -p "$ac_dir"
21056   else
21057     as_dir="$ac_dir"
21058     as_dirs=
21059     while test ! -d "$as_dir"; do
21060       as_dirs="$as_dir $as_dirs"
21061       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063          X"$as_dir" : 'X\(//\)[^/]' \| \
21064          X"$as_dir" : 'X\(//\)$' \| \
21065          X"$as_dir" : 'X\(/\)' \| \
21066          .     : '\(.\)' 2>/dev/null ||
21067 echo X"$as_dir" |
21068     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21069           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21070           /^X\(\/\/\)$/{ s//\1/; q; }
21071           /^X\(\/\).*/{ s//\1/; q; }
21072           s/.*/./; q'`
21073     done
21074     test ! -n "$as_dirs" || mkdir $as_dirs
21075   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21076 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21077    { (exit 1); exit 1; }; }; }
21078
21079   ac_builddir=.
21080
21081 if test "$ac_dir" != .; then
21082   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21083   # A "../" for each directory in $ac_dir_suffix.
21084   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21085 else
21086   ac_dir_suffix= ac_top_builddir=
21087 fi
21088
21089 case $srcdir in
21090   .)  # No --srcdir option.  We are building in place.
21091     ac_srcdir=.
21092     if test -z "$ac_top_builddir"; then
21093        ac_top_srcdir=.
21094     else
21095        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21096     fi ;;
21097   [\\/]* | ?:[\\/]* )  # Absolute path.
21098     ac_srcdir=$srcdir$ac_dir_suffix;
21099     ac_top_srcdir=$srcdir ;;
21100   *) # Relative path.
21101     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21102     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21103 esac
21104
21105 # Do not use `cd foo && pwd` to compute absolute paths, because
21106 # the directories may not exist.
21107 case `pwd` in
21108 .) ac_abs_builddir="$ac_dir";;
21109 *)
21110   case "$ac_dir" in
21111   .) ac_abs_builddir=`pwd`;;
21112   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21113   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21114   esac;;
21115 esac
21116 case $ac_abs_builddir in
21117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21118 *)
21119   case ${ac_top_builddir}. in
21120   .) ac_abs_top_builddir=$ac_abs_builddir;;
21121   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21122   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21123   esac;;
21124 esac
21125 case $ac_abs_builddir in
21126 .) ac_abs_srcdir=$ac_srcdir;;
21127 *)
21128   case $ac_srcdir in
21129   .) ac_abs_srcdir=$ac_abs_builddir;;
21130   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21131   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21132   esac;;
21133 esac
21134 case $ac_abs_builddir in
21135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21136 *)
21137   case $ac_top_srcdir in
21138   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21139   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21140   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21141   esac;;
21142 esac
21143
21144
21145   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21146 echo "$as_me: executing $ac_dest commands" >&6;}
21147   case $ac_dest in
21148     default-1 )
21149 # Only add multilib support code if we just rebuilt the top-level
21150 # Makefile.
21151 case " $CONFIG_FILES " in
21152  *" Makefile "*)
21153    ac_file=Makefile . ${multi_basedir}/config-ml.in
21154    ;;
21155 esac ;;
21156     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21157   # Strip MF so we end up with the name of the file.
21158   mf=`echo "$mf" | sed -e 's/:.*$//'`
21159   # Check whether this is an Automake generated Makefile or not.
21160   # We used to match only the files named `Makefile.in', but
21161   # some people rename them; so instead we look at the file content.
21162   # Grep'ing the first line is not enough: some people post-process
21163   # each Makefile.in and add a new line on top of each file to say so.
21164   # So let's grep whole file.
21165   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21166     dirpart=`(dirname "$mf") 2>/dev/null ||
21167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21168          X"$mf" : 'X\(//\)[^/]' \| \
21169          X"$mf" : 'X\(//\)$' \| \
21170          X"$mf" : 'X\(/\)' \| \
21171          .     : '\(.\)' 2>/dev/null ||
21172 echo X"$mf" |
21173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21174           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21175           /^X\(\/\/\)$/{ s//\1/; q; }
21176           /^X\(\/\).*/{ s//\1/; q; }
21177           s/.*/./; q'`
21178   else
21179     continue
21180   fi
21181   # Extract the definition of DEPDIR, am__include, and am__quote
21182   # from the Makefile without running `make'.
21183   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21184   test -z "$DEPDIR" && continue
21185   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21186   test -z "am__include" && continue
21187   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21188   # When using ansi2knr, U may be empty or an underscore; expand it
21189   U=`sed -n 's/^U = //p' < "$mf"`
21190   # Find all dependency output files, they are included files with
21191   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21192   # simplest approach to changing $(DEPDIR) to its actual value in the
21193   # expansion.
21194   for file in `sed -n "
21195     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21196        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21197     # Make sure the directory exists.
21198     test -f "$dirpart/$file" && continue
21199     fdir=`(dirname "$file") 2>/dev/null ||
21200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21201          X"$file" : 'X\(//\)[^/]' \| \
21202          X"$file" : 'X\(//\)$' \| \
21203          X"$file" : 'X\(/\)' \| \
21204          .     : '\(.\)' 2>/dev/null ||
21205 echo X"$file" |
21206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21207           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21208           /^X\(\/\/\)$/{ s//\1/; q; }
21209           /^X\(\/\).*/{ s//\1/; q; }
21210           s/.*/./; q'`
21211     { if $as_mkdir_p; then
21212     mkdir -p $dirpart/$fdir
21213   else
21214     as_dir=$dirpart/$fdir
21215     as_dirs=
21216     while test ! -d "$as_dir"; do
21217       as_dirs="$as_dir $as_dirs"
21218       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21220          X"$as_dir" : 'X\(//\)[^/]' \| \
21221          X"$as_dir" : 'X\(//\)$' \| \
21222          X"$as_dir" : 'X\(/\)' \| \
21223          .     : '\(.\)' 2>/dev/null ||
21224 echo X"$as_dir" |
21225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21226           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21227           /^X\(\/\/\)$/{ s//\1/; q; }
21228           /^X\(\/\).*/{ s//\1/; q; }
21229           s/.*/./; q'`
21230     done
21231     test ! -n "$as_dirs" || mkdir $as_dirs
21232   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21233 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21234    { (exit 1); exit 1; }; }; }
21235
21236     # echo "creating $dirpart/$file"
21237     echo '# dummy' > "$dirpart/$file"
21238   done
21239 done
21240  ;;
21241     libtool )
21242
21243     # See if we are running on zsh, and set the options which allow our
21244     # commands through without removal of \ escapes.
21245     if test -n "${ZSH_VERSION+set}" ; then
21246       setopt NO_GLOB_SUBST
21247     fi
21248
21249     cfgfile="${ofile}T"
21250     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21251     $RM "$cfgfile"
21252
21253     cat <<_LT_EOF >> "$cfgfile"
21254 #! $SHELL
21255
21256 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21257 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21259 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21260 #
21261 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21262 # 2006, 2007 Free Software Foundation, Inc.
21263 #
21264 # This file is part of GNU Libtool:
21265 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21266 #
21267 # This program is free software; you can redistribute it and/or modify
21268 # it under the terms of the GNU General Public License as published by
21269 # the Free Software Foundation; either version 2 of the License, or
21270 # (at your option) any later version.
21271 #
21272 # This program is distributed in the hope that it will be useful, but
21273 # WITHOUT ANY WARRANTY; without even the implied warranty of
21274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21275 # General Public License for more details.
21276 #
21277 # You should have received a copy of the GNU General Public License
21278 # along with this program; if not, a copy can be downloaded from
21279 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21280 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21281 # MA 02110-1301, USA.
21282 #
21283 # As a special exception to the GNU General Public License, if you
21284 # distribute this file as part of a program that contains a
21285 # configuration script generated by Autoconf, you may include it under
21286 # the same distribution terms that you use for the rest of that program.
21287
21288
21289 # The names of the tagged configurations supported by this script.
21290 available_tags="FC "
21291
21292 # ### BEGIN LIBTOOL CONFIG
21293
21294 # Which release of libtool.m4 was used?
21295 macro_version=$macro_version
21296 macro_revision=$macro_revision
21297
21298 # Whether or not to build shared libraries.
21299 build_libtool_libs=$enable_shared
21300
21301 # Whether or not to build static libraries.
21302 build_old_libs=$enable_static
21303
21304 # What type of objects to build.
21305 pic_mode=$pic_mode
21306
21307 # Whether or not to optimize for fast installation.
21308 fast_install=$enable_fast_install
21309
21310 # The host system.
21311 host_alias=$host_alias
21312 host=$host
21313 host_os=$host_os
21314
21315 # The build system.
21316 build_alias=$build_alias
21317 build=$build
21318 build_os=$build_os
21319
21320 # A sed program that does not truncate output.
21321 SED=$lt_SED
21322
21323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21324 Xsed="\$SED -e 1s/^X//"
21325
21326 # A grep program that handles long lines.
21327 GREP=$lt_GREP
21328
21329 # An ERE matcher.
21330 EGREP=$lt_EGREP
21331
21332 # A literal string matcher.
21333 FGREP=$lt_FGREP
21334
21335 # A BSD- or MS-compatible name lister.
21336 NM=$lt_NM
21337
21338 # Whether we need soft or hard links.
21339 LN_S=$lt_LN_S
21340
21341 # What is the maximum length of a command?
21342 max_cmd_len=$max_cmd_len
21343
21344 # Object file suffix (normally "o").
21345 objext=$ac_objext
21346
21347 # Executable file suffix (normally "").
21348 exeext=$exeext
21349
21350 # whether the shell understands "unset".
21351 lt_unset=$lt_unset
21352
21353 # turn spaces into newlines.
21354 SP2NL=$lt_lt_SP2NL
21355
21356 # turn newlines into spaces.
21357 NL2SP=$lt_lt_NL2SP
21358
21359 # How to create reloadable object files.
21360 reload_flag=$lt_reload_flag
21361 reload_cmds=$lt_reload_cmds
21362
21363 # Method to check whether dependent libraries are shared objects.
21364 deplibs_check_method=$lt_deplibs_check_method
21365
21366 # Command to use when deplibs_check_method == "file_magic".
21367 file_magic_cmd=$lt_file_magic_cmd
21368
21369 # The archiver.
21370 AR=$lt_AR
21371 AR_FLAGS=$lt_AR_FLAGS
21372
21373 # A symbol stripping program.
21374 STRIP=$lt_STRIP
21375
21376 # Commands used to install an old-style archive.
21377 RANLIB=$lt_RANLIB
21378 old_postinstall_cmds=$lt_old_postinstall_cmds
21379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21380
21381 # A C compiler.
21382 LTCC=$lt_CC
21383
21384 # LTCC compiler flags.
21385 LTCFLAGS=$lt_CFLAGS
21386
21387 # Take the output of nm and produce a listing of raw symbols and C names.
21388 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21389
21390 # Transform the output of nm in a proper C declaration.
21391 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21392
21393 # Transform the output of nm in a C name address pair.
21394 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21395
21396 # The name of the directory that contains temporary libtool files.
21397 objdir=$objdir
21398
21399 # Shell to use when invoking shell scripts.
21400 SHELL=$lt_SHELL
21401
21402 # An echo program that does not interpret backslashes.
21403 ECHO=$lt_ECHO
21404
21405 # Used to examine libraries when file_magic_cmd begins with "file".
21406 MAGIC_CMD=$MAGIC_CMD
21407
21408 # Must we lock files when doing compilation?
21409 need_locks=$lt_need_locks
21410
21411 # Old archive suffix (normally "a").
21412 libext=$libext
21413
21414 # Shared library suffix (normally ".so").
21415 shrext_cmds=$lt_shrext_cmds
21416
21417 # The commands to extract the exported symbol list from a shared archive.
21418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21419
21420 # Variables whose values should be saved in libtool wrapper scripts and
21421 # restored at link time.
21422 variables_saved_for_relink=$lt_variables_saved_for_relink
21423
21424 # Do we need the "lib" prefix for modules?
21425 need_lib_prefix=$need_lib_prefix
21426
21427 # Do we need a version for libraries?
21428 need_version=$need_version
21429
21430 # Library versioning type.
21431 version_type=$version_type
21432
21433 # Shared library runtime path variable.
21434 runpath_var=$runpath_var
21435
21436 # Shared library path variable.
21437 shlibpath_var=$shlibpath_var
21438
21439 # Is shlibpath searched before the hard-coded library search path?
21440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21441
21442 # Format of library name prefix.
21443 libname_spec=$lt_libname_spec
21444
21445 # List of archive names.  First name is the real one, the rest are links.
21446 # The last name is the one that the linker finds with -lNAME
21447 library_names_spec=$lt_library_names_spec
21448
21449 # The coded name of the library, if different from the real name.
21450 soname_spec=$lt_soname_spec
21451
21452 # Command to use after installation of a shared archive.
21453 postinstall_cmds=$lt_postinstall_cmds
21454
21455 # Command to use after uninstallation of a shared archive.
21456 postuninstall_cmds=$lt_postuninstall_cmds
21457
21458 # Commands used to finish a libtool library installation in a directory.
21459 finish_cmds=$lt_finish_cmds
21460
21461 # As "finish_cmds", except a single script fragment to be evaled but
21462 # not shown.
21463 finish_eval=$lt_finish_eval
21464
21465 # Whether we should hardcode library paths into libraries.
21466 hardcode_into_libs=$hardcode_into_libs
21467
21468 # Compile-time system search path for libraries.
21469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21470
21471 # Run-time system search path for libraries.
21472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21473
21474 # Whether dlopen is supported.
21475 dlopen_support=$enable_dlopen
21476
21477 # Whether dlopen of programs is supported.
21478 dlopen_self=$enable_dlopen_self
21479
21480 # Whether dlopen of statically linked programs is supported.
21481 dlopen_self_static=$enable_dlopen_self_static
21482
21483 # Commands to strip libraries.
21484 old_striplib=$lt_old_striplib
21485 striplib=$lt_striplib
21486
21487
21488 # The linker used to build libraries.
21489 LD=$lt_LD
21490
21491 # Commands used to build an old-style archive.
21492 old_archive_cmds=$lt_old_archive_cmds
21493
21494 # A language specific compiler.
21495 CC=$lt_compiler
21496
21497 # Is the compiler the GNU compiler?
21498 with_gcc=$GCC
21499
21500 # Compiler flag to turn off builtin functions.
21501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21502
21503 # How to pass a linker flag through the compiler.
21504 wl=$lt_lt_prog_compiler_wl
21505
21506 # Additional compiler flags for building library objects.
21507 pic_flag=$lt_lt_prog_compiler_pic
21508
21509 # Compiler flag to prevent dynamic linking.
21510 link_static_flag=$lt_lt_prog_compiler_static
21511
21512 # Does compiler simultaneously support -c and -o options?
21513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21514
21515 # Whether or not to add -lc for building shared libraries.
21516 build_libtool_need_lc=$archive_cmds_need_lc
21517
21518 # Whether or not to disallow shared libs when runtime libs are static.
21519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21520
21521 # Compiler flag to allow reflexive dlopens.
21522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21523
21524 # Compiler flag to generate shared objects directly from archives.
21525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21526
21527 # Whether the compiler copes with passing no objects directly.
21528 compiler_needs_object=$lt_compiler_needs_object
21529
21530 # Create an old-style archive from a shared archive.
21531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21532
21533 # Create a temporary old-style archive to link instead of a shared archive.
21534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21535
21536 # Commands used to build a shared archive.
21537 archive_cmds=$lt_archive_cmds
21538 archive_expsym_cmds=$lt_archive_expsym_cmds
21539
21540 # Commands used to build a loadable module if different from building
21541 # a shared archive.
21542 module_cmds=$lt_module_cmds
21543 module_expsym_cmds=$lt_module_expsym_cmds
21544
21545 # Whether we are building with GNU ld or not.
21546 with_gnu_ld=$lt_with_gnu_ld
21547
21548 # Flag that allows shared libraries with undefined symbols to be built.
21549 allow_undefined_flag=$lt_allow_undefined_flag
21550
21551 # Flag that enforces no undefined symbols.
21552 no_undefined_flag=$lt_no_undefined_flag
21553
21554 # Flag to hardcode \$libdir into a binary during linking.
21555 # This must work even if \$libdir does not exist
21556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21557
21558 # If ld is used when linking, flag to hardcode \$libdir into a binary
21559 # during linking.  This must work even if \$libdir does not exist.
21560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21561
21562 # Whether we need a single "-rpath" flag with a separated argument.
21563 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21564
21565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21566 # DIR into the resulting binary.
21567 hardcode_direct=$hardcode_direct
21568
21569 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21570 # DIR into the resulting binary and the resulting library dependency is
21571 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21572 # library is relocated.
21573 hardcode_direct_absolute=$hardcode_direct_absolute
21574
21575 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21576 # into the resulting binary.
21577 hardcode_minus_L=$hardcode_minus_L
21578
21579 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21580 # into the resulting binary.
21581 hardcode_shlibpath_var=$hardcode_shlibpath_var
21582
21583 # Set to "yes" if building a shared library automatically hardcodes DIR
21584 # into the library and all subsequent libraries and executables linked
21585 # against it.
21586 hardcode_automatic=$hardcode_automatic
21587
21588 # Set to yes if linker adds runtime paths of dependent libraries
21589 # to runtime path list.
21590 inherit_rpath=$inherit_rpath
21591
21592 # Whether libtool must link a program against all its dependency libraries.
21593 link_all_deplibs=$link_all_deplibs
21594
21595 # Fix the shell variable \$srcfile for the compiler.
21596 fix_srcfile_path=$lt_fix_srcfile_path
21597
21598 # Set to "yes" if exported symbols are required.
21599 always_export_symbols=$always_export_symbols
21600
21601 # The commands to list exported symbols.
21602 export_symbols_cmds=$lt_export_symbols_cmds
21603
21604 # Symbols that should not be listed in the preloaded symbols.
21605 exclude_expsyms=$lt_exclude_expsyms
21606
21607 # Symbols that must always be exported.
21608 include_expsyms=$lt_include_expsyms
21609
21610 # Commands necessary for linking programs (against libraries) with templates.
21611 prelink_cmds=$lt_prelink_cmds
21612
21613 # Specify filename containing input files.
21614 file_list_spec=$lt_file_list_spec
21615
21616 # How to hardcode a shared library path into an executable.
21617 hardcode_action=$hardcode_action
21618
21619 # Dependencies to place before and after the objects being linked to
21620 # create a shared library.
21621 predep_objects=$lt_predep_objects
21622 postdep_objects=$lt_postdep_objects
21623 predeps=$lt_predeps
21624 postdeps=$lt_postdeps
21625
21626 # The library search path used internally by the compiler when linking
21627 # a shared library.
21628 compiler_lib_search_path=$lt_compiler_lib_search_path
21629
21630 # ### END LIBTOOL CONFIG
21631
21632 _LT_EOF
21633
21634   case $host_os in
21635   aix3*)
21636     cat <<\_LT_EOF >> "$cfgfile"
21637 # AIX sometimes has problems with the GCC collect2 program.  For some
21638 # reason, if we set the COLLECT_NAMES environment variable, the problems
21639 # vanish in a puff of smoke.
21640 if test "X${COLLECT_NAMES+set}" != Xset; then
21641   COLLECT_NAMES=
21642   export COLLECT_NAMES
21643 fi
21644 _LT_EOF
21645     ;;
21646   esac
21647
21648
21649 ltmain="$ac_aux_dir/ltmain.sh"
21650
21651
21652   # We use sed instead of cat because bash on DJGPP gets confused if
21653   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21654   # text mode, it properly converts lines to CR/LF.  This bash problem
21655   # is reportedly fixed, but why not run on old versions too?
21656   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21657     || (rm -f "$cfgfile"; exit 1)
21658
21659   case $xsi_shell in
21660   yes)
21661     cat << \_LT_EOF >> "$cfgfile"
21662 # func_dirname file append nondir_replacement
21663 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21664 # otherwise set result to NONDIR_REPLACEMENT.
21665 func_dirname ()
21666 {
21667   case ${1} in
21668     */*) func_dirname_result="${1%/*}${2}" ;;
21669     *  ) func_dirname_result="${3}" ;;
21670   esac
21671 }
21672
21673 # func_basename file
21674 func_basename ()
21675 {
21676   func_basename_result="${1##*/}"
21677 }
21678
21679 # func_stripname prefix suffix name
21680 # strip PREFIX and SUFFIX off of NAME.
21681 # PREFIX and SUFFIX must not contain globbing or regex special
21682 # characters, hashes, percent signs, but SUFFIX may contain a leading
21683 # dot (in which case that matches only a dot).
21684 func_stripname ()
21685 {
21686   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21687   # positional parameters, so assign one to ordinary parameter first.
21688   func_stripname_result=${3}
21689   func_stripname_result=${func_stripname_result#"${1}"}
21690   func_stripname_result=${func_stripname_result%"${2}"}
21691 }
21692
21693 # func_opt_split
21694 func_opt_split ()
21695 {
21696   func_opt_split_opt=${1%%=*}
21697   func_opt_split_arg=${1#*=}
21698 }
21699
21700 # func_lo2o object
21701 func_lo2o ()
21702 {
21703   case ${1} in
21704     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21705     *)    func_lo2o_result=${1} ;;
21706   esac
21707 }
21708 _LT_EOF
21709     ;;
21710   *) # Bourne compatible functions.
21711     cat << \_LT_EOF >> "$cfgfile"
21712 # func_dirname file append nondir_replacement
21713 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21714 # otherwise set result to NONDIR_REPLACEMENT.
21715 func_dirname ()
21716 {
21717   # Extract subdirectory from the argument.
21718   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21719   if test "X$func_dirname_result" = "X${1}"; then
21720     func_dirname_result="${3}"
21721   else
21722     func_dirname_result="$func_dirname_result${2}"
21723   fi
21724 }
21725
21726 # func_basename file
21727 func_basename ()
21728 {
21729   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21730 }
21731
21732 # func_stripname prefix suffix name
21733 # strip PREFIX and SUFFIX off of NAME.
21734 # PREFIX and SUFFIX must not contain globbing or regex special
21735 # characters, hashes, percent signs, but SUFFIX may contain a leading
21736 # dot (in which case that matches only a dot).
21737 # func_strip_suffix prefix name
21738 func_stripname ()
21739 {
21740   case ${2} in
21741     .*) func_stripname_result=`$ECHO "X${3}" \
21742            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21743     *)  func_stripname_result=`$ECHO "X${3}" \
21744            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21745   esac
21746 }
21747
21748 # sed scripts:
21749 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21750 my_sed_long_arg='1s/^-[^=]*=//'
21751
21752 # func_opt_split
21753 func_opt_split ()
21754 {
21755   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21756   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21757 }
21758
21759 # func_lo2o object
21760 func_lo2o ()
21761 {
21762   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21763 }
21764 _LT_EOF
21765 esac
21766
21767 case $lt_shell_append in
21768   yes)
21769     cat << \_LT_EOF >> "$cfgfile"
21770
21771 # func_append var value
21772 # Append VALUE to the end of shell variable VAR.
21773 func_append ()
21774 {
21775   eval "$1+=\$2"
21776 }
21777 _LT_EOF
21778     ;;
21779   *)
21780     cat << \_LT_EOF >> "$cfgfile"
21781
21782 # func_append var value
21783 # Append VALUE to the end of shell variable VAR.
21784 func_append ()
21785 {
21786   eval "$1=\$$1\$2"
21787 }
21788 _LT_EOF
21789     ;;
21790   esac
21791
21792
21793   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21794     || (rm -f "$cfgfile"; exit 1)
21795
21796   mv -f "$cfgfile" "$ofile" ||
21797     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21798   chmod +x "$ofile"
21799
21800
21801     cat <<_LT_EOF >> "$ofile"
21802
21803 # ### BEGIN LIBTOOL TAG CONFIG: FC
21804
21805 # The linker used to build libraries.
21806 LD=$lt_LD_FC
21807
21808 # Commands used to build an old-style archive.
21809 old_archive_cmds=$lt_old_archive_cmds_FC
21810
21811 # A language specific compiler.
21812 CC=$lt_compiler_FC
21813
21814 # Is the compiler the GNU compiler?
21815 with_gcc=$GCC_FC
21816
21817 # Compiler flag to turn off builtin functions.
21818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21819
21820 # How to pass a linker flag through the compiler.
21821 wl=$lt_lt_prog_compiler_wl_FC
21822
21823 # Additional compiler flags for building library objects.
21824 pic_flag=$lt_lt_prog_compiler_pic_FC
21825
21826 # Compiler flag to prevent dynamic linking.
21827 link_static_flag=$lt_lt_prog_compiler_static_FC
21828
21829 # Does compiler simultaneously support -c and -o options?
21830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21831
21832 # Whether or not to add -lc for building shared libraries.
21833 build_libtool_need_lc=$archive_cmds_need_lc_FC
21834
21835 # Whether or not to disallow shared libs when runtime libs are static.
21836 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21837
21838 # Compiler flag to allow reflexive dlopens.
21839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21840
21841 # Compiler flag to generate shared objects directly from archives.
21842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21843
21844 # Whether the compiler copes with passing no objects directly.
21845 compiler_needs_object=$lt_compiler_needs_object_FC
21846
21847 # Create an old-style archive from a shared archive.
21848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21849
21850 # Create a temporary old-style archive to link instead of a shared archive.
21851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21852
21853 # Commands used to build a shared archive.
21854 archive_cmds=$lt_archive_cmds_FC
21855 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21856
21857 # Commands used to build a loadable module if different from building
21858 # a shared archive.
21859 module_cmds=$lt_module_cmds_FC
21860 module_expsym_cmds=$lt_module_expsym_cmds_FC
21861
21862 # Whether we are building with GNU ld or not.
21863 with_gnu_ld=$lt_with_gnu_ld_FC
21864
21865 # Flag that allows shared libraries with undefined symbols to be built.
21866 allow_undefined_flag=$lt_allow_undefined_flag_FC
21867
21868 # Flag that enforces no undefined symbols.
21869 no_undefined_flag=$lt_no_undefined_flag_FC
21870
21871 # Flag to hardcode \$libdir into a binary during linking.
21872 # This must work even if \$libdir does not exist
21873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21874
21875 # If ld is used when linking, flag to hardcode \$libdir into a binary
21876 # during linking.  This must work even if \$libdir does not exist.
21877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21878
21879 # Whether we need a single "-rpath" flag with a separated argument.
21880 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21881
21882 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21883 # DIR into the resulting binary.
21884 hardcode_direct=$hardcode_direct_FC
21885
21886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21887 # DIR into the resulting binary and the resulting library dependency is
21888 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21889 # library is relocated.
21890 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21891
21892 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21893 # into the resulting binary.
21894 hardcode_minus_L=$hardcode_minus_L_FC
21895
21896 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21897 # into the resulting binary.
21898 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21899
21900 # Set to "yes" if building a shared library automatically hardcodes DIR
21901 # into the library and all subsequent libraries and executables linked
21902 # against it.
21903 hardcode_automatic=$hardcode_automatic_FC
21904
21905 # Set to yes if linker adds runtime paths of dependent libraries
21906 # to runtime path list.
21907 inherit_rpath=$inherit_rpath_FC
21908
21909 # Whether libtool must link a program against all its dependency libraries.
21910 link_all_deplibs=$link_all_deplibs_FC
21911
21912 # Fix the shell variable \$srcfile for the compiler.
21913 fix_srcfile_path=$lt_fix_srcfile_path_FC
21914
21915 # Set to "yes" if exported symbols are required.
21916 always_export_symbols=$always_export_symbols_FC
21917
21918 # The commands to list exported symbols.
21919 export_symbols_cmds=$lt_export_symbols_cmds_FC
21920
21921 # Symbols that should not be listed in the preloaded symbols.
21922 exclude_expsyms=$lt_exclude_expsyms_FC
21923
21924 # Symbols that must always be exported.
21925 include_expsyms=$lt_include_expsyms_FC
21926
21927 # Commands necessary for linking programs (against libraries) with templates.
21928 prelink_cmds=$lt_prelink_cmds_FC
21929
21930 # Specify filename containing input files.
21931 file_list_spec=$lt_file_list_spec_FC
21932
21933 # How to hardcode a shared library path into an executable.
21934 hardcode_action=$hardcode_action_FC
21935
21936 # Dependencies to place before and after the objects being linked to
21937 # create a shared library.
21938 predep_objects=$lt_predep_objects_FC
21939 postdep_objects=$lt_postdep_objects_FC
21940 predeps=$lt_predeps_FC
21941 postdeps=$lt_postdeps_FC
21942
21943 # The library search path used internally by the compiler when linking
21944 # a shared library.
21945 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
21946
21947 # ### END LIBTOOL TAG CONFIG: FC
21948 _LT_EOF
21949
21950  ;;
21951     gstdint.h )
21952 if test "$GCC" = yes; then
21953   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
21954 else
21955   echo "/* generated for $CC */" > tmp-stdint.h
21956 fi
21957
21958 sed 's/^ *//' >> tmp-stdint.h <<EOF
21959
21960   #ifndef GCC_GENERATED_STDINT_H
21961   #define GCC_GENERATED_STDINT_H 1
21962
21963   #include <sys/types.h>
21964 EOF
21965
21966 if test "$acx_cv_header_stdint" != stdint.h; then
21967   echo "#include <stddef.h>" >> tmp-stdint.h
21968 fi
21969 if test "$acx_cv_header_stdint" != stddef.h; then
21970   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
21971 fi
21972
21973 sed 's/^ *//' >> tmp-stdint.h <<EOF
21974   /* glibc uses these symbols as guards to prevent redefinitions.  */
21975   #ifdef __int8_t_defined
21976   #define _INT8_T
21977   #define _INT16_T
21978   #define _INT32_T
21979   #endif
21980   #ifdef __uint32_t_defined
21981   #define _UINT32_T
21982   #endif
21983
21984 EOF
21985
21986 # ----------------- done header, emit basic int types -------------
21987 if test "$acx_cv_header_stdint" = stddef.h; then
21988   sed 's/^ *//' >> tmp-stdint.h <<EOF
21989
21990     #ifndef _UINT8_T
21991     #define _UINT8_T
21992     #ifndef __uint8_t_defined
21993     #define __uint8_t_defined
21994     typedef unsigned $acx_cv_type_int8_t uint8_t;
21995     #endif
21996     #endif
21997
21998     #ifndef _UINT16_T
21999     #define _UINT16_T
22000     #ifndef __uint16_t_defined
22001     #define __uint16_t_defined
22002     typedef unsigned $acx_cv_type_int16_t uint16_t;
22003     #endif
22004     #endif
22005
22006     #ifndef _UINT32_T
22007     #define _UINT32_T
22008     #ifndef __uint32_t_defined
22009     #define __uint32_t_defined
22010     typedef unsigned $acx_cv_type_int32_t uint32_t;
22011     #endif
22012     #endif
22013
22014     #ifndef _INT8_T
22015     #define _INT8_T
22016     #ifndef __int8_t_defined
22017     #define __int8_t_defined
22018     typedef $acx_cv_type_int8_t int8_t;
22019     #endif
22020     #endif
22021
22022     #ifndef _INT16_T
22023     #define _INT16_T
22024     #ifndef __int16_t_defined
22025     #define __int16_t_defined
22026     typedef $acx_cv_type_int16_t int16_t;
22027     #endif
22028     #endif
22029
22030     #ifndef _INT32_T
22031     #define _INT32_T
22032     #ifndef __int32_t_defined
22033     #define __int32_t_defined
22034     typedef $acx_cv_type_int32_t int32_t;
22035     #endif
22036     #endif
22037 EOF
22038 elif test "$ac_cv_type_u_int32_t" = yes; then
22039   sed 's/^ *//' >> tmp-stdint.h <<EOF
22040
22041     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22042     #ifndef _INT8_T
22043     #define _INT8_T
22044     #endif
22045     #ifndef _INT16_T
22046     #define _INT16_T
22047     #endif
22048     #ifndef _INT32_T
22049     #define _INT32_T
22050     #endif
22051
22052     #ifndef _UINT8_T
22053     #define _UINT8_T
22054     #ifndef __uint8_t_defined
22055     #define __uint8_t_defined
22056     typedef u_int8_t uint8_t;
22057     #endif
22058     #endif
22059
22060     #ifndef _UINT16_T
22061     #define _UINT16_T
22062     #ifndef __uint16_t_defined
22063     #define __uint16_t_defined
22064     typedef u_int16_t uint16_t;
22065     #endif
22066     #endif
22067
22068     #ifndef _UINT32_T
22069     #define _UINT32_T
22070     #ifndef __uint32_t_defined
22071     #define __uint32_t_defined
22072     typedef u_int32_t uint32_t;
22073     #endif
22074     #endif
22075 EOF
22076 else
22077   sed 's/^ *//' >> tmp-stdint.h <<EOF
22078
22079     /* Some systems have guard macros to prevent redefinitions, define them.  */
22080     #ifndef _INT8_T
22081     #define _INT8_T
22082     #endif
22083     #ifndef _INT16_T
22084     #define _INT16_T
22085     #endif
22086     #ifndef _INT32_T
22087     #define _INT32_T
22088     #endif
22089     #ifndef _UINT8_T
22090     #define _UINT8_T
22091     #endif
22092     #ifndef _UINT16_T
22093     #define _UINT16_T
22094     #endif
22095     #ifndef _UINT32_T
22096     #define _UINT32_T
22097     #endif
22098 EOF
22099 fi
22100
22101 # ------------- done basic int types, emit int64_t types ------------
22102 if test "$ac_cv_type_uint64_t" = yes; then
22103   sed 's/^ *//' >> tmp-stdint.h <<EOF
22104
22105     /* system headers have good uint64_t and int64_t */
22106     #ifndef _INT64_T
22107     #define _INT64_T
22108     #endif
22109     #ifndef _UINT64_T
22110     #define _UINT64_T
22111     #endif
22112 EOF
22113 elif test "$ac_cv_type_u_int64_t" = yes; then
22114   sed 's/^ *//' >> tmp-stdint.h <<EOF
22115
22116     /* system headers have an u_int64_t (and int64_t) */
22117     #ifndef _INT64_T
22118     #define _INT64_T
22119     #endif
22120     #ifndef _UINT64_T
22121     #define _UINT64_T
22122     #ifndef __uint64_t_defined
22123     #define __uint64_t_defined
22124     typedef u_int64_t uint64_t;
22125     #endif
22126     #endif
22127 EOF
22128 elif test -n "$acx_cv_type_int64_t"; then
22129   sed 's/^ *//' >> tmp-stdint.h <<EOF
22130
22131     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22132     #ifndef _INT64_T
22133     #define _INT64_T
22134     typedef $acx_cv_type_int64_t int64_t;
22135     #endif
22136     #ifndef _UINT64_T
22137     #define _UINT64_T
22138     #ifndef __uint64_t_defined
22139     #define __uint64_t_defined
22140     typedef unsigned $acx_cv_type_int64_t uint64_t;
22141     #endif
22142     #endif
22143 EOF
22144 else
22145   sed 's/^ *//' >> tmp-stdint.h <<EOF
22146
22147     /* some common heuristics for int64_t, using compiler-specific tests */
22148     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22149     #ifndef _INT64_T
22150     #define _INT64_T
22151     #ifndef __int64_t_defined
22152     typedef long long int64_t;
22153     #endif
22154     #endif
22155     #ifndef _UINT64_T
22156     #define _UINT64_T
22157     typedef unsigned long long uint64_t;
22158     #endif
22159
22160     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22161     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22162        does not implement __extension__.  But that compiler doesn't define
22163        __GNUC_MINOR__.  */
22164     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22165     # define __extension__
22166     # endif
22167
22168     # ifndef _INT64_T
22169     # define _INT64_T
22170     __extension__ typedef long long int64_t;
22171     # endif
22172     # ifndef _UINT64_T
22173     # define _UINT64_T
22174     __extension__ typedef unsigned long long uint64_t;
22175     # endif
22176
22177     #elif !defined __STRICT_ANSI__
22178     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22179
22180     #  ifndef _INT64_T
22181     #  define _INT64_T
22182     typedef __int64 int64_t;
22183     #  endif
22184     #  ifndef _UINT64_T
22185     #  define _UINT64_T
22186     typedef unsigned __int64 uint64_t;
22187     #  endif
22188     # endif /* compiler */
22189
22190     #endif /* ANSI version */
22191 EOF
22192 fi
22193
22194 # ------------- done int64_t types, emit intptr types ------------
22195 if test "$ac_cv_type_uintptr_t" != yes; then
22196   sed 's/^ *//' >> tmp-stdint.h <<EOF
22197
22198     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22199     #ifndef __uintptr_t_defined
22200     typedef u$acx_cv_type_intptr_t uintptr_t;
22201     #endif
22202     #ifndef __intptr_t_defined
22203     typedef $acx_cv_type_intptr_t  intptr_t;
22204     #endif
22205 EOF
22206 fi
22207
22208 # ------------- done intptr types, emit int_least types ------------
22209 if test "$ac_cv_type_int_least32_t" != yes; then
22210   sed 's/^ *//' >> tmp-stdint.h <<EOF
22211
22212     /* Define int_least types */
22213     typedef int8_t     int_least8_t;
22214     typedef int16_t    int_least16_t;
22215     typedef int32_t    int_least32_t;
22216     #ifdef _INT64_T
22217     typedef int64_t    int_least64_t;
22218     #endif
22219
22220     typedef uint8_t    uint_least8_t;
22221     typedef uint16_t   uint_least16_t;
22222     typedef uint32_t   uint_least32_t;
22223     #ifdef _UINT64_T
22224     typedef uint64_t   uint_least64_t;
22225     #endif
22226 EOF
22227 fi
22228
22229 # ------------- done intptr types, emit int_fast types ------------
22230 if test "$ac_cv_type_int_fast32_t" != yes; then
22231       sed 's/^ *//' >> tmp-stdint.h <<EOF
22232
22233     /* Define int_fast types.  short is often slow */
22234     typedef int8_t       int_fast8_t;
22235     typedef int          int_fast16_t;
22236     typedef int32_t      int_fast32_t;
22237     #ifdef _INT64_T
22238     typedef int64_t      int_fast64_t;
22239     #endif
22240
22241     typedef uint8_t      uint_fast8_t;
22242     typedef unsigned int uint_fast16_t;
22243     typedef uint32_t     uint_fast32_t;
22244     #ifdef _UINT64_T
22245     typedef uint64_t     uint_fast64_t;
22246     #endif
22247 EOF
22248 fi
22249
22250 if test "$ac_cv_type_uintmax_t" != yes; then
22251   sed 's/^ *//' >> tmp-stdint.h <<EOF
22252
22253     /* Define intmax based on what we found */
22254     #ifdef _INT64_T
22255     typedef int64_t       intmax_t;
22256     #else
22257     typedef long          intmax_t;
22258     #endif
22259     #ifdef _UINT64_T
22260     typedef uint64_t      uintmax_t;
22261     #else
22262     typedef unsigned long uintmax_t;
22263     #endif
22264 EOF
22265 fi
22266
22267 sed 's/^ *//' >> tmp-stdint.h <<EOF
22268
22269   #endif /* GCC_GENERATED_STDINT_H */
22270 EOF
22271
22272 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22273   rm -f tmp-stdint.h
22274 else
22275   mv -f tmp-stdint.h gstdint.h
22276 fi
22277
22278  ;;
22279   esac
22280 done
22281 _ACEOF
22282
22283 cat >>$CONFIG_STATUS <<\_ACEOF
22284
22285 { (exit 0); exit 0; }
22286 _ACEOF
22287 chmod +x $CONFIG_STATUS
22288 ac_clean_files=$ac_clean_files_save
22289
22290
22291 # configure is writing to config.log, and then calls config.status.
22292 # config.status does its own redirection, appending to config.log.
22293 # Unfortunately, on DOS this fails, as config.log is still kept open
22294 # by configure, so config.status won't be able to write to it; its
22295 # output is simply discarded.  So we exec the FD to /dev/null,
22296 # effectively closing config.log, so it can be properly (re)opened and
22297 # appended to by config.status.  When coming back to configure, we
22298 # need to make the FD available again.
22299 if test "$no_create" != yes; then
22300   ac_cs_success=:
22301   ac_config_status_args=
22302   test "$silent" = yes &&
22303     ac_config_status_args="$ac_config_status_args --quiet"
22304   exec 5>/dev/null
22305   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22306   exec 5>>config.log
22307   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22308   # would make configure fail if this is the last instruction.
22309   $ac_cs_success || { (exit 1); exit 1; }
22310 fi
22311