OSDN Git Service

* acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
[pf3gnuchains/gcc-fork.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 OMP_LOCK_25_SIZE OMP_LOCK_25_ALIGN OMP_NEST_LOCK_25_SIZE OMP_NEST_LOCK_25_ALIGN OMP_LOCK_25_KIND OMP_NEST_LOCK_25_KIND LIBOBJS LTLIBOBJS'
461 ac_subst_files=''
462 ac_pwd=`pwd`
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_FC_set=${FC+set}
911 ac_env_FC_value=$FC
912 ac_cv_env_FC_set=${FC+set}
913 ac_cv_env_FC_value=$FC
914 ac_env_FCFLAGS_set=${FCFLAGS+set}
915 ac_env_FCFLAGS_value=$FCFLAGS
916 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
917 ac_cv_env_FCFLAGS_value=$FCFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927   # Omit some internal or obsolete options to make the list less imposing.
928   # This message is too long to be a string in the A/UX 3.1 sh.
929   cat <<_ACEOF
930 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940   -h, --help              display this help and exit
941       --help=short        display options specific to this package
942       --help=recursive    display the short help of all the included packages
943   -V, --version           display version information and exit
944   -q, --quiet, --silent   do not print \`checking...' messages
945       --cache-file=FILE   cache test results in FILE [disabled]
946   -C, --config-cache      alias for \`--cache-file=config.cache'
947   -n, --no-create         do not create output files
948       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952   cat <<_ACEOF
953 Installation directories:
954   --prefix=PREFIX         install architecture-independent files in PREFIX
955                           [$ac_default_prefix]
956   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957                           [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967   --bindir=DIR           user executables [EPREFIX/bin]
968   --sbindir=DIR          system admin executables [EPREFIX/sbin]
969   --libexecdir=DIR       program executables [EPREFIX/libexec]
970   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974   --libdir=DIR           object code libraries [EPREFIX/lib]
975   --includedir=DIR       C header files [PREFIX/include]
976   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977   --infodir=DIR          info documentation [PREFIX/info]
978   --mandir=DIR           man documentation [PREFIX/man]
979 _ACEOF
980
981   cat <<\_ACEOF
982
983 Program names:
984   --program-prefix=PREFIX            prepend PREFIX to installed program names
985   --program-suffix=SUFFIX            append SUFFIX to installed program names
986   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988 System types:
989   --build=BUILD     configure for building on BUILD [guessed]
990   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991   --target=TARGET   configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996   case $ac_init_help in
997      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
998    esac
999   cat <<\_ACEOF
1000
1001 Optional Features:
1002   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1003   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1004   --enable-version-specific-runtime-libs
1005                           Specify that runtime libraries should be installed
1006                           in a compiler-specific directory [default=no]
1007   --enable-generated-files-in-srcdir
1008                           put copies of generated files in source dir intended
1009                           for creating source tarballs for users without
1010                           texinfo bison or flex. [default=no]
1011   --enable-multilib       build many library versions (default)
1012   --disable-dependency-tracking  speeds up one-time build
1013   --enable-dependency-tracking   do not reject slow dependency extractors
1014   --enable-shared[=PKGS]
1015                           build shared libraries [default=yes]
1016   --enable-static[=PKGS]
1017                           build static libraries [default=yes]
1018   --enable-fast-install[=PKGS]
1019                           optimize for fast installation [default=yes]
1020   --disable-libtool-lock  avoid locking (might break parallel builds)
1021   --enable-maintainer-mode  enable make rules and dependencies not useful
1022                           (and sometimes confusing) to the casual installer
1023   --enable-linux-futex    use the Linux futex system call
1024                           [default=default]
1025   --enable-tls            Use thread-local storage [default=yes]
1026   --enable-symvers=STYLE  enables symbol versioning of the shared library
1027                           [default=yes]
1028
1029 Optional Packages:
1030   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1031   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1032   --with-pic              try to use only PIC/non-PIC objects [default=use
1033                           both]
1034   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1035
1036 Some influential environment variables:
1037   CC          C compiler command
1038   CFLAGS      C compiler flags
1039   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040               nonstandard directory <lib dir>
1041   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042               headers in a nonstandard directory <include dir>
1043   CPP         C preprocessor
1044   FC          Fortran compiler command
1045   FCFLAGS     Fortran compiler flags
1046
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1049
1050 _ACEOF
1051 fi
1052
1053 if test "$ac_init_help" = "recursive"; then
1054   # If there are subdirs, report their specific --help.
1055   ac_popdir=`pwd`
1056   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057     test -d $ac_dir || continue
1058     ac_builddir=.
1059
1060 if test "$ac_dir" != .; then
1061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062   # A "../" for each directory in $ac_dir_suffix.
1063   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065   ac_dir_suffix= ac_top_builddir=
1066 fi
1067
1068 case $srcdir in
1069   .)  # No --srcdir option.  We are building in place.
1070     ac_srcdir=.
1071     if test -z "$ac_top_builddir"; then
1072        ac_top_srcdir=.
1073     else
1074        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075     fi ;;
1076   [\\/]* | ?:[\\/]* )  # Absolute path.
1077     ac_srcdir=$srcdir$ac_dir_suffix;
1078     ac_top_srcdir=$srcdir ;;
1079   *) # Relative path.
1080     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1083
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1088 *)
1089   case "$ac_dir" in
1090   .) ac_abs_builddir=`pwd`;;
1091   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093   esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 *)
1098   case ${ac_top_builddir}. in
1099   .) ac_abs_top_builddir=$ac_abs_builddir;;
1100   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102   esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1106 *)
1107   case $ac_srcdir in
1108   .) ac_abs_srcdir=$ac_abs_builddir;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 *)
1116   case $ac_top_srcdir in
1117   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120   esac;;
1121 esac
1122
1123     cd $ac_dir
1124     # Check for guested configure; otherwise get Cygnus style configure.
1125     if test -f $ac_srcdir/configure.gnu; then
1126       echo
1127       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1128     elif test -f $ac_srcdir/configure; then
1129       echo
1130       $SHELL $ac_srcdir/configure  --help=recursive
1131     elif test -f $ac_srcdir/configure.ac ||
1132            test -f $ac_srcdir/configure.in; then
1133       echo
1134       $ac_configure --help
1135     else
1136       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137     fi
1138     cd $ac_popdir
1139   done
1140 fi
1141
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144   cat <<\_ACEOF
1145 GNU OpenMP Runtime Library configure 1.0
1146 generated by GNU Autoconf 2.59
1147
1148 Copyright (C) 2003 Free Software Foundation, Inc.
1149 This configure script is free software; the Free Software Foundation
1150 gives unlimited permission to copy, distribute and modify it.
1151 _ACEOF
1152   exit 0
1153 fi
1154 exec 5>config.log
1155 cat >&5 <<_ACEOF
1156 This file contains any messages produced by compilers while
1157 running configure, to aid debugging if configure makes a mistake.
1158
1159 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1160 generated by GNU Autoconf 2.59.  Invocation command line was
1161
1162   $ $0 $@
1163
1164 _ACEOF
1165 {
1166 cat <<_ASUNAME
1167 ## --------- ##
1168 ## Platform. ##
1169 ## --------- ##
1170
1171 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
1177 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1179
1180 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1181 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1182 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1184 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1185 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1186 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1187
1188 _ASUNAME
1189
1190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191 for as_dir in $PATH
1192 do
1193   IFS=$as_save_IFS
1194   test -z "$as_dir" && as_dir=.
1195   echo "PATH: $as_dir"
1196 done
1197
1198 } >&5
1199
1200 cat >&5 <<_ACEOF
1201
1202
1203 ## ----------- ##
1204 ## Core tests. ##
1205 ## ----------- ##
1206
1207 _ACEOF
1208
1209
1210 # Keep a trace of the command line.
1211 # Strip out --no-create and --no-recursion so they do not pile up.
1212 # Strip out --silent because we don't want to record it for future runs.
1213 # Also quote any args containing shell meta-characters.
1214 # Make two passes to allow for proper duplicate-argument suppression.
1215 ac_configure_args=
1216 ac_configure_args0=
1217 ac_configure_args1=
1218 ac_sep=
1219 ac_must_keep_next=false
1220 for ac_pass in 1 2
1221 do
1222   for ac_arg
1223   do
1224     case $ac_arg in
1225     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227     | -silent | --silent | --silen | --sile | --sil)
1228       continue ;;
1229     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231     esac
1232     case $ac_pass in
1233     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234     2)
1235       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236       if test $ac_must_keep_next = true; then
1237         ac_must_keep_next=false # Got value, back to normal.
1238       else
1239         case $ac_arg in
1240           *=* | --config-cache | -C | -disable-* | --disable-* \
1241           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243           | -with-* | --with-* | -without-* | --without-* | --x)
1244             case "$ac_configure_args0 " in
1245               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246             esac
1247             ;;
1248           -* ) ac_must_keep_next=true ;;
1249         esac
1250       fi
1251       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252       # Get rid of the leading space.
1253       ac_sep=" "
1254       ;;
1255     esac
1256   done
1257 done
1258 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260
1261 # When interrupted or exit'd, cleanup temporary files, and complete
1262 # config.log.  We remove comments because anyway the quotes in there
1263 # would cause problems or look ugly.
1264 # WARNING: Be sure not to use single quotes in there, as some shells,
1265 # such as our DU 5.0 friend, will then `close' the trap.
1266 trap 'exit_status=$?
1267   # Save into config.log some information that might help in debugging.
1268   {
1269     echo
1270
1271     cat <<\_ASBOX
1272 ## ---------------- ##
1273 ## Cache variables. ##
1274 ## ---------------- ##
1275 _ASBOX
1276     echo
1277     # The following way of writing the cache mishandles newlines in values,
1278 {
1279   (set) 2>&1 |
1280     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281     *ac_space=\ *)
1282       sed -n \
1283         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285       ;;
1286     *)
1287       sed -n \
1288         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289       ;;
1290     esac;
1291 }
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ----------------- ##
1296 ## Output variables. ##
1297 ## ----------------- ##
1298 _ASBOX
1299     echo
1300     for ac_var in $ac_subst_vars
1301     do
1302       eval ac_val=$`echo $ac_var`
1303       echo "$ac_var='"'"'$ac_val'"'"'"
1304     done | sort
1305     echo
1306
1307     if test -n "$ac_subst_files"; then
1308       cat <<\_ASBOX
1309 ## ------------- ##
1310 ## Output files. ##
1311 ## ------------- ##
1312 _ASBOX
1313       echo
1314       for ac_var in $ac_subst_files
1315       do
1316         eval ac_val=$`echo $ac_var`
1317         echo "$ac_var='"'"'$ac_val'"'"'"
1318       done | sort
1319       echo
1320     fi
1321
1322     if test -s confdefs.h; then
1323       cat <<\_ASBOX
1324 ## ----------- ##
1325 ## confdefs.h. ##
1326 ## ----------- ##
1327 _ASBOX
1328       echo
1329       sed "/^$/d" confdefs.h | sort
1330       echo
1331     fi
1332     test "$ac_signal" != 0 &&
1333       echo "$as_me: caught signal $ac_signal"
1334     echo "$as_me: exit $exit_status"
1335   } >&5
1336   rm -f core *.core &&
1337   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338     exit $exit_status
1339      ' 0
1340 for ac_signal in 1 2 13 15; do
1341   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342 done
1343 ac_signal=0
1344
1345 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1346 rm -rf conftest* confdefs.h
1347 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348 echo >confdefs.h
1349
1350 # Predefined preprocessor variables.
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_NAME "$PACKAGE_NAME"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_STRING "$PACKAGE_STRING"
1369 _ACEOF
1370
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374 _ACEOF
1375
1376
1377 # Let the site file select an alternate cache file if it wants to.
1378 # Prefer explicitly selected file to automatically selected ones.
1379 if test -z "$CONFIG_SITE"; then
1380   if test "x$prefix" != xNONE; then
1381     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382   else
1383     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384   fi
1385 fi
1386 for ac_site_file in $CONFIG_SITE; do
1387   if test -r "$ac_site_file"; then
1388     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389 echo "$as_me: loading site script $ac_site_file" >&6;}
1390     sed 's/^/| /' "$ac_site_file" >&5
1391     . "$ac_site_file"
1392   fi
1393 done
1394
1395 if test -r "$cache_file"; then
1396   # Some versions of bash will fail to source /dev/null (special
1397   # files actually), so we avoid doing that.
1398   if test -f "$cache_file"; then
1399     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400 echo "$as_me: loading cache $cache_file" >&6;}
1401     case $cache_file in
1402       [\\/]* | ?:[\\/]* ) . $cache_file;;
1403       *)                      . ./$cache_file;;
1404     esac
1405   fi
1406 else
1407   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408 echo "$as_me: creating cache $cache_file" >&6;}
1409   >$cache_file
1410 fi
1411
1412 # Check that the precious variables saved in the cache have kept the same
1413 # value.
1414 ac_cache_corrupted=false
1415 for ac_var in `(set) 2>&1 |
1416                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418   eval ac_new_set=\$ac_env_${ac_var}_set
1419   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420   eval ac_new_val="\$ac_env_${ac_var}_value"
1421   case $ac_old_set,$ac_new_set in
1422     set,)
1423       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425       ac_cache_corrupted=: ;;
1426     ,set)
1427       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429       ac_cache_corrupted=: ;;
1430     ,);;
1431     *)
1432       if test "x$ac_old_val" != "x$ac_new_val"; then
1433         # differences in whitespace do not lead to failure.
1434         ac_old_val_w=`echo x $ac_old_val`
1435         ac_new_val_w=`echo x $ac_new_val`
1436         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439           ac_cache_corrupted=:
1440         else
1441           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443           eval $ac_var=\$ac_old_val
1444         fi
1445         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1446 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1447         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1448 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1449       fi;;
1450   esac
1451   # Pass precious variables to config.status.
1452   if test "$ac_new_set" = set; then
1453     case $ac_new_val in
1454     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456     *) ac_arg=$ac_var=$ac_new_val ;;
1457     esac
1458     case " $ac_configure_args " in
1459       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1460       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461     esac
1462   fi
1463 done
1464 if $ac_cache_corrupted; then
1465   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1467   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471    { (exit 1); exit 1; }; }
1472 fi
1473
1474 ac_ext=c
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509           ac_config_headers="$ac_config_headers config.h"
1510
1511
1512 # -------
1513 # Options
1514 # -------
1515
1516 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1517 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1518  # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1519 if test "${enable_version_specific_runtime_libs+set}" = set; then
1520   enableval="$enable_version_specific_runtime_libs"
1521
1522       case "$enableval" in
1523        yes|no) ;;
1524        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1525 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1526    { (exit 1); exit 1; }; } ;;
1527                           esac
1528
1529 else
1530   enable_version_specific_runtime_libs=no
1531 fi;
1532
1533 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1534 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1535
1536 # We would like our source tree to be readonly. However when releases or
1537 # pre-releases are generated, the flex/bison generated files as well as the
1538 # various formats of manuals need to be included along with the rest of the
1539 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1540 # just that.
1541 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1542 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1543  # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1544 if test "${enable_generated_files_in_srcdir+set}" = set; then
1545   enableval="$enable_generated_files_in_srcdir"
1546
1547       case "$enableval" in
1548        yes|no) ;;
1549        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1550 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1551    { (exit 1); exit 1; }; } ;;
1552                           esac
1553
1554 else
1555   enable_generated_files_in_srcdir=no
1556 fi;
1557
1558 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1559 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1560
1561
1562 if test "$enable_generated_files_in_srcdir" = yes; then
1563   GENINSRC_TRUE=
1564   GENINSRC_FALSE='#'
1565 else
1566   GENINSRC_TRUE='#'
1567   GENINSRC_FALSE=
1568 fi
1569
1570
1571
1572 # -------
1573 # -------
1574
1575 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1576 #
1577 # You will slowly go insane if you do not grok the following fact:  when
1578 # building this library, the top-level /target/ becomes the library's /host/.
1579 #
1580 # configure then causes --target to default to --host, exactly like any
1581 # other package using autoconf.  Therefore, 'target' and 'host' will
1582 # always be the same.  This makes sense both for native and cross compilers
1583 # just think about it for a little while.  :-)
1584 #
1585 # Also, if this library is being configured as part of a cross compiler, the
1586 # top-level configure script will pass the "real" host as $with_cross_host.
1587 #
1588 # Do not delete or change the following two lines.  For why, see
1589 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1590 ac_aux_dir=
1591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1592   if test -f $ac_dir/install-sh; then
1593     ac_aux_dir=$ac_dir
1594     ac_install_sh="$ac_aux_dir/install-sh -c"
1595     break
1596   elif test -f $ac_dir/install.sh; then
1597     ac_aux_dir=$ac_dir
1598     ac_install_sh="$ac_aux_dir/install.sh -c"
1599     break
1600   elif test -f $ac_dir/shtool; then
1601     ac_aux_dir=$ac_dir
1602     ac_install_sh="$ac_aux_dir/shtool install -c"
1603     break
1604   fi
1605 done
1606 if test -z "$ac_aux_dir"; then
1607   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1608 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1609    { (exit 1); exit 1; }; }
1610 fi
1611 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1612 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1613 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1614
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628   ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632    { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636    { (exit 1); exit 1; }; }
1637
1638 fi
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1641 build=$ac_cv_build
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654   ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658    { (exit 1); exit 1; }; }
1659
1660 fi
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1663 host=$ac_cv_host
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676   ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680    { (exit 1); exit 1; }; }
1681
1682 fi
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694   test "$program_prefix$program_suffix$program_transform_name" = \
1695     NONENONEs,x,x, &&
1696   program_prefix=${target_alias}-
1697 target_alias=${target_alias-$host_alias}
1698
1699 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1700 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1701 #  1.9.0:  minimum required version
1702 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1703 #              of other PACKAGE_* variables will, however, and there's nothing
1704 #              we can do about that; they come from AC_INIT).
1705 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1706 #            file in the top srcdir, etc, etc), so stop complaining.
1707 #  -Wall:  turns on all automake warnings...
1708 #  -Wno-portability:  ...except this one, since GNU make is required.
1709 #  -Wno-override: ... and this one, since we do want this in testsuite.
1710 am__api_version="1.9"
1711 # Find a good install program.  We prefer a C program (faster),
1712 # so one script is as good as another.  But avoid the broken or
1713 # incompatible versions:
1714 # SysV /etc/install, /usr/sbin/install
1715 # SunOS /usr/etc/install
1716 # IRIX /sbin/install
1717 # AIX /bin/install
1718 # AmigaOS /C/install, which installs bootblocks on floppy discs
1719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # OS/2's system install, which has a completely different semantic
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 # Reject install programs that cannot install multiple files.
1725 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1726 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1727 if test -z "$INSTALL"; then
1728 if test "${ac_cv_path_install+set}" = set; then
1729   echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734   IFS=$as_save_IFS
1735   test -z "$as_dir" && as_dir=.
1736   # Account for people who put trailing slashes in PATH elements.
1737 case $as_dir/ in
1738   ./ | .// | /cC/* | \
1739   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1740   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1741   /usr/ucb/* ) ;;
1742   *)
1743     # OSF1 and SCO ODT 3.0 have their own names for install.
1744     # Don't use installbsd from OSF since it installs stuff as root
1745     # by default.
1746     for ac_prog in ginstall scoinst install; do
1747       for ac_exec_ext in '' $ac_executable_extensions; do
1748         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1749           if test $ac_prog = install &&
1750             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751             # AIX install.  It has an incompatible calling convention.
1752             :
1753           elif test $ac_prog = install &&
1754             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755             # program-specific install script used by HP pwplus--don't use.
1756             :
1757           else
1758             rm -rf conftest.one conftest.two conftest.dir
1759             echo one > conftest.one
1760             echo two > conftest.two
1761             mkdir conftest.dir
1762             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1763               test -s conftest.one && test -s conftest.two &&
1764               test -s conftest.dir/conftest.one &&
1765               test -s conftest.dir/conftest.two
1766             then
1767               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1768               break 3
1769             fi
1770           fi
1771         fi
1772       done
1773     done
1774     ;;
1775 esac
1776 done
1777
1778 rm -rf conftest.one conftest.two conftest.dir
1779
1780 fi
1781   if test "${ac_cv_path_install+set}" = set; then
1782     INSTALL=$ac_cv_path_install
1783   else
1784     # As a last resort, use the slow shell script.  Don't cache a
1785     # value for INSTALL within a source directory, because that will
1786     # break other packages using the cache if that directory is
1787     # removed, or if the value is a relative name.
1788     INSTALL=$ac_install_sh
1789   fi
1790 fi
1791 echo "$as_me:$LINENO: result: $INSTALL" >&5
1792 echo "${ECHO_T}$INSTALL" >&6
1793
1794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1795 # It thinks the first close brace ends the variable substitution.
1796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1797
1798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1799
1800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1801
1802 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1803 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1804 # Just in case
1805 sleep 1
1806 echo timestamp > conftest.file
1807 # Do `set' in a subshell so we don't clobber the current shell's
1808 # arguments.  Must try -L first in case configure is actually a
1809 # symlink; some systems play weird games with the mod time of symlinks
1810 # (eg FreeBSD returns the mod time of the symlink's containing
1811 # directory).
1812 if (
1813    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1814    if test "$*" = "X"; then
1815       # -L didn't work.
1816       set X `ls -t $srcdir/configure conftest.file`
1817    fi
1818    rm -f conftest.file
1819    if test "$*" != "X $srcdir/configure conftest.file" \
1820       && test "$*" != "X conftest.file $srcdir/configure"; then
1821
1822       # If neither matched, then we have a broken ls.  This can happen
1823       # if, for instance, CONFIG_SHELL is bash and it inherits a
1824       # broken ls alias from the environment.  This has actually
1825       # happened.  Such a system could not be considered "sane".
1826       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1827 alias in your environment" >&5
1828 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1829 alias in your environment" >&2;}
1830    { (exit 1); exit 1; }; }
1831    fi
1832
1833    test "$2" = conftest.file
1834    )
1835 then
1836    # Ok.
1837    :
1838 else
1839    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1840 Check your system clock" >&5
1841 echo "$as_me: error: newly created file is older than distributed files!
1842 Check your system clock" >&2;}
1843    { (exit 1); exit 1; }; }
1844 fi
1845 echo "$as_me:$LINENO: result: yes" >&5
1846 echo "${ECHO_T}yes" >&6
1847 test "$program_prefix" != NONE &&
1848   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1849 # Use a double $ so make ignores it.
1850 test "$program_suffix" != NONE &&
1851   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1852 # Double any \ or $.  echo might interpret backslashes.
1853 # By default was `s,x,x', remove it if useless.
1854 cat <<\_ACEOF >conftest.sed
1855 s/[\\$]/&&/g;s/;s,x,x,$//
1856 _ACEOF
1857 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1858 rm conftest.sed
1859
1860 # expand $ac_aux_dir to an absolute path
1861 am_aux_dir=`cd $ac_aux_dir && pwd`
1862
1863 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1864 # Use eval to expand $SHELL
1865 if eval "$MISSING --run true"; then
1866   am_missing_run="$MISSING --run "
1867 else
1868   am_missing_run=
1869   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1870 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1871 fi
1872
1873 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1874   # We used to keeping the `.' as first argument, in order to
1875   # allow $(mkdir_p) to be used without argument.  As in
1876   #   $(mkdir_p) $(somedir)
1877   # where $(somedir) is conditionally defined.  However this is wrong
1878   # for two reasons:
1879   #  1. if the package is installed by a user who cannot write `.'
1880   #     make install will fail,
1881   #  2. the above comment should most certainly read
1882   #     $(mkdir_p) $(DESTDIR)$(somedir)
1883   #     so it does not work when $(somedir) is undefined and
1884   #     $(DESTDIR) is not.
1885   #  To support the latter case, we have to write
1886   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1887   #  so the `.' trick is pointless.
1888   mkdir_p='mkdir -p --'
1889 else
1890   # On NextStep and OpenStep, the `mkdir' command does not
1891   # recognize any option.  It will interpret all options as
1892   # directories to create, and then abort because `.' already
1893   # exists.
1894   for d in ./-p ./--version;
1895   do
1896     test -d $d && rmdir $d
1897   done
1898   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1899   if test -f "$ac_aux_dir/mkinstalldirs"; then
1900     mkdir_p='$(mkinstalldirs)'
1901   else
1902     mkdir_p='$(install_sh) -d'
1903   fi
1904 fi
1905
1906 for ac_prog in gawk mawk nawk awk
1907 do
1908   # Extract the first word of "$ac_prog", so it can be a program name with args.
1909 set dummy $ac_prog; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_AWK+set}" = set; then
1913   echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915   if test -n "$AWK"; then
1916   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921   IFS=$as_save_IFS
1922   test -z "$as_dir" && as_dir=.
1923   for ac_exec_ext in '' $ac_executable_extensions; do
1924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925     ac_cv_prog_AWK="$ac_prog"
1926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927     break 2
1928   fi
1929 done
1930 done
1931
1932 fi
1933 fi
1934 AWK=$ac_cv_prog_AWK
1935 if test -n "$AWK"; then
1936   echo "$as_me:$LINENO: result: $AWK" >&5
1937 echo "${ECHO_T}$AWK" >&6
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 fi
1942
1943   test -n "$AWK" && break
1944 done
1945
1946 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1947 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1948 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1949 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1950   echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952   cat >conftest.make <<\_ACEOF
1953 all:
1954         @echo 'ac_maketemp="$(MAKE)"'
1955 _ACEOF
1956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1957 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1958 if test -n "$ac_maketemp"; then
1959   eval ac_cv_prog_make_${ac_make}_set=yes
1960 else
1961   eval ac_cv_prog_make_${ac_make}_set=no
1962 fi
1963 rm -f conftest.make
1964 fi
1965 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1966   echo "$as_me:$LINENO: result: yes" >&5
1967 echo "${ECHO_T}yes" >&6
1968   SET_MAKE=
1969 else
1970   echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1972   SET_MAKE="MAKE=${MAKE-make}"
1973 fi
1974
1975 rm -rf .tst 2>/dev/null
1976 mkdir .tst 2>/dev/null
1977 if test -d .tst; then
1978   am__leading_dot=.
1979 else
1980   am__leading_dot=_
1981 fi
1982 rmdir .tst 2>/dev/null
1983
1984 # test to see if srcdir already configured
1985 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1986    test -f $srcdir/config.status; then
1987   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1988 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 # test whether we have cygpath
1993 if test -z "$CYGPATH_W"; then
1994   if (cygpath --version) >/dev/null 2>/dev/null; then
1995     CYGPATH_W='cygpath -w'
1996   else
1997     CYGPATH_W=echo
1998   fi
1999 fi
2000
2001
2002 # Define the identity of the package.
2003  PACKAGE='libgomp'
2004  VERSION='1.0'
2005
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE "$PACKAGE"
2009 _ACEOF
2010
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define VERSION "$VERSION"
2014 _ACEOF
2015
2016 # Some tools Automake needs.
2017
2018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2019
2020
2021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2022
2023
2024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2025
2026
2027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2028
2029
2030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2031
2032 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2033
2034 # Installed binaries are usually stripped using `strip' when the user
2035 # run `make install-strip'.  However `strip' might not be the right
2036 # tool to use in cross-compilation environments, therefore Automake
2037 # will honor the `STRIP' environment variable to overrule this program.
2038 if test "$cross_compiling" != no; then
2039   if test -n "$ac_tool_prefix"; then
2040   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_STRIP+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$STRIP"; then
2048   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 STRIP=$ac_cv_prog_STRIP
2067 if test -n "$STRIP"; then
2068   echo "$as_me:$LINENO: result: $STRIP" >&5
2069 echo "${ECHO_T}$STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075 fi
2076 if test -z "$ac_cv_prog_STRIP"; then
2077   ac_ct_STRIP=$STRIP
2078   # Extract the first word of "strip", so it can be a program name with args.
2079 set dummy strip; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$ac_ct_STRIP"; then
2086   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095     ac_cv_prog_ac_ct_STRIP="strip"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101
2102   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2103 fi
2104 fi
2105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2106 if test -n "$ac_ct_STRIP"; then
2107   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2108 echo "${ECHO_T}$ac_ct_STRIP" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114   STRIP=$ac_ct_STRIP
2115 else
2116   STRIP="$ac_cv_prog_STRIP"
2117 fi
2118
2119 fi
2120 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2121
2122 # We need awk for the "check" target.  The system "awk" is bad on
2123 # some platforms.
2124 # Always define AMTAR for backward compatibility.
2125
2126 AMTAR=${AMTAR-"${am_missing_run}tar"}
2127
2128 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2129
2130
2131
2132
2133
2134 # Default to --enable-multilib
2135 # Check whether --enable-multilib or --disable-multilib was given.
2136 if test "${enable_multilib+set}" = set; then
2137   enableval="$enable_multilib"
2138   case "$enableval" in
2139   yes) multilib=yes ;;
2140   no)  multilib=no ;;
2141   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2142 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2143    { (exit 1); exit 1; }; } ;;
2144  esac
2145 else
2146   multilib=yes
2147 fi;
2148
2149 # We may get other options which we leave undocumented:
2150 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2151 # See config-ml.in if you want the gory details.
2152
2153 if test "$srcdir" = "."; then
2154   if test "$with_target_subdir" != "."; then
2155     multi_basedir="$srcdir/$with_multisrctop../.."
2156   else
2157     multi_basedir="$srcdir/$with_multisrctop.."
2158   fi
2159 else
2160   multi_basedir="$srcdir/.."
2161 fi
2162
2163
2164 # Even if the default multilib is not a cross compilation,
2165 # it may be that some of the other multilibs are.
2166 if test $cross_compiling = no && test $multilib = yes \
2167    && test "x${with_multisubdir}" != x ; then
2168    cross_compiling=maybe
2169 fi
2170
2171           ac_config_commands="$ac_config_commands default-1"
2172
2173
2174 # Calculate toolexeclibdir
2175 # Also toolexecdir, though it's only used in toolexeclibdir
2176 case ${enable_version_specific_runtime_libs} in
2177   yes)
2178     # Need the gcc compiler version to know where to install libraries
2179     # and header files if --enable-version-specific-runtime-libs option
2180     # is selected.
2181     toolexecdir='$(libdir)/gcc/$(target_alias)'
2182     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2183     ;;
2184   no)
2185     if test -n "$with_cross_host" &&
2186        test x"$with_cross_host" != x"no"; then
2187       # Install a library built with a cross compiler in tooldir, not libdir.
2188       toolexecdir='$(exec_prefix)/$(target_alias)'
2189       toolexeclibdir='$(toolexecdir)/lib'
2190     else
2191       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2192       toolexeclibdir='$(libdir)'
2193     fi
2194     multi_os_directory=`$CC -print-multi-os-directory`
2195     case $multi_os_directory in
2196       .) ;; # Avoid trailing /.
2197       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2198     esac
2199     ;;
2200 esac
2201
2202
2203
2204 # Check the compiler.
2205 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2206 # We must force CC to /not/ be precious variables; otherwise
2207 # the wrong, non-multilib-adjusted value will be used in multilibs.
2208 # As a side effect, we have to subst CFLAGS ourselves.
2209
2210
2211
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217 if test -n "$ac_tool_prefix"; then
2218   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   if test -n "$CC"; then
2226   ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231   IFS=$as_save_IFS
2232   test -z "$as_dir" && as_dir=.
2233   for ac_exec_ext in '' $ac_executable_extensions; do
2234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237     break 2
2238   fi
2239 done
2240 done
2241
2242 fi
2243 fi
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246   echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2248 else
2249   echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2251 fi
2252
2253 fi
2254 if test -z "$ac_cv_prog_CC"; then
2255   ac_ct_CC=$CC
2256   # Extract the first word of "gcc", so it can be a program name with args.
2257 set dummy gcc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261   echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263   if test -n "$ac_ct_CC"; then
2264   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269   IFS=$as_save_IFS
2270   test -z "$as_dir" && as_dir=.
2271   for ac_exec_ext in '' $ac_executable_extensions; do
2272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273     ac_cv_prog_ac_ct_CC="gcc"
2274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275     break 2
2276   fi
2277 done
2278 done
2279
2280 fi
2281 fi
2282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283 if test -n "$ac_ct_CC"; then
2284   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285 echo "${ECHO_T}$ac_ct_CC" >&6
2286 else
2287   echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2289 fi
2290
2291   CC=$ac_ct_CC
2292 else
2293   CC="$ac_cv_prog_CC"
2294 fi
2295
2296 if test -z "$CC"; then
2297   if test -n "$ac_tool_prefix"; then
2298   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   if test -n "$CC"; then
2306   ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315     ac_cv_prog_CC="${ac_tool_prefix}cc"
2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2321
2322 fi
2323 fi
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326   echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6
2328 else
2329   echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6
2331 fi
2332
2333 fi
2334 if test -z "$ac_cv_prog_CC"; then
2335   ac_ct_CC=$CC
2336   # Extract the first word of "cc", so it can be a program name with args.
2337 set dummy cc; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$ac_ct_CC"; then
2344   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351   for ac_exec_ext in '' $ac_executable_extensions; do
2352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353     ac_cv_prog_ac_ct_CC="cc"
2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355     break 2
2356   fi
2357 done
2358 done
2359
2360 fi
2361 fi
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2366 else
2367   echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2369 fi
2370
2371   CC=$ac_ct_CC
2372 else
2373   CC="$ac_cv_prog_CC"
2374 fi
2375
2376 fi
2377 if test -z "$CC"; then
2378   # Extract the first word of "cc", so it can be a program name with args.
2379 set dummy cc; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_CC+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   if test -n "$CC"; then
2386   ac_cv_prog_CC="$CC" # Let the user override the test.
2387 else
2388   ac_prog_rejected=no
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394   for ac_exec_ext in '' $ac_executable_extensions; do
2395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2397        ac_prog_rejected=yes
2398        continue
2399      fi
2400     ac_cv_prog_CC="cc"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406
2407 if test $ac_prog_rejected = yes; then
2408   # We found a bogon in the path, so make sure we never use it.
2409   set dummy $ac_cv_prog_CC
2410   shift
2411   if test $# != 0; then
2412     # We chose a different compiler from the bogus one.
2413     # However, it has the same basename, so the bogon will be chosen
2414     # first if we set CC to just the basename; use the full file name.
2415     shift
2416     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417   fi
2418 fi
2419 fi
2420 fi
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423   echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6
2425 else
2426   echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2428 fi
2429
2430 fi
2431 if test -z "$CC"; then
2432   if test -n "$ac_tool_prefix"; then
2433   for ac_prog in cl
2434   do
2435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437 echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463   echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2465 else
2466   echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2468 fi
2469
2470     test -n "$CC" && break
2471   done
2472 fi
2473 if test -z "$CC"; then
2474   ac_ct_CC=$CC
2475   for ac_prog in cl
2476 do
2477   # Extract the first word of "$ac_prog", so it can be a program name with args.
2478 set dummy $ac_prog; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482   echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484   if test -n "$ac_ct_CC"; then
2485   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492   for ac_exec_ext in '' $ac_executable_extensions; do
2493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494     ac_cv_prog_ac_ct_CC="$ac_prog"
2495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499 done
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2507 else
2508   echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510 fi
2511
2512   test -n "$ac_ct_CC" && break
2513 done
2514
2515   CC=$ac_ct_CC
2516 fi
2517
2518 fi
2519
2520
2521 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2522 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: no acceptable C compiler found in \$PATH
2526 See \`config.log' for more details." >&2;}
2527    { (exit 1); exit 1; }; }; }
2528
2529 # Provide some information about the compiler.
2530 echo "$as_me:$LINENO:" \
2531      "checking for C compiler version" >&5
2532 ac_compiler=`set X $ac_compile; echo $2`
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2534   (eval $ac_compiler --version </dev/null >&5) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2539   (eval $ac_compiler -v </dev/null >&5) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }
2543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2544   (eval $ac_compiler -V </dev/null >&5) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }
2548
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h.  */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h.  */
2555
2556 int
2557 main ()
2558 {
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 ac_clean_files_save=$ac_clean_files
2565 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2566 # Try to create an executable without -o first, disregard a.out.
2567 # It will help us diagnose broken compilers, and finding out an intuition
2568 # of exeext.
2569 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2570 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2572 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2573   (eval $ac_link_default) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; then
2577   # Find the output, starting from the most likely.  This scheme is
2578 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2579 # resort.
2580
2581 # Be careful to initialize this variable, since it used to be cached.
2582 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2583 ac_cv_exeext=
2584 # b.out is created by i960 compilers.
2585 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2586 do
2587   test -f "$ac_file" || continue
2588   case $ac_file in
2589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2590         ;;
2591     conftest.$ac_ext )
2592         # This is the source file.
2593         ;;
2594     [ab].out )
2595         # We found the default executable, but exeext='' is most
2596         # certainly right.
2597         break;;
2598     *.* )
2599         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600         # FIXME: I believe we export ac_cv_exeext for Libtool,
2601         # but it would be cool to find out if it's true.  Does anybody
2602         # maintain Libtool? --akim.
2603         export ac_cv_exeext
2604         break;;
2605     * )
2606         break;;
2607   esac
2608 done
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2614 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: C compiler cannot create executables
2618 See \`config.log' for more details." >&2;}
2619    { (exit 77); exit 77; }; }; }
2620 fi
2621
2622 ac_exeext=$ac_cv_exeext
2623 echo "$as_me:$LINENO: result: $ac_file" >&5
2624 echo "${ECHO_T}$ac_file" >&6
2625
2626 # Check the compiler produces executables we can run.  If not, either
2627 # the compiler is broken, or we cross compile.
2628 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2629 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2630 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2631 # If not cross compiling, check that we can run a simple program.
2632 if test "$cross_compiling" != yes; then
2633   if { ac_try='./$ac_file'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639     cross_compiling=no
2640   else
2641     if test "$cross_compiling" = maybe; then
2642         cross_compiling=yes
2643     else
2644         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2645 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2647 If you meant to cross compile, use \`--host'.
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: cannot run C compiled programs.
2650 If you meant to cross compile, use \`--host'.
2651 See \`config.log' for more details." >&2;}
2652    { (exit 1); exit 1; }; }; }
2653     fi
2654   fi
2655 fi
2656 echo "$as_me:$LINENO: result: yes" >&5
2657 echo "${ECHO_T}yes" >&6
2658
2659 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2660 ac_clean_files=$ac_clean_files_save
2661 # Check the compiler produces executables we can run.  If not, either
2662 # the compiler is broken, or we cross compile.
2663 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2665 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666 echo "${ECHO_T}$cross_compiling" >&6
2667
2668 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671   (eval $ac_link) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; then
2675   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2677 # work properly (i.e., refer to `conftest.exe'), while it won't with
2678 # `rm'.
2679 for ac_file in conftest.exe conftest conftest.*; do
2680   test -f "$ac_file" || continue
2681   case $ac_file in
2682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2683     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684           export ac_cv_exeext
2685           break;;
2686     * ) break;;
2687   esac
2688 done
2689 else
2690   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2691 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2695 See \`config.log' for more details." >&2;}
2696    { (exit 1); exit 1; }; }; }
2697 fi
2698
2699 rm -f conftest$ac_cv_exeext
2700 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2701 echo "${ECHO_T}$ac_cv_exeext" >&6
2702
2703 rm -f conftest.$ac_ext
2704 EXEEXT=$ac_cv_exeext
2705 ac_exeext=$EXEEXT
2706 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2707 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2708 if test "${ac_cv_objext+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.o conftest.obj
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728   (eval $ac_compile) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; then
2732   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2733   case $ac_file in
2734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2735     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2736        break;;
2737   esac
2738 done
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2744 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2748 See \`config.log' for more details." >&2;}
2749    { (exit 1); exit 1; }; }; }
2750 fi
2751
2752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2753 fi
2754 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2755 echo "${ECHO_T}$ac_cv_objext" >&6
2756 OBJEXT=$ac_cv_objext
2757 ac_objext=$OBJEXT
2758 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773 #ifndef __GNUC__
2774        choke me
2775 #endif
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783   (eval $ac_compile) 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } &&
2790          { ac_try='test -z "$ac_c_werror_flag"
2791                          || test ! -s conftest.err'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } &&
2797          { ac_try='test -s conftest.$ac_objext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   ac_compiler_gnu=yes
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 ac_compiler_gnu=no
2809 fi
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2812
2813 fi
2814 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2816 GCC=`test $ac_compiler_gnu = yes && echo yes`
2817 ac_test_CFLAGS=${CFLAGS+set}
2818 ac_save_CFLAGS=$CFLAGS
2819 CFLAGS="-g"
2820 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2821 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2822 if test "${ac_cv_prog_cc_g+set}" = set; then
2823   echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825   cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h.  */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h.  */
2831
2832 int
2833 main ()
2834 {
2835
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842   (eval $ac_compile) 2>conftest.er1
2843   ac_status=$?
2844   grep -v '^ *+' conftest.er1 >conftest.err
2845   rm -f conftest.er1
2846   cat conftest.err >&5
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); } &&
2849          { ac_try='test -z "$ac_c_werror_flag"
2850                          || test ! -s conftest.err'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; } &&
2856          { ac_try='test -s conftest.$ac_objext'
2857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; }; then
2862   ac_cv_prog_cc_g=yes
2863 else
2864   echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 ac_cv_prog_cc_g=no
2868 fi
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870 fi
2871 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2873 if test "$ac_test_CFLAGS" = set; then
2874   CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876   if test "$GCC" = yes; then
2877     CFLAGS="-g -O2"
2878   else
2879     CFLAGS="-g"
2880   fi
2881 else
2882   if test "$GCC" = yes; then
2883     CFLAGS="-O2"
2884   else
2885     CFLAGS=
2886   fi
2887 fi
2888 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2889 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2890 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   ac_cv_prog_cc_stdc=no
2894 ac_save_CC=$CC
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901 #include <stdarg.h>
2902 #include <stdio.h>
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2909      char **p;
2910      int i;
2911 {
2912   return p[i];
2913 }
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2915 {
2916   char *s;
2917   va_list v;
2918   va_start (v,p);
2919   s = g (p, va_arg (v,int));
2920   va_end (v);
2921   return s;
2922 }
2923
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2925    function prototypes and stuff, but not '\xHH' hex character constants.
2926    These don't provoke an error unfortunately, instead are silently treated
2927    as 'x'.  The following induces an error, until -std1 is added to get
2928    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2929    array size at least.  It's necessary to write '\x00'==0 to get something
2930    that's true only with -std1.  */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932
2933 int test (int i, double x);
2934 struct s1 {int (*f) (int a);};
2935 struct s2 {int (*f) (double a);};
2936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2937 int argc;
2938 char **argv;
2939 int
2940 main ()
2941 {
2942 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 # Don't try gcc -ansi; that turns off useful extensions and
2948 # breaks some systems' header files.
2949 # AIX                   -qlanglvl=ansi
2950 # Ultrix and OSF/1      -std1
2951 # HP-UX 10.20 and later -Ae
2952 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2953 # SVR4                  -Xc -D__EXTENSIONS__
2954 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 do
2956   CC="$ac_save_CC $ac_arg"
2957   rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959   (eval $ac_compile) 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } &&
2966          { ac_try='test -z "$ac_c_werror_flag"
2967                          || test ! -s conftest.err'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; } &&
2973          { ac_try='test -s conftest.$ac_objext'
2974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975   (eval $ac_try) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_cv_prog_cc_stdc=$ac_arg
2980 break
2981 else
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 fi
2986 rm -f conftest.err conftest.$ac_objext
2987 done
2988 rm -f conftest.$ac_ext conftest.$ac_objext
2989 CC=$ac_save_CC
2990
2991 fi
2992
2993 case "x$ac_cv_prog_cc_stdc" in
2994   x|xno)
2995     echo "$as_me:$LINENO: result: none needed" >&5
2996 echo "${ECHO_T}none needed" >&6 ;;
2997   *)
2998     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2999 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3000     CC="$CC $ac_cv_prog_cc_stdc" ;;
3001 esac
3002
3003 # Some people use a C++ compiler to compile C.  Since we use `exit',
3004 # in C++ we need to declare it.  In case someone uses the same compiler
3005 # for both compiling C and C++ we need to have the C++ compiler decide
3006 # the declaration of exit, since it's the most demanding environment.
3007 cat >conftest.$ac_ext <<_ACEOF
3008 #ifndef __cplusplus
3009   choke me
3010 #endif
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014   (eval $ac_compile) 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } &&
3021          { ac_try='test -z "$ac_c_werror_flag"
3022                          || test ! -s conftest.err'
3023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024   (eval $ac_try) 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; } &&
3028          { ac_try='test -s conftest.$ac_objext'
3029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   for ac_declaration in \
3035    '' \
3036    'extern "C" void std::exit (int) throw (); using std::exit;' \
3037    'extern "C" void std::exit (int); using std::exit;' \
3038    'extern "C" void exit (int) throw ();' \
3039    'extern "C" void exit (int);' \
3040    'void exit (int);'
3041 do
3042   cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048 $ac_declaration
3049 #include <stdlib.h>
3050 int
3051 main ()
3052 {
3053 exit (42);
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060   (eval $ac_compile) 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          { ac_try='test -z "$ac_c_werror_flag"
3068                          || test ! -s conftest.err'
3069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070   (eval $ac_try) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; } &&
3074          { ac_try='test -s conftest.$ac_objext'
3075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076   (eval $ac_try) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   :
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 continue
3086 fi
3087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088   cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094 $ac_declaration
3095 int
3096 main ()
3097 {
3098 exit (42);
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105   (eval $ac_compile) 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } &&
3112          { ac_try='test -z "$ac_c_werror_flag"
3113                          || test ! -s conftest.err'
3114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115   (eval $ac_try) 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121   (eval $ac_try) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; }; then
3125   break
3126 else
3127   echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 fi
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 done
3133 rm -f conftest*
3134 if test -n "$ac_declaration"; then
3135   echo '#ifdef __cplusplus' >>confdefs.h
3136   echo $ac_declaration      >>confdefs.h
3137   echo '#endif'             >>confdefs.h
3138 fi
3139
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 fi
3145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 DEPDIR="${am__leading_dot}deps"
3152
3153           ac_config_commands="$ac_config_commands depfiles"
3154
3155
3156 am_make=${MAKE-make}
3157 cat > confinc << 'END'
3158 am__doit:
3159         @echo done
3160 .PHONY: am__doit
3161 END
3162 # If we don't find an include directive, just comment out the code.
3163 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3164 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3165 am__include="#"
3166 am__quote=
3167 _am_result=none
3168 # First try GNU make style include.
3169 echo "include confinc" > confmf
3170 # We grep out `Entering directory' and `Leaving directory'
3171 # messages which can occur if `w' ends up in MAKEFLAGS.
3172 # In particular we don't look at `^make:' because GNU make might
3173 # be invoked under some other name (usually "gmake"), in which
3174 # case it prints its new name instead of `make'.
3175 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3176    am__include=include
3177    am__quote=
3178    _am_result=GNU
3179 fi
3180 # Now try BSD make style include.
3181 if test "$am__include" = "#"; then
3182    echo '.include "confinc"' > confmf
3183    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3184       am__include=.include
3185       am__quote="\""
3186       _am_result=BSD
3187    fi
3188 fi
3189
3190
3191 echo "$as_me:$LINENO: result: $_am_result" >&5
3192 echo "${ECHO_T}$_am_result" >&6
3193 rm -f confinc confmf
3194
3195 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3196 if test "${enable_dependency_tracking+set}" = set; then
3197   enableval="$enable_dependency_tracking"
3198
3199 fi;
3200 if test "x$enable_dependency_tracking" != xno; then
3201   am_depcomp="$ac_aux_dir/depcomp"
3202   AMDEPBACKSLASH='\'
3203 fi
3204
3205
3206 if test "x$enable_dependency_tracking" != xno; then
3207   AMDEP_TRUE=
3208   AMDEP_FALSE='#'
3209 else
3210   AMDEP_TRUE='#'
3211   AMDEP_FALSE=
3212 fi
3213
3214
3215
3216
3217 depcc="$CC"   am_compiler_list=
3218
3219 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3220 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3221 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3225   # We make a subdir and do the tests there.  Otherwise we can end up
3226   # making bogus files that we don't know about and never remove.  For
3227   # instance it was reported that on HP-UX the gcc test will end up
3228   # making a dummy file named `D' -- because `-MD' means `put the output
3229   # in D'.
3230   mkdir conftest.dir
3231   # Copy depcomp to subdir because otherwise we won't find it if we're
3232   # using a relative directory.
3233   cp "$am_depcomp" conftest.dir
3234   cd conftest.dir
3235   # We will build objects and dependencies in a subdirectory because
3236   # it helps to detect inapplicable dependency modes.  For instance
3237   # both Tru64's cc and ICC support -MD to output dependencies as a
3238   # side effect of compilation, but ICC will put the dependencies in
3239   # the current directory while Tru64 will put them in the object
3240   # directory.
3241   mkdir sub
3242
3243   am_cv_CC_dependencies_compiler_type=none
3244   if test "$am_compiler_list" = ""; then
3245      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3246   fi
3247   for depmode in $am_compiler_list; do
3248     # Setup a source with many dependencies, because some compilers
3249     # like to wrap large dependency lists on column 80 (with \), and
3250     # we should not choose a depcomp mode which is confused by this.
3251     #
3252     # We need to recreate these files for each test, as the compiler may
3253     # overwrite some of them when testing with obscure command lines.
3254     # This happens at least with the AIX C compiler.
3255     : > sub/conftest.c
3256     for i in 1 2 3 4 5 6; do
3257       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3258       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3259       # Solaris 8's {/usr,}/bin/sh.
3260       touch sub/conftst$i.h
3261     done
3262     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3263
3264     case $depmode in
3265     nosideeffect)
3266       # after this tag, mechanisms are not by side-effect, so they'll
3267       # only be used when explicitly requested
3268       if test "x$enable_dependency_tracking" = xyes; then
3269         continue
3270       else
3271         break
3272       fi
3273       ;;
3274     none) break ;;
3275     esac
3276     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3277     # mode.  It turns out that the SunPro C++ compiler does not properly
3278     # handle `-M -o', and we need to detect this.
3279     if depmode=$depmode \
3280        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3281        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3282        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3283          >/dev/null 2>conftest.err &&
3284        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3285        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3286        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3287       # icc doesn't choke on unknown options, it will just issue warnings
3288       # or remarks (even with -Werror).  So we grep stderr for any message
3289       # that says an option was ignored or not supported.
3290       # When given -MP, icc 7.0 and 7.1 complain thusly:
3291       #   icc: Command line warning: ignoring option '-M'; no argument required
3292       # The diagnosis changed in icc 8.0:
3293       #   icc: Command line remark: option '-MP' not supported
3294       if (grep 'ignoring option' conftest.err ||
3295           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3296         am_cv_CC_dependencies_compiler_type=$depmode
3297         break
3298       fi
3299     fi
3300   done
3301
3302   cd ..
3303   rm -rf conftest.dir
3304 else
3305   am_cv_CC_dependencies_compiler_type=none
3306 fi
3307
3308 fi
3309 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3312
3313
3314
3315 if
3316   test "x$enable_dependency_tracking" != xno \
3317   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3318   am__fastdepCC_TRUE=
3319   am__fastdepCC_FALSE='#'
3320 else
3321   am__fastdepCC_TRUE='#'
3322   am__fastdepCC_FALSE=
3323 fi
3324
3325
3326
3327
3328
3329
3330 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3331 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3332 # in both places for now and restore CFLAGS at the end of config.
3333 save_CFLAGS="$CFLAGS"
3334
3335 # Add -Wall -Werror if we are using GCC.
3336 if test "x$GCC" = "xyes"; then
3337   XCFLAGS="$XCFLAGS -Wall -Werror"
3338 fi
3339
3340 # Find other programs we need.
3341 if test -n "$ac_tool_prefix"; then
3342   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}ar; ac_word=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_AR+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   if test -n "$AR"; then
3350   ac_cv_prog_AR="$AR" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357   for ac_exec_ext in '' $ac_executable_extensions; do
3358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359     ac_cv_prog_AR="${ac_tool_prefix}ar"
3360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364 done
3365
3366 fi
3367 fi
3368 AR=$ac_cv_prog_AR
3369 if test -n "$AR"; then
3370   echo "$as_me:$LINENO: result: $AR" >&5
3371 echo "${ECHO_T}$AR" >&6
3372 else
3373   echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3375 fi
3376
3377 fi
3378 if test -z "$ac_cv_prog_AR"; then
3379   ac_ct_AR=$AR
3380   # Extract the first word of "ar", so it can be a program name with args.
3381 set dummy ar; ac_word=$2
3382 echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   if test -n "$ac_ct_AR"; then
3388   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_prog_ac_ct_AR="ar"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404 fi
3405 fi
3406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3407 if test -n "$ac_ct_AR"; then
3408   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3409 echo "${ECHO_T}$ac_ct_AR" >&6
3410 else
3411   echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3413 fi
3414
3415   AR=$ac_ct_AR
3416 else
3417   AR="$ac_cv_prog_AR"
3418 fi
3419
3420 if test -n "$ac_tool_prefix"; then
3421   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3423 echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_prog_RANLIB+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   if test -n "$RANLIB"; then
3429   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436   for ac_exec_ext in '' $ac_executable_extensions; do
3437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440     break 2
3441   fi
3442 done
3443 done
3444
3445 fi
3446 fi
3447 RANLIB=$ac_cv_prog_RANLIB
3448 if test -n "$RANLIB"; then
3449   echo "$as_me:$LINENO: result: $RANLIB" >&5
3450 echo "${ECHO_T}$RANLIB" >&6
3451 else
3452   echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454 fi
3455
3456 fi
3457 if test -z "$ac_cv_prog_RANLIB"; then
3458   ac_ct_RANLIB=$RANLIB
3459   # Extract the first word of "ranlib", so it can be a program name with args.
3460 set dummy ranlib; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   if test -n "$ac_ct_RANLIB"; then
3467   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474   for ac_exec_ext in '' $ac_executable_extensions; do
3475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476     ac_cv_prog_ac_ct_RANLIB="ranlib"
3477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481 done
3482
3483   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3484 fi
3485 fi
3486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487 if test -n "$ac_ct_RANLIB"; then
3488   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3490 else
3491   echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3493 fi
3494
3495   RANLIB=$ac_ct_RANLIB
3496 else
3497   RANLIB="$ac_cv_prog_RANLIB"
3498 fi
3499
3500 # Extract the first word of "perl", so it can be a program name with args.
3501 set dummy perl; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_PERL+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   case $PERL in
3508   [\\/]* | ?:[\\/]*)
3509   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3510   ;;
3511   *)
3512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517   for ac_exec_ext in '' $ac_executable_extensions; do
3518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524 done
3525
3526   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3527   ;;
3528 esac
3529 fi
3530 PERL=$ac_cv_path_PERL
3531
3532 if test -n "$PERL"; then
3533   echo "$as_me:$LINENO: result: $PERL" >&5
3534 echo "${ECHO_T}$PERL" >&6
3535 else
3536   echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3538 fi
3539
3540 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3541 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3542 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3543 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   cat >conftest.make <<\_ACEOF
3547 all:
3548         @echo 'ac_maketemp="$(MAKE)"'
3549 _ACEOF
3550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3552 if test -n "$ac_maketemp"; then
3553   eval ac_cv_prog_make_${ac_make}_set=yes
3554 else
3555   eval ac_cv_prog_make_${ac_make}_set=no
3556 fi
3557 rm -f conftest.make
3558 fi
3559 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3560   echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6
3562   SET_MAKE=
3563 else
3564   echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566   SET_MAKE="MAKE=${MAKE-make}"
3567 fi
3568
3569 # Find a good install program.  We prefer a C program (faster),
3570 # so one script is as good as another.  But avoid the broken or
3571 # incompatible versions:
3572 # SysV /etc/install, /usr/sbin/install
3573 # SunOS /usr/etc/install
3574 # IRIX /sbin/install
3575 # AIX /bin/install
3576 # AmigaOS /C/install, which installs bootblocks on floppy discs
3577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3580 # OS/2's system install, which has a completely different semantic
3581 # ./install, which can be erroneously created by make from ./install.sh.
3582 # Reject install programs that cannot install multiple files.
3583 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592   IFS=$as_save_IFS
3593   test -z "$as_dir" && as_dir=.
3594   # Account for people who put trailing slashes in PATH elements.
3595 case $as_dir/ in
3596   ./ | .// | /cC/* | \
3597   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599   /usr/ucb/* ) ;;
3600   *)
3601     # OSF1 and SCO ODT 3.0 have their own names for install.
3602     # Don't use installbsd from OSF since it installs stuff as root
3603     # by default.
3604     for ac_prog in ginstall scoinst install; do
3605       for ac_exec_ext in '' $ac_executable_extensions; do
3606         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607           if test $ac_prog = install &&
3608             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609             # AIX install.  It has an incompatible calling convention.
3610             :
3611           elif test $ac_prog = install &&
3612             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613             # program-specific install script used by HP pwplus--don't use.
3614             :
3615           else
3616             rm -rf conftest.one conftest.two conftest.dir
3617             echo one > conftest.one
3618             echo two > conftest.two
3619             mkdir conftest.dir
3620             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621               test -s conftest.one && test -s conftest.two &&
3622               test -s conftest.dir/conftest.one &&
3623               test -s conftest.dir/conftest.two
3624             then
3625               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626               break 3
3627             fi
3628           fi
3629         fi
3630       done
3631     done
3632     ;;
3633 esac
3634 done
3635
3636 rm -rf conftest.one conftest.two conftest.dir
3637
3638 fi
3639   if test "${ac_cv_path_install+set}" = set; then
3640     INSTALL=$ac_cv_path_install
3641   else
3642     # As a last resort, use the slow shell script.  Don't cache a
3643     # value for INSTALL within a source directory, because that will
3644     # break other packages using the cache if that directory is
3645     # removed, or if the value is a relative name.
3646     INSTALL=$ac_install_sh
3647   fi
3648 fi
3649 echo "$as_me:$LINENO: result: $INSTALL" >&5
3650 echo "${ECHO_T}$INSTALL" >&6
3651
3652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3653 # It thinks the first close brace ends the variable substitution.
3654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655
3656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3657
3658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3659
3660
3661 # See if makeinfo has been installed and is modern enough
3662 # that we can use it.
3663
3664   # Extract the first word of "makeinfo", so it can be a program name with args.
3665 set dummy makeinfo; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   if test -n "$MAKEINFO"; then
3672   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679   for ac_exec_ext in '' $ac_executable_extensions; do
3680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681     ac_cv_prog_MAKEINFO="makeinfo"
3682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683     break 2
3684   fi
3685 done
3686 done
3687
3688 fi
3689 fi
3690 MAKEINFO=$ac_cv_prog_MAKEINFO
3691 if test -n "$MAKEINFO"; then
3692   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3693 echo "${ECHO_T}$MAKEINFO" >&6
3694 else
3695   echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3697 fi
3698
3699   if test -n "$MAKEINFO"; then
3700     # Found it, now check the version.
3701     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3702 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3703 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3707                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3708
3709                     case $ac_prog_version in
3710                       '')  gcc_cv_prog_makeinfo_modern=no;;
3711                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3712                       *)   gcc_cv_prog_makeinfo_modern=no;;
3713                     esac
3714
3715 fi
3716 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3717 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3718   else
3719     gcc_cv_prog_makeinfo_modern=no
3720   fi
3721   if test $gcc_cv_prog_makeinfo_modern = no; then
3722     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3723   fi
3724
3725
3726
3727 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3728   BUILD_INFO_TRUE=
3729   BUILD_INFO_FALSE='#'
3730 else
3731   BUILD_INFO_TRUE='#'
3732   BUILD_INFO_FALSE=
3733 fi
3734
3735
3736
3737 # Configure libtool
3738 case `pwd` in
3739   *\ * | *\     *)
3740     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3741 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3742 esac
3743
3744
3745
3746 macro_version='2.2.6'
3747 macro_revision='1.3012'
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761 ltmain="$ac_aux_dir/ltmain.sh"
3762
3763 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3764 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3765 if test "${lt_cv_path_SED+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   # Loop through the user's path and test for sed and gsed.
3769 # Then use that list of sed's as ones to test for truncation.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773   IFS=$as_save_IFS
3774   test -z "$as_dir" && as_dir=.
3775   for lt_ac_prog in sed gsed; do
3776     for ac_exec_ext in '' $ac_executable_extensions; do
3777       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3778         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3779       fi
3780     done
3781   done
3782 done
3783 IFS=$as_save_IFS
3784 lt_ac_max=0
3785 lt_ac_count=0
3786 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3787 # along with /bin/sed that truncates output.
3788 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3789   test ! -f $lt_ac_sed && continue
3790   cat /dev/null > conftest.in
3791   lt_ac_count=0
3792   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3793   # Check for GNU sed and select it if it is found.
3794   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3795     lt_cv_path_SED=$lt_ac_sed
3796     break
3797   fi
3798   while true; do
3799     cat conftest.in conftest.in >conftest.tmp
3800     mv conftest.tmp conftest.in
3801     cp conftest.in conftest.nl
3802     echo >>conftest.nl
3803     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3804     cmp -s conftest.out conftest.nl || break
3805     # 10000 chars as input seems more than enough
3806     test $lt_ac_count -gt 10 && break
3807     lt_ac_count=`expr $lt_ac_count + 1`
3808     if test $lt_ac_count -gt $lt_ac_max; then
3809       lt_ac_max=$lt_ac_count
3810       lt_cv_path_SED=$lt_ac_sed
3811     fi
3812   done
3813 done
3814
3815 fi
3816
3817 SED=$lt_cv_path_SED
3818
3819 echo "$as_me:$LINENO: result: $SED" >&5
3820 echo "${ECHO_T}$SED" >&6
3821
3822 test -z "$SED" && SED=sed
3823 Xsed="$SED -e 1s/^X//"
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835 echo "$as_me:$LINENO: checking for egrep" >&5
3836 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3837 if test "${ac_cv_prog_egrep+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3841     then ac_cv_prog_egrep='grep -E'
3842     else ac_cv_prog_egrep='egrep'
3843     fi
3844 fi
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3846 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3847  EGREP=$ac_cv_prog_egrep
3848
3849
3850 echo "$as_me:$LINENO: checking for fgrep" >&5
3851 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3852 if test "${ac_cv_prog_fgrep+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3856     then ac_cv_prog_fgrep='grep -F'
3857     else ac_cv_prog_fgrep='fgrep'
3858     fi
3859 fi
3860 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3861 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3862  FGREP=$ac_cv_prog_fgrep
3863
3864
3865 test -z "$GREP" && GREP=grep
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3886 if test "${with_gnu_ld+set}" = set; then
3887   withval="$with_gnu_ld"
3888   test "$withval" = no || with_gnu_ld=yes
3889 else
3890   with_gnu_ld=no
3891 fi;
3892 ac_prog=ld
3893 if test "$GCC" = yes; then
3894   # Check if gcc -print-prog-name=ld gives a path.
3895   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3896 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3897   case $host in
3898   *-*-mingw*)
3899     # gcc leaves a trailing carriage return which upsets mingw
3900     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3901   *)
3902     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3903   esac
3904   case $ac_prog in
3905     # Accept absolute paths.
3906     [\\/]* | ?:[\\/]*)
3907       re_direlt='/[^/][^/]*/\.\./'
3908       # Canonicalize the pathname of ld
3909       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3910       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3911         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3912       done
3913       test -z "$LD" && LD="$ac_prog"
3914       ;;
3915   "")
3916     # If it fails, then pretend we aren't using GCC.
3917     ac_prog=ld
3918     ;;
3919   *)
3920     # If it is relative, then search for the first ld in PATH.
3921     with_gnu_ld=unknown
3922     ;;
3923   esac
3924 elif test "$with_gnu_ld" = yes; then
3925   echo "$as_me:$LINENO: checking for GNU ld" >&5
3926 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3927 else
3928   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3929 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3930 fi
3931 if test "${lt_cv_path_LD+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   if test -z "$LD"; then
3935   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3936   for ac_dir in $PATH; do
3937     IFS="$lt_save_ifs"
3938     test -z "$ac_dir" && ac_dir=.
3939     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3940       lt_cv_path_LD="$ac_dir/$ac_prog"
3941       # Check to see if the program is GNU ld.  I'd rather use --version,
3942       # but apparently some variants of GNU ld only accept -v.
3943       # Break only if it was the GNU/non-GNU ld that we prefer.
3944       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3945       *GNU* | *'with BFD'*)
3946         test "$with_gnu_ld" != no && break
3947         ;;
3948       *)
3949         test "$with_gnu_ld" != yes && break
3950         ;;
3951       esac
3952     fi
3953   done
3954   IFS="$lt_save_ifs"
3955 else
3956   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3957 fi
3958 fi
3959
3960 LD="$lt_cv_path_LD"
3961 if test -n "$LD"; then
3962   echo "$as_me:$LINENO: result: $LD" >&5
3963 echo "${ECHO_T}$LD" >&6
3964 else
3965   echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3967 fi
3968 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3969 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3970    { (exit 1); exit 1; }; }
3971 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3972 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3973 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3977 case `$LD -v 2>&1 </dev/null` in
3978 *GNU* | *'with BFD'*)
3979   lt_cv_prog_gnu_ld=yes
3980   ;;
3981 *)
3982   lt_cv_prog_gnu_ld=no
3983   ;;
3984 esac
3985 fi
3986 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3987 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3988 with_gnu_ld=$lt_cv_prog_gnu_ld
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3999 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4000 if test "${lt_cv_path_NM+set}" = set; then
4001   echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003   if test -n "$NM"; then
4004   # Let the user override the test.
4005   lt_cv_path_NM="$NM"
4006 else
4007   lt_nm_to_check="${ac_tool_prefix}nm"
4008   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4009     lt_nm_to_check="$lt_nm_to_check nm"
4010   fi
4011   for lt_tmp_nm in $lt_nm_to_check; do
4012     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4013     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4014       IFS="$lt_save_ifs"
4015       test -z "$ac_dir" && ac_dir=.
4016       tmp_nm="$ac_dir/$lt_tmp_nm"
4017       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4018         # Check to see if the nm accepts a BSD-compat flag.
4019         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4020         #   nm: unknown option "B" ignored
4021         # Tru64's nm complains that /dev/null is an invalid object file
4022         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4023         */dev/null* | *'Invalid file or object type'*)
4024           lt_cv_path_NM="$tmp_nm -B"
4025           break
4026           ;;
4027         *)
4028           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4029           */dev/null*)
4030             lt_cv_path_NM="$tmp_nm -p"
4031             break
4032             ;;
4033           *)
4034             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4035             continue # so that we can try to find one that supports BSD flags
4036             ;;
4037           esac
4038           ;;
4039         esac
4040       fi
4041     done
4042     IFS="$lt_save_ifs"
4043   done
4044   : ${lt_cv_path_NM=no}
4045 fi
4046 fi
4047 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4048 echo "${ECHO_T}$lt_cv_path_NM" >&6
4049 if test "$lt_cv_path_NM" != "no"; then
4050   NM="$lt_cv_path_NM"
4051 else
4052   # Didn't find any BSD compatible name lister, look for dumpbin.
4053   if test -n "$ac_tool_prefix"; then
4054   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4055   do
4056     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   if test -n "$DUMPBIN"; then
4064   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071   for ac_exec_ext in '' $ac_executable_extensions; do
4072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078 done
4079
4080 fi
4081 fi
4082 DUMPBIN=$ac_cv_prog_DUMPBIN
4083 if test -n "$DUMPBIN"; then
4084   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4085 echo "${ECHO_T}$DUMPBIN" >&6
4086 else
4087   echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089 fi
4090
4091     test -n "$DUMPBIN" && break
4092   done
4093 fi
4094 if test -z "$DUMPBIN"; then
4095   ac_ct_DUMPBIN=$DUMPBIN
4096   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4097 do
4098   # Extract the first word of "$ac_prog", so it can be a program name with args.
4099 set dummy $ac_prog; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4103   echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105   if test -n "$ac_ct_DUMPBIN"; then
4106   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111   IFS=$as_save_IFS
4112   test -z "$as_dir" && as_dir=.
4113   for ac_exec_ext in '' $ac_executable_extensions; do
4114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117     break 2
4118   fi
4119 done
4120 done
4121
4122 fi
4123 fi
4124 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4125 if test -n "$ac_ct_DUMPBIN"; then
4126   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4127 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4128 else
4129   echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6
4131 fi
4132
4133   test -n "$ac_ct_DUMPBIN" && break
4134 done
4135 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4136
4137   DUMPBIN=$ac_ct_DUMPBIN
4138 fi
4139
4140
4141   if test "$DUMPBIN" != ":"; then
4142     NM="$DUMPBIN"
4143   fi
4144 fi
4145 test -z "$NM" && NM=nm
4146
4147
4148
4149
4150
4151
4152 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4153 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4154 if test "${lt_cv_nm_interface+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   lt_cv_nm_interface="BSD nm"
4158   echo "int some_variable = 0;" > conftest.$ac_ext
4159   (eval echo "\"\$as_me:4159: $ac_compile\"" >&5)
4160   (eval "$ac_compile" 2>conftest.err)
4161   cat conftest.err >&5
4162   (eval echo "\"\$as_me:4162: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4163   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4164   cat conftest.err >&5
4165   (eval echo "\"\$as_me:4165: output\"" >&5)
4166   cat conftest.out >&5
4167   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4168     lt_cv_nm_interface="MS dumpbin"
4169   fi
4170   rm -f conftest*
4171 fi
4172 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4173 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4174
4175 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4176 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4177 LN_S=$as_ln_s
4178 if test "$LN_S" = "ln -s"; then
4179   echo "$as_me:$LINENO: result: yes" >&5
4180 echo "${ECHO_T}yes" >&6
4181 else
4182   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4183 echo "${ECHO_T}no, using $LN_S" >&6
4184 fi
4185
4186 # find the maximum length of command line arguments
4187 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4188 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4189 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192     i=0
4193   teststring="ABCD"
4194
4195   case $build_os in
4196   msdosdjgpp*)
4197     # On DJGPP, this test can blow up pretty badly due to problems in libc
4198     # (any single argument exceeding 2000 bytes causes a buffer overrun
4199     # during glob expansion).  Even if it were fixed, the result of this
4200     # check would be larger than it should be.
4201     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4202     ;;
4203
4204   gnu*)
4205     # Under GNU Hurd, this test is not required because there is
4206     # no limit to the length of command line arguments.
4207     # Libtool will interpret -1 as no limit whatsoever
4208     lt_cv_sys_max_cmd_len=-1;
4209     ;;
4210
4211   cygwin* | mingw* | cegcc*)
4212     # On Win9x/ME, this test blows up -- it succeeds, but takes
4213     # about 5 minutes as the teststring grows exponentially.
4214     # Worse, since 9x/ME are not pre-emptively multitasking,
4215     # you end up with a "frozen" computer, even though with patience
4216     # the test eventually succeeds (with a max line length of 256k).
4217     # Instead, let's just punt: use the minimum linelength reported by
4218     # all of the supported platforms: 8192 (on NT/2K/XP).
4219     lt_cv_sys_max_cmd_len=8192;
4220     ;;
4221
4222   amigaos*)
4223     # On AmigaOS with pdksh, this test takes hours, literally.
4224     # So we just punt and use a minimum line length of 8192.
4225     lt_cv_sys_max_cmd_len=8192;
4226     ;;
4227
4228   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4229     # This has been around since 386BSD, at least.  Likely further.
4230     if test -x /sbin/sysctl; then
4231       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4232     elif test -x /usr/sbin/sysctl; then
4233       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4234     else
4235       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4236     fi
4237     # And add a safety zone
4238     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4239     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4240     ;;
4241
4242   interix*)
4243     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4244     lt_cv_sys_max_cmd_len=196608
4245     ;;
4246
4247   osf*)
4248     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4249     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4250     # nice to cause kernel panics so lets avoid the loop below.
4251     # First set a reasonable default.
4252     lt_cv_sys_max_cmd_len=16384
4253     #
4254     if test -x /sbin/sysconfig; then
4255       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4256         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4257       esac
4258     fi
4259     ;;
4260   sco3.2v5*)
4261     lt_cv_sys_max_cmd_len=102400
4262     ;;
4263   sysv5* | sco5v6* | sysv4.2uw2*)
4264     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4265     if test -n "$kargmax"; then
4266       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4267     else
4268       lt_cv_sys_max_cmd_len=32768
4269     fi
4270     ;;
4271   *)
4272     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4273     if test -n "$lt_cv_sys_max_cmd_len"; then
4274       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4275       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4276     else
4277       # Make teststring a little bigger before we do anything with it.
4278       # a 1K string should be a reasonable start.
4279       for i in 1 2 3 4 5 6 7 8 ; do
4280         teststring=$teststring$teststring
4281       done
4282       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4283       # If test is not a shell built-in, we'll probably end up computing a
4284       # maximum length that is only half of the actual maximum length, but
4285       # we can't tell.
4286       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4287                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4288               test $i != 17 # 1/2 MB should be enough
4289       do
4290         i=`expr $i + 1`
4291         teststring=$teststring$teststring
4292       done
4293       # Only check the string length outside the loop.
4294       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4295       teststring=
4296       # Add a significant safety factor because C++ compilers can tack on
4297       # massive amounts of additional arguments before passing them to the
4298       # linker.  It appears as though 1/2 is a usable value.
4299       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4300     fi
4301     ;;
4302   esac
4303
4304 fi
4305
4306 if test -n $lt_cv_sys_max_cmd_len ; then
4307   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4308 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4309 else
4310   echo "$as_me:$LINENO: result: none" >&5
4311 echo "${ECHO_T}none" >&6
4312 fi
4313 max_cmd_len=$lt_cv_sys_max_cmd_len
4314
4315
4316
4317
4318
4319
4320 : ${CP="cp -f"}
4321 : ${MV="mv -f"}
4322 : ${RM="rm -f"}
4323
4324 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4325 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4326 # Try some XSI features
4327 xsi_shell=no
4328 ( _lt_dummy="a/b/c"
4329   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4330       = c,a/b,, \
4331     && eval 'test $(( 1 + 1 )) -eq 2 \
4332     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4333   && xsi_shell=yes
4334 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4335 echo "${ECHO_T}$xsi_shell" >&6
4336
4337
4338 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4339 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4340 lt_shell_append=no
4341 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4342     >/dev/null 2>&1 \
4343   && lt_shell_append=yes
4344 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4345 echo "${ECHO_T}$lt_shell_append" >&6
4346
4347
4348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4349   lt_unset=unset
4350 else
4351   lt_unset=false
4352 fi
4353
4354
4355
4356
4357
4358 # test EBCDIC or ASCII
4359 case `echo X|tr X '\101'` in
4360  A) # ASCII based system
4361     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4362   lt_SP2NL='tr \040 \012'
4363   lt_NL2SP='tr \015\012 \040\040'
4364   ;;
4365  *) # EBCDIC based system
4366   lt_SP2NL='tr \100 \n'
4367   lt_NL2SP='tr \r\n \100\100'
4368   ;;
4369 esac
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4380 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4381 if test "${lt_cv_ld_reload_flag+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   lt_cv_ld_reload_flag='-r'
4385 fi
4386 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4387 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4388 reload_flag=$lt_cv_ld_reload_flag
4389 case $reload_flag in
4390 "" | " "*) ;;
4391 *) reload_flag=" $reload_flag" ;;
4392 esac
4393 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4394 case $host_os in
4395   darwin*)
4396     if test "$GCC" = yes; then
4397       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4398     else
4399       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4400     fi
4401     ;;
4402 esac
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412 if test -n "$ac_tool_prefix"; then
4413   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4414 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4415 echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   if test -n "$OBJDUMP"; then
4421   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428   for ac_exec_ext in '' $ac_executable_extensions; do
4429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435 done
4436
4437 fi
4438 fi
4439 OBJDUMP=$ac_cv_prog_OBJDUMP
4440 if test -n "$OBJDUMP"; then
4441   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4442 echo "${ECHO_T}$OBJDUMP" >&6
4443 else
4444   echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6
4446 fi
4447
4448 fi
4449 if test -z "$ac_cv_prog_OBJDUMP"; then
4450   ac_ct_OBJDUMP=$OBJDUMP
4451   # Extract the first word of "objdump", so it can be a program name with args.
4452 set dummy objdump; ac_word=$2
4453 echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   if test -n "$ac_ct_OBJDUMP"; then
4459   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466   for ac_exec_ext in '' $ac_executable_extensions; do
4467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473 done
4474
4475   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4476 fi
4477 fi
4478 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4479 if test -n "$ac_ct_OBJDUMP"; then
4480   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4481 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4482 else
4483   echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6
4485 fi
4486
4487   OBJDUMP=$ac_ct_OBJDUMP
4488 else
4489   OBJDUMP="$ac_cv_prog_OBJDUMP"
4490 fi
4491
4492 test -z "$OBJDUMP" && OBJDUMP=objdump
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4503 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4504 if test "${lt_cv_deplibs_check_method+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   lt_cv_file_magic_cmd='$MAGIC_CMD'
4508 lt_cv_file_magic_test_file=
4509 lt_cv_deplibs_check_method='unknown'
4510 # Need to set the preceding variable on all platforms that support
4511 # interlibrary dependencies.
4512 # 'none' -- dependencies not supported.
4513 # `unknown' -- same as none, but documents that we really don't know.
4514 # 'pass_all' -- all dependencies passed with no checks.
4515 # 'test_compile' -- check by making test program.
4516 # 'file_magic [[regex]]' -- check by looking for files in library path
4517 # which responds to the $file_magic_cmd with a given extended regex.
4518 # If you have `file' or equivalent on your system and you're not sure
4519 # whether `pass_all' will *always* work, you probably want this one.
4520
4521 case $host_os in
4522 aix[4-9]*)
4523   lt_cv_deplibs_check_method=pass_all
4524   ;;
4525
4526 beos*)
4527   lt_cv_deplibs_check_method=pass_all
4528   ;;
4529
4530 bsdi[45]*)
4531   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4532   lt_cv_file_magic_cmd='/usr/bin/file -L'
4533   lt_cv_file_magic_test_file=/shlib/libc.so
4534   ;;
4535
4536 cygwin*)
4537   # func_win32_libid is a shell function defined in ltmain.sh
4538   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4539   lt_cv_file_magic_cmd='func_win32_libid'
4540   ;;
4541
4542 mingw* | pw32*)
4543   # Base MSYS/MinGW do not provide the 'file' command needed by
4544   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4545   # unless we find 'file', for example because we are cross-compiling.
4546   if ( file / ) >/dev/null 2>&1; then
4547     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4548     lt_cv_file_magic_cmd='func_win32_libid'
4549   else
4550     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4551     lt_cv_file_magic_cmd='$OBJDUMP -f'
4552   fi
4553   ;;
4554
4555 cegcc)
4556   # use the weaker test based on 'objdump'. See mingw*.
4557   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4558   lt_cv_file_magic_cmd='$OBJDUMP -f'
4559   ;;
4560
4561 darwin* | rhapsody*)
4562   lt_cv_deplibs_check_method=pass_all
4563   ;;
4564
4565 freebsd* | dragonfly*)
4566   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4567     case $host_cpu in
4568     i*86 )
4569       # Not sure whether the presence of OpenBSD here was a mistake.
4570       # Let's accept both of them until this is cleared up.
4571       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4572       lt_cv_file_magic_cmd=/usr/bin/file
4573       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4574       ;;
4575     esac
4576   else
4577     lt_cv_deplibs_check_method=pass_all
4578   fi
4579   ;;
4580
4581 gnu*)
4582   lt_cv_deplibs_check_method=pass_all
4583   ;;
4584
4585 hpux10.20* | hpux11*)
4586   lt_cv_file_magic_cmd=/usr/bin/file
4587   case $host_cpu in
4588   ia64*)
4589     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4590     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4591     ;;
4592   hppa*64*)
4593     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]'
4594     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4595     ;;
4596   *)
4597     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4598     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4599     ;;
4600   esac
4601   ;;
4602
4603 interix[3-9]*)
4604   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4605   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4606   ;;
4607
4608 irix5* | irix6* | nonstopux*)
4609   case $LD in
4610   *-32|*"-32 ") libmagic=32-bit;;
4611   *-n32|*"-n32 ") libmagic=N32;;
4612   *-64|*"-64 ") libmagic=64-bit;;
4613   *) libmagic=never-match;;
4614   esac
4615   lt_cv_deplibs_check_method=pass_all
4616   ;;
4617
4618 # This must be Linux ELF.
4619 linux* | k*bsd*-gnu)
4620   lt_cv_deplibs_check_method=pass_all
4621   ;;
4622
4623 netbsd*)
4624   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4625     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4626   else
4627     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4628   fi
4629   ;;
4630
4631 newos6*)
4632   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4633   lt_cv_file_magic_cmd=/usr/bin/file
4634   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4635   ;;
4636
4637 *nto* | *qnx*)
4638   lt_cv_deplibs_check_method=pass_all
4639   ;;
4640
4641 openbsd*)
4642   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4644   else
4645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4646   fi
4647   ;;
4648
4649 osf3* | osf4* | osf5*)
4650   lt_cv_deplibs_check_method=pass_all
4651   ;;
4652
4653 rdos*)
4654   lt_cv_deplibs_check_method=pass_all
4655   ;;
4656
4657 solaris*)
4658   lt_cv_deplibs_check_method=pass_all
4659   ;;
4660
4661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4662   lt_cv_deplibs_check_method=pass_all
4663   ;;
4664
4665 sysv4 | sysv4.3*)
4666   case $host_vendor in
4667   motorola)
4668     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]'
4669     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4670     ;;
4671   ncr)
4672     lt_cv_deplibs_check_method=pass_all
4673     ;;
4674   sequent)
4675     lt_cv_file_magic_cmd='/bin/file'
4676     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4677     ;;
4678   sni)
4679     lt_cv_file_magic_cmd='/bin/file'
4680     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4681     lt_cv_file_magic_test_file=/lib/libc.so
4682     ;;
4683   siemens)
4684     lt_cv_deplibs_check_method=pass_all
4685     ;;
4686   pc)
4687     lt_cv_deplibs_check_method=pass_all
4688     ;;
4689   esac
4690   ;;
4691
4692 tpf*)
4693   lt_cv_deplibs_check_method=pass_all
4694   ;;
4695 esac
4696
4697 fi
4698 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4699 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4700 file_magic_cmd=$lt_cv_file_magic_cmd
4701 deplibs_check_method=$lt_cv_deplibs_check_method
4702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715 if test -n "$ac_tool_prefix"; then
4716   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ar; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_AR+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$AR"; then
4724   ac_cv_prog_AR="$AR" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_AR="${ac_tool_prefix}ar"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 AR=$ac_cv_prog_AR
4743 if test -n "$AR"; then
4744   echo "$as_me:$LINENO: result: $AR" >&5
4745 echo "${ECHO_T}$AR" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 fi
4752 if test -z "$ac_cv_prog_AR"; then
4753   ac_ct_AR=$AR
4754   # Extract the first word of "ar", so it can be a program name with args.
4755 set dummy ar; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if test -n "$ac_ct_AR"; then
4762   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_AR="ar"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777
4778   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4779 fi
4780 fi
4781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4782 if test -n "$ac_ct_AR"; then
4783   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4784 echo "${ECHO_T}$ac_ct_AR" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790   AR=$ac_ct_AR
4791 else
4792   AR="$ac_cv_prog_AR"
4793 fi
4794
4795 test -z "$AR" && AR=ar
4796 test -z "$AR_FLAGS" && AR_FLAGS=cru
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 if test -n "$ac_tool_prefix"; then
4809   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}strip; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_STRIP+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   if test -n "$STRIP"; then
4817   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832
4833 fi
4834 fi
4835 STRIP=$ac_cv_prog_STRIP
4836 if test -n "$STRIP"; then
4837   echo "$as_me:$LINENO: result: $STRIP" >&5
4838 echo "${ECHO_T}$STRIP" >&6
4839 else
4840   echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4842 fi
4843
4844 fi
4845 if test -z "$ac_cv_prog_STRIP"; then
4846   ac_ct_STRIP=$STRIP
4847   # Extract the first word of "strip", so it can be a program name with args.
4848 set dummy strip; ac_word=$2
4849 echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   if test -n "$ac_ct_STRIP"; then
4855   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862   for ac_exec_ext in '' $ac_executable_extensions; do
4863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864     ac_cv_prog_ac_ct_STRIP="strip"
4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869 done
4870
4871   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4872 fi
4873 fi
4874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4875 if test -n "$ac_ct_STRIP"; then
4876   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4877 echo "${ECHO_T}$ac_ct_STRIP" >&6
4878 else
4879   echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4881 fi
4882
4883   STRIP=$ac_ct_STRIP
4884 else
4885   STRIP="$ac_cv_prog_STRIP"
4886 fi
4887
4888 test -z "$STRIP" && STRIP=:
4889
4890
4891
4892
4893
4894
4895 if test -n "$ac_tool_prefix"; then
4896   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_RANLIB+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if test -n "$RANLIB"; then
4904   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919
4920 fi
4921 fi
4922 RANLIB=$ac_cv_prog_RANLIB
4923 if test -n "$RANLIB"; then
4924   echo "$as_me:$LINENO: result: $RANLIB" >&5
4925 echo "${ECHO_T}$RANLIB" >&6
4926 else
4927   echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4929 fi
4930
4931 fi
4932 if test -z "$ac_cv_prog_RANLIB"; then
4933   ac_ct_RANLIB=$RANLIB
4934   # Extract the first word of "ranlib", so it can be a program name with args.
4935 set dummy ranlib; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   if test -n "$ac_ct_RANLIB"; then
4942   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949   for ac_exec_ext in '' $ac_executable_extensions; do
4950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951     ac_cv_prog_ac_ct_RANLIB="ranlib"
4952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956 done
4957
4958   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4959 fi
4960 fi
4961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4962 if test -n "$ac_ct_RANLIB"; then
4963   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4965 else
4966   echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4968 fi
4969
4970   RANLIB=$ac_ct_RANLIB
4971 else
4972   RANLIB="$ac_cv_prog_RANLIB"
4973 fi
4974
4975 test -z "$RANLIB" && RANLIB=:
4976
4977
4978
4979
4980
4981
4982 # Determine commands to create old-style static archives.
4983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4984 old_postinstall_cmds='chmod 644 $oldlib'
4985 old_postuninstall_cmds=
4986
4987 if test -n "$RANLIB"; then
4988   case $host_os in
4989   openbsd*)
4990     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4991     ;;
4992   *)
4993     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4994     ;;
4995   esac
4996   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4997 fi
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 # If no C compiler was specified, use CC.
5033 LTCC=${LTCC-"$CC"}
5034
5035 # If no C compiler flags were specified, use CFLAGS.
5036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5037
5038 # Allow CC to be a program name with arguments.
5039 compiler=$CC
5040
5041
5042 # Check for command to grab the raw symbol name followed by C symbol from nm.
5043 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5044 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5046   echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048
5049 # These are sane defaults that work on at least a few old systems.
5050 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5051
5052 # Character class describing NM global symbol codes.
5053 symcode='[BCDEGRST]'
5054
5055 # Regexp to match symbols that can be accessed directly from C.
5056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5057
5058 # Define system-specific variables.
5059 case $host_os in
5060 aix*)
5061   symcode='[BCDT]'
5062   ;;
5063 cygwin* | mingw* | pw32* | cegcc*)
5064   symcode='[ABCDGISTW]'
5065   ;;
5066 hpux*)
5067   if test "$host_cpu" = ia64; then
5068     symcode='[ABCDEGRST]'
5069   fi
5070   ;;
5071 irix* | nonstopux*)
5072   symcode='[BCDEGRST]'
5073   ;;
5074 osf*)
5075   symcode='[BCDEGQRST]'
5076   ;;
5077 solaris*)
5078   symcode='[BDRT]'
5079   ;;
5080 sco3.2v5*)
5081   symcode='[DT]'
5082   ;;
5083 sysv4.2uw2*)
5084   symcode='[DT]'
5085   ;;
5086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5087   symcode='[ABDT]'
5088   ;;
5089 sysv4)
5090   symcode='[DFNSTU]'
5091   ;;
5092 esac
5093
5094 # If we're using GNU nm, then use its standard symbol codes.
5095 case `$NM -V 2>&1` in
5096 *GNU* | *'with BFD'*)
5097   symcode='[ABCDGIRSTW]' ;;
5098 esac
5099
5100 # Transform an extracted symbol line into a proper C declaration.
5101 # Some systems (esp. on ia64) link data and code symbols differently,
5102 # so use this general approach.
5103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5104
5105 # Transform an extracted symbol line into symbol name and symbol address
5106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5107 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5108
5109 # Handle CRLF in mingw tool chain
5110 opt_cr=
5111 case $build_os in
5112 mingw*)
5113   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5114   ;;
5115 esac
5116
5117 # Try without a prefix underscore, then with it.
5118 for ac_symprfx in "" "_"; do
5119
5120   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5121   symxfrm="\\1 $ac_symprfx\\2 \\2"
5122
5123   # Write the raw and C identifiers.
5124   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5125     # Fake it for dumpbin and say T for any non-static function
5126     # and D for any global variable.
5127     # Also find C++ and __fastcall symbols from MSVC++,
5128     # which start with @ or ?.
5129     lt_cv_sys_global_symbol_pipe="$AWK '"\
5130 "     {last_section=section; section=\$ 3};"\
5131 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5132 "     \$ 0!~/External *\|/{next};"\
5133 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5134 "     {if(hide[section]) next};"\
5135 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5136 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5137 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5138 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5139 "     ' prfx=^$ac_symprfx"
5140   else
5141     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5142   fi
5143
5144   # Check to see that the pipe works correctly.
5145   pipe_works=no
5146
5147   rm -f conftest*
5148   cat > conftest.$ac_ext <<_LT_EOF
5149 #ifdef __cplusplus
5150 extern "C" {
5151 #endif
5152 char nm_test_var;
5153 void nm_test_func(void);
5154 void nm_test_func(void){}
5155 #ifdef __cplusplus
5156 }
5157 #endif
5158 int main(){nm_test_var='a';nm_test_func();return(0);}
5159 _LT_EOF
5160
5161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162   (eval $ac_compile) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; then
5166     # Now try to grab the symbols.
5167     nlist=conftest.nm
5168     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5169   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } && test -s "$nlist"; then
5173       # Try sorting and uniquifying the output.
5174       if sort "$nlist" | uniq > "$nlist"T; then
5175         mv -f "$nlist"T "$nlist"
5176       else
5177         rm -f "$nlist"T
5178       fi
5179
5180       # Make sure that we snagged all the symbols we need.
5181       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5182         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5183           cat <<_LT_EOF > conftest.$ac_ext
5184 #ifdef __cplusplus
5185 extern "C" {
5186 #endif
5187
5188 _LT_EOF
5189           # Now generate the symbol file.
5190           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5191
5192           cat <<_LT_EOF >> conftest.$ac_ext
5193
5194 /* The mapping between symbol names and symbols.  */
5195 const struct {
5196   const char *name;
5197   void       *address;
5198 }
5199 lt__PROGRAM__LTX_preloaded_symbols[] =
5200 {
5201   { "@PROGRAM@", (void *) 0 },
5202 _LT_EOF
5203           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5204           cat <<\_LT_EOF >> conftest.$ac_ext
5205   {0, (void *) 0}
5206 };
5207
5208 /* This works around a problem in FreeBSD linker */
5209 #ifdef FREEBSD_WORKAROUND
5210 static const void *lt_preloaded_setup() {
5211   return lt__PROGRAM__LTX_preloaded_symbols;
5212 }
5213 #endif
5214
5215 #ifdef __cplusplus
5216 }
5217 #endif
5218 _LT_EOF
5219           # Now try linking the two files.
5220           mv conftest.$ac_objext conftstm.$ac_objext
5221           lt_save_LIBS="$LIBS"
5222           lt_save_CFLAGS="$CFLAGS"
5223           LIBS="conftstm.$ac_objext"
5224           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5225           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226   (eval $ac_link) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5230             pipe_works=yes
5231           fi
5232           LIBS="$lt_save_LIBS"
5233           CFLAGS="$lt_save_CFLAGS"
5234         else
5235           echo "cannot find nm_test_func in $nlist" >&5
5236         fi
5237       else
5238         echo "cannot find nm_test_var in $nlist" >&5
5239       fi
5240     else
5241       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5242     fi
5243   else
5244     echo "$progname: failed program was:" >&5
5245     cat conftest.$ac_ext >&5
5246   fi
5247   rm -rf conftest* conftst*
5248
5249   # Do not use the global_symbol_pipe unless it works.
5250   if test "$pipe_works" = yes; then
5251     break
5252   else
5253     lt_cv_sys_global_symbol_pipe=
5254   fi
5255 done
5256
5257 fi
5258
5259 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5260   lt_cv_sys_global_symbol_to_cdecl=
5261 fi
5262 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5263   echo "$as_me:$LINENO: result: failed" >&5
5264 echo "${ECHO_T}failed" >&6
5265 else
5266   echo "$as_me:$LINENO: result: ok" >&5
5267 echo "${ECHO_T}ok" >&6
5268 fi
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5293 if test "${enable_libtool_lock+set}" = set; then
5294   enableval="$enable_libtool_lock"
5295
5296 fi;
5297 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5298
5299 # Some flags need to be propagated to the compiler or linker for good
5300 # libtool support.
5301 case $host in
5302 ia64-*-hpux*)
5303   # Find out which ABI we are using.
5304   echo 'int i;' > conftest.$ac_ext
5305   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306   (eval $ac_compile) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; then
5310     case `/usr/bin/file conftest.$ac_objext` in
5311       *ELF-32*)
5312         HPUX_IA64_MODE="32"
5313         ;;
5314       *ELF-64*)
5315         HPUX_IA64_MODE="64"
5316         ;;
5317     esac
5318   fi
5319   rm -rf conftest*
5320   ;;
5321 *-*-irix6*)
5322   # Find out which ABI we are using.
5323   echo '#line 5323 "configure"' > 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     if test "$lt_cv_prog_gnu_ld" = yes; then
5330       case `/usr/bin/file conftest.$ac_objext` in
5331         *32-bit*)
5332           LD="${LD-ld} -melf32bsmip"
5333           ;;
5334         *N32*)
5335           LD="${LD-ld} -melf32bmipn32"
5336           ;;
5337         *64-bit*)
5338           LD="${LD-ld} -melf64bmip"
5339         ;;
5340       esac
5341     else
5342       case `/usr/bin/file conftest.$ac_objext` in
5343         *32-bit*)
5344           LD="${LD-ld} -32"
5345           ;;
5346         *N32*)
5347           LD="${LD-ld} -n32"
5348           ;;
5349         *64-bit*)
5350           LD="${LD-ld} -64"
5351           ;;
5352       esac
5353     fi
5354   fi
5355   rm -rf conftest*
5356   ;;
5357
5358 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5359 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5360   # Find out which ABI we are using.
5361   echo 'int i;' > conftest.$ac_ext
5362   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363   (eval $ac_compile) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); }; then
5367     case `/usr/bin/file conftest.o` in
5368       *32-bit*)
5369         case $host in
5370           x86_64-*kfreebsd*-gnu)
5371             LD="${LD-ld} -m elf_i386_fbsd"
5372             ;;
5373           x86_64-*linux*)
5374             LD="${LD-ld} -m elf_i386"
5375             ;;
5376           ppc64-*linux*|powerpc64-*linux*)
5377             LD="${LD-ld} -m elf32ppclinux"
5378             ;;
5379           s390x-*linux*)
5380             LD="${LD-ld} -m elf_s390"
5381             ;;
5382           sparc64-*linux*)
5383             LD="${LD-ld} -m elf32_sparc"
5384             ;;
5385         esac
5386         ;;
5387       *64-bit*)
5388         case $host in
5389           x86_64-*kfreebsd*-gnu)
5390             LD="${LD-ld} -m elf_x86_64_fbsd"
5391             ;;
5392           x86_64-*linux*)
5393             LD="${LD-ld} -m elf_x86_64"
5394             ;;
5395           ppc*-*linux*|powerpc*-*linux*)
5396             LD="${LD-ld} -m elf64ppc"
5397             ;;
5398           s390*-*linux*|s390*-*tpf*)
5399             LD="${LD-ld} -m elf64_s390"
5400             ;;
5401           sparc*-*linux*)
5402             LD="${LD-ld} -m elf64_sparc"
5403             ;;
5404         esac
5405         ;;
5406     esac
5407   fi
5408   rm -rf conftest*
5409   ;;
5410
5411 *-*-sco3.2v5*)
5412   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5413   SAVE_CFLAGS="$CFLAGS"
5414   CFLAGS="$CFLAGS -belf"
5415   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5416 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5417 if test "${lt_cv_cc_needs_belf+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   ac_ext=c
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425
5426      cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432
5433 int
5434 main ()
5435 {
5436
5437   ;
5438   return 0;
5439 }
5440 _ACEOF
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5443   (eval $ac_link) 2>conftest.er1
5444   ac_status=$?
5445   grep -v '^ *+' conftest.er1 >conftest.err
5446   rm -f conftest.er1
5447   cat conftest.err >&5
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -z "$ac_c_werror_flag"
5451                          || test ! -s conftest.err'
5452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453   (eval $ac_try) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; } &&
5457          { ac_try='test -s conftest$ac_exeext'
5458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459   (eval $ac_try) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   lt_cv_cc_needs_belf=yes
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 lt_cv_cc_needs_belf=no
5469 fi
5470 rm -f conftest.err conftest.$ac_objext \
5471       conftest$ac_exeext conftest.$ac_ext
5472      ac_ext=c
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478 fi
5479 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5480 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5481   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5482     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5483     CFLAGS="$SAVE_CFLAGS"
5484   fi
5485   ;;
5486 sparc*-*solaris*)
5487   # Find out which ABI we are using.
5488   echo 'int i;' > conftest.$ac_ext
5489   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490   (eval $ac_compile) 2>&5
5491   ac_status=$?
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); }; then
5494     case `/usr/bin/file conftest.o` in
5495     *64-bit*)
5496       case $lt_cv_prog_gnu_ld in
5497       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5498       *)
5499         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5500           LD="${LD-ld} -64"
5501         fi
5502         ;;
5503       esac
5504       ;;
5505     esac
5506   fi
5507   rm -rf conftest*
5508   ;;
5509 esac
5510
5511 need_locks="$enable_libtool_lock"
5512
5513
5514   case $host_os in
5515     rhapsody* | darwin*)
5516     if test -n "$ac_tool_prefix"; then
5517   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5518 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5519 echo "$as_me:$LINENO: checking for $ac_word" >&5
5520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   if test -n "$DSYMUTIL"; then
5525   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532   for ac_exec_ext in '' $ac_executable_extensions; do
5533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539 done
5540
5541 fi
5542 fi
5543 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5544 if test -n "$DSYMUTIL"; then
5545   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5546 echo "${ECHO_T}$DSYMUTIL" >&6
5547 else
5548   echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5550 fi
5551
5552 fi
5553 if test -z "$ac_cv_prog_DSYMUTIL"; then
5554   ac_ct_DSYMUTIL=$DSYMUTIL
5555   # Extract the first word of "dsymutil", so it can be a program name with args.
5556 set dummy dsymutil; ac_word=$2
5557 echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5559 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5560   echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562   if test -n "$ac_ct_DSYMUTIL"; then
5563   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570   for ac_exec_ext in '' $ac_executable_extensions; do
5571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577 done
5578
5579   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5580 fi
5581 fi
5582 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5583 if test -n "$ac_ct_DSYMUTIL"; then
5584   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5585 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5586 else
5587   echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6
5589 fi
5590
5591   DSYMUTIL=$ac_ct_DSYMUTIL
5592 else
5593   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5594 fi
5595
5596     if test -n "$ac_tool_prefix"; then
5597   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5598 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5599 echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604   if test -n "$NMEDIT"; then
5605   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610   IFS=$as_save_IFS
5611   test -z "$as_dir" && as_dir=.
5612   for ac_exec_ext in '' $ac_executable_extensions; do
5613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616     break 2
5617   fi
5618 done
5619 done
5620
5621 fi
5622 fi
5623 NMEDIT=$ac_cv_prog_NMEDIT
5624 if test -n "$NMEDIT"; then
5625   echo "$as_me:$LINENO: result: $NMEDIT" >&5
5626 echo "${ECHO_T}$NMEDIT" >&6
5627 else
5628   echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6
5630 fi
5631
5632 fi
5633 if test -z "$ac_cv_prog_NMEDIT"; then
5634   ac_ct_NMEDIT=$NMEDIT
5635   # Extract the first word of "nmedit", so it can be a program name with args.
5636 set dummy nmedit; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   if test -n "$ac_ct_NMEDIT"; then
5643   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650   for ac_exec_ext in '' $ac_executable_extensions; do
5651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654     break 2
5655   fi
5656 done
5657 done
5658
5659   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5660 fi
5661 fi
5662 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5663 if test -n "$ac_ct_NMEDIT"; then
5664   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5665 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5666 else
5667   echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6
5669 fi
5670
5671   NMEDIT=$ac_ct_NMEDIT
5672 else
5673   NMEDIT="$ac_cv_prog_NMEDIT"
5674 fi
5675
5676     if test -n "$ac_tool_prefix"; then
5677   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5678 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5679 echo "$as_me:$LINENO: checking for $ac_word" >&5
5680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681 if test "${ac_cv_prog_LIPO+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   if test -n "$LIPO"; then
5685   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690   IFS=$as_save_IFS
5691   test -z "$as_dir" && as_dir=.
5692   for ac_exec_ext in '' $ac_executable_extensions; do
5693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696     break 2
5697   fi
5698 done
5699 done
5700
5701 fi
5702 fi
5703 LIPO=$ac_cv_prog_LIPO
5704 if test -n "$LIPO"; then
5705   echo "$as_me:$LINENO: result: $LIPO" >&5
5706 echo "${ECHO_T}$LIPO" >&6
5707 else
5708   echo "$as_me:$LINENO: result: no" >&5
5709 echo "${ECHO_T}no" >&6
5710 fi
5711
5712 fi
5713 if test -z "$ac_cv_prog_LIPO"; then
5714   ac_ct_LIPO=$LIPO
5715   # Extract the first word of "lipo", so it can be a program name with args.
5716 set dummy lipo; ac_word=$2
5717 echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   if test -n "$ac_ct_LIPO"; then
5723   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730   for ac_exec_ext in '' $ac_executable_extensions; do
5731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732     ac_cv_prog_ac_ct_LIPO="lipo"
5733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734     break 2
5735   fi
5736 done
5737 done
5738
5739   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5740 fi
5741 fi
5742 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5743 if test -n "$ac_ct_LIPO"; then
5744   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5745 echo "${ECHO_T}$ac_ct_LIPO" >&6
5746 else
5747   echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5749 fi
5750
5751   LIPO=$ac_ct_LIPO
5752 else
5753   LIPO="$ac_cv_prog_LIPO"
5754 fi
5755
5756     if test -n "$ac_tool_prefix"; then
5757   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5758 set dummy ${ac_tool_prefix}otool; ac_word=$2
5759 echo "$as_me:$LINENO: checking for $ac_word" >&5
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5761 if test "${ac_cv_prog_OTOOL+set}" = set; then
5762   echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764   if test -n "$OTOOL"; then
5765   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770   IFS=$as_save_IFS
5771   test -z "$as_dir" && as_dir=.
5772   for ac_exec_ext in '' $ac_executable_extensions; do
5773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776     break 2
5777   fi
5778 done
5779 done
5780
5781 fi
5782 fi
5783 OTOOL=$ac_cv_prog_OTOOL
5784 if test -n "$OTOOL"; then
5785   echo "$as_me:$LINENO: result: $OTOOL" >&5
5786 echo "${ECHO_T}$OTOOL" >&6
5787 else
5788   echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6
5790 fi
5791
5792 fi
5793 if test -z "$ac_cv_prog_OTOOL"; then
5794   ac_ct_OTOOL=$OTOOL
5795   # Extract the first word of "otool", so it can be a program name with args.
5796 set dummy otool; ac_word=$2
5797 echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5799 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   if test -n "$ac_ct_OTOOL"; then
5803   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812     ac_cv_prog_ac_ct_OTOOL="otool"
5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817 done
5818
5819   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5820 fi
5821 fi
5822 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5823 if test -n "$ac_ct_OTOOL"; then
5824   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5825 echo "${ECHO_T}$ac_ct_OTOOL" >&6
5826 else
5827   echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5829 fi
5830
5831   OTOOL=$ac_ct_OTOOL
5832 else
5833   OTOOL="$ac_cv_prog_OTOOL"
5834 fi
5835
5836     if test -n "$ac_tool_prefix"; then
5837   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5839 echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5841 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   if test -n "$OTOOL64"; then
5845   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852   for ac_exec_ext in '' $ac_executable_extensions; do
5853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856     break 2
5857   fi
5858 done
5859 done
5860
5861 fi
5862 fi
5863 OTOOL64=$ac_cv_prog_OTOOL64
5864 if test -n "$OTOOL64"; then
5865   echo "$as_me:$LINENO: result: $OTOOL64" >&5
5866 echo "${ECHO_T}$OTOOL64" >&6
5867 else
5868   echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6
5870 fi
5871
5872 fi
5873 if test -z "$ac_cv_prog_OTOOL64"; then
5874   ac_ct_OTOOL64=$OTOOL64
5875   # Extract the first word of "otool64", so it can be a program name with args.
5876 set dummy otool64; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   if test -n "$ac_ct_OTOOL64"; then
5883   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890   for ac_exec_ext in '' $ac_executable_extensions; do
5891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892     ac_cv_prog_ac_ct_OTOOL64="otool64"
5893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897 done
5898
5899   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5900 fi
5901 fi
5902 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5903 if test -n "$ac_ct_OTOOL64"; then
5904   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5905 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5906 else
5907   echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6
5909 fi
5910
5911   OTOOL64=$ac_ct_OTOOL64
5912 else
5913   OTOOL64="$ac_cv_prog_OTOOL64"
5914 fi
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5943 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5944 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   lt_cv_apple_cc_single_mod=no
5948       if test -z "${LT_MULTI_MODULE}"; then
5949         # By default we will add the -single_module flag. You can override
5950         # by either setting the environment variable LT_MULTI_MODULE
5951         # non-empty at configure time, or by adding -multi_module to the
5952         # link flags.
5953         rm -rf libconftest.dylib*
5954         echo "int foo(void){return 1;}" > conftest.c
5955         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5956 -dynamiclib -Wl,-single_module conftest.c" >&5
5957         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5958           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5959         _lt_result=$?
5960         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5961           lt_cv_apple_cc_single_mod=yes
5962         else
5963           cat conftest.err >&5
5964         fi
5965         rm -rf libconftest.dylib*
5966         rm -f conftest.*
5967       fi
5968 fi
5969 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5970 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5971     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5972 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5973 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   lt_cv_ld_exported_symbols_list=no
5977       save_LDFLAGS=$LDFLAGS
5978       echo "_main" > conftest.sym
5979       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5980       cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h.  */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h.  */
5986
5987 int
5988 main ()
5989 {
5990
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997   (eval $ac_link) 2>conftest.er1
5998   ac_status=$?
5999   grep -v '^ *+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -z "$ac_c_werror_flag"
6005                          || test ! -s conftest.err'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; } &&
6011          { ac_try='test -s conftest$ac_exeext'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; }; then
6017   lt_cv_ld_exported_symbols_list=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 lt_cv_ld_exported_symbols_list=no
6023 fi
6024 rm -f conftest.err conftest.$ac_objext \
6025       conftest$ac_exeext conftest.$ac_ext
6026         LDFLAGS="$save_LDFLAGS"
6027
6028 fi
6029 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6030 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6031     case $host_os in
6032     rhapsody* | darwin1.[012])
6033       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6034     darwin1.*)
6035       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6036     darwin*) # darwin 5.x on
6037       # if running on 10.5 or later, the deployment target defaults
6038       # to the OS version, if on x86, and 10.4, the deployment
6039       # target defaults to 10.4. Don't you love it?
6040       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6041         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6042           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6043         10.[012]*)
6044           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6045         10.*)
6046           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6047       esac
6048     ;;
6049   esac
6050     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6051       _lt_dar_single_mod='$single_module'
6052     fi
6053     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6054       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6055     else
6056       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6057     fi
6058     if test "$DSYMUTIL" != ":"; then
6059       _lt_dsymutil='~$DSYMUTIL $lib || :'
6060     else
6061       _lt_dsymutil=
6062     fi
6063     ;;
6064   esac
6065
6066 ac_ext=c
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6073 # On Suns, sometimes $CPP names a directory.
6074 if test -n "$CPP" && test -d "$CPP"; then
6075   CPP=
6076 fi
6077 if test -z "$CPP"; then
6078   if test "${ac_cv_prog_CPP+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081       # Double quotes because CPP needs to be expanded
6082     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6083     do
6084       ac_preproc_ok=false
6085 for ac_c_preproc_warn_flag in '' yes
6086 do
6087   # Use a header file that comes with gcc, so configuring glibc
6088   # with a fresh cross-compiler works.
6089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090   # <limits.h> exists even on freestanding compilers.
6091   # On the NeXT, cc -E runs the code through the compiler's parser,
6092   # not just through cpp. "Syntax error" is here to catch this case.
6093   cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099 #ifdef __STDC__
6100 # include <limits.h>
6101 #else
6102 # include <assert.h>
6103 #endif
6104                      Syntax error
6105 _ACEOF
6106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6108   ac_status=$?
6109   grep -v '^ *+' conftest.er1 >conftest.err
6110   rm -f conftest.er1
6111   cat conftest.err >&5
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } >/dev/null; then
6114   if test -s conftest.err; then
6115     ac_cpp_err=$ac_c_preproc_warn_flag
6116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6117   else
6118     ac_cpp_err=
6119   fi
6120 else
6121   ac_cpp_err=yes
6122 fi
6123 if test -z "$ac_cpp_err"; then
6124   :
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129   # Broken: fails on valid input.
6130 continue
6131 fi
6132 rm -f conftest.err conftest.$ac_ext
6133
6134   # OK, works on sane cases.  Now check whether non-existent headers
6135   # can be detected and how.
6136   cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 #include <ac_nonexistent.h>
6143 _ACEOF
6144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } >/dev/null; then
6152   if test -s conftest.err; then
6153     ac_cpp_err=$ac_c_preproc_warn_flag
6154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6155   else
6156     ac_cpp_err=
6157   fi
6158 else
6159   ac_cpp_err=yes
6160 fi
6161 if test -z "$ac_cpp_err"; then
6162   # Broken: success on invalid input.
6163 continue
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168   # Passes both tests.
6169 ac_preproc_ok=:
6170 break
6171 fi
6172 rm -f conftest.err conftest.$ac_ext
6173
6174 done
6175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176 rm -f conftest.err conftest.$ac_ext
6177 if $ac_preproc_ok; then
6178   break
6179 fi
6180
6181     done
6182     ac_cv_prog_CPP=$CPP
6183
6184 fi
6185   CPP=$ac_cv_prog_CPP
6186 else
6187   ac_cv_prog_CPP=$CPP
6188 fi
6189 echo "$as_me:$LINENO: result: $CPP" >&5
6190 echo "${ECHO_T}$CPP" >&6
6191 ac_preproc_ok=false
6192 for ac_c_preproc_warn_flag in '' yes
6193 do
6194   # Use a header file that comes with gcc, so configuring glibc
6195   # with a fresh cross-compiler works.
6196   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6197   # <limits.h> exists even on freestanding compilers.
6198   # On the NeXT, cc -E runs the code through the compiler's parser,
6199   # not just through cpp. "Syntax error" is here to catch this case.
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 #ifdef __STDC__
6207 # include <limits.h>
6208 #else
6209 # include <assert.h>
6210 #endif
6211                      Syntax error
6212 _ACEOF
6213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6215   ac_status=$?
6216   grep -v '^ *+' conftest.er1 >conftest.err
6217   rm -f conftest.er1
6218   cat conftest.err >&5
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); } >/dev/null; then
6221   if test -s conftest.err; then
6222     ac_cpp_err=$ac_c_preproc_warn_flag
6223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6224   else
6225     ac_cpp_err=
6226   fi
6227 else
6228   ac_cpp_err=yes
6229 fi
6230 if test -z "$ac_cpp_err"; then
6231   :
6232 else
6233   echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236   # Broken: fails on valid input.
6237 continue
6238 fi
6239 rm -f conftest.err conftest.$ac_ext
6240
6241   # OK, works on sane cases.  Now check whether non-existent headers
6242   # can be detected and how.
6243   cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6249 #include <ac_nonexistent.h>
6250 _ACEOF
6251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6253   ac_status=$?
6254   grep -v '^ *+' conftest.er1 >conftest.err
6255   rm -f conftest.er1
6256   cat conftest.err >&5
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); } >/dev/null; then
6259   if test -s conftest.err; then
6260     ac_cpp_err=$ac_c_preproc_warn_flag
6261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6262   else
6263     ac_cpp_err=
6264   fi
6265 else
6266   ac_cpp_err=yes
6267 fi
6268 if test -z "$ac_cpp_err"; then
6269   # Broken: success on invalid input.
6270 continue
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275   # Passes both tests.
6276 ac_preproc_ok=:
6277 break
6278 fi
6279 rm -f conftest.err conftest.$ac_ext
6280
6281 done
6282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6283 rm -f conftest.err conftest.$ac_ext
6284 if $ac_preproc_ok; then
6285   :
6286 else
6287   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6288 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6289 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6290 See \`config.log' for more details." >&5
6291 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6292 See \`config.log' for more details." >&2;}
6293    { (exit 1); exit 1; }; }; }
6294 fi
6295
6296 ac_ext=c
6297 ac_cpp='$CPP $CPPFLAGS'
6298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6301
6302
6303 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6305 if test "${ac_cv_header_stdc+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 #include <stdlib.h>
6315 #include <stdarg.h>
6316 #include <string.h>
6317 #include <float.h>
6318
6319 int
6320 main ()
6321 {
6322
6323   ;
6324   return 0;
6325 }
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329   (eval $ac_compile) 2>conftest.er1
6330   ac_status=$?
6331   grep -v '^ *+' conftest.er1 >conftest.err
6332   rm -f conftest.er1
6333   cat conftest.err >&5
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } &&
6336          { ac_try='test -z "$ac_c_werror_flag"
6337                          || test ! -s conftest.err'
6338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339   (eval $ac_try) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; } &&
6343          { ac_try='test -s conftest.$ac_objext'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; }; then
6349   ac_cv_header_stdc=yes
6350 else
6351   echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 ac_cv_header_stdc=no
6355 fi
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357
6358 if test $ac_cv_header_stdc = yes; then
6359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 #include <string.h>
6367
6368 _ACEOF
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370   $EGREP "memchr" >/dev/null 2>&1; then
6371   :
6372 else
6373   ac_cv_header_stdc=no
6374 fi
6375 rm -f conftest*
6376
6377 fi
6378
6379 if test $ac_cv_header_stdc = yes; then
6380   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6381   cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h.  */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h.  */
6387 #include <stdlib.h>
6388
6389 _ACEOF
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391   $EGREP "free" >/dev/null 2>&1; then
6392   :
6393 else
6394   ac_cv_header_stdc=no
6395 fi
6396 rm -f conftest*
6397
6398 fi
6399
6400 if test $ac_cv_header_stdc = yes; then
6401   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6402   if test "$cross_compiling" = yes; then
6403   :
6404 else
6405   cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h.  */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h.  */
6411 #include <ctype.h>
6412 #if ((' ' & 0x0FF) == 0x020)
6413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6415 #else
6416 # define ISLOWER(c) \
6417                    (('a' <= (c) && (c) <= 'i') \
6418                      || ('j' <= (c) && (c) <= 'r') \
6419                      || ('s' <= (c) && (c) <= 'z'))
6420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6421 #endif
6422
6423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6424 int
6425 main ()
6426 {
6427   int i;
6428   for (i = 0; i < 256; i++)
6429     if (XOR (islower (i), ISLOWER (i))
6430         || toupper (i) != TOUPPER (i))
6431       exit(2);
6432   exit (0);
6433 }
6434 _ACEOF
6435 rm -f conftest$ac_exeext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437   (eval $ac_link) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; }; then
6446   :
6447 else
6448   echo "$as_me: program exited with status $ac_status" >&5
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ( exit $ac_status )
6453 ac_cv_header_stdc=no
6454 fi
6455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6456 fi
6457 fi
6458 fi
6459 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6461 if test $ac_cv_header_stdc = yes; then
6462
6463 cat >>confdefs.h <<\_ACEOF
6464 #define STDC_HEADERS 1
6465 _ACEOF
6466
6467 fi
6468
6469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6480                   inttypes.h stdint.h unistd.h
6481 do
6482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6483 echo "$as_me:$LINENO: checking for $ac_header" >&5
6484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6486   echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488   cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 $ac_includes_default
6495
6496 #include <$ac_header>
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500   (eval $ac_compile) 2>conftest.er1
6501   ac_status=$?
6502   grep -v '^ *+' conftest.er1 >conftest.err
6503   rm -f conftest.er1
6504   cat conftest.err >&5
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } &&
6507          { ac_try='test -z "$ac_c_werror_flag"
6508                          || test ! -s conftest.err'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; } &&
6514          { ac_try='test -s conftest.$ac_objext'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; }; then
6520   eval "$as_ac_Header=yes"
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 eval "$as_ac_Header=no"
6526 fi
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532   cat >>confdefs.h <<_ACEOF
6533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534 _ACEOF
6535
6536 fi
6537
6538 done
6539
6540
6541
6542 for ac_header in dlfcn.h
6543 do
6544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545 echo "$as_me:$LINENO: checking for $ac_header" >&5
6546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556 $ac_includes_default
6557
6558 #include <$ac_header>
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562   (eval $ac_compile) 2>conftest.er1
6563   ac_status=$?
6564   grep -v '^ *+' conftest.er1 >conftest.err
6565   rm -f conftest.er1
6566   cat conftest.err >&5
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } &&
6569          { ac_try='test -z "$ac_c_werror_flag"
6570                          || test ! -s conftest.err'
6571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572   (eval $ac_try) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); }; } &&
6576          { ac_try='test -s conftest.$ac_objext'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; }; then
6582   eval "$as_ac_Header=yes"
6583 else
6584   echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6586
6587 eval "$as_ac_Header=no"
6588 fi
6589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6590 fi
6591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594   cat >>confdefs.h <<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 _ACEOF
6597
6598 fi
6599
6600 done
6601
6602
6603
6604 # Set options
6605
6606
6607
6608         enable_dlopen=no
6609
6610
6611   enable_win32_dll=no
6612
6613
6614             # Check whether --enable-shared or --disable-shared was given.
6615 if test "${enable_shared+set}" = set; then
6616   enableval="$enable_shared"
6617   p=${PACKAGE-default}
6618     case $enableval in
6619     yes) enable_shared=yes ;;
6620     no) enable_shared=no ;;
6621     *)
6622       enable_shared=no
6623       # Look at the argument we got.  We use all the common list separators.
6624       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6625       for pkg in $enableval; do
6626         IFS="$lt_save_ifs"
6627         if test "X$pkg" = "X$p"; then
6628           enable_shared=yes
6629         fi
6630       done
6631       IFS="$lt_save_ifs"
6632       ;;
6633     esac
6634 else
6635   enable_shared=yes
6636 fi;
6637
6638
6639
6640
6641
6642
6643
6644
6645   # Check whether --enable-static or --disable-static was given.
6646 if test "${enable_static+set}" = set; then
6647   enableval="$enable_static"
6648   p=${PACKAGE-default}
6649     case $enableval in
6650     yes) enable_static=yes ;;
6651     no) enable_static=no ;;
6652     *)
6653      enable_static=no
6654       # Look at the argument we got.  We use all the common list separators.
6655       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6656       for pkg in $enableval; do
6657         IFS="$lt_save_ifs"
6658         if test "X$pkg" = "X$p"; then
6659           enable_static=yes
6660         fi
6661       done
6662       IFS="$lt_save_ifs"
6663       ;;
6664     esac
6665 else
6666   enable_static=yes
6667 fi;
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677 # Check whether --with-pic or --without-pic was given.
6678 if test "${with_pic+set}" = set; then
6679   withval="$with_pic"
6680   pic_mode="$withval"
6681 else
6682   pic_mode=default
6683 fi;
6684
6685 test -z "$pic_mode" && pic_mode=default
6686
6687
6688
6689
6690
6691
6692
6693   # Check whether --enable-fast-install or --disable-fast-install was given.
6694 if test "${enable_fast_install+set}" = set; then
6695   enableval="$enable_fast_install"
6696   p=${PACKAGE-default}
6697     case $enableval in
6698     yes) enable_fast_install=yes ;;
6699     no) enable_fast_install=no ;;
6700     *)
6701       enable_fast_install=no
6702       # Look at the argument we got.  We use all the common list separators.
6703       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6704       for pkg in $enableval; do
6705         IFS="$lt_save_ifs"
6706         if test "X$pkg" = "X$p"; then
6707           enable_fast_install=yes
6708         fi
6709       done
6710       IFS="$lt_save_ifs"
6711       ;;
6712     esac
6713 else
6714   enable_fast_install=yes
6715 fi;
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726 # This can be used to rebuild libtool when needed
6727 LIBTOOL_DEPS="$ltmain"
6728
6729 # Always use our own libtool.
6730 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756 test -z "$LN_S" && LN_S="ln -s"
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771 if test -n "${ZSH_VERSION+set}" ; then
6772    setopt NO_GLOB_SUBST
6773 fi
6774
6775 echo "$as_me:$LINENO: checking for objdir" >&5
6776 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6777 if test "${lt_cv_objdir+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780   rm -f .libs 2>/dev/null
6781 mkdir .libs 2>/dev/null
6782 if test -d .libs; then
6783   lt_cv_objdir=.libs
6784 else
6785   # MS-DOS does not allow filenames that begin with a dot.
6786   lt_cv_objdir=_libs
6787 fi
6788 rmdir .libs 2>/dev/null
6789 fi
6790 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6791 echo "${ECHO_T}$lt_cv_objdir" >&6
6792 objdir=$lt_cv_objdir
6793
6794
6795
6796
6797
6798 cat >>confdefs.h <<_ACEOF
6799 #define LT_OBJDIR "$lt_cv_objdir/"
6800 _ACEOF
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818 case $host_os in
6819 aix3*)
6820   # AIX sometimes has problems with the GCC collect2 program.  For some
6821   # reason, if we set the COLLECT_NAMES environment variable, the problems
6822   # vanish in a puff of smoke.
6823   if test "X${COLLECT_NAMES+set}" != Xset; then
6824     COLLECT_NAMES=
6825     export COLLECT_NAMES
6826   fi
6827   ;;
6828 esac
6829
6830 # Sed substitution that helps us do robust quoting.  It backslashifies
6831 # metacharacters that are still active within double-quoted strings.
6832 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6833
6834 # Same as above, but do not quote variable references.
6835 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6836
6837 # Sed substitution to delay expansion of an escaped shell variable in a
6838 # double_quote_subst'ed string.
6839 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6840
6841 # Sed substitution to delay expansion of an escaped single quote.
6842 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6843
6844 # Sed substitution to avoid accidental globbing in evaled expressions
6845 no_glob_subst='s/\*/\\\*/g'
6846
6847 # Global variables:
6848 ofile=libtool
6849 can_build_shared=yes
6850
6851 # All known linkers require a `.a' archive for static linking (except MSVC,
6852 # which needs '.lib').
6853 libext=a
6854
6855 with_gnu_ld="$lt_cv_prog_gnu_ld"
6856
6857 old_CC="$CC"
6858 old_CFLAGS="$CFLAGS"
6859
6860 # Set sane defaults for various variables
6861 test -z "$CC" && CC=cc
6862 test -z "$LTCC" && LTCC=$CC
6863 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6864 test -z "$LD" && LD=ld
6865 test -z "$ac_objext" && ac_objext=o
6866
6867 for cc_temp in $compiler""; do
6868   case $cc_temp in
6869     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6870     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6871     \-*) ;;
6872     *) break;;
6873   esac
6874 done
6875 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6876
6877
6878 # Only perform the check for file, if the check method requires it
6879 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6880 case $deplibs_check_method in
6881 file_magic*)
6882   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6883     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6884 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6885 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   case $MAGIC_CMD in
6889 [\\/*] |  ?:[\\/]*)
6890   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6891   ;;
6892 *)
6893   lt_save_MAGIC_CMD="$MAGIC_CMD"
6894   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6895   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6896   for ac_dir in $ac_dummy; do
6897     IFS="$lt_save_ifs"
6898     test -z "$ac_dir" && ac_dir=.
6899     if test -f $ac_dir/${ac_tool_prefix}file; then
6900       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6901       if test -n "$file_magic_test_file"; then
6902         case $deplibs_check_method in
6903         "file_magic "*)
6904           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6905           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6906           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6907             $EGREP "$file_magic_regex" > /dev/null; then
6908             :
6909           else
6910             cat <<_LT_EOF 1>&2
6911
6912 *** Warning: the command libtool uses to detect shared libraries,
6913 *** $file_magic_cmd, produces output that libtool cannot recognize.
6914 *** The result is that libtool may fail to recognize shared libraries
6915 *** as such.  This will affect the creation of libtool libraries that
6916 *** depend on shared libraries, but programs linked with such libtool
6917 *** libraries will work regardless of this problem.  Nevertheless, you
6918 *** may want to report the problem to your system manager and/or to
6919 *** bug-libtool@gnu.org
6920
6921 _LT_EOF
6922           fi ;;
6923         esac
6924       fi
6925       break
6926     fi
6927   done
6928   IFS="$lt_save_ifs"
6929   MAGIC_CMD="$lt_save_MAGIC_CMD"
6930   ;;
6931 esac
6932 fi
6933
6934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6935 if test -n "$MAGIC_CMD"; then
6936   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6937 echo "${ECHO_T}$MAGIC_CMD" >&6
6938 else
6939   echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6
6941 fi
6942
6943
6944
6945
6946
6947 if test -z "$lt_cv_path_MAGIC_CMD"; then
6948   if test -n "$ac_tool_prefix"; then
6949     echo "$as_me:$LINENO: checking for file" >&5
6950 echo $ECHO_N "checking for file... $ECHO_C" >&6
6951 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   case $MAGIC_CMD in
6955 [\\/*] |  ?:[\\/]*)
6956   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6957   ;;
6958 *)
6959   lt_save_MAGIC_CMD="$MAGIC_CMD"
6960   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6961   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6962   for ac_dir in $ac_dummy; do
6963     IFS="$lt_save_ifs"
6964     test -z "$ac_dir" && ac_dir=.
6965     if test -f $ac_dir/file; then
6966       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6967       if test -n "$file_magic_test_file"; then
6968         case $deplibs_check_method in
6969         "file_magic "*)
6970           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6971           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6972           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6973             $EGREP "$file_magic_regex" > /dev/null; then
6974             :
6975           else
6976             cat <<_LT_EOF 1>&2
6977
6978 *** Warning: the command libtool uses to detect shared libraries,
6979 *** $file_magic_cmd, produces output that libtool cannot recognize.
6980 *** The result is that libtool may fail to recognize shared libraries
6981 *** as such.  This will affect the creation of libtool libraries that
6982 *** depend on shared libraries, but programs linked with such libtool
6983 *** libraries will work regardless of this problem.  Nevertheless, you
6984 *** may want to report the problem to your system manager and/or to
6985 *** bug-libtool@gnu.org
6986
6987 _LT_EOF
6988           fi ;;
6989         esac
6990       fi
6991       break
6992     fi
6993   done
6994   IFS="$lt_save_ifs"
6995   MAGIC_CMD="$lt_save_MAGIC_CMD"
6996   ;;
6997 esac
6998 fi
6999
7000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7001 if test -n "$MAGIC_CMD"; then
7002   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7003 echo "${ECHO_T}$MAGIC_CMD" >&6
7004 else
7005   echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6
7007 fi
7008
7009
7010   else
7011     MAGIC_CMD=:
7012   fi
7013 fi
7014
7015   fi
7016   ;;
7017 esac
7018
7019 # Use C for the default configuration in the libtool script
7020
7021 lt_save_CC="$CC"
7022 ac_ext=c
7023 ac_cpp='$CPP $CPPFLAGS'
7024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027
7028
7029 # Source file extension for C test sources.
7030 ac_ext=c
7031
7032 # Object file extension for compiled C test sources.
7033 objext=o
7034 objext=$objext
7035
7036 # Code to be used in simple compile tests
7037 lt_simple_compile_test_code="int some_variable = 0;"
7038
7039 # Code to be used in simple link tests
7040 lt_simple_link_test_code='int main(){return(0);}'
7041
7042
7043
7044
7045
7046
7047
7048 # If no C compiler was specified, use CC.
7049 LTCC=${LTCC-"$CC"}
7050
7051 # If no C compiler flags were specified, use CFLAGS.
7052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7053
7054 # Allow CC to be a program name with arguments.
7055 compiler=$CC
7056
7057 # Save the default compiler, since it gets overwritten when the other
7058 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7059 compiler_DEFAULT=$CC
7060
7061 # save warnings/boilerplate of simple test code
7062 ac_outfile=conftest.$ac_objext
7063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7065 _lt_compiler_boilerplate=`cat conftest.err`
7066 $RM conftest*
7067
7068 ac_outfile=conftest.$ac_objext
7069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7071 _lt_linker_boilerplate=`cat conftest.err`
7072 $RM -r conftest*
7073
7074
7075 ## CAVEAT EMPTOR:
7076 ## There is no encapsulation within the following macros, do not change
7077 ## the running order or otherwise move them around unless you know exactly
7078 ## what you are doing...
7079 if test -n "$compiler"; then
7080
7081 lt_prog_compiler_no_builtin_flag=
7082
7083 if test "$GCC" = yes; then
7084   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7085
7086   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7087 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7088 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   lt_cv_prog_compiler_rtti_exceptions=no
7092    ac_outfile=conftest.$ac_objext
7093    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7094    lt_compiler_flag="-fno-rtti -fno-exceptions"
7095    # Insert the option either (1) after the last *FLAGS variable, or
7096    # (2) before a word containing "conftest.", or (3) at the end.
7097    # Note that $ac_compile itself does not contain backslashes and begins
7098    # with a dollar sign (not a hyphen), so the echo should work correctly.
7099    # The option is referenced via a variable to avoid confusing sed.
7100    lt_compile=`echo "$ac_compile" | $SED \
7101    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7102    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7103    -e 's:$: $lt_compiler_flag:'`
7104    (eval echo "\"\$as_me:7104: $lt_compile\"" >&5)
7105    (eval "$lt_compile" 2>conftest.err)
7106    ac_status=$?
7107    cat conftest.err >&5
7108    echo "$as_me:7108: \$? = $ac_status" >&5
7109    if (exit $ac_status) && test -s "$ac_outfile"; then
7110      # The compiler can only warn and ignore the option if not recognized
7111      # So say no if there are warnings other than the usual output.
7112      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7113      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7114      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7115        lt_cv_prog_compiler_rtti_exceptions=yes
7116      fi
7117    fi
7118    $RM conftest*
7119
7120 fi
7121 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7122 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7123
7124 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7125     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7126 else
7127     :
7128 fi
7129
7130 fi
7131
7132
7133
7134
7135
7136
7137   lt_prog_compiler_wl=
7138 lt_prog_compiler_pic=
7139 lt_prog_compiler_static=
7140
7141 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7142 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7143
7144   if test "$GCC" = yes; then
7145     lt_prog_compiler_wl='-Wl,'
7146     lt_prog_compiler_static='-static'
7147
7148     case $host_os in
7149       aix*)
7150       # All AIX code is PIC.
7151       if test "$host_cpu" = ia64; then
7152         # AIX 5 now supports IA64 processor
7153         lt_prog_compiler_static='-Bstatic'
7154       fi
7155       ;;
7156
7157     amigaos*)
7158       case $host_cpu in
7159       powerpc)
7160             # see comment about AmigaOS4 .so support
7161             lt_prog_compiler_pic='-fPIC'
7162         ;;
7163       m68k)
7164             # FIXME: we need at least 68020 code to build shared libraries, but
7165             # adding the `-m68020' flag to GCC prevents building anything better,
7166             # like `-m68040'.
7167             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7168         ;;
7169       esac
7170       ;;
7171
7172     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7173       # PIC is the default for these OSes.
7174       ;;
7175
7176     mingw* | cygwin* | pw32* | os2* | cegcc*)
7177       # This hack is so that the source file can tell whether it is being
7178       # built for inclusion in a dll (and should export symbols for example).
7179       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7180       # (--disable-auto-import) libraries
7181       lt_prog_compiler_pic='-DDLL_EXPORT'
7182       ;;
7183
7184     darwin* | rhapsody*)
7185       # PIC is the default on this platform
7186       # Common symbols not allowed in MH_DYLIB files
7187       lt_prog_compiler_pic='-fno-common'
7188       ;;
7189
7190     hpux*)
7191       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7192       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7193       # sets the default TLS model and affects inlining.
7194       case $host_cpu in
7195       hppa*64*)
7196         # +Z the default
7197         ;;
7198       *)
7199         lt_prog_compiler_pic='-fPIC'
7200         ;;
7201       esac
7202       ;;
7203
7204     interix[3-9]*)
7205       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7206       # Instead, we relocate shared libraries at runtime.
7207       ;;
7208
7209     msdosdjgpp*)
7210       # Just because we use GCC doesn't mean we suddenly get shared libraries
7211       # on systems that don't support them.
7212       lt_prog_compiler_can_build_shared=no
7213       enable_shared=no
7214       ;;
7215
7216     *nto* | *qnx*)
7217       # QNX uses GNU C++, but need to define -shared option too, otherwise
7218       # it will coredump.
7219       lt_prog_compiler_pic='-fPIC -shared'
7220       ;;
7221
7222     sysv4*MP*)
7223       if test -d /usr/nec; then
7224         lt_prog_compiler_pic=-Kconform_pic
7225       fi
7226       ;;
7227
7228     *)
7229       lt_prog_compiler_pic='-fPIC'
7230       ;;
7231     esac
7232   else
7233     # PORTME Check for flag to pass linker flags through the system compiler.
7234     case $host_os in
7235     aix*)
7236       lt_prog_compiler_wl='-Wl,'
7237       if test "$host_cpu" = ia64; then
7238         # AIX 5 now supports IA64 processor
7239         lt_prog_compiler_static='-Bstatic'
7240       else
7241         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7242       fi
7243       ;;
7244
7245     mingw* | cygwin* | pw32* | os2* | cegcc*)
7246       # This hack is so that the source file can tell whether it is being
7247       # built for inclusion in a dll (and should export symbols for example).
7248       lt_prog_compiler_pic='-DDLL_EXPORT'
7249       ;;
7250
7251     hpux9* | hpux10* | hpux11*)
7252       lt_prog_compiler_wl='-Wl,'
7253       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7254       # not for PA HP-UX.
7255       case $host_cpu in
7256       hppa*64*|ia64*)
7257         # +Z the default
7258         ;;
7259       *)
7260         lt_prog_compiler_pic='+Z'
7261         ;;
7262       esac
7263       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7264       lt_prog_compiler_static='${wl}-a ${wl}archive'
7265       ;;
7266
7267     irix5* | irix6* | nonstopux*)
7268       lt_prog_compiler_wl='-Wl,'
7269       # PIC (with -KPIC) is the default.
7270       lt_prog_compiler_static='-non_shared'
7271       ;;
7272
7273     linux* | k*bsd*-gnu)
7274       case $cc_basename in
7275       # old Intel for x86_64 which still supported -KPIC.
7276       ecc*)
7277         lt_prog_compiler_wl='-Wl,'
7278         lt_prog_compiler_pic='-KPIC'
7279         lt_prog_compiler_static='-static'
7280         ;;
7281       # icc used to be incompatible with GCC.
7282       # ICC 10 doesn't accept -KPIC any more.
7283       icc* | ifort*)
7284         lt_prog_compiler_wl='-Wl,'
7285         lt_prog_compiler_pic='-fPIC'
7286         lt_prog_compiler_static='-static'
7287         ;;
7288       # Lahey Fortran 8.1.
7289       lf95*)
7290         lt_prog_compiler_wl='-Wl,'
7291         lt_prog_compiler_pic='--shared'
7292         lt_prog_compiler_static='--static'
7293         ;;
7294       pgcc* | pgf77* | pgf90* | pgf95*)
7295         # Portland Group compilers (*not* the Pentium gcc compiler,
7296         # which looks to be a dead project)
7297         lt_prog_compiler_wl='-Wl,'
7298         lt_prog_compiler_pic='-fpic'
7299         lt_prog_compiler_static='-Bstatic'
7300         ;;
7301       ccc*)
7302         lt_prog_compiler_wl='-Wl,'
7303         # All Alpha code is PIC.
7304         lt_prog_compiler_static='-non_shared'
7305         ;;
7306       xl*)
7307         # IBM XL C 8.0/Fortran 10.1 on PPC
7308         lt_prog_compiler_wl='-Wl,'
7309         lt_prog_compiler_pic='-qpic'
7310         lt_prog_compiler_static='-qstaticlink'
7311         ;;
7312       *)
7313         case `$CC -V 2>&1 | sed 5q` in
7314         *Sun\ C*)
7315           # Sun C 5.9
7316           lt_prog_compiler_pic='-KPIC'
7317           lt_prog_compiler_static='-Bstatic'
7318           lt_prog_compiler_wl='-Wl,'
7319           ;;
7320         *Sun\ F*)
7321           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7322           lt_prog_compiler_pic='-KPIC'
7323           lt_prog_compiler_static='-Bstatic'
7324           lt_prog_compiler_wl=''
7325           ;;
7326         esac
7327         ;;
7328       esac
7329       ;;
7330
7331     newsos6)
7332       lt_prog_compiler_pic='-KPIC'
7333       lt_prog_compiler_static='-Bstatic'
7334       ;;
7335
7336     *nto* | *qnx*)
7337       # QNX uses GNU C++, but need to define -shared option too, otherwise
7338       # it will coredump.
7339       lt_prog_compiler_pic='-fPIC -shared'
7340       ;;
7341
7342     osf3* | osf4* | osf5*)
7343       lt_prog_compiler_wl='-Wl,'
7344       # All OSF/1 code is PIC.
7345       lt_prog_compiler_static='-non_shared'
7346       ;;
7347
7348     rdos*)
7349       lt_prog_compiler_static='-non_shared'
7350       ;;
7351
7352     solaris*)
7353       lt_prog_compiler_pic='-KPIC'
7354       lt_prog_compiler_static='-Bstatic'
7355       case $cc_basename in
7356       f77* | f90* | f95*)
7357         lt_prog_compiler_wl='-Qoption ld ';;
7358       *)
7359         lt_prog_compiler_wl='-Wl,';;
7360       esac
7361       ;;
7362
7363     sunos4*)
7364       lt_prog_compiler_wl='-Qoption ld '
7365       lt_prog_compiler_pic='-PIC'
7366       lt_prog_compiler_static='-Bstatic'
7367       ;;
7368
7369     sysv4 | sysv4.2uw2* | sysv4.3*)
7370       lt_prog_compiler_wl='-Wl,'
7371       lt_prog_compiler_pic='-KPIC'
7372       lt_prog_compiler_static='-Bstatic'
7373       ;;
7374
7375     sysv4*MP*)
7376       if test -d /usr/nec ;then
7377         lt_prog_compiler_pic='-Kconform_pic'
7378         lt_prog_compiler_static='-Bstatic'
7379       fi
7380       ;;
7381
7382     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7383       lt_prog_compiler_wl='-Wl,'
7384       lt_prog_compiler_pic='-KPIC'
7385       lt_prog_compiler_static='-Bstatic'
7386       ;;
7387
7388     unicos*)
7389       lt_prog_compiler_wl='-Wl,'
7390       lt_prog_compiler_can_build_shared=no
7391       ;;
7392
7393     uts4*)
7394       lt_prog_compiler_pic='-pic'
7395       lt_prog_compiler_static='-Bstatic'
7396       ;;
7397
7398     *)
7399       lt_prog_compiler_can_build_shared=no
7400       ;;
7401     esac
7402   fi
7403
7404 case $host_os in
7405   # For platforms which do not support PIC, -DPIC is meaningless:
7406   *djgpp*)
7407     lt_prog_compiler_pic=
7408     ;;
7409   *)
7410     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7411     ;;
7412 esac
7413 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7414 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7415
7416
7417
7418
7419
7420
7421 #
7422 # Check to make sure the PIC flag actually works.
7423 #
7424 if test -n "$lt_prog_compiler_pic"; then
7425   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7426 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7427 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   lt_cv_prog_compiler_pic_works=no
7431    ac_outfile=conftest.$ac_objext
7432    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7433    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7434    # Insert the option either (1) after the last *FLAGS variable, or
7435    # (2) before a word containing "conftest.", or (3) at the end.
7436    # Note that $ac_compile itself does not contain backslashes and begins
7437    # with a dollar sign (not a hyphen), so the echo should work correctly.
7438    # The option is referenced via a variable to avoid confusing sed.
7439    lt_compile=`echo "$ac_compile" | $SED \
7440    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7442    -e 's:$: $lt_compiler_flag:'`
7443    (eval echo "\"\$as_me:7443: $lt_compile\"" >&5)
7444    (eval "$lt_compile" 2>conftest.err)
7445    ac_status=$?
7446    cat conftest.err >&5
7447    echo "$as_me:7447: \$? = $ac_status" >&5
7448    if (exit $ac_status) && test -s "$ac_outfile"; then
7449      # The compiler can only warn and ignore the option if not recognized
7450      # So say no if there are warnings other than the usual output.
7451      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7452      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7453      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7454        lt_cv_prog_compiler_pic_works=yes
7455      fi
7456    fi
7457    $RM conftest*
7458
7459 fi
7460 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7461 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
7462
7463 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7464     case $lt_prog_compiler_pic in
7465      "" | " "*) ;;
7466      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7467      esac
7468 else
7469     lt_prog_compiler_pic=
7470      lt_prog_compiler_can_build_shared=no
7471 fi
7472
7473 fi
7474
7475
7476
7477
7478
7479
7480 #
7481 # Check to make sure the static flag actually works.
7482 #
7483 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7484 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7485 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7486 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   lt_cv_prog_compiler_static_works=no
7490    save_LDFLAGS="$LDFLAGS"
7491    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7492    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7493    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7494      # The linker can only warn and ignore the option if not recognized
7495      # So say no if there are warnings
7496      if test -s conftest.err; then
7497        # Append any errors to the config.log.
7498        cat conftest.err 1>&5
7499        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7500        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501        if diff conftest.exp conftest.er2 >/dev/null; then
7502          lt_cv_prog_compiler_static_works=yes
7503        fi
7504      else
7505        lt_cv_prog_compiler_static_works=yes
7506      fi
7507    fi
7508    $RM -r conftest*
7509    LDFLAGS="$save_LDFLAGS"
7510
7511 fi
7512 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7513 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7514
7515 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7516     :
7517 else
7518     lt_prog_compiler_static=
7519 fi
7520
7521
7522
7523
7524
7525
7526
7527   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7529 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532   lt_cv_prog_compiler_c_o=no
7533    $RM -r conftest 2>/dev/null
7534    mkdir conftest
7535    cd conftest
7536    mkdir out
7537    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7538
7539    lt_compiler_flag="-o out/conftest2.$ac_objext"
7540    # Insert the option either (1) after the last *FLAGS variable, or
7541    # (2) before a word containing "conftest.", or (3) at the end.
7542    # Note that $ac_compile itself does not contain backslashes and begins
7543    # with a dollar sign (not a hyphen), so the echo should work correctly.
7544    lt_compile=`echo "$ac_compile" | $SED \
7545    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7546    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7547    -e 's:$: $lt_compiler_flag:'`
7548    (eval echo "\"\$as_me:7548: $lt_compile\"" >&5)
7549    (eval "$lt_compile" 2>out/conftest.err)
7550    ac_status=$?
7551    cat out/conftest.err >&5
7552    echo "$as_me:7552: \$? = $ac_status" >&5
7553    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7554    then
7555      # The compiler can only warn and ignore the option if not recognized
7556      # So say no if there are warnings
7557      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7558      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7559      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7560        lt_cv_prog_compiler_c_o=yes
7561      fi
7562    fi
7563    chmod u+w . 2>&5
7564    $RM conftest*
7565    # SGI C++ compiler will create directory out/ii_files/ for
7566    # template instantiation
7567    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7568    $RM out/* && rmdir out
7569    cd ..
7570    $RM -r conftest
7571    $RM conftest*
7572
7573 fi
7574 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7576
7577
7578
7579
7580
7581
7582   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7583 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7584 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587   lt_cv_prog_compiler_c_o=no
7588    $RM -r conftest 2>/dev/null
7589    mkdir conftest
7590    cd conftest
7591    mkdir out
7592    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7593
7594    lt_compiler_flag="-o out/conftest2.$ac_objext"
7595    # Insert the option either (1) after the last *FLAGS variable, or
7596    # (2) before a word containing "conftest.", or (3) at the end.
7597    # Note that $ac_compile itself does not contain backslashes and begins
7598    # with a dollar sign (not a hyphen), so the echo should work correctly.
7599    lt_compile=`echo "$ac_compile" | $SED \
7600    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7601    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7602    -e 's:$: $lt_compiler_flag:'`
7603    (eval echo "\"\$as_me:7603: $lt_compile\"" >&5)
7604    (eval "$lt_compile" 2>out/conftest.err)
7605    ac_status=$?
7606    cat out/conftest.err >&5
7607    echo "$as_me:7607: \$? = $ac_status" >&5
7608    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7609    then
7610      # The compiler can only warn and ignore the option if not recognized
7611      # So say no if there are warnings
7612      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7613      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7614      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7615        lt_cv_prog_compiler_c_o=yes
7616      fi
7617    fi
7618    chmod u+w . 2>&5
7619    $RM conftest*
7620    # SGI C++ compiler will create directory out/ii_files/ for
7621    # template instantiation
7622    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7623    $RM out/* && rmdir out
7624    cd ..
7625    $RM -r conftest
7626    $RM conftest*
7627
7628 fi
7629 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7631
7632
7633
7634
7635 hard_links="nottested"
7636 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7637   # do not overwrite the value of need_locks provided by the user
7638   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7640   hard_links=yes
7641   $RM conftest*
7642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7643   touch conftest.a
7644   ln conftest.a conftest.b 2>&5 || hard_links=no
7645   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7646   echo "$as_me:$LINENO: result: $hard_links" >&5
7647 echo "${ECHO_T}$hard_links" >&6
7648   if test "$hard_links" = no; then
7649     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7651     need_locks=warn
7652   fi
7653 else
7654   need_locks=no
7655 fi
7656
7657
7658
7659
7660
7661
7662   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7663 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7664
7665   runpath_var=
7666   allow_undefined_flag=
7667   always_export_symbols=no
7668   archive_cmds=
7669   archive_expsym_cmds=
7670   compiler_needs_object=no
7671   enable_shared_with_static_runtimes=no
7672   export_dynamic_flag_spec=
7673   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7674   hardcode_automatic=no
7675   hardcode_direct=no
7676   hardcode_direct_absolute=no
7677   hardcode_libdir_flag_spec=
7678   hardcode_libdir_flag_spec_ld=
7679   hardcode_libdir_separator=
7680   hardcode_minus_L=no
7681   hardcode_shlibpath_var=unsupported
7682   inherit_rpath=no
7683   link_all_deplibs=unknown
7684   module_cmds=
7685   module_expsym_cmds=
7686   old_archive_from_new_cmds=
7687   old_archive_from_expsyms_cmds=
7688   thread_safe_flag_spec=
7689   whole_archive_flag_spec=
7690   # include_expsyms should be a list of space-separated symbols to be *always*
7691   # included in the symbol list
7692   include_expsyms=
7693   # exclude_expsyms can be an extended regexp of symbols to exclude
7694   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7695   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7696   # as well as any symbol that contains `d'.
7697   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7698   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7699   # platforms (ab)use it in PIC code, but their linkers get confused if
7700   # the symbol is explicitly referenced.  Since portable code cannot
7701   # rely on this symbol name, it's probably fine to never include it in
7702   # preloaded symbol tables.
7703   # Exclude shared library initialization/finalization symbols.
7704   extract_expsyms_cmds=
7705
7706   case $host_os in
7707   cygwin* | mingw* | pw32* | cegcc*)
7708     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7709     # When not using gcc, we currently assume that we are using
7710     # Microsoft Visual C++.
7711     if test "$GCC" != yes; then
7712       with_gnu_ld=no
7713     fi
7714     ;;
7715   interix*)
7716     # we just hope/assume this is gcc and not c89 (= MSVC++)
7717     with_gnu_ld=yes
7718     ;;
7719   openbsd*)
7720     with_gnu_ld=no
7721     ;;
7722   esac
7723
7724   ld_shlibs=yes
7725   if test "$with_gnu_ld" = yes; then
7726     # If archive_cmds runs LD, not CC, wlarc should be empty
7727     wlarc='${wl}'
7728
7729     # Set some defaults for GNU ld with shared library support. These
7730     # are reset later if shared libraries are not supported. Putting them
7731     # here allows them to be overridden if necessary.
7732     runpath_var=LD_RUN_PATH
7733     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7734     export_dynamic_flag_spec='${wl}--export-dynamic'
7735     # ancient GNU ld didn't support --whole-archive et. al.
7736     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7737       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7738     else
7739       whole_archive_flag_spec=
7740     fi
7741     supports_anon_versioning=no
7742     case `$LD -v 2>&1` in
7743       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7744       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7745       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7746       *\ 2.11.*) ;; # other 2.11 versions
7747       *) supports_anon_versioning=yes ;;
7748     esac
7749
7750     # See if GNU ld supports shared libraries.
7751     case $host_os in
7752     aix[3-9]*)
7753       # On AIX/PPC, the GNU linker is very broken
7754       if test "$host_cpu" != ia64; then
7755         ld_shlibs=no
7756         cat <<_LT_EOF 1>&2
7757
7758 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7759 *** to be unable to reliably create shared libraries on AIX.
7760 *** Therefore, libtool is disabling shared libraries support.  If you
7761 *** really care for shared libraries, you may want to modify your PATH
7762 *** so that a non-GNU linker is found, and then restart.
7763
7764 _LT_EOF
7765       fi
7766       ;;
7767
7768     amigaos*)
7769       case $host_cpu in
7770       powerpc)
7771             # see comment about AmigaOS4 .so support
7772             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7773             archive_expsym_cmds=''
7774         ;;
7775       m68k)
7776             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)'
7777             hardcode_libdir_flag_spec='-L$libdir'
7778             hardcode_minus_L=yes
7779         ;;
7780       esac
7781       ;;
7782
7783     beos*)
7784       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7785         allow_undefined_flag=unsupported
7786         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7787         # support --undefined.  This deserves some investigation.  FIXME
7788         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789       else
7790         ld_shlibs=no
7791       fi
7792       ;;
7793
7794     cygwin* | mingw* | pw32* | cegcc*)
7795       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7796       # as there is no search path for DLLs.
7797       hardcode_libdir_flag_spec='-L$libdir'
7798       allow_undefined_flag=unsupported
7799       always_export_symbols=no
7800       enable_shared_with_static_runtimes=yes
7801       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7802
7803       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7804         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7805         # If the export-symbols file already is a .def file (1st line
7806         # is EXPORTS), use it as is; otherwise, prepend...
7807         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7808           cp $export_symbols $output_objdir/$soname.def;
7809         else
7810           echo EXPORTS > $output_objdir/$soname.def;
7811           cat $export_symbols >> $output_objdir/$soname.def;
7812         fi~
7813         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7814       else
7815         ld_shlibs=no
7816       fi
7817       ;;
7818
7819     interix[3-9]*)
7820       hardcode_direct=no
7821       hardcode_shlibpath_var=no
7822       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7823       export_dynamic_flag_spec='${wl}-E'
7824       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7825       # Instead, shared libraries are loaded at an image base (0x10000000 by
7826       # default) and relocated if they conflict, which is a slow very memory
7827       # consuming and fragmenting process.  To avoid this, we pick a random,
7828       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7829       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7830       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7831       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'
7832       ;;
7833
7834     gnu* | linux* | tpf* | k*bsd*-gnu)
7835       tmp_diet=no
7836       if test "$host_os" = linux-dietlibc; then
7837         case $cc_basename in
7838           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7839         esac
7840       fi
7841       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7842          && test "$tmp_diet" = no
7843       then
7844         tmp_addflag=
7845         tmp_sharedflag='-shared'
7846         case $cc_basename,$host_cpu in
7847         pgcc*)                          # Portland Group C compiler
7848           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'
7849           tmp_addflag=' $pic_flag'
7850           ;;
7851         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7852           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'
7853           tmp_addflag=' $pic_flag -Mnomain' ;;
7854         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7855           tmp_addflag=' -i_dynamic' ;;
7856         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7857           tmp_addflag=' -i_dynamic -nofor_main' ;;
7858         ifc* | ifort*)                  # Intel Fortran compiler
7859           tmp_addflag=' -nofor_main' ;;
7860         lf95*)                          # Lahey Fortran 8.1
7861           whole_archive_flag_spec=
7862           tmp_sharedflag='--shared' ;;
7863         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7864           tmp_sharedflag='-qmkshrobj'
7865           tmp_addflag= ;;
7866         esac
7867         case `$CC -V 2>&1 | sed 5q` in
7868         *Sun\ C*)                       # Sun C 5.9
7869           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'
7870           compiler_needs_object=yes
7871           tmp_sharedflag='-G' ;;
7872         *Sun\ F*)                       # Sun Fortran 8.3
7873           tmp_sharedflag='-G' ;;
7874         esac
7875         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7876
7877         if test "x$supports_anon_versioning" = xyes; then
7878           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7879             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7880             echo "local: *; };" >> $output_objdir/$libname.ver~
7881             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7882         fi
7883
7884         case $cc_basename in
7885         xlf*)
7886           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7887           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7888           hardcode_libdir_flag_spec=
7889           hardcode_libdir_flag_spec_ld='-rpath $libdir'
7890           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7891           if test "x$supports_anon_versioning" = xyes; then
7892             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7893               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7894               echo "local: *; };" >> $output_objdir/$libname.ver~
7895               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7896           fi
7897           ;;
7898         esac
7899       else
7900         ld_shlibs=no
7901       fi
7902       ;;
7903
7904     netbsd*)
7905       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7906         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7907         wlarc=
7908       else
7909         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7910         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7911       fi
7912       ;;
7913
7914     solaris*)
7915       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7916         ld_shlibs=no
7917         cat <<_LT_EOF 1>&2
7918
7919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7920 *** create shared libraries on Solaris systems.  Therefore, libtool
7921 *** is disabling shared libraries support.  We urge you to upgrade GNU
7922 *** binutils to release 2.9.1 or newer.  Another option is to modify
7923 *** your PATH or compiler configuration so that the native linker is
7924 *** used, and then restart.
7925
7926 _LT_EOF
7927       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7928         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7930       else
7931         ld_shlibs=no
7932       fi
7933       ;;
7934
7935     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7936       case `$LD -v 2>&1` in
7937         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7938         ld_shlibs=no
7939         cat <<_LT_EOF 1>&2
7940
7941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7942 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7943 *** is disabling shared libraries support.  We urge you to upgrade GNU
7944 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7945 *** your PATH or compiler configuration so that the native linker is
7946 *** used, and then restart.
7947
7948 _LT_EOF
7949         ;;
7950         *)
7951           # For security reasons, it is highly recommended that you always
7952           # use absolute paths for naming shared libraries, and exclude the
7953           # DT_RUNPATH tag from executables and libraries.  But doing so
7954           # requires that you compile everything twice, which is a pain.
7955           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7956             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7957             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7958             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7959           else
7960             ld_shlibs=no
7961           fi
7962         ;;
7963       esac
7964       ;;
7965
7966     sunos4*)
7967       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7968       wlarc=
7969       hardcode_direct=yes
7970       hardcode_shlibpath_var=no
7971       ;;
7972
7973     *)
7974       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7975         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7977       else
7978         ld_shlibs=no
7979       fi
7980       ;;
7981     esac
7982
7983     if test "$ld_shlibs" = no; then
7984       runpath_var=
7985       hardcode_libdir_flag_spec=
7986       export_dynamic_flag_spec=
7987       whole_archive_flag_spec=
7988     fi
7989   else
7990     # PORTME fill in a description of your system's linker (not GNU ld)
7991     case $host_os in
7992     aix3*)
7993       allow_undefined_flag=unsupported
7994       always_export_symbols=yes
7995       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'
7996       # Note: this linker hardcodes the directories in LIBPATH if there
7997       # are no directories specified by -L.
7998       hardcode_minus_L=yes
7999       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8000         # Neither direct hardcoding nor static linking is supported with a
8001         # broken collect2.
8002         hardcode_direct=unsupported
8003       fi
8004       ;;
8005
8006     aix[4-9]*)
8007       if test "$host_cpu" = ia64; then
8008         # On IA64, the linker does run time linking by default, so we don't
8009         # have to do anything special.
8010         aix_use_runtimelinking=no
8011         exp_sym_flag='-Bexport'
8012         no_entry_flag=""
8013       else
8014         # If we're using GNU nm, then we don't want the "-C" option.
8015         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8016         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8017           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'
8018         else
8019           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'
8020         fi
8021         aix_use_runtimelinking=no
8022
8023         # Test if we are trying to use run time linking or normal
8024         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8025         # need to do runtime linking.
8026         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8027           for ld_flag in $LDFLAGS; do
8028           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8029             aix_use_runtimelinking=yes
8030             break
8031           fi
8032           done
8033           ;;
8034         esac
8035
8036         exp_sym_flag='-bexport'
8037         no_entry_flag='-bnoentry'
8038       fi
8039
8040       # When large executables or shared objects are built, AIX ld can
8041       # have problems creating the table of contents.  If linking a library
8042       # or program results in "error TOC overflow" add -mminimal-toc to
8043       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8044       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8045
8046       archive_cmds=''
8047       hardcode_direct=yes
8048       hardcode_direct_absolute=yes
8049       hardcode_libdir_separator=':'
8050       link_all_deplibs=yes
8051       file_list_spec='${wl}-f,'
8052
8053       if test "$GCC" = yes; then
8054         case $host_os in aix4.[012]|aix4.[012].*)
8055         # We only want to do this on AIX 4.2 and lower, the check
8056         # below for broken collect2 doesn't work under 4.3+
8057           collect2name=`${CC} -print-prog-name=collect2`
8058           if test -f "$collect2name" &&
8059            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8060           then
8061           # We have reworked collect2
8062           :
8063           else
8064           # We have old collect2
8065           hardcode_direct=unsupported
8066           # It fails to find uninstalled libraries when the uninstalled
8067           # path is not listed in the libpath.  Setting hardcode_minus_L
8068           # to unsupported forces relinking
8069           hardcode_minus_L=yes
8070           hardcode_libdir_flag_spec='-L$libdir'
8071           hardcode_libdir_separator=
8072           fi
8073           ;;
8074         esac
8075         shared_flag='-shared'
8076         if test "$aix_use_runtimelinking" = yes; then
8077           shared_flag="$shared_flag "'${wl}-G'
8078         fi
8079       else
8080         # not using gcc
8081         if test "$host_cpu" = ia64; then
8082         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8083         # chokes on -Wl,-G. The following line is correct:
8084           shared_flag='-G'
8085         else
8086           if test "$aix_use_runtimelinking" = yes; then
8087             shared_flag='${wl}-G'
8088           else
8089             shared_flag='${wl}-bM:SRE'
8090           fi
8091         fi
8092       fi
8093
8094       export_dynamic_flag_spec='${wl}-bexpall'
8095       # It seems that -bexpall does not export symbols beginning with
8096       # underscore (_), so it is better to generate a list of symbols to export.
8097       always_export_symbols=yes
8098       if test "$aix_use_runtimelinking" = yes; then
8099         # Warning - without using the other runtime loading flags (-brtl),
8100         # -berok will link without error, but may produce a broken library.
8101         allow_undefined_flag='-berok'
8102         # Determine the default libpath from the value encoded in an
8103         # empty executable.
8104         cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110
8111 int
8112 main ()
8113 {
8114
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag"
8129                          || test ! -s conftest.err'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; } &&
8135          { ac_try='test -s conftest$ac_exeext'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141
8142 lt_aix_libpath_sed='
8143     /Import File Strings/,/^$/ {
8144         /^0/ {
8145             s/^0  *\(.*\)$/\1/
8146             p
8147         }
8148     }'
8149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8150 # Check for a 64-bit object if we didn't find anything.
8151 if test -z "$aix_libpath"; then
8152   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8153 fi
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 fi
8159 rm -f conftest.err conftest.$ac_objext \
8160       conftest$ac_exeext conftest.$ac_ext
8161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8162
8163         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8164         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"
8165       else
8166         if test "$host_cpu" = ia64; then
8167           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8168           allow_undefined_flag="-z nodefs"
8169           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"
8170         else
8171          # Determine the default libpath from the value encoded in an
8172          # empty executable.
8173          cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179
8180 int
8181 main ()
8182 {
8183
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190   (eval $ac_link) 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } &&
8197          { ac_try='test -z "$ac_c_werror_flag"
8198                          || test ! -s conftest.err'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; } &&
8204          { ac_try='test -s conftest$ac_exeext'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210
8211 lt_aix_libpath_sed='
8212     /Import File Strings/,/^$/ {
8213         /^0/ {
8214             s/^0  *\(.*\)$/\1/
8215             p
8216         }
8217     }'
8218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8219 # Check for a 64-bit object if we didn't find anything.
8220 if test -z "$aix_libpath"; then
8221   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8222 fi
8223 else
8224   echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8226
8227 fi
8228 rm -f conftest.err conftest.$ac_objext \
8229       conftest$ac_exeext conftest.$ac_ext
8230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8231
8232          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8233           # Warning - without using the other run time loading flags,
8234           # -berok will link without error, but may produce a broken library.
8235           no_undefined_flag=' ${wl}-bernotok'
8236           allow_undefined_flag=' ${wl}-berok'
8237           # Exported symbols can be pulled into shared objects from archives
8238           whole_archive_flag_spec='$convenience'
8239           archive_cmds_need_lc=yes
8240           # This is similar to how AIX traditionally builds its shared libraries.
8241           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'
8242         fi
8243       fi
8244       ;;
8245
8246     amigaos*)
8247       case $host_cpu in
8248       powerpc)
8249             # see comment about AmigaOS4 .so support
8250             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251             archive_expsym_cmds=''
8252         ;;
8253       m68k)
8254             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)'
8255             hardcode_libdir_flag_spec='-L$libdir'
8256             hardcode_minus_L=yes
8257         ;;
8258       esac
8259       ;;
8260
8261     bsdi[45]*)
8262       export_dynamic_flag_spec=-rdynamic
8263       ;;
8264
8265     cygwin* | mingw* | pw32* | cegcc*)
8266       # When not using gcc, we currently assume that we are using
8267       # Microsoft Visual C++.
8268       # hardcode_libdir_flag_spec is actually meaningless, as there is
8269       # no search path for DLLs.
8270       hardcode_libdir_flag_spec=' '
8271       allow_undefined_flag=unsupported
8272       # Tell ltmain to make .lib files, not .a files.
8273       libext=lib
8274       # Tell ltmain to make .dll files, not .so files.
8275       shrext_cmds=".dll"
8276       # FIXME: Setting linknames here is a bad hack.
8277       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8278       # The linker will automatically build a .lib file if we build a DLL.
8279       old_archive_from_new_cmds='true'
8280       # FIXME: Should let the user specify the lib program.
8281       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8282       fix_srcfile_path='`cygpath -w "$srcfile"`'
8283       enable_shared_with_static_runtimes=yes
8284       ;;
8285
8286     darwin* | rhapsody*)
8287
8288
8289   archive_cmds_need_lc=no
8290   hardcode_direct=no
8291   hardcode_automatic=yes
8292   hardcode_shlibpath_var=unsupported
8293   whole_archive_flag_spec=''
8294   link_all_deplibs=yes
8295   allow_undefined_flag="$_lt_dar_allow_undefined"
8296   case $cc_basename in
8297      ifort*) _lt_dar_can_shared=yes ;;
8298      *) _lt_dar_can_shared=$GCC ;;
8299   esac
8300   if test "$_lt_dar_can_shared" = "yes"; then
8301     output_verbose_link_cmd=echo
8302     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8303     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8304     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8305     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8306
8307   else
8308   ld_shlibs=no
8309   fi
8310
8311       ;;
8312
8313     dgux*)
8314       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315       hardcode_libdir_flag_spec='-L$libdir'
8316       hardcode_shlibpath_var=no
8317       ;;
8318
8319     freebsd1*)
8320       ld_shlibs=no
8321       ;;
8322
8323     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8324     # support.  Future versions do this automatically, but an explicit c++rt0.o
8325     # does not break anything, and helps significantly (at the cost of a little
8326     # extra space).
8327     freebsd2.2*)
8328       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8329       hardcode_libdir_flag_spec='-R$libdir'
8330       hardcode_direct=yes
8331       hardcode_shlibpath_var=no
8332       ;;
8333
8334     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8335     freebsd2*)
8336       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8337       hardcode_direct=yes
8338       hardcode_minus_L=yes
8339       hardcode_shlibpath_var=no
8340       ;;
8341
8342     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8343     freebsd* | dragonfly*)
8344       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8345       hardcode_libdir_flag_spec='-R$libdir'
8346       hardcode_direct=yes
8347       hardcode_shlibpath_var=no
8348       ;;
8349
8350     hpux9*)
8351       if test "$GCC" = yes; then
8352         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'
8353       else
8354         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'
8355       fi
8356       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8357       hardcode_libdir_separator=:
8358       hardcode_direct=yes
8359
8360       # hardcode_minus_L: Not really in the search PATH,
8361       # but as the default location of the library.
8362       hardcode_minus_L=yes
8363       export_dynamic_flag_spec='${wl}-E'
8364       ;;
8365
8366     hpux10*)
8367       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8368         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8369       else
8370         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8371       fi
8372       if test "$with_gnu_ld" = no; then
8373         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8374         hardcode_libdir_flag_spec_ld='+b $libdir'
8375         hardcode_libdir_separator=:
8376         hardcode_direct=yes
8377         hardcode_direct_absolute=yes
8378         export_dynamic_flag_spec='${wl}-E'
8379         # hardcode_minus_L: Not really in the search PATH,
8380         # but as the default location of the library.
8381         hardcode_minus_L=yes
8382       fi
8383       ;;
8384
8385     hpux11*)
8386       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8387         case $host_cpu in
8388         hppa*64*)
8389           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8390           ;;
8391         ia64*)
8392           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8393           ;;
8394         *)
8395           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8396           ;;
8397         esac
8398       else
8399         case $host_cpu in
8400         hppa*64*)
8401           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8402           ;;
8403         ia64*)
8404           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8405           ;;
8406         *)
8407           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8408           ;;
8409         esac
8410       fi
8411       if test "$with_gnu_ld" = no; then
8412         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8413         hardcode_libdir_separator=:
8414
8415         case $host_cpu in
8416         hppa*64*|ia64*)
8417           hardcode_direct=no
8418           hardcode_shlibpath_var=no
8419           ;;
8420         *)
8421           hardcode_direct=yes
8422           hardcode_direct_absolute=yes
8423           export_dynamic_flag_spec='${wl}-E'
8424
8425           # hardcode_minus_L: Not really in the search PATH,
8426           # but as the default location of the library.
8427           hardcode_minus_L=yes
8428           ;;
8429         esac
8430       fi
8431       ;;
8432
8433     irix5* | irix6* | nonstopux*)
8434       if test "$GCC" = yes; then
8435         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'
8436         # Try to use the -exported_symbol ld option, if it does not
8437         # work, assume that -exports_file does not work either and
8438         # implicitly export all symbols.
8439         save_LDFLAGS="$LDFLAGS"
8440         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8441         cat >conftest.$ac_ext <<_ACEOF
8442 int foo(void) {}
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446   (eval $ac_link) 2>conftest.er1
8447   ac_status=$?
8448   grep -v '^ *+' conftest.er1 >conftest.err
8449   rm -f conftest.er1
8450   cat conftest.err >&5
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } &&
8453          { ac_try='test -z "$ac_c_werror_flag"
8454                          || test ! -s conftest.err'
8455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456   (eval $ac_try) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; } &&
8460          { ac_try='test -s conftest$ac_exeext'
8461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462   (eval $ac_try) 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }; }; then
8466   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'
8467
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 fi
8473 rm -f conftest.err conftest.$ac_objext \
8474       conftest$ac_exeext conftest.$ac_ext
8475         LDFLAGS="$save_LDFLAGS"
8476       else
8477         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'
8478         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'
8479       fi
8480       archive_cmds_need_lc='no'
8481       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482       hardcode_libdir_separator=:
8483       inherit_rpath=yes
8484       link_all_deplibs=yes
8485       ;;
8486
8487     netbsd*)
8488       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8489         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8490       else
8491         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8492       fi
8493       hardcode_libdir_flag_spec='-R$libdir'
8494       hardcode_direct=yes
8495       hardcode_shlibpath_var=no
8496       ;;
8497
8498     newsos6)
8499       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500       hardcode_direct=yes
8501       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502       hardcode_libdir_separator=:
8503       hardcode_shlibpath_var=no
8504       ;;
8505
8506     *nto* | *qnx*)
8507       ;;
8508
8509     openbsd*)
8510       if test -f /usr/libexec/ld.so; then
8511         hardcode_direct=yes
8512         hardcode_shlibpath_var=no
8513         hardcode_direct_absolute=yes
8514         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8515           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8516           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8517           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8518           export_dynamic_flag_spec='${wl}-E'
8519         else
8520           case $host_os in
8521            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8522              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8523              hardcode_libdir_flag_spec='-R$libdir'
8524              ;;
8525            *)
8526              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8527              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8528              ;;
8529           esac
8530         fi
8531       else
8532         ld_shlibs=no
8533       fi
8534       ;;
8535
8536     os2*)
8537       hardcode_libdir_flag_spec='-L$libdir'
8538       hardcode_minus_L=yes
8539       allow_undefined_flag=unsupported
8540       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'
8541       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8542       ;;
8543
8544     osf3*)
8545       if test "$GCC" = yes; then
8546         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8547         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'
8548       else
8549         allow_undefined_flag=' -expect_unresolved \*'
8550         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'
8551       fi
8552       archive_cmds_need_lc='no'
8553       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554       hardcode_libdir_separator=:
8555       ;;
8556
8557     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8558       if test "$GCC" = yes; then
8559         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8560         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'
8561         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8562       else
8563         allow_undefined_flag=' -expect_unresolved \*'
8564         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'
8565         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~
8566         $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'
8567
8568         # Both c and cxx compiler support -rpath directly
8569         hardcode_libdir_flag_spec='-rpath $libdir'
8570       fi
8571       archive_cmds_need_lc='no'
8572       hardcode_libdir_separator=:
8573       ;;
8574
8575     solaris*)
8576       no_undefined_flag=' -z defs'
8577       if test "$GCC" = yes; then
8578         wlarc='${wl}'
8579         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8580         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8581           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8582       else
8583         case `$CC -V 2>&1` in
8584         *"Compilers 5.0"*)
8585           wlarc=''
8586           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8588           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8589           ;;
8590         *)
8591           wlarc='${wl}'
8592           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8593           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8594           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8595           ;;
8596         esac
8597       fi
8598       hardcode_libdir_flag_spec='-R$libdir'
8599       hardcode_shlibpath_var=no
8600       case $host_os in
8601       solaris2.[0-5] | solaris2.[0-5].*) ;;
8602       *)
8603         # The compiler driver will combine and reorder linker options,
8604         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8605         # but is careful enough not to reorder.
8606         # Supported since Solaris 2.6 (maybe 2.5.1?)
8607         if test "$GCC" = yes; then
8608           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8609         else
8610           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8611         fi
8612         ;;
8613       esac
8614       link_all_deplibs=yes
8615       ;;
8616
8617     sunos4*)
8618       if test "x$host_vendor" = xsequent; then
8619         # Use $CC to link under sequent, because it throws in some extra .o
8620         # files that make .init and .fini sections work.
8621         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8622       else
8623         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8624       fi
8625       hardcode_libdir_flag_spec='-L$libdir'
8626       hardcode_direct=yes
8627       hardcode_minus_L=yes
8628       hardcode_shlibpath_var=no
8629       ;;
8630
8631     sysv4)
8632       case $host_vendor in
8633         sni)
8634           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635           hardcode_direct=yes # is this really true???
8636         ;;
8637         siemens)
8638           ## LD is ld it makes a PLAMLIB
8639           ## CC just makes a GrossModule.
8640           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8641           reload_cmds='$CC -r -o $output$reload_objs'
8642           hardcode_direct=no
8643         ;;
8644         motorola)
8645           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8647         ;;
8648       esac
8649       runpath_var='LD_RUN_PATH'
8650       hardcode_shlibpath_var=no
8651       ;;
8652
8653     sysv4.3*)
8654       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655       hardcode_shlibpath_var=no
8656       export_dynamic_flag_spec='-Bexport'
8657       ;;
8658
8659     sysv4*MP*)
8660       if test -d /usr/nec; then
8661         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662         hardcode_shlibpath_var=no
8663         runpath_var=LD_RUN_PATH
8664         hardcode_runpath_var=yes
8665         ld_shlibs=yes
8666       fi
8667       ;;
8668
8669     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8670       no_undefined_flag='${wl}-z,text'
8671       archive_cmds_need_lc=no
8672       hardcode_shlibpath_var=no
8673       runpath_var='LD_RUN_PATH'
8674
8675       if test "$GCC" = yes; then
8676         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8677         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678       else
8679         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8680         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681       fi
8682       ;;
8683
8684     sysv5* | sco3.2v5* | sco5v6*)
8685       # Note: We can NOT use -z defs as we might desire, because we do not
8686       # link with -lc, and that would cause any symbols used from libc to
8687       # always be unresolved, which means just about no library would
8688       # ever link correctly.  If we're not using GNU ld we use -z text
8689       # though, which does catch some bad symbols but isn't as heavy-handed
8690       # as -z defs.
8691       no_undefined_flag='${wl}-z,text'
8692       allow_undefined_flag='${wl}-z,nodefs'
8693       archive_cmds_need_lc=no
8694       hardcode_shlibpath_var=no
8695       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8696       hardcode_libdir_separator=':'
8697       link_all_deplibs=yes
8698       export_dynamic_flag_spec='${wl}-Bexport'
8699       runpath_var='LD_RUN_PATH'
8700
8701       if test "$GCC" = yes; then
8702         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8703         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8704       else
8705         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8706         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707       fi
8708       ;;
8709
8710     uts4*)
8711       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712       hardcode_libdir_flag_spec='-L$libdir'
8713       hardcode_shlibpath_var=no
8714       ;;
8715
8716     *)
8717       ld_shlibs=no
8718       ;;
8719     esac
8720
8721     if test x$host_vendor = xsni; then
8722       case $host in
8723       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8724         export_dynamic_flag_spec='${wl}-Blargedynsym'
8725         ;;
8726       esac
8727     fi
8728   fi
8729
8730 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8731 echo "${ECHO_T}$ld_shlibs" >&6
8732 test "$ld_shlibs" = no && can_build_shared=no
8733
8734 with_gnu_ld=$with_gnu_ld
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 #
8751 # Do we need to explicitly link libc?
8752 #
8753 case "x$archive_cmds_need_lc" in
8754 x|xyes)
8755   # Assume -lc should be added
8756   archive_cmds_need_lc=yes
8757
8758   if test "$enable_shared" = yes && test "$GCC" = yes; then
8759     case $archive_cmds in
8760     *'~'*)
8761       # FIXME: we may have to deal with multi-command sequences.
8762       ;;
8763     '$CC '*)
8764       # Test whether the compiler implicitly links with -lc since on some
8765       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8766       # to ld, don't add -lc before -lgcc.
8767       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8768 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8769 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   $RM conftest*
8773         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774
8775         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8776   (eval $ac_compile) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } 2>conftest.err; then
8780           soname=conftest
8781           lib=conftest
8782           libobjs=conftest.$ac_objext
8783           deplibs=
8784           wl=$lt_prog_compiler_wl
8785           pic_flag=$lt_prog_compiler_pic
8786           compiler_flags=-v
8787           linker_flags=-v
8788           verstring=
8789           output_objdir=.
8790           libname=conftest
8791           lt_save_allow_undefined_flag=$allow_undefined_flag
8792           allow_undefined_flag=
8793           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8794   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }
8798           then
8799             lt_cv_archive_cmds_need_lc=no
8800           else
8801             lt_cv_archive_cmds_need_lc=yes
8802           fi
8803           allow_undefined_flag=$lt_save_allow_undefined_flag
8804         else
8805           cat conftest.err 1>&5
8806         fi
8807         $RM conftest*
8808
8809 fi
8810 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8811 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8812       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8813       ;;
8814     esac
8815   fi
8816   ;;
8817 esac
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
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   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8977
8978 if test "$GCC" = yes; then
8979   case $host_os in
8980     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8981     *) lt_awk_arg="/^libraries:/" ;;
8982   esac
8983   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8984   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8985     # if the path contains ";" then we assume it to be the separator
8986     # otherwise default to the standard path separator (i.e. ":") - it is
8987     # assumed that no part of a normal pathname contains ";" but that should
8988     # okay in the real world where ";" in dirpaths is itself problematic.
8989     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8990   else
8991     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8992   fi
8993   # Ok, now we have the path, separated by spaces, we can step through it
8994   # and add multilib dir if necessary.
8995   lt_tmp_lt_search_path_spec=
8996   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8997   for lt_sys_path in $lt_search_path_spec; do
8998     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8999       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9000     else
9001       test -d "$lt_sys_path" && \
9002         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9003     fi
9004   done
9005   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9006 BEGIN {RS=" "; FS="/|\n";} {
9007   lt_foo="";
9008   lt_count=0;
9009   for (lt_i = NF; lt_i > 0; lt_i--) {
9010     if ($lt_i != "" && $lt_i != ".") {
9011       if ($lt_i == "..") {
9012         lt_count++;
9013       } else {
9014         if (lt_count == 0) {
9015           lt_foo="/" $lt_i lt_foo;
9016         } else {
9017           lt_count--;
9018         }
9019       }
9020     }
9021   }
9022   if (lt_foo != "") { lt_freq[lt_foo]++; }
9023   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9024 }'`
9025   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9026 else
9027   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9028 fi
9029 library_names_spec=
9030 libname_spec='lib$name'
9031 soname_spec=
9032 shrext_cmds=".so"
9033 postinstall_cmds=
9034 postuninstall_cmds=
9035 finish_cmds=
9036 finish_eval=
9037 shlibpath_var=
9038 shlibpath_overrides_runpath=unknown
9039 version_type=none
9040 dynamic_linker="$host_os ld.so"
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9042 need_lib_prefix=unknown
9043 hardcode_into_libs=no
9044
9045 # when you set need_version to no, make sure it does not cause -set_version
9046 # flags to be left without arguments
9047 need_version=unknown
9048
9049 case $host_os in
9050 aix3*)
9051   version_type=linux
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9053   shlibpath_var=LIBPATH
9054
9055   # AIX 3 has no versioning support, so we append a major version to the name.
9056   soname_spec='${libname}${release}${shared_ext}$major'
9057   ;;
9058
9059 aix[4-9]*)
9060   version_type=linux
9061   need_lib_prefix=no
9062   need_version=no
9063   hardcode_into_libs=yes
9064   if test "$host_cpu" = ia64; then
9065     # AIX 5 supports IA64
9066     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9067     shlibpath_var=LD_LIBRARY_PATH
9068   else
9069     # With GCC up to 2.95.x, collect2 would create an import file
9070     # for dependence libraries.  The import file would start with
9071     # the line `#! .'.  This would cause the generated library to
9072     # depend on `.', always an invalid library.  This was fixed in
9073     # development snapshots of GCC prior to 3.0.
9074     case $host_os in
9075       aix4 | aix4.[01] | aix4.[01].*)
9076       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9077            echo ' yes '
9078            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9079         :
9080       else
9081         can_build_shared=no
9082       fi
9083       ;;
9084     esac
9085     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9086     # soname into executable. Probably we can add versioning support to
9087     # collect2, so additional links can be useful in future.
9088     if test "$aix_use_runtimelinking" = yes; then
9089       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9090       # instead of lib<name>.a to let people know that these are not
9091       # typical AIX shared libraries.
9092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093     else
9094       # We preserve .a as extension for shared libraries through AIX4.2
9095       # and later when we are not doing run time linking.
9096       library_names_spec='${libname}${release}.a $libname.a'
9097       soname_spec='${libname}${release}${shared_ext}$major'
9098     fi
9099     shlibpath_var=LIBPATH
9100   fi
9101   ;;
9102
9103 amigaos*)
9104   case $host_cpu in
9105   powerpc)
9106     # Since July 2007 AmigaOS4 officially supports .so libraries.
9107     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109     ;;
9110   m68k)
9111     library_names_spec='$libname.ixlibrary $libname.a'
9112     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9113     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'
9114     ;;
9115   esac
9116   ;;
9117
9118 beos*)
9119   library_names_spec='${libname}${shared_ext}'
9120   dynamic_linker="$host_os ld.so"
9121   shlibpath_var=LIBRARY_PATH
9122   ;;
9123
9124 bsdi[45]*)
9125   version_type=linux
9126   need_version=no
9127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128   soname_spec='${libname}${release}${shared_ext}$major'
9129   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9130   shlibpath_var=LD_LIBRARY_PATH
9131   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9132   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9133   # the default ld.so.conf also contains /usr/contrib/lib and
9134   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9135   # libtool to hard-code these into programs
9136   ;;
9137
9138 cygwin* | mingw* | pw32* | cegcc*)
9139   version_type=windows
9140   shrext_cmds=".dll"
9141   need_version=no
9142   need_lib_prefix=no
9143
9144   case $GCC,$host_os in
9145   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9146     library_names_spec='$libname.dll.a'
9147     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9148     postinstall_cmds='base_file=`basename \${file}`~
9149       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9150       dldir=$destdir/`dirname \$dlpath`~
9151       test -d \$dldir || mkdir -p \$dldir~
9152       $install_prog $dir/$dlname \$dldir/$dlname~
9153       chmod a+x \$dldir/$dlname~
9154       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9155         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9156       fi'
9157     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9158       dlpath=$dir/\$dldll~
9159        $RM \$dlpath'
9160     shlibpath_overrides_runpath=yes
9161
9162     case $host_os in
9163     cygwin*)
9164       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9165       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9166       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9167       ;;
9168     mingw* | cegcc*)
9169       # MinGW DLLs use traditional 'lib' prefix
9170       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9171       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9172       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9173         # It is most probably a Windows format PATH printed by
9174         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9175         # path with ; separators, and with drive letters. We can handle the
9176         # drive letters (cygwin fileutils understands them), so leave them,
9177         # especially as we might pass files found there to a mingw objdump,
9178         # which wouldn't understand a cygwinified path. Ahh.
9179         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9180       else
9181         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9182       fi
9183       ;;
9184     pw32*)
9185       # pw32 DLLs use 'pw' prefix rather than 'lib'
9186       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9187       ;;
9188     esac
9189     ;;
9190
9191   *)
9192     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9193     ;;
9194   esac
9195   dynamic_linker='Win32 ld.exe'
9196   # FIXME: first we should search . and the directory the executable is in
9197   shlibpath_var=PATH
9198   ;;
9199
9200 darwin* | rhapsody*)
9201   dynamic_linker="$host_os dyld"
9202   version_type=darwin
9203   need_lib_prefix=no
9204   need_version=no
9205   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9206   soname_spec='${libname}${release}${major}$shared_ext'
9207   shlibpath_overrides_runpath=yes
9208   shlibpath_var=DYLD_LIBRARY_PATH
9209   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9210
9211   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9212   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9213   ;;
9214
9215 dgux*)
9216   version_type=linux
9217   need_lib_prefix=no
9218   need_version=no
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   shlibpath_var=LD_LIBRARY_PATH
9222   ;;
9223
9224 freebsd1*)
9225   dynamic_linker=no
9226   ;;
9227
9228 freebsd* | dragonfly*)
9229   # DragonFly does not have aout.  When/if they implement a new
9230   # versioning mechanism, adjust this.
9231   if test -x /usr/bin/objformat; then
9232     objformat=`/usr/bin/objformat`
9233   else
9234     case $host_os in
9235     freebsd[123]*) objformat=aout ;;
9236     *) objformat=elf ;;
9237     esac
9238   fi
9239   version_type=freebsd-$objformat
9240   case $version_type in
9241     freebsd-elf*)
9242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9243       need_version=no
9244       need_lib_prefix=no
9245       ;;
9246     freebsd-*)
9247       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9248       need_version=yes
9249       ;;
9250   esac
9251   shlibpath_var=LD_LIBRARY_PATH
9252   case $host_os in
9253   freebsd2*)
9254     shlibpath_overrides_runpath=yes
9255     ;;
9256   freebsd3.[01]* | freebsdelf3.[01]*)
9257     shlibpath_overrides_runpath=yes
9258     hardcode_into_libs=yes
9259     ;;
9260   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9261   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9262     shlibpath_overrides_runpath=no
9263     hardcode_into_libs=yes
9264     ;;
9265   *) # from 4.6 on, and DragonFly
9266     shlibpath_overrides_runpath=yes
9267     hardcode_into_libs=yes
9268     ;;
9269   esac
9270   ;;
9271
9272 gnu*)
9273   version_type=linux
9274   need_lib_prefix=no
9275   need_version=no
9276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9277   soname_spec='${libname}${release}${shared_ext}$major'
9278   shlibpath_var=LD_LIBRARY_PATH
9279   hardcode_into_libs=yes
9280   ;;
9281
9282 hpux9* | hpux10* | hpux11*)
9283   # Give a soname corresponding to the major version so that dld.sl refuses to
9284   # link against other versions.
9285   version_type=sunos
9286   need_lib_prefix=no
9287   need_version=no
9288   case $host_cpu in
9289   ia64*)
9290     shrext_cmds='.so'
9291     hardcode_into_libs=yes
9292     dynamic_linker="$host_os dld.so"
9293     shlibpath_var=LD_LIBRARY_PATH
9294     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296     soname_spec='${libname}${release}${shared_ext}$major'
9297     if test "X$HPUX_IA64_MODE" = X32; then
9298       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9299     else
9300       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9301     fi
9302     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9303     ;;
9304   hppa*64*)
9305     shrext_cmds='.sl'
9306     hardcode_into_libs=yes
9307     dynamic_linker="$host_os dld.sl"
9308     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9309     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311     soname_spec='${libname}${release}${shared_ext}$major'
9312     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9313     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9314     ;;
9315   *)
9316     shrext_cmds='.sl'
9317     dynamic_linker="$host_os dld.sl"
9318     shlibpath_var=SHLIB_PATH
9319     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321     soname_spec='${libname}${release}${shared_ext}$major'
9322     ;;
9323   esac
9324   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9325   postinstall_cmds='chmod 555 $lib'
9326   ;;
9327
9328 interix[3-9]*)
9329   version_type=linux
9330   need_lib_prefix=no
9331   need_version=no
9332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9333   soname_spec='${libname}${release}${shared_ext}$major'
9334   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9335   shlibpath_var=LD_LIBRARY_PATH
9336   shlibpath_overrides_runpath=no
9337   hardcode_into_libs=yes
9338   ;;
9339
9340 irix5* | irix6* | nonstopux*)
9341   case $host_os in
9342     nonstopux*) version_type=nonstopux ;;
9343     *)
9344         if test "$lt_cv_prog_gnu_ld" = yes; then
9345                 version_type=linux
9346         else
9347                 version_type=irix
9348         fi ;;
9349   esac
9350   need_lib_prefix=no
9351   need_version=no
9352   soname_spec='${libname}${release}${shared_ext}$major'
9353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9354   case $host_os in
9355   irix5* | nonstopux*)
9356     libsuff= shlibsuff=
9357     ;;
9358   *)
9359     case $LD in # libtool.m4 will add one of these switches to LD
9360     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9361       libsuff= shlibsuff= libmagic=32-bit;;
9362     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9363       libsuff=32 shlibsuff=N32 libmagic=N32;;
9364     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9365       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9366     *) libsuff= shlibsuff= libmagic=never-match;;
9367     esac
9368     ;;
9369   esac
9370   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9371   shlibpath_overrides_runpath=no
9372   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9373   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9374   hardcode_into_libs=yes
9375   ;;
9376
9377 # No shared lib support for Linux oldld, aout, or coff.
9378 linux*oldld* | linux*aout* | linux*coff*)
9379   dynamic_linker=no
9380   ;;
9381
9382 # This must be Linux ELF.
9383 linux* | k*bsd*-gnu)
9384   version_type=linux
9385   need_lib_prefix=no
9386   need_version=no
9387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388   soname_spec='${libname}${release}${shared_ext}$major'
9389   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9390   shlibpath_var=LD_LIBRARY_PATH
9391   shlibpath_overrides_runpath=no
9392
9393   # Some binutils ld are patched to set DT_RUNPATH
9394   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397   lt_cv_shlibpath_overrides_runpath=no
9398     save_LDFLAGS=$LDFLAGS
9399     save_libdir=$libdir
9400     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9401          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9402     cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408
9409 int
9410 main ()
9411 {
9412
9413   ;
9414   return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419   (eval $ac_link) 2>conftest.er1
9420   ac_status=$?
9421   grep -v '^ *+' conftest.er1 >conftest.err
9422   rm -f conftest.er1
9423   cat conftest.err >&5
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } &&
9426          { ac_try='test -z "$ac_c_werror_flag"
9427                          || test ! -s conftest.err'
9428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429   (eval $ac_try) 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); }; } &&
9433          { ac_try='test -s conftest$ac_exeext'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; }; then
9439   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9440   lt_cv_shlibpath_overrides_runpath=yes
9441 fi
9442
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447 fi
9448 rm -f conftest.err conftest.$ac_objext \
9449       conftest$ac_exeext conftest.$ac_ext
9450     LDFLAGS=$save_LDFLAGS
9451     libdir=$save_libdir
9452
9453 fi
9454
9455   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9456
9457   # This implies no fast_install, which is unacceptable.
9458   # Some rework will be needed to allow for fast_install
9459   # before this can be enabled.
9460   hardcode_into_libs=yes
9461
9462   # Append ld.so.conf contents to the search path
9463   if test -f /etc/ld.so.conf; then
9464     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9465     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9466   fi
9467
9468   # We used to test for /lib/ld.so.1 and disable shared libraries on
9469   # powerpc, because MkLinux only supported shared libraries with the
9470   # GNU dynamic linker.  Since this was broken with cross compilers,
9471   # most powerpc-linux boxes support dynamic linking these days and
9472   # people can always --disable-shared, the test was removed, and we
9473   # assume the GNU/Linux dynamic linker is in use.
9474   dynamic_linker='GNU/Linux ld.so'
9475   ;;
9476
9477 netbsd*)
9478   version_type=sunos
9479   need_lib_prefix=no
9480   need_version=no
9481   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9483     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9484     dynamic_linker='NetBSD (a.out) ld.so'
9485   else
9486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9487     soname_spec='${libname}${release}${shared_ext}$major'
9488     dynamic_linker='NetBSD ld.elf_so'
9489   fi
9490   shlibpath_var=LD_LIBRARY_PATH
9491   shlibpath_overrides_runpath=yes
9492   hardcode_into_libs=yes
9493   ;;
9494
9495 newsos6)
9496   version_type=linux
9497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498   shlibpath_var=LD_LIBRARY_PATH
9499   shlibpath_overrides_runpath=yes
9500   ;;
9501
9502 *nto* | *qnx*)
9503   version_type=qnx
9504   need_lib_prefix=no
9505   need_version=no
9506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507   soname_spec='${libname}${release}${shared_ext}$major'
9508   shlibpath_var=LD_LIBRARY_PATH
9509   shlibpath_overrides_runpath=no
9510   hardcode_into_libs=yes
9511   dynamic_linker='ldqnx.so'
9512   ;;
9513
9514 openbsd*)
9515   version_type=sunos
9516   sys_lib_dlsearch_path_spec="/usr/lib"
9517   need_lib_prefix=no
9518   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9519   case $host_os in
9520     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9521     *)                          need_version=no  ;;
9522   esac
9523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9524   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9525   shlibpath_var=LD_LIBRARY_PATH
9526   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9527     case $host_os in
9528       openbsd2.[89] | openbsd2.[89].*)
9529         shlibpath_overrides_runpath=no
9530         ;;
9531       *)
9532         shlibpath_overrides_runpath=yes
9533         ;;
9534       esac
9535   else
9536     shlibpath_overrides_runpath=yes
9537   fi
9538   ;;
9539
9540 os2*)
9541   libname_spec='$name'
9542   shrext_cmds=".dll"
9543   need_lib_prefix=no
9544   library_names_spec='$libname${shared_ext} $libname.a'
9545   dynamic_linker='OS/2 ld.exe'
9546   shlibpath_var=LIBPATH
9547   ;;
9548
9549 osf3* | osf4* | osf5*)
9550   version_type=osf
9551   need_lib_prefix=no
9552   need_version=no
9553   soname_spec='${libname}${release}${shared_ext}$major'
9554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555   shlibpath_var=LD_LIBRARY_PATH
9556   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9557   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9558   ;;
9559
9560 rdos*)
9561   dynamic_linker=no
9562   ;;
9563
9564 solaris*)
9565   version_type=linux
9566   need_lib_prefix=no
9567   need_version=no
9568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569   soname_spec='${libname}${release}${shared_ext}$major'
9570   shlibpath_var=LD_LIBRARY_PATH
9571   shlibpath_overrides_runpath=yes
9572   hardcode_into_libs=yes
9573   # ldd complains unless libraries are executable
9574   postinstall_cmds='chmod +x $lib'
9575   ;;
9576
9577 sunos4*)
9578   version_type=sunos
9579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9580   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9581   shlibpath_var=LD_LIBRARY_PATH
9582   shlibpath_overrides_runpath=yes
9583   if test "$with_gnu_ld" = yes; then
9584     need_lib_prefix=no
9585   fi
9586   need_version=yes
9587   ;;
9588
9589 sysv4 | sysv4.3*)
9590   version_type=linux
9591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592   soname_spec='${libname}${release}${shared_ext}$major'
9593   shlibpath_var=LD_LIBRARY_PATH
9594   case $host_vendor in
9595     sni)
9596       shlibpath_overrides_runpath=no
9597       need_lib_prefix=no
9598       runpath_var=LD_RUN_PATH
9599       ;;
9600     siemens)
9601       need_lib_prefix=no
9602       ;;
9603     motorola)
9604       need_lib_prefix=no
9605       need_version=no
9606       shlibpath_overrides_runpath=no
9607       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9608       ;;
9609   esac
9610   ;;
9611
9612 sysv4*MP*)
9613   if test -d /usr/nec ;then
9614     version_type=linux
9615     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9616     soname_spec='$libname${shared_ext}.$major'
9617     shlibpath_var=LD_LIBRARY_PATH
9618   fi
9619   ;;
9620
9621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9622   version_type=freebsd-elf
9623   need_lib_prefix=no
9624   need_version=no
9625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9626   soname_spec='${libname}${release}${shared_ext}$major'
9627   shlibpath_var=LD_LIBRARY_PATH
9628   shlibpath_overrides_runpath=yes
9629   hardcode_into_libs=yes
9630   if test "$with_gnu_ld" = yes; then
9631     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9632   else
9633     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9634     case $host_os in
9635       sco3.2v5*)
9636         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9637         ;;
9638     esac
9639   fi
9640   sys_lib_dlsearch_path_spec='/usr/lib'
9641   ;;
9642
9643 tpf*)
9644   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9645   version_type=linux
9646   need_lib_prefix=no
9647   need_version=no
9648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649   shlibpath_var=LD_LIBRARY_PATH
9650   shlibpath_overrides_runpath=no
9651   hardcode_into_libs=yes
9652   ;;
9653
9654 uts4*)
9655   version_type=linux
9656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657   soname_spec='${libname}${release}${shared_ext}$major'
9658   shlibpath_var=LD_LIBRARY_PATH
9659   ;;
9660
9661 *)
9662   dynamic_linker=no
9663   ;;
9664 esac
9665 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9666 echo "${ECHO_T}$dynamic_linker" >&6
9667 test "$dynamic_linker" = no && can_build_shared=no
9668
9669 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9670 if test "$GCC" = yes; then
9671   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9672 fi
9673
9674 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9675   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9676 fi
9677 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9678   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9679 fi
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9768 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9769 hardcode_action=
9770 if test -n "$hardcode_libdir_flag_spec" ||
9771    test -n "$runpath_var" ||
9772    test "X$hardcode_automatic" = "Xyes" ; then
9773
9774   # We can hardcode non-existent directories.
9775   if test "$hardcode_direct" != no &&
9776      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9777      # have to relink, otherwise we might link with an installed library
9778      # when we should be linking with a yet-to-be-installed one
9779      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9780      test "$hardcode_minus_L" != no; then
9781     # Linking always hardcodes the temporary library directory.
9782     hardcode_action=relink
9783   else
9784     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9785     hardcode_action=immediate
9786   fi
9787 else
9788   # We cannot hardcode anything, or else we can only hardcode existing
9789   # directories.
9790   hardcode_action=unsupported
9791 fi
9792 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9793 echo "${ECHO_T}$hardcode_action" >&6
9794
9795 if test "$hardcode_action" = relink ||
9796    test "$inherit_rpath" = yes; then
9797   # Fast installation is not supported
9798   enable_fast_install=no
9799 elif test "$shlibpath_overrides_runpath" = yes ||
9800      test "$enable_shared" = no; then
9801   # Fast installation is not necessary
9802   enable_fast_install=needless
9803 fi
9804
9805
9806
9807
9808
9809
9810   if test "x$enable_dlopen" != xyes; then
9811   enable_dlopen=unknown
9812   enable_dlopen_self=unknown
9813   enable_dlopen_self_static=unknown
9814 else
9815   lt_cv_dlopen=no
9816   lt_cv_dlopen_libs=
9817
9818   case $host_os in
9819   beos*)
9820     lt_cv_dlopen="load_add_on"
9821     lt_cv_dlopen_libs=
9822     lt_cv_dlopen_self=yes
9823     ;;
9824
9825   mingw* | pw32* | cegcc*)
9826     lt_cv_dlopen="LoadLibrary"
9827     lt_cv_dlopen_libs=
9828     ;;
9829
9830   cygwin*)
9831     lt_cv_dlopen="dlopen"
9832     lt_cv_dlopen_libs=
9833     ;;
9834
9835   darwin*)
9836   # if libdl is installed we need to link against it
9837     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9838 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842   ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-ldl  $LIBS"
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850
9851 /* Override any gcc2 internal prototype to avoid an error.  */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 /* We use char because int might match the return type of a gcc2
9856    builtin and then its argument prototype would still apply.  */
9857 char dlopen ();
9858 int
9859 main ()
9860 {
9861 dlopen ();
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868   (eval $ac_link) 2>conftest.er1
9869   ac_status=$?
9870   grep -v '^ *+' conftest.er1 >conftest.err
9871   rm -f conftest.er1
9872   cat conftest.err >&5
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -z "$ac_c_werror_flag"
9876                          || test ! -s conftest.err'
9877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878   (eval $ac_try) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; } &&
9882          { ac_try='test -s conftest$ac_exeext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_lib_dl_dlopen=yes
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893 ac_cv_lib_dl_dlopen=no
9894 fi
9895 rm -f conftest.err conftest.$ac_objext \
9896       conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9898 fi
9899 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9900 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9901 if test $ac_cv_lib_dl_dlopen = yes; then
9902   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9903 else
9904
9905     lt_cv_dlopen="dyld"
9906     lt_cv_dlopen_libs=
9907     lt_cv_dlopen_self=yes
9908
9909 fi
9910
9911     ;;
9912
9913   *)
9914     echo "$as_me:$LINENO: checking for shl_load" >&5
9915 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9916 if test "${ac_cv_func_shl_load+set}" = set; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h.  */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h.  */
9925 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9927 #define shl_load innocuous_shl_load
9928
9929 /* System header to define __stub macros and hopefully few prototypes,
9930     which can conflict with char shl_load (); below.
9931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9932     <limits.h> exists even on freestanding compilers.  */
9933
9934 #ifdef __STDC__
9935 # include <limits.h>
9936 #else
9937 # include <assert.h>
9938 #endif
9939
9940 #undef shl_load
9941
9942 /* Override any gcc2 internal prototype to avoid an error.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 {
9946 #endif
9947 /* We use char because int might match the return type of a gcc2
9948    builtin and then its argument prototype would still apply.  */
9949 char shl_load ();
9950 /* The GNU C library defines this for functions which it implements
9951     to always fail with ENOSYS.  Some functions are actually named
9952     something starting with __ and the normal name is an alias.  */
9953 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9954 choke me
9955 #else
9956 char (*f) () = shl_load;
9957 #endif
9958 #ifdef __cplusplus
9959 }
9960 #endif
9961
9962 int
9963 main ()
9964 {
9965 return f != shl_load;
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972   (eval $ac_link) 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag"
9980                          || test ! -s conftest.err'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest$ac_exeext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_cv_func_shl_load=yes
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_func_shl_load=no
9998 fi
9999 rm -f conftest.err conftest.$ac_objext \
10000       conftest$ac_exeext conftest.$ac_ext
10001 fi
10002 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10003 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10004 if test $ac_cv_func_shl_load = yes; then
10005   lt_cv_dlopen="shl_load"
10006 else
10007   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10008 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10009 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10010   echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012   ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-ldld  $LIBS"
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h.  */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h.  */
10020
10021 /* Override any gcc2 internal prototype to avoid an error.  */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 /* We use char because int might match the return type of a gcc2
10026    builtin and then its argument prototype would still apply.  */
10027 char shl_load ();
10028 int
10029 main ()
10030 {
10031 shl_load ();
10032   ;
10033   return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038   (eval $ac_link) 2>conftest.er1
10039   ac_status=$?
10040   grep -v '^ *+' conftest.er1 >conftest.err
10041   rm -f conftest.er1
10042   cat conftest.err >&5
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } &&
10045          { ac_try='test -z "$ac_c_werror_flag"
10046                          || test ! -s conftest.err'
10047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048   (eval $ac_try) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; } &&
10052          { ac_try='test -s conftest$ac_exeext'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; }; then
10058   ac_cv_lib_dld_shl_load=yes
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 ac_cv_lib_dld_shl_load=no
10064 fi
10065 rm -f conftest.err conftest.$ac_objext \
10066       conftest$ac_exeext conftest.$ac_ext
10067 LIBS=$ac_check_lib_save_LIBS
10068 fi
10069 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10070 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10071 if test $ac_cv_lib_dld_shl_load = yes; then
10072   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10073 else
10074   echo "$as_me:$LINENO: checking for dlopen" >&5
10075 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10076 if test "${ac_cv_func_dlopen+set}" = set; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10087 #define dlopen innocuous_dlopen
10088
10089 /* System header to define __stub macros and hopefully few prototypes,
10090     which can conflict with char dlopen (); below.
10091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092     <limits.h> exists even on freestanding compilers.  */
10093
10094 #ifdef __STDC__
10095 # include <limits.h>
10096 #else
10097 # include <assert.h>
10098 #endif
10099
10100 #undef dlopen
10101
10102 /* Override any gcc2 internal prototype to avoid an error.  */
10103 #ifdef __cplusplus
10104 extern "C"
10105 {
10106 #endif
10107 /* We use char because int might match the return type of a gcc2
10108    builtin and then its argument prototype would still apply.  */
10109 char dlopen ();
10110 /* The GNU C library defines this for functions which it implements
10111     to always fail with ENOSYS.  Some functions are actually named
10112     something starting with __ and the normal name is an alias.  */
10113 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10114 choke me
10115 #else
10116 char (*f) () = dlopen;
10117 #endif
10118 #ifdef __cplusplus
10119 }
10120 #endif
10121
10122 int
10123 main ()
10124 {
10125 return f != dlopen;
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132   (eval $ac_link) 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } &&
10139          { ac_try='test -z "$ac_c_werror_flag"
10140                          || test ! -s conftest.err'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; } &&
10146          { ac_try='test -s conftest$ac_exeext'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; }; then
10152   ac_cv_func_dlopen=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 ac_cv_func_dlopen=no
10158 fi
10159 rm -f conftest.err conftest.$ac_objext \
10160       conftest$ac_exeext conftest.$ac_ext
10161 fi
10162 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10163 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10164 if test $ac_cv_func_dlopen = yes; then
10165   lt_cv_dlopen="dlopen"
10166 else
10167   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10168 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172   ac_check_lib_save_LIBS=$LIBS
10173 LIBS="-ldl  $LIBS"
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h.  */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h.  */
10180
10181 /* Override any gcc2 internal prototype to avoid an error.  */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 /* We use char because int might match the return type of a gcc2
10186    builtin and then its argument prototype would still apply.  */
10187 char dlopen ();
10188 int
10189 main ()
10190 {
10191 dlopen ();
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198   (eval $ac_link) 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } &&
10205          { ac_try='test -z "$ac_c_werror_flag"
10206                          || test ! -s conftest.err'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; } &&
10212          { ac_try='test -s conftest$ac_exeext'
10213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214   (eval $ac_try) 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); }; }; then
10218   ac_cv_lib_dl_dlopen=yes
10219 else
10220   echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 ac_cv_lib_dl_dlopen=no
10224 fi
10225 rm -f conftest.err conftest.$ac_objext \
10226       conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10228 fi
10229 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10230 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10231 if test $ac_cv_lib_dl_dlopen = yes; then
10232   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10233 else
10234   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10235 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10236 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10237   echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239   ac_check_lib_save_LIBS=$LIBS
10240 LIBS="-lsvld  $LIBS"
10241 cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h.  */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h.  */
10247
10248 /* Override any gcc2 internal prototype to avoid an error.  */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 /* We use char because int might match the return type of a gcc2
10253    builtin and then its argument prototype would still apply.  */
10254 char dlopen ();
10255 int
10256 main ()
10257 {
10258 dlopen ();
10259   ;
10260   return 0;
10261 }
10262 _ACEOF
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265   (eval $ac_link) 2>conftest.er1
10266   ac_status=$?
10267   grep -v '^ *+' conftest.er1 >conftest.err
10268   rm -f conftest.er1
10269   cat conftest.err >&5
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } &&
10272          { ac_try='test -z "$ac_c_werror_flag"
10273                          || test ! -s conftest.err'
10274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275   (eval $ac_try) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; } &&
10279          { ac_try='test -s conftest$ac_exeext'
10280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281   (eval $ac_try) 2>&5
10282   ac_status=$?
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); }; }; then
10285   ac_cv_lib_svld_dlopen=yes
10286 else
10287   echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290 ac_cv_lib_svld_dlopen=no
10291 fi
10292 rm -f conftest.err conftest.$ac_objext \
10293       conftest$ac_exeext conftest.$ac_ext
10294 LIBS=$ac_check_lib_save_LIBS
10295 fi
10296 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10297 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10298 if test $ac_cv_lib_svld_dlopen = yes; then
10299   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10300 else
10301   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10302 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10303 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-ldld  $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h.  */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h.  */
10314
10315 /* Override any gcc2 internal prototype to avoid an error.  */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 /* We use char because int might match the return type of a gcc2
10320    builtin and then its argument prototype would still apply.  */
10321 char dld_link ();
10322 int
10323 main ()
10324 {
10325 dld_link ();
10326   ;
10327   return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332   (eval $ac_link) 2>conftest.er1
10333   ac_status=$?
10334   grep -v '^ *+' conftest.er1 >conftest.err
10335   rm -f conftest.er1
10336   cat conftest.err >&5
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } &&
10339          { ac_try='test -z "$ac_c_werror_flag"
10340                          || test ! -s conftest.err'
10341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342   (eval $ac_try) 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); }; } &&
10346          { ac_try='test -s conftest$ac_exeext'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }; then
10352   ac_cv_lib_dld_dld_link=yes
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_cv_lib_dld_dld_link=no
10358 fi
10359 rm -f conftest.err conftest.$ac_objext \
10360       conftest$ac_exeext conftest.$ac_ext
10361 LIBS=$ac_check_lib_save_LIBS
10362 fi
10363 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10364 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10365 if test $ac_cv_lib_dld_dld_link = yes; then
10366   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10367 fi
10368
10369
10370 fi
10371
10372
10373 fi
10374
10375
10376 fi
10377
10378
10379 fi
10380
10381
10382 fi
10383
10384     ;;
10385   esac
10386
10387   if test "x$lt_cv_dlopen" != xno; then
10388     enable_dlopen=yes
10389   else
10390     enable_dlopen=no
10391   fi
10392
10393   case $lt_cv_dlopen in
10394   dlopen)
10395     save_CPPFLAGS="$CPPFLAGS"
10396     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10397
10398     save_LDFLAGS="$LDFLAGS"
10399     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10400
10401     save_LIBS="$LIBS"
10402     LIBS="$lt_cv_dlopen_libs $LIBS"
10403
10404     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10405 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10406 if test "${lt_cv_dlopen_self+set}" = set; then
10407   echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409           if test "$cross_compiling" = yes; then :
10410   lt_cv_dlopen_self=cross
10411 else
10412   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10413   lt_status=$lt_dlunknown
10414   cat > conftest.$ac_ext <<_LT_EOF
10415 #line 10415 "configure"
10416 #include "confdefs.h"
10417
10418 #if HAVE_DLFCN_H
10419 #include <dlfcn.h>
10420 #endif
10421
10422 #include <stdio.h>
10423
10424 #ifdef RTLD_GLOBAL
10425 #  define LT_DLGLOBAL           RTLD_GLOBAL
10426 #else
10427 #  ifdef DL_GLOBAL
10428 #    define LT_DLGLOBAL         DL_GLOBAL
10429 #  else
10430 #    define LT_DLGLOBAL         0
10431 #  endif
10432 #endif
10433
10434 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10435    find out it does not work in some platform. */
10436 #ifndef LT_DLLAZY_OR_NOW
10437 #  ifdef RTLD_LAZY
10438 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10439 #  else
10440 #    ifdef DL_LAZY
10441 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10442 #    else
10443 #      ifdef RTLD_NOW
10444 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10445 #      else
10446 #        ifdef DL_NOW
10447 #          define LT_DLLAZY_OR_NOW      DL_NOW
10448 #        else
10449 #          define LT_DLLAZY_OR_NOW      0
10450 #        endif
10451 #      endif
10452 #    endif
10453 #  endif
10454 #endif
10455
10456 void fnord() { int i=42;}
10457 int main ()
10458 {
10459   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10460   int status = $lt_dlunknown;
10461
10462   if (self)
10463     {
10464       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10465       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10466       /* dlclose (self); */
10467     }
10468   else
10469     puts (dlerror ());
10470
10471   return status;
10472 }
10473 _LT_EOF
10474   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475   (eval $ac_link) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10479     (./conftest; exit; ) >&5 2>/dev/null
10480     lt_status=$?
10481     case x$lt_status in
10482       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10483       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10484       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10485     esac
10486   else :
10487     # compilation failed
10488     lt_cv_dlopen_self=no
10489   fi
10490 fi
10491 rm -fr conftest*
10492
10493
10494 fi
10495 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10496 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10497
10498     if test "x$lt_cv_dlopen_self" = xyes; then
10499       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10500       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10501 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10502 if test "${lt_cv_dlopen_self_static+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505           if test "$cross_compiling" = yes; then :
10506   lt_cv_dlopen_self_static=cross
10507 else
10508   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10509   lt_status=$lt_dlunknown
10510   cat > conftest.$ac_ext <<_LT_EOF
10511 #line 10511 "configure"
10512 #include "confdefs.h"
10513
10514 #if HAVE_DLFCN_H
10515 #include <dlfcn.h>
10516 #endif
10517
10518 #include <stdio.h>
10519
10520 #ifdef RTLD_GLOBAL
10521 #  define LT_DLGLOBAL           RTLD_GLOBAL
10522 #else
10523 #  ifdef DL_GLOBAL
10524 #    define LT_DLGLOBAL         DL_GLOBAL
10525 #  else
10526 #    define LT_DLGLOBAL         0
10527 #  endif
10528 #endif
10529
10530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10531    find out it does not work in some platform. */
10532 #ifndef LT_DLLAZY_OR_NOW
10533 #  ifdef RTLD_LAZY
10534 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10535 #  else
10536 #    ifdef DL_LAZY
10537 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10538 #    else
10539 #      ifdef RTLD_NOW
10540 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10541 #      else
10542 #        ifdef DL_NOW
10543 #          define LT_DLLAZY_OR_NOW      DL_NOW
10544 #        else
10545 #          define LT_DLLAZY_OR_NOW      0
10546 #        endif
10547 #      endif
10548 #    endif
10549 #  endif
10550 #endif
10551
10552 void fnord() { int i=42;}
10553 int main ()
10554 {
10555   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10556   int status = $lt_dlunknown;
10557
10558   if (self)
10559     {
10560       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10561       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10562       /* dlclose (self); */
10563     }
10564   else
10565     puts (dlerror ());
10566
10567   return status;
10568 }
10569 _LT_EOF
10570   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571   (eval $ac_link) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10575     (./conftest; exit; ) >&5 2>/dev/null
10576     lt_status=$?
10577     case x$lt_status in
10578       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10579       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10580       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10581     esac
10582   else :
10583     # compilation failed
10584     lt_cv_dlopen_self_static=no
10585   fi
10586 fi
10587 rm -fr conftest*
10588
10589
10590 fi
10591 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10592 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10593     fi
10594
10595     CPPFLAGS="$save_CPPFLAGS"
10596     LDFLAGS="$save_LDFLAGS"
10597     LIBS="$save_LIBS"
10598     ;;
10599   esac
10600
10601   case $lt_cv_dlopen_self in
10602   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10603   *) enable_dlopen_self=unknown ;;
10604   esac
10605
10606   case $lt_cv_dlopen_self_static in
10607   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10608   *) enable_dlopen_self_static=unknown ;;
10609   esac
10610 fi
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628 striplib=
10629 old_striplib=
10630 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10631 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10632 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10633   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10634   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10635   echo "$as_me:$LINENO: result: yes" >&5
10636 echo "${ECHO_T}yes" >&6
10637 else
10638 # FIXME - insert some real tests, host_os isn't really good enough
10639   case $host_os in
10640   darwin*)
10641     if test -n "$STRIP" ; then
10642       striplib="$STRIP -x"
10643       old_striplib="$STRIP -S"
10644       echo "$as_me:$LINENO: result: yes" >&5
10645 echo "${ECHO_T}yes" >&6
10646     else
10647       echo "$as_me:$LINENO: result: no" >&5
10648 echo "${ECHO_T}no" >&6
10649     fi
10650     ;;
10651   *)
10652     echo "$as_me:$LINENO: result: no" >&5
10653 echo "${ECHO_T}no" >&6
10654     ;;
10655   esac
10656 fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669   # Report which library types will actually be built
10670   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10671 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10672   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10673 echo "${ECHO_T}$can_build_shared" >&6
10674
10675   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10676 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10677   test "$can_build_shared" = "no" && enable_shared=no
10678
10679   # On AIX, shared libraries and static libraries use the same namespace, and
10680   # are all built from PIC.
10681   case $host_os in
10682   aix3*)
10683     test "$enable_shared" = yes && enable_static=no
10684     if test -n "$RANLIB"; then
10685       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10686       postinstall_cmds='$RANLIB $lib'
10687     fi
10688     ;;
10689
10690   aix[4-9]*)
10691     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10692       test "$enable_shared" = yes && enable_static=no
10693     fi
10694     ;;
10695   esac
10696   echo "$as_me:$LINENO: result: $enable_shared" >&5
10697 echo "${ECHO_T}$enable_shared" >&6
10698
10699   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10700 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10701   # Make sure either enable_shared or enable_static is yes.
10702   test "$enable_shared" = yes || enable_static=yes
10703   echo "$as_me:$LINENO: result: $enable_static" >&5
10704 echo "${ECHO_T}$enable_static" >&6
10705
10706
10707
10708
10709 fi
10710 ac_ext=c
10711 ac_cpp='$CPP $CPPFLAGS'
10712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10715
10716 CC="$lt_save_CC"
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730                   ac_config_commands="$ac_config_commands libtool"
10731
10732
10733
10734
10735 # Only expand once:
10736
10737
10738
10739
10740
10741 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10742 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10743     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10744 if test "${enable_maintainer_mode+set}" = set; then
10745   enableval="$enable_maintainer_mode"
10746   USE_MAINTAINER_MODE=$enableval
10747 else
10748   USE_MAINTAINER_MODE=no
10749 fi;
10750   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10751 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10752
10753
10754 if test $USE_MAINTAINER_MODE = yes; then
10755   MAINTAINER_MODE_TRUE=
10756   MAINTAINER_MODE_FALSE='#'
10757 else
10758   MAINTAINER_MODE_TRUE='#'
10759   MAINTAINER_MODE_FALSE=
10760 fi
10761
10762   MAINT=$MAINTAINER_MODE_TRUE
10763
10764
10765
10766 # We need gfortran to compile parts of the library
10767 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10768 #AC_PROG_FC(gfortran)
10769 FC="$GFORTRAN"
10770 ac_ext=${FC_SRCEXT-f}
10771 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10772 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10773 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10774 if test -n "$ac_tool_prefix"; then
10775   for ac_prog in gfortran
10776   do
10777     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10779 echo "$as_me:$LINENO: checking for $ac_word" >&5
10780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10781 if test "${ac_cv_prog_FC+set}" = set; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   if test -n "$FC"; then
10785   ac_cv_prog_FC="$FC" # Let the user override the test.
10786 else
10787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788 for as_dir in $PATH
10789 do
10790   IFS=$as_save_IFS
10791   test -z "$as_dir" && as_dir=.
10792   for ac_exec_ext in '' $ac_executable_extensions; do
10793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10794     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10796     break 2
10797   fi
10798 done
10799 done
10800
10801 fi
10802 fi
10803 FC=$ac_cv_prog_FC
10804 if test -n "$FC"; then
10805   echo "$as_me:$LINENO: result: $FC" >&5
10806 echo "${ECHO_T}$FC" >&6
10807 else
10808   echo "$as_me:$LINENO: result: no" >&5
10809 echo "${ECHO_T}no" >&6
10810 fi
10811
10812     test -n "$FC" && break
10813   done
10814 fi
10815 if test -z "$FC"; then
10816   ac_ct_FC=$FC
10817   for ac_prog in gfortran
10818 do
10819   # Extract the first word of "$ac_prog", so it can be a program name with args.
10820 set dummy $ac_prog; ac_word=$2
10821 echo "$as_me:$LINENO: checking for $ac_word" >&5
10822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10823 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   if test -n "$ac_ct_FC"; then
10827   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10828 else
10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in $PATH
10831 do
10832   IFS=$as_save_IFS
10833   test -z "$as_dir" && as_dir=.
10834   for ac_exec_ext in '' $ac_executable_extensions; do
10835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10836     ac_cv_prog_ac_ct_FC="$ac_prog"
10837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10838     break 2
10839   fi
10840 done
10841 done
10842
10843 fi
10844 fi
10845 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10846 if test -n "$ac_ct_FC"; then
10847   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10848 echo "${ECHO_T}$ac_ct_FC" >&6
10849 else
10850   echo "$as_me:$LINENO: result: no" >&5
10851 echo "${ECHO_T}no" >&6
10852 fi
10853
10854   test -n "$ac_ct_FC" && break
10855 done
10856
10857   FC=$ac_ct_FC
10858 fi
10859
10860
10861 # Provide some information about the compiler.
10862 echo "$as_me:10862:" \
10863      "checking for Fortran compiler version" >&5
10864 ac_compiler=`set X $ac_compile; echo $2`
10865 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10866   (eval $ac_compiler --version </dev/null >&5) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); }
10870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10871   (eval $ac_compiler -v </dev/null >&5) 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }
10875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10876   (eval $ac_compiler -V </dev/null >&5) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); }
10880 rm -f a.out
10881
10882 # If we don't use `.F' as extension, the preprocessor is not run on the
10883 # input file.  (Note that this only needs to work for GNU compilers.)
10884 ac_save_ext=$ac_ext
10885 ac_ext=F
10886 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10887 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10888 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   cat >conftest.$ac_ext <<_ACEOF
10892       program main
10893 #ifndef __GNUC__
10894        choke me
10895 #endif
10896
10897       end
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901   (eval $ac_compile) 2>conftest.er1
10902   ac_status=$?
10903   grep -v '^ *+' conftest.er1 >conftest.err
10904   rm -f conftest.er1
10905   cat conftest.err >&5
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); } &&
10908          { ac_try='test -z "$ac_fc_werror_flag"
10909                          || test ! -s conftest.err'
10910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911   (eval $ac_try) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; } &&
10915          { ac_try='test -s conftest.$ac_objext'
10916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917   (eval $ac_try) 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921   ac_compiler_gnu=yes
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926 ac_compiler_gnu=no
10927 fi
10928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10929 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10930
10931 fi
10932 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10933 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10934 ac_ext=$ac_save_ext
10935 ac_test_FFLAGS=${FCFLAGS+set}
10936 ac_save_FFLAGS=$FCFLAGS
10937 FCFLAGS=
10938 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10939 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10940 if test "${ac_cv_prog_fc_g+set}" = set; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943   FCFLAGS=-g
10944 cat >conftest.$ac_ext <<_ACEOF
10945       program main
10946
10947       end
10948 _ACEOF
10949 rm -f conftest.$ac_objext
10950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10951   (eval $ac_compile) 2>conftest.er1
10952   ac_status=$?
10953   grep -v '^ *+' conftest.er1 >conftest.err
10954   rm -f conftest.er1
10955   cat conftest.err >&5
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); } &&
10958          { ac_try='test -z "$ac_fc_werror_flag"
10959                          || test ! -s conftest.err'
10960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961   (eval $ac_try) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); }; } &&
10965          { ac_try='test -s conftest.$ac_objext'
10966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967   (eval $ac_try) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); }; }; then
10971   ac_cv_prog_fc_g=yes
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 ac_cv_prog_fc_g=no
10977 fi
10978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10979
10980 fi
10981 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10982 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10983 if test "$ac_test_FFLAGS" = set; then
10984   FCFLAGS=$ac_save_FFLAGS
10985 elif test $ac_cv_prog_fc_g = yes; then
10986   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10987     FCFLAGS="-g -O2"
10988   else
10989     FCFLAGS="-g"
10990   fi
10991 else
10992   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10993     FCFLAGS="-O2"
10994   else
10995     FCFLAGS=
10996   fi
10997 fi
10998
10999 ac_ext=c
11000 ac_cpp='$CPP $CPPFLAGS'
11001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11004
11005
11006 ac_ext=${FC_SRCEXT-f}
11007 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
11008 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
11009 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11010 if test -n "$ac_tool_prefix"; then
11011   for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
11012   do
11013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11015 echo "$as_me:$LINENO: checking for $ac_word" >&5
11016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11017 if test "${ac_cv_prog_FC+set}" = set; then
11018   echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020   if test -n "$FC"; then
11021   ac_cv_prog_FC="$FC" # Let the user override the test.
11022 else
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11025 do
11026   IFS=$as_save_IFS
11027   test -z "$as_dir" && as_dir=.
11028   for ac_exec_ext in '' $ac_executable_extensions; do
11029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032     break 2
11033   fi
11034 done
11035 done
11036
11037 fi
11038 fi
11039 FC=$ac_cv_prog_FC
11040 if test -n "$FC"; then
11041   echo "$as_me:$LINENO: result: $FC" >&5
11042 echo "${ECHO_T}$FC" >&6
11043 else
11044   echo "$as_me:$LINENO: result: no" >&5
11045 echo "${ECHO_T}no" >&6
11046 fi
11047
11048     test -n "$FC" && break
11049   done
11050 fi
11051 if test -z "$FC"; then
11052   ac_ct_FC=$FC
11053   for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
11054 do
11055   # Extract the first word of "$ac_prog", so it can be a program name with args.
11056 set dummy $ac_prog; ac_word=$2
11057 echo "$as_me:$LINENO: checking for $ac_word" >&5
11058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11059 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   if test -n "$ac_ct_FC"; then
11063   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11064 else
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11067 do
11068   IFS=$as_save_IFS
11069   test -z "$as_dir" && as_dir=.
11070   for ac_exec_ext in '' $ac_executable_extensions; do
11071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11072     ac_cv_prog_ac_ct_FC="$ac_prog"
11073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11074     break 2
11075   fi
11076 done
11077 done
11078
11079 fi
11080 fi
11081 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11082 if test -n "$ac_ct_FC"; then
11083   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
11084 echo "${ECHO_T}$ac_ct_FC" >&6
11085 else
11086   echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6
11088 fi
11089
11090   test -n "$ac_ct_FC" && break
11091 done
11092
11093   FC=$ac_ct_FC
11094 fi
11095
11096
11097 # Provide some information about the compiler.
11098 echo "$as_me:11098:" \
11099      "checking for Fortran compiler version" >&5
11100 ac_compiler=`set X $ac_compile; echo $2`
11101 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11102   (eval $ac_compiler --version </dev/null >&5) 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }
11106 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11107   (eval $ac_compiler -v </dev/null >&5) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }
11111 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11112   (eval $ac_compiler -V </dev/null >&5) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }
11116 rm -f a.out
11117
11118 # If we don't use `.F' as extension, the preprocessor is not run on the
11119 # input file.  (Note that this only needs to work for GNU compilers.)
11120 ac_save_ext=$ac_ext
11121 ac_ext=F
11122 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
11123 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
11124 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   cat >conftest.$ac_ext <<_ACEOF
11128       program main
11129 #ifndef __GNUC__
11130        choke me
11131 #endif
11132
11133       end
11134 _ACEOF
11135 rm -f conftest.$ac_objext
11136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11137   (eval $ac_compile) 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } &&
11144          { ac_try='test -z "$ac_fc_werror_flag"
11145                          || test ! -s conftest.err'
11146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147   (eval $ac_try) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; } &&
11151          { ac_try='test -s conftest.$ac_objext'
11152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153   (eval $ac_try) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }; then
11157   ac_compiler_gnu=yes
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162 ac_compiler_gnu=no
11163 fi
11164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11165 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11166
11167 fi
11168 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
11169 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
11170 ac_ext=$ac_save_ext
11171 ac_test_FFLAGS=${FCFLAGS+set}
11172 ac_save_FFLAGS=$FCFLAGS
11173 FCFLAGS=
11174 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
11175 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
11176 if test "${ac_cv_prog_fc_g+set}" = set; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   FCFLAGS=-g
11180 cat >conftest.$ac_ext <<_ACEOF
11181       program main
11182
11183       end
11184 _ACEOF
11185 rm -f conftest.$ac_objext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187   (eval $ac_compile) 2>conftest.er1
11188   ac_status=$?
11189   grep -v '^ *+' conftest.er1 >conftest.err
11190   rm -f conftest.er1
11191   cat conftest.err >&5
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); } &&
11194          { ac_try='test -z "$ac_fc_werror_flag"
11195                          || test ! -s conftest.err'
11196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197   (eval $ac_try) 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; } &&
11201          { ac_try='test -s conftest.$ac_objext'
11202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203   (eval $ac_try) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   ac_cv_prog_fc_g=yes
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 ac_cv_prog_fc_g=no
11213 fi
11214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215
11216 fi
11217 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
11218 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
11219 if test "$ac_test_FFLAGS" = set; then
11220   FCFLAGS=$ac_save_FFLAGS
11221 elif test $ac_cv_prog_fc_g = yes; then
11222   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11223     FCFLAGS="-g -O2"
11224   else
11225     FCFLAGS="-g"
11226   fi
11227 else
11228   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11229     FCFLAGS="-O2"
11230   else
11231     FCFLAGS=
11232   fi
11233 fi
11234
11235 ac_ext=c
11236 ac_cpp='$CPP $CPPFLAGS'
11237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11240
11241 if test -z "$FC" || test "X$FC" = "Xno"; then
11242   _lt_disable_FC=yes
11243 fi
11244
11245
11246
11247       ac_ext=${FC_SRCEXT-f}
11248 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
11249 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
11250 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11251
11252
11253 archive_cmds_need_lc_FC=no
11254 allow_undefined_flag_FC=
11255 always_export_symbols_FC=no
11256 archive_expsym_cmds_FC=
11257 export_dynamic_flag_spec_FC=
11258 hardcode_direct_FC=no
11259 hardcode_direct_absolute_FC=no
11260 hardcode_libdir_flag_spec_FC=
11261 hardcode_libdir_flag_spec_ld_FC=
11262 hardcode_libdir_separator_FC=
11263 hardcode_minus_L_FC=no
11264 hardcode_automatic_FC=no
11265 inherit_rpath_FC=no
11266 module_cmds_FC=
11267 module_expsym_cmds_FC=
11268 link_all_deplibs_FC=unknown
11269 old_archive_cmds_FC=$old_archive_cmds
11270 no_undefined_flag_FC=
11271 whole_archive_flag_spec_FC=
11272 enable_shared_with_static_runtimes_FC=no
11273
11274 # Source file extension for fc test sources.
11275 ac_ext=${ac_fc_srcext-f}
11276
11277 # Object file extension for compiled fc test sources.
11278 objext=o
11279 objext_FC=$objext
11280
11281 # No sense in running all these tests if we already determined that
11282 # the FC compiler isn't working.  Some variables (like enable_shared)
11283 # are currently assumed to apply to all compilers on this platform,
11284 # and will be corrupted by setting them based on a non-working compiler.
11285 if test "$_lt_disable_FC" != yes; then
11286   # Code to be used in simple compile tests
11287   lt_simple_compile_test_code="\
11288       subroutine t
11289       return
11290       end
11291 "
11292
11293   # Code to be used in simple link tests
11294   lt_simple_link_test_code="\
11295       program t
11296       end
11297 "
11298
11299   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11300
11301
11302
11303
11304
11305
11306 # If no C compiler was specified, use CC.
11307 LTCC=${LTCC-"$CC"}
11308
11309 # If no C compiler flags were specified, use CFLAGS.
11310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11311
11312 # Allow CC to be a program name with arguments.
11313 compiler=$CC
11314
11315
11316   # save warnings/boilerplate of simple test code
11317   ac_outfile=conftest.$ac_objext
11318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11320 _lt_compiler_boilerplate=`cat conftest.err`
11321 $RM conftest*
11322
11323   ac_outfile=conftest.$ac_objext
11324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11326 _lt_linker_boilerplate=`cat conftest.err`
11327 $RM -r conftest*
11328
11329
11330   # Allow CC to be a program name with arguments.
11331   lt_save_CC="$CC"
11332   lt_save_GCC=$GCC
11333   CC=${FC-"f95"}
11334   compiler=$CC
11335   GCC=$ac_cv_fc_compiler_gnu
11336
11337   compiler_FC=$CC
11338   for cc_temp in $compiler""; do
11339   case $cc_temp in
11340     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11341     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11342     \-*) ;;
11343     *) break;;
11344   esac
11345 done
11346 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11347
11348
11349   if test -n "$compiler"; then
11350     echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11351 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11352     echo "$as_me:$LINENO: result: $can_build_shared" >&5
11353 echo "${ECHO_T}$can_build_shared" >&6
11354
11355     echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11356 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11357     test "$can_build_shared" = "no" && enable_shared=no
11358
11359     # On AIX, shared libraries and static libraries use the same namespace, and
11360     # are all built from PIC.
11361     case $host_os in
11362       aix3*)
11363         test "$enable_shared" = yes && enable_static=no
11364         if test -n "$RANLIB"; then
11365           archive_cmds="$archive_cmds~\$RANLIB \$lib"
11366           postinstall_cmds='$RANLIB $lib'
11367         fi
11368         ;;
11369       aix[4-9]*)
11370         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11371           test "$enable_shared" = yes && enable_static=no
11372         fi
11373         ;;
11374     esac
11375     echo "$as_me:$LINENO: result: $enable_shared" >&5
11376 echo "${ECHO_T}$enable_shared" >&6
11377
11378     echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11379 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11380     # Make sure either enable_shared or enable_static is yes.
11381     test "$enable_shared" = yes || enable_static=yes
11382     echo "$as_me:$LINENO: result: $enable_static" >&5
11383 echo "${ECHO_T}$enable_static" >&6
11384
11385     GCC_FC="$ac_cv_fc_compiler_gnu"
11386     LD_FC="$LD"
11387
11388     ## CAVEAT EMPTOR:
11389     ## There is no encapsulation within the following macros, do not change
11390     ## the running order or otherwise move them around unless you know exactly
11391     ## what you are doing...
11392     # Dependencies to place before and after the object being linked:
11393 predep_objects_FC=
11394 postdep_objects_FC=
11395 predeps_FC=
11396 postdeps_FC=
11397 compiler_lib_search_path_FC=
11398
11399 cat > conftest.$ac_ext <<_LT_EOF
11400       subroutine foo
11401       implicit none
11402       integer a
11403       a=0
11404       return
11405       end
11406 _LT_EOF
11407
11408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11409   (eval $ac_compile) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; then
11413   # Parse the compiler output and extract the necessary
11414   # objects, libraries and library flags.
11415
11416   # Sentinel used to keep track of whether or not we are before
11417   # the conftest object file.
11418   pre_test_object_deps_done=no
11419
11420   for p in `eval "$output_verbose_link_cmd"`; do
11421     case $p in
11422
11423     -L* | -R* | -l*)
11424        # Some compilers place space between "-{L,R}" and the path.
11425        # Remove the space.
11426        if test $p = "-L" ||
11427           test $p = "-R"; then
11428          prev=$p
11429          continue
11430        else
11431          prev=
11432        fi
11433
11434        if test "$pre_test_object_deps_done" = no; then
11435          case $p in
11436          -L* | -R*)
11437            # Internal compiler library paths should come after those
11438            # provided the user.  The postdeps already come after the
11439            # user supplied libs so there is no need to process them.
11440            if test -z "$compiler_lib_search_path_FC"; then
11441              compiler_lib_search_path_FC="${prev}${p}"
11442            else
11443              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11444            fi
11445            ;;
11446          # The "-l" case would never come before the object being
11447          # linked, so don't bother handling this case.
11448          esac
11449        else
11450          if test -z "$postdeps_FC"; then
11451            postdeps_FC="${prev}${p}"
11452          else
11453            postdeps_FC="${postdeps_FC} ${prev}${p}"
11454          fi
11455        fi
11456        ;;
11457
11458     *.$objext)
11459        # This assumes that the test object file only shows up
11460        # once in the compiler output.
11461        if test "$p" = "conftest.$objext"; then
11462          pre_test_object_deps_done=yes
11463          continue
11464        fi
11465
11466        if test "$pre_test_object_deps_done" = no; then
11467          if test -z "$predep_objects_FC"; then
11468            predep_objects_FC="$p"
11469          else
11470            predep_objects_FC="$predep_objects_FC $p"
11471          fi
11472        else
11473          if test -z "$postdep_objects_FC"; then
11474            postdep_objects_FC="$p"
11475          else
11476            postdep_objects_FC="$postdep_objects_FC $p"
11477          fi
11478        fi
11479        ;;
11480
11481     *) ;; # Ignore the rest.
11482
11483     esac
11484   done
11485
11486   # Clean up.
11487   rm -f a.out a.exe
11488 else
11489   echo "libtool.m4: error: problem compiling FC test program"
11490 fi
11491
11492 $RM -f confest.$objext
11493
11494 # PORTME: override above test on systems where it is broken
11495
11496
11497 case " $postdeps_FC " in
11498 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11499 esac
11500  compiler_lib_search_dirs_FC=
11501 if test -n "${compiler_lib_search_path_FC}"; then
11502  compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11503 fi
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535     lt_prog_compiler_wl_FC=
11536 lt_prog_compiler_pic_FC=
11537 lt_prog_compiler_static_FC=
11538
11539 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11540 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11541
11542   if test "$GCC" = yes; then
11543     lt_prog_compiler_wl_FC='-Wl,'
11544     lt_prog_compiler_static_FC='-static'
11545
11546     case $host_os in
11547       aix*)
11548       # All AIX code is PIC.
11549       if test "$host_cpu" = ia64; then
11550         # AIX 5 now supports IA64 processor
11551         lt_prog_compiler_static_FC='-Bstatic'
11552       fi
11553       ;;
11554
11555     amigaos*)
11556       case $host_cpu in
11557       powerpc)
11558             # see comment about AmigaOS4 .so support
11559             lt_prog_compiler_pic_FC='-fPIC'
11560         ;;
11561       m68k)
11562             # FIXME: we need at least 68020 code to build shared libraries, but
11563             # adding the `-m68020' flag to GCC prevents building anything better,
11564             # like `-m68040'.
11565             lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
11566         ;;
11567       esac
11568       ;;
11569
11570     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11571       # PIC is the default for these OSes.
11572       ;;
11573
11574     mingw* | cygwin* | pw32* | os2* | cegcc*)
11575       # This hack is so that the source file can tell whether it is being
11576       # built for inclusion in a dll (and should export symbols for example).
11577       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11578       # (--disable-auto-import) libraries
11579       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11580       ;;
11581
11582     darwin* | rhapsody*)
11583       # PIC is the default on this platform
11584       # Common symbols not allowed in MH_DYLIB files
11585       lt_prog_compiler_pic_FC='-fno-common'
11586       ;;
11587
11588     hpux*)
11589       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11590       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11591       # sets the default TLS model and affects inlining.
11592       case $host_cpu in
11593       hppa*64*)
11594         # +Z the default
11595         ;;
11596       *)
11597         lt_prog_compiler_pic_FC='-fPIC'
11598         ;;
11599       esac
11600       ;;
11601
11602     interix[3-9]*)
11603       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11604       # Instead, we relocate shared libraries at runtime.
11605       ;;
11606
11607     msdosdjgpp*)
11608       # Just because we use GCC doesn't mean we suddenly get shared libraries
11609       # on systems that don't support them.
11610       lt_prog_compiler_can_build_shared_FC=no
11611       enable_shared=no
11612       ;;
11613
11614     *nto* | *qnx*)
11615       # QNX uses GNU C++, but need to define -shared option too, otherwise
11616       # it will coredump.
11617       lt_prog_compiler_pic_FC='-fPIC -shared'
11618       ;;
11619
11620     sysv4*MP*)
11621       if test -d /usr/nec; then
11622         lt_prog_compiler_pic_FC=-Kconform_pic
11623       fi
11624       ;;
11625
11626     *)
11627       lt_prog_compiler_pic_FC='-fPIC'
11628       ;;
11629     esac
11630   else
11631     # PORTME Check for flag to pass linker flags through the system compiler.
11632     case $host_os in
11633     aix*)
11634       lt_prog_compiler_wl_FC='-Wl,'
11635       if test "$host_cpu" = ia64; then
11636         # AIX 5 now supports IA64 processor
11637         lt_prog_compiler_static_FC='-Bstatic'
11638       else
11639         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
11640       fi
11641       ;;
11642
11643     mingw* | cygwin* | pw32* | os2* | cegcc*)
11644       # This hack is so that the source file can tell whether it is being
11645       # built for inclusion in a dll (and should export symbols for example).
11646       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11647       ;;
11648
11649     hpux9* | hpux10* | hpux11*)
11650       lt_prog_compiler_wl_FC='-Wl,'
11651       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11652       # not for PA HP-UX.
11653       case $host_cpu in
11654       hppa*64*|ia64*)
11655         # +Z the default
11656         ;;
11657       *)
11658         lt_prog_compiler_pic_FC='+Z'
11659         ;;
11660       esac
11661       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11662       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
11663       ;;
11664
11665     irix5* | irix6* | nonstopux*)
11666       lt_prog_compiler_wl_FC='-Wl,'
11667       # PIC (with -KPIC) is the default.
11668       lt_prog_compiler_static_FC='-non_shared'
11669       ;;
11670
11671     linux* | k*bsd*-gnu)
11672       case $cc_basename in
11673       # old Intel for x86_64 which still supported -KPIC.
11674       ecc*)
11675         lt_prog_compiler_wl_FC='-Wl,'
11676         lt_prog_compiler_pic_FC='-KPIC'
11677         lt_prog_compiler_static_FC='-static'
11678         ;;
11679       # icc used to be incompatible with GCC.
11680       # ICC 10 doesn't accept -KPIC any more.
11681       icc* | ifort*)
11682         lt_prog_compiler_wl_FC='-Wl,'
11683         lt_prog_compiler_pic_FC='-fPIC'
11684         lt_prog_compiler_static_FC='-static'
11685         ;;
11686       # Lahey Fortran 8.1.
11687       lf95*)
11688         lt_prog_compiler_wl_FC='-Wl,'
11689         lt_prog_compiler_pic_FC='--shared'
11690         lt_prog_compiler_static_FC='--static'
11691         ;;
11692       pgcc* | pgf77* | pgf90* | pgf95*)
11693         # Portland Group compilers (*not* the Pentium gcc compiler,
11694         # which looks to be a dead project)
11695         lt_prog_compiler_wl_FC='-Wl,'
11696         lt_prog_compiler_pic_FC='-fpic'
11697         lt_prog_compiler_static_FC='-Bstatic'
11698         ;;
11699       ccc*)
11700         lt_prog_compiler_wl_FC='-Wl,'
11701         # All Alpha code is PIC.
11702         lt_prog_compiler_static_FC='-non_shared'
11703         ;;
11704       xl*)
11705         # IBM XL C 8.0/Fortran 10.1 on PPC
11706         lt_prog_compiler_wl_FC='-Wl,'
11707         lt_prog_compiler_pic_FC='-qpic'
11708         lt_prog_compiler_static_FC='-qstaticlink'
11709         ;;
11710       *)
11711         case `$CC -V 2>&1 | sed 5q` in
11712         *Sun\ C*)
11713           # Sun C 5.9
11714           lt_prog_compiler_pic_FC='-KPIC'
11715           lt_prog_compiler_static_FC='-Bstatic'
11716           lt_prog_compiler_wl_FC='-Wl,'
11717           ;;
11718         *Sun\ F*)
11719           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11720           lt_prog_compiler_pic_FC='-KPIC'
11721           lt_prog_compiler_static_FC='-Bstatic'
11722           lt_prog_compiler_wl_FC=''
11723           ;;
11724         esac
11725         ;;
11726       esac
11727       ;;
11728
11729     newsos6)
11730       lt_prog_compiler_pic_FC='-KPIC'
11731       lt_prog_compiler_static_FC='-Bstatic'
11732       ;;
11733
11734     *nto* | *qnx*)
11735       # QNX uses GNU C++, but need to define -shared option too, otherwise
11736       # it will coredump.
11737       lt_prog_compiler_pic_FC='-fPIC -shared'
11738       ;;
11739
11740     osf3* | osf4* | osf5*)
11741       lt_prog_compiler_wl_FC='-Wl,'
11742       # All OSF/1 code is PIC.
11743       lt_prog_compiler_static_FC='-non_shared'
11744       ;;
11745
11746     rdos*)
11747       lt_prog_compiler_static_FC='-non_shared'
11748       ;;
11749
11750     solaris*)
11751       lt_prog_compiler_pic_FC='-KPIC'
11752       lt_prog_compiler_static_FC='-Bstatic'
11753       case $cc_basename in
11754       f77* | f90* | f95*)
11755         lt_prog_compiler_wl_FC='-Qoption ld ';;
11756       *)
11757         lt_prog_compiler_wl_FC='-Wl,';;
11758       esac
11759       ;;
11760
11761     sunos4*)
11762       lt_prog_compiler_wl_FC='-Qoption ld '
11763       lt_prog_compiler_pic_FC='-PIC'
11764       lt_prog_compiler_static_FC='-Bstatic'
11765       ;;
11766
11767     sysv4 | sysv4.2uw2* | sysv4.3*)
11768       lt_prog_compiler_wl_FC='-Wl,'
11769       lt_prog_compiler_pic_FC='-KPIC'
11770       lt_prog_compiler_static_FC='-Bstatic'
11771       ;;
11772
11773     sysv4*MP*)
11774       if test -d /usr/nec ;then
11775         lt_prog_compiler_pic_FC='-Kconform_pic'
11776         lt_prog_compiler_static_FC='-Bstatic'
11777       fi
11778       ;;
11779
11780     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11781       lt_prog_compiler_wl_FC='-Wl,'
11782       lt_prog_compiler_pic_FC='-KPIC'
11783       lt_prog_compiler_static_FC='-Bstatic'
11784       ;;
11785
11786     unicos*)
11787       lt_prog_compiler_wl_FC='-Wl,'
11788       lt_prog_compiler_can_build_shared_FC=no
11789       ;;
11790
11791     uts4*)
11792       lt_prog_compiler_pic_FC='-pic'
11793       lt_prog_compiler_static_FC='-Bstatic'
11794       ;;
11795
11796     *)
11797       lt_prog_compiler_can_build_shared_FC=no
11798       ;;
11799     esac
11800   fi
11801
11802 case $host_os in
11803   # For platforms which do not support PIC, -DPIC is meaningless:
11804   *djgpp*)
11805     lt_prog_compiler_pic_FC=
11806     ;;
11807   *)
11808     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11809     ;;
11810 esac
11811 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11812 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11813
11814
11815
11816 #
11817 # Check to make sure the PIC flag actually works.
11818 #
11819 if test -n "$lt_prog_compiler_pic_FC"; then
11820   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11821 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11822 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825   lt_cv_prog_compiler_pic_works_FC=no
11826    ac_outfile=conftest.$ac_objext
11827    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11828    lt_compiler_flag="$lt_prog_compiler_pic_FC"
11829    # Insert the option either (1) after the last *FLAGS variable, or
11830    # (2) before a word containing "conftest.", or (3) at the end.
11831    # Note that $ac_compile itself does not contain backslashes and begins
11832    # with a dollar sign (not a hyphen), so the echo should work correctly.
11833    # The option is referenced via a variable to avoid confusing sed.
11834    lt_compile=`echo "$ac_compile" | $SED \
11835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11837    -e 's:$: $lt_compiler_flag:'`
11838    (eval echo "\"\$as_me:11838: $lt_compile\"" >&5)
11839    (eval "$lt_compile" 2>conftest.err)
11840    ac_status=$?
11841    cat conftest.err >&5
11842    echo "$as_me:11842: \$? = $ac_status" >&5
11843    if (exit $ac_status) && test -s "$ac_outfile"; then
11844      # The compiler can only warn and ignore the option if not recognized
11845      # So say no if there are warnings other than the usual output.
11846      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11847      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11848      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11849        lt_cv_prog_compiler_pic_works_FC=yes
11850      fi
11851    fi
11852    $RM conftest*
11853
11854 fi
11855 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5
11856 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_FC" >&6
11857
11858 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
11859     case $lt_prog_compiler_pic_FC in
11860      "" | " "*) ;;
11861      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11862      esac
11863 else
11864     lt_prog_compiler_pic_FC=
11865      lt_prog_compiler_can_build_shared_FC=no
11866 fi
11867
11868 fi
11869
11870
11871
11872 #
11873 # Check to make sure the static flag actually works.
11874 #
11875 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11876 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11877 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11878 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   lt_cv_prog_compiler_static_works_FC=no
11882    save_LDFLAGS="$LDFLAGS"
11883    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11884    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11885    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11886      # The linker can only warn and ignore the option if not recognized
11887      # So say no if there are warnings
11888      if test -s conftest.err; then
11889        # Append any errors to the config.log.
11890        cat conftest.err 1>&5
11891        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11892        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11893        if diff conftest.exp conftest.er2 >/dev/null; then
11894          lt_cv_prog_compiler_static_works_FC=yes
11895        fi
11896      else
11897        lt_cv_prog_compiler_static_works_FC=yes
11898      fi
11899    fi
11900    $RM -r conftest*
11901    LDFLAGS="$save_LDFLAGS"
11902
11903 fi
11904 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5
11905 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_FC" >&6
11906
11907 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
11908     :
11909 else
11910     lt_prog_compiler_static_FC=
11911 fi
11912
11913
11914
11915
11916     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11917 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11918 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   lt_cv_prog_compiler_c_o_FC=no
11922    $RM -r conftest 2>/dev/null
11923    mkdir conftest
11924    cd conftest
11925    mkdir out
11926    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11927
11928    lt_compiler_flag="-o out/conftest2.$ac_objext"
11929    # Insert the option either (1) after the last *FLAGS variable, or
11930    # (2) before a word containing "conftest.", or (3) at the end.
11931    # Note that $ac_compile itself does not contain backslashes and begins
11932    # with a dollar sign (not a hyphen), so the echo should work correctly.
11933    lt_compile=`echo "$ac_compile" | $SED \
11934    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11935    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11936    -e 's:$: $lt_compiler_flag:'`
11937    (eval echo "\"\$as_me:11937: $lt_compile\"" >&5)
11938    (eval "$lt_compile" 2>out/conftest.err)
11939    ac_status=$?
11940    cat out/conftest.err >&5
11941    echo "$as_me:11941: \$? = $ac_status" >&5
11942    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11943    then
11944      # The compiler can only warn and ignore the option if not recognized
11945      # So say no if there are warnings
11946      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11947      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11948      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11949        lt_cv_prog_compiler_c_o_FC=yes
11950      fi
11951    fi
11952    chmod u+w . 2>&5
11953    $RM conftest*
11954    # SGI C++ compiler will create directory out/ii_files/ for
11955    # template instantiation
11956    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11957    $RM out/* && rmdir out
11958    cd ..
11959    $RM -r conftest
11960    $RM conftest*
11961
11962 fi
11963 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11964 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11965
11966
11967
11968     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11969 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11970 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11971   echo $ECHO_N "(cached) $ECHO_C" >&6
11972 else
11973   lt_cv_prog_compiler_c_o_FC=no
11974    $RM -r conftest 2>/dev/null
11975    mkdir conftest
11976    cd conftest
11977    mkdir out
11978    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11979
11980    lt_compiler_flag="-o out/conftest2.$ac_objext"
11981    # Insert the option either (1) after the last *FLAGS variable, or
11982    # (2) before a word containing "conftest.", or (3) at the end.
11983    # Note that $ac_compile itself does not contain backslashes and begins
11984    # with a dollar sign (not a hyphen), so the echo should work correctly.
11985    lt_compile=`echo "$ac_compile" | $SED \
11986    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11987    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11988    -e 's:$: $lt_compiler_flag:'`
11989    (eval echo "\"\$as_me:11989: $lt_compile\"" >&5)
11990    (eval "$lt_compile" 2>out/conftest.err)
11991    ac_status=$?
11992    cat out/conftest.err >&5
11993    echo "$as_me:11993: \$? = $ac_status" >&5
11994    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11995    then
11996      # The compiler can only warn and ignore the option if not recognized
11997      # So say no if there are warnings
11998      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11999      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12000      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12001        lt_cv_prog_compiler_c_o_FC=yes
12002      fi
12003    fi
12004    chmod u+w . 2>&5
12005    $RM conftest*
12006    # SGI C++ compiler will create directory out/ii_files/ for
12007    # template instantiation
12008    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12009    $RM out/* && rmdir out
12010    cd ..
12011    $RM -r conftest
12012    $RM conftest*
12013
12014 fi
12015 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
12016 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
12017
12018
12019
12020
12021 hard_links="nottested"
12022 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12023   # do not overwrite the value of need_locks provided by the user
12024   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12025 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12026   hard_links=yes
12027   $RM conftest*
12028   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12029   touch conftest.a
12030   ln conftest.a conftest.b 2>&5 || hard_links=no
12031   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12032   echo "$as_me:$LINENO: result: $hard_links" >&5
12033 echo "${ECHO_T}$hard_links" >&6
12034   if test "$hard_links" = no; then
12035     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12036 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12037     need_locks=warn
12038   fi
12039 else
12040   need_locks=no
12041 fi
12042
12043
12044
12045     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12047
12048   runpath_var=
12049   allow_undefined_flag_FC=
12050   always_export_symbols_FC=no
12051   archive_cmds_FC=
12052   archive_expsym_cmds_FC=
12053   compiler_needs_object_FC=no
12054   enable_shared_with_static_runtimes_FC=no
12055   export_dynamic_flag_spec_FC=
12056   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12057   hardcode_automatic_FC=no
12058   hardcode_direct_FC=no
12059   hardcode_direct_absolute_FC=no
12060   hardcode_libdir_flag_spec_FC=
12061   hardcode_libdir_flag_spec_ld_FC=
12062   hardcode_libdir_separator_FC=
12063   hardcode_minus_L_FC=no
12064   hardcode_shlibpath_var_FC=unsupported
12065   inherit_rpath_FC=no
12066   link_all_deplibs_FC=unknown
12067   module_cmds_FC=
12068   module_expsym_cmds_FC=
12069   old_archive_from_new_cmds_FC=
12070   old_archive_from_expsyms_cmds_FC=
12071   thread_safe_flag_spec_FC=
12072   whole_archive_flag_spec_FC=
12073   # include_expsyms should be a list of space-separated symbols to be *always*
12074   # included in the symbol list
12075   include_expsyms_FC=
12076   # exclude_expsyms can be an extended regexp of symbols to exclude
12077   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12078   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12079   # as well as any symbol that contains `d'.
12080   exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12081   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12082   # platforms (ab)use it in PIC code, but their linkers get confused if
12083   # the symbol is explicitly referenced.  Since portable code cannot
12084   # rely on this symbol name, it's probably fine to never include it in
12085   # preloaded symbol tables.
12086   # Exclude shared library initialization/finalization symbols.
12087   extract_expsyms_cmds=
12088
12089   case $host_os in
12090   cygwin* | mingw* | pw32* | cegcc*)
12091     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12092     # When not using gcc, we currently assume that we are using
12093     # Microsoft Visual C++.
12094     if test "$GCC" != yes; then
12095       with_gnu_ld=no
12096     fi
12097     ;;
12098   interix*)
12099     # we just hope/assume this is gcc and not c89 (= MSVC++)
12100     with_gnu_ld=yes
12101     ;;
12102   openbsd*)
12103     with_gnu_ld=no
12104     ;;
12105   esac
12106
12107   ld_shlibs_FC=yes
12108   if test "$with_gnu_ld" = yes; then
12109     # If archive_cmds runs LD, not CC, wlarc should be empty
12110     wlarc='${wl}'
12111
12112     # Set some defaults for GNU ld with shared library support. These
12113     # are reset later if shared libraries are not supported. Putting them
12114     # here allows them to be overridden if necessary.
12115     runpath_var=LD_RUN_PATH
12116     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12117     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12118     # ancient GNU ld didn't support --whole-archive et. al.
12119     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12120       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12121     else
12122       whole_archive_flag_spec_FC=
12123     fi
12124     supports_anon_versioning=no
12125     case `$LD -v 2>&1` in
12126       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12127       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12128       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12129       *\ 2.11.*) ;; # other 2.11 versions
12130       *) supports_anon_versioning=yes ;;
12131     esac
12132
12133     # See if GNU ld supports shared libraries.
12134     case $host_os in
12135     aix[3-9]*)
12136       # On AIX/PPC, the GNU linker is very broken
12137       if test "$host_cpu" != ia64; then
12138         ld_shlibs_FC=no
12139         cat <<_LT_EOF 1>&2
12140
12141 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12142 *** to be unable to reliably create shared libraries on AIX.
12143 *** Therefore, libtool is disabling shared libraries support.  If you
12144 *** really care for shared libraries, you may want to modify your PATH
12145 *** so that a non-GNU linker is found, and then restart.
12146
12147 _LT_EOF
12148       fi
12149       ;;
12150
12151     amigaos*)
12152       case $host_cpu in
12153       powerpc)
12154             # see comment about AmigaOS4 .so support
12155             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156             archive_expsym_cmds_FC=''
12157         ;;
12158       m68k)
12159             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)'
12160             hardcode_libdir_flag_spec_FC='-L$libdir'
12161             hardcode_minus_L_FC=yes
12162         ;;
12163       esac
12164       ;;
12165
12166     beos*)
12167       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12168         allow_undefined_flag_FC=unsupported
12169         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12170         # support --undefined.  This deserves some investigation.  FIXME
12171         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172       else
12173         ld_shlibs_FC=no
12174       fi
12175       ;;
12176
12177     cygwin* | mingw* | pw32* | cegcc*)
12178       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12179       # as there is no search path for DLLs.
12180       hardcode_libdir_flag_spec_FC='-L$libdir'
12181       allow_undefined_flag_FC=unsupported
12182       always_export_symbols_FC=no
12183       enable_shared_with_static_runtimes_FC=yes
12184       export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12185
12186       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12187         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12188         # If the export-symbols file already is a .def file (1st line
12189         # is EXPORTS), use it as is; otherwise, prepend...
12190         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12191           cp $export_symbols $output_objdir/$soname.def;
12192         else
12193           echo EXPORTS > $output_objdir/$soname.def;
12194           cat $export_symbols >> $output_objdir/$soname.def;
12195         fi~
12196         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12197       else
12198         ld_shlibs_FC=no
12199       fi
12200       ;;
12201
12202     interix[3-9]*)
12203       hardcode_direct_FC=no
12204       hardcode_shlibpath_var_FC=no
12205       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12206       export_dynamic_flag_spec_FC='${wl}-E'
12207       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12208       # Instead, shared libraries are loaded at an image base (0x10000000 by
12209       # default) and relocated if they conflict, which is a slow very memory
12210       # consuming and fragmenting process.  To avoid this, we pick a random,
12211       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12212       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12213       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'
12214       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'
12215       ;;
12216
12217     gnu* | linux* | tpf* | k*bsd*-gnu)
12218       tmp_diet=no
12219       if test "$host_os" = linux-dietlibc; then
12220         case $cc_basename in
12221           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12222         esac
12223       fi
12224       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12225          && test "$tmp_diet" = no
12226       then
12227         tmp_addflag=
12228         tmp_sharedflag='-shared'
12229         case $cc_basename,$host_cpu in
12230         pgcc*)                          # Portland Group C compiler
12231           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'
12232           tmp_addflag=' $pic_flag'
12233           ;;
12234         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12235           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'
12236           tmp_addflag=' $pic_flag -Mnomain' ;;
12237         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12238           tmp_addflag=' -i_dynamic' ;;
12239         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12240           tmp_addflag=' -i_dynamic -nofor_main' ;;
12241         ifc* | ifort*)                  # Intel Fortran compiler
12242           tmp_addflag=' -nofor_main' ;;
12243         lf95*)                          # Lahey Fortran 8.1
12244           whole_archive_flag_spec_FC=
12245           tmp_sharedflag='--shared' ;;
12246         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
12247           tmp_sharedflag='-qmkshrobj'
12248           tmp_addflag= ;;
12249         esac
12250         case `$CC -V 2>&1 | sed 5q` in
12251         *Sun\ C*)                       # Sun C 5.9
12252           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'
12253           compiler_needs_object_FC=yes
12254           tmp_sharedflag='-G' ;;
12255         *Sun\ F*)                       # Sun Fortran 8.3
12256           tmp_sharedflag='-G' ;;
12257         esac
12258         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259
12260         if test "x$supports_anon_versioning" = xyes; then
12261           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12262             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12263             echo "local: *; };" >> $output_objdir/$libname.ver~
12264             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12265         fi
12266
12267         case $cc_basename in
12268         xlf*)
12269           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12270           whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12271           hardcode_libdir_flag_spec_FC=
12272           hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12273           archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12274           if test "x$supports_anon_versioning" = xyes; then
12275             archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12276               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12277               echo "local: *; };" >> $output_objdir/$libname.ver~
12278               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12279           fi
12280           ;;
12281         esac
12282       else
12283         ld_shlibs_FC=no
12284       fi
12285       ;;
12286
12287     netbsd*)
12288       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12289         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12290         wlarc=
12291       else
12292         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12293         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12294       fi
12295       ;;
12296
12297     solaris*)
12298       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12299         ld_shlibs_FC=no
12300         cat <<_LT_EOF 1>&2
12301
12302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12303 *** create shared libraries on Solaris systems.  Therefore, libtool
12304 *** is disabling shared libraries support.  We urge you to upgrade GNU
12305 *** binutils to release 2.9.1 or newer.  Another option is to modify
12306 *** your PATH or compiler configuration so that the native linker is
12307 *** used, and then restart.
12308
12309 _LT_EOF
12310       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12311         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12312         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12313       else
12314         ld_shlibs_FC=no
12315       fi
12316       ;;
12317
12318     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12319       case `$LD -v 2>&1` in
12320         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12321         ld_shlibs_FC=no
12322         cat <<_LT_EOF 1>&2
12323
12324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12325 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12326 *** is disabling shared libraries support.  We urge you to upgrade GNU
12327 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12328 *** your PATH or compiler configuration so that the native linker is
12329 *** used, and then restart.
12330
12331 _LT_EOF
12332         ;;
12333         *)
12334           # For security reasons, it is highly recommended that you always
12335           # use absolute paths for naming shared libraries, and exclude the
12336           # DT_RUNPATH tag from executables and libraries.  But doing so
12337           # requires that you compile everything twice, which is a pain.
12338           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12339             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12340             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12341             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12342           else
12343             ld_shlibs_FC=no
12344           fi
12345         ;;
12346       esac
12347       ;;
12348
12349     sunos4*)
12350       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12351       wlarc=
12352       hardcode_direct_FC=yes
12353       hardcode_shlibpath_var_FC=no
12354       ;;
12355
12356     *)
12357       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12358         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12359         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12360       else
12361         ld_shlibs_FC=no
12362       fi
12363       ;;
12364     esac
12365
12366     if test "$ld_shlibs_FC" = no; then
12367       runpath_var=
12368       hardcode_libdir_flag_spec_FC=
12369       export_dynamic_flag_spec_FC=
12370       whole_archive_flag_spec_FC=
12371     fi
12372   else
12373     # PORTME fill in a description of your system's linker (not GNU ld)
12374     case $host_os in
12375     aix3*)
12376       allow_undefined_flag_FC=unsupported
12377       always_export_symbols_FC=yes
12378       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'
12379       # Note: this linker hardcodes the directories in LIBPATH if there
12380       # are no directories specified by -L.
12381       hardcode_minus_L_FC=yes
12382       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12383         # Neither direct hardcoding nor static linking is supported with a
12384         # broken collect2.
12385         hardcode_direct_FC=unsupported
12386       fi
12387       ;;
12388
12389     aix[4-9]*)
12390       if test "$host_cpu" = ia64; then
12391         # On IA64, the linker does run time linking by default, so we don't
12392         # have to do anything special.
12393         aix_use_runtimelinking=no
12394         exp_sym_flag='-Bexport'
12395         no_entry_flag=""
12396       else
12397         # If we're using GNU nm, then we don't want the "-C" option.
12398         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12399         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12400           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'
12401         else
12402           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'
12403         fi
12404         aix_use_runtimelinking=no
12405
12406         # Test if we are trying to use run time linking or normal
12407         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12408         # need to do runtime linking.
12409         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12410           for ld_flag in $LDFLAGS; do
12411           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12412             aix_use_runtimelinking=yes
12413             break
12414           fi
12415           done
12416           ;;
12417         esac
12418
12419         exp_sym_flag='-bexport'
12420         no_entry_flag='-bnoentry'
12421       fi
12422
12423       # When large executables or shared objects are built, AIX ld can
12424       # have problems creating the table of contents.  If linking a library
12425       # or program results in "error TOC overflow" add -mminimal-toc to
12426       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12427       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12428
12429       archive_cmds_FC=''
12430       hardcode_direct_FC=yes
12431       hardcode_direct_absolute_FC=yes
12432       hardcode_libdir_separator_FC=':'
12433       link_all_deplibs_FC=yes
12434       file_list_spec_FC='${wl}-f,'
12435
12436       if test "$GCC" = yes; then
12437         case $host_os in aix4.[012]|aix4.[012].*)
12438         # We only want to do this on AIX 4.2 and lower, the check
12439         # below for broken collect2 doesn't work under 4.3+
12440           collect2name=`${CC} -print-prog-name=collect2`
12441           if test -f "$collect2name" &&
12442            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12443           then
12444           # We have reworked collect2
12445           :
12446           else
12447           # We have old collect2
12448           hardcode_direct_FC=unsupported
12449           # It fails to find uninstalled libraries when the uninstalled
12450           # path is not listed in the libpath.  Setting hardcode_minus_L
12451           # to unsupported forces relinking
12452           hardcode_minus_L_FC=yes
12453           hardcode_libdir_flag_spec_FC='-L$libdir'
12454           hardcode_libdir_separator_FC=
12455           fi
12456           ;;
12457         esac
12458         shared_flag='-shared'
12459         if test "$aix_use_runtimelinking" = yes; then
12460           shared_flag="$shared_flag "'${wl}-G'
12461         fi
12462       else
12463         # not using gcc
12464         if test "$host_cpu" = ia64; then
12465         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12466         # chokes on -Wl,-G. The following line is correct:
12467           shared_flag='-G'
12468         else
12469           if test "$aix_use_runtimelinking" = yes; then
12470             shared_flag='${wl}-G'
12471           else
12472             shared_flag='${wl}-bM:SRE'
12473           fi
12474         fi
12475       fi
12476
12477       export_dynamic_flag_spec_FC='${wl}-bexpall'
12478       # It seems that -bexpall does not export symbols beginning with
12479       # underscore (_), so it is better to generate a list of symbols to export.
12480       always_export_symbols_FC=yes
12481       if test "$aix_use_runtimelinking" = yes; then
12482         # Warning - without using the other runtime loading flags (-brtl),
12483         # -berok will link without error, but may produce a broken library.
12484         allow_undefined_flag_FC='-berok'
12485         # Determine the default libpath from the value encoded in an
12486         # empty executable.
12487         cat >conftest.$ac_ext <<_ACEOF
12488       program main
12489
12490       end
12491 _ACEOF
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12494   (eval $ac_link) 2>conftest.er1
12495   ac_status=$?
12496   grep -v '^ *+' conftest.er1 >conftest.err
12497   rm -f conftest.er1
12498   cat conftest.err >&5
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } &&
12501          { ac_try='test -z "$ac_fc_werror_flag"
12502                          || test ! -s conftest.err'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; } &&
12508          { ac_try='test -s conftest$ac_exeext'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514
12515 lt_aix_libpath_sed='
12516     /Import File Strings/,/^$/ {
12517         /^0/ {
12518             s/^0  *\(.*\)$/\1/
12519             p
12520         }
12521     }'
12522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12523 # Check for a 64-bit object if we didn't find anything.
12524 if test -z "$aix_libpath"; then
12525   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12526 fi
12527 else
12528   echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 fi
12532 rm -f conftest.err conftest.$ac_objext \
12533       conftest$ac_exeext conftest.$ac_ext
12534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12535
12536         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12537         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"
12538       else
12539         if test "$host_cpu" = ia64; then
12540           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
12541           allow_undefined_flag_FC="-z nodefs"
12542           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"
12543         else
12544          # Determine the default libpath from the value encoded in an
12545          # empty executable.
12546          cat >conftest.$ac_ext <<_ACEOF
12547       program main
12548
12549       end
12550 _ACEOF
12551 rm -f conftest.$ac_objext conftest$ac_exeext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12553   (eval $ac_link) 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -z "$ac_fc_werror_flag"
12561                          || test ! -s conftest.err'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; } &&
12567          { ac_try='test -s conftest$ac_exeext'
12568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569   (eval $ac_try) 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; }; then
12573
12574 lt_aix_libpath_sed='
12575     /Import File Strings/,/^$/ {
12576         /^0/ {
12577             s/^0  *\(.*\)$/\1/
12578             p
12579         }
12580     }'
12581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12582 # Check for a 64-bit object if we didn't find anything.
12583 if test -z "$aix_libpath"; then
12584   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12585 fi
12586 else
12587   echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12589
12590 fi
12591 rm -f conftest.err conftest.$ac_objext \
12592       conftest$ac_exeext conftest.$ac_ext
12593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12594
12595          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12596           # Warning - without using the other run time loading flags,
12597           # -berok will link without error, but may produce a broken library.
12598           no_undefined_flag_FC=' ${wl}-bernotok'
12599           allow_undefined_flag_FC=' ${wl}-berok'
12600           # Exported symbols can be pulled into shared objects from archives
12601           whole_archive_flag_spec_FC='$convenience'
12602           archive_cmds_need_lc_FC=yes
12603           # This is similar to how AIX traditionally builds its shared libraries.
12604           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'
12605         fi
12606       fi
12607       ;;
12608
12609     amigaos*)
12610       case $host_cpu in
12611       powerpc)
12612             # see comment about AmigaOS4 .so support
12613             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12614             archive_expsym_cmds_FC=''
12615         ;;
12616       m68k)
12617             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)'
12618             hardcode_libdir_flag_spec_FC='-L$libdir'
12619             hardcode_minus_L_FC=yes
12620         ;;
12621       esac
12622       ;;
12623
12624     bsdi[45]*)
12625       export_dynamic_flag_spec_FC=-rdynamic
12626       ;;
12627
12628     cygwin* | mingw* | pw32* | cegcc*)
12629       # When not using gcc, we currently assume that we are using
12630       # Microsoft Visual C++.
12631       # hardcode_libdir_flag_spec is actually meaningless, as there is
12632       # no search path for DLLs.
12633       hardcode_libdir_flag_spec_FC=' '
12634       allow_undefined_flag_FC=unsupported
12635       # Tell ltmain to make .lib files, not .a files.
12636       libext=lib
12637       # Tell ltmain to make .dll files, not .so files.
12638       shrext_cmds=".dll"
12639       # FIXME: Setting linknames here is a bad hack.
12640       archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12641       # The linker will automatically build a .lib file if we build a DLL.
12642       old_archive_from_new_cmds_FC='true'
12643       # FIXME: Should let the user specify the lib program.
12644       old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
12645       fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
12646       enable_shared_with_static_runtimes_FC=yes
12647       ;;
12648
12649     darwin* | rhapsody*)
12650
12651
12652   archive_cmds_need_lc_FC=no
12653   hardcode_direct_FC=no
12654   hardcode_automatic_FC=yes
12655   hardcode_shlibpath_var_FC=unsupported
12656   whole_archive_flag_spec_FC=''
12657   link_all_deplibs_FC=yes
12658   allow_undefined_flag_FC="$_lt_dar_allow_undefined"
12659   case $cc_basename in
12660      ifort*) _lt_dar_can_shared=yes ;;
12661      *) _lt_dar_can_shared=$GCC ;;
12662   esac
12663   if test "$_lt_dar_can_shared" = "yes"; then
12664     output_verbose_link_cmd=echo
12665     archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12666     module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12667     archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12668     module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12669
12670   else
12671   ld_shlibs_FC=no
12672   fi
12673
12674       ;;
12675
12676     dgux*)
12677       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12678       hardcode_libdir_flag_spec_FC='-L$libdir'
12679       hardcode_shlibpath_var_FC=no
12680       ;;
12681
12682     freebsd1*)
12683       ld_shlibs_FC=no
12684       ;;
12685
12686     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12687     # support.  Future versions do this automatically, but an explicit c++rt0.o
12688     # does not break anything, and helps significantly (at the cost of a little
12689     # extra space).
12690     freebsd2.2*)
12691       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12692       hardcode_libdir_flag_spec_FC='-R$libdir'
12693       hardcode_direct_FC=yes
12694       hardcode_shlibpath_var_FC=no
12695       ;;
12696
12697     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12698     freebsd2*)
12699       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12700       hardcode_direct_FC=yes
12701       hardcode_minus_L_FC=yes
12702       hardcode_shlibpath_var_FC=no
12703       ;;
12704
12705     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12706     freebsd* | dragonfly*)
12707       archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12708       hardcode_libdir_flag_spec_FC='-R$libdir'
12709       hardcode_direct_FC=yes
12710       hardcode_shlibpath_var_FC=no
12711       ;;
12712
12713     hpux9*)
12714       if test "$GCC" = yes; then
12715         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'
12716       else
12717         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'
12718       fi
12719       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12720       hardcode_libdir_separator_FC=:
12721       hardcode_direct_FC=yes
12722
12723       # hardcode_minus_L: Not really in the search PATH,
12724       # but as the default location of the library.
12725       hardcode_minus_L_FC=yes
12726       export_dynamic_flag_spec_FC='${wl}-E'
12727       ;;
12728
12729     hpux10*)
12730       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12731         archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12732       else
12733         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12734       fi
12735       if test "$with_gnu_ld" = no; then
12736         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12737         hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12738         hardcode_libdir_separator_FC=:
12739         hardcode_direct_FC=yes
12740         hardcode_direct_absolute_FC=yes
12741         export_dynamic_flag_spec_FC='${wl}-E'
12742         # hardcode_minus_L: Not really in the search PATH,
12743         # but as the default location of the library.
12744         hardcode_minus_L_FC=yes
12745       fi
12746       ;;
12747
12748     hpux11*)
12749       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12750         case $host_cpu in
12751         hppa*64*)
12752           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12753           ;;
12754         ia64*)
12755           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12756           ;;
12757         *)
12758           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12759           ;;
12760         esac
12761       else
12762         case $host_cpu in
12763         hppa*64*)
12764           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12765           ;;
12766         ia64*)
12767           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12768           ;;
12769         *)
12770           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12771           ;;
12772         esac
12773       fi
12774       if test "$with_gnu_ld" = no; then
12775         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12776         hardcode_libdir_separator_FC=:
12777
12778         case $host_cpu in
12779         hppa*64*|ia64*)
12780           hardcode_direct_FC=no
12781           hardcode_shlibpath_var_FC=no
12782           ;;
12783         *)
12784           hardcode_direct_FC=yes
12785           hardcode_direct_absolute_FC=yes
12786           export_dynamic_flag_spec_FC='${wl}-E'
12787
12788           # hardcode_minus_L: Not really in the search PATH,
12789           # but as the default location of the library.
12790           hardcode_minus_L_FC=yes
12791           ;;
12792         esac
12793       fi
12794       ;;
12795
12796     irix5* | irix6* | nonstopux*)
12797       if test "$GCC" = yes; then
12798         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'
12799         # Try to use the -exported_symbol ld option, if it does not
12800         # work, assume that -exports_file does not work either and
12801         # implicitly export all symbols.
12802         save_LDFLAGS="$LDFLAGS"
12803         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12804         cat >conftest.$ac_ext <<_ACEOF
12805 int foo(void) {}
12806 _ACEOF
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809   (eval $ac_link) 2>conftest.er1
12810   ac_status=$?
12811   grep -v '^ *+' conftest.er1 >conftest.err
12812   rm -f conftest.er1
12813   cat conftest.err >&5
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); } &&
12816          { ac_try='test -z "$ac_fc_werror_flag"
12817                          || test ! -s conftest.err'
12818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819   (eval $ac_try) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; } &&
12823          { ac_try='test -s conftest$ac_exeext'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; }; then
12829   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'
12830
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 fi
12836 rm -f conftest.err conftest.$ac_objext \
12837       conftest$ac_exeext conftest.$ac_ext
12838         LDFLAGS="$save_LDFLAGS"
12839       else
12840         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'
12841         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'
12842       fi
12843       archive_cmds_need_lc_FC='no'
12844       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12845       hardcode_libdir_separator_FC=:
12846       inherit_rpath_FC=yes
12847       link_all_deplibs_FC=yes
12848       ;;
12849
12850     netbsd*)
12851       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12852         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12853       else
12854         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12855       fi
12856       hardcode_libdir_flag_spec_FC='-R$libdir'
12857       hardcode_direct_FC=yes
12858       hardcode_shlibpath_var_FC=no
12859       ;;
12860
12861     newsos6)
12862       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12863       hardcode_direct_FC=yes
12864       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12865       hardcode_libdir_separator_FC=:
12866       hardcode_shlibpath_var_FC=no
12867       ;;
12868
12869     *nto* | *qnx*)
12870       ;;
12871
12872     openbsd*)
12873       if test -f /usr/libexec/ld.so; then
12874         hardcode_direct_FC=yes
12875         hardcode_shlibpath_var_FC=no
12876         hardcode_direct_absolute_FC=yes
12877         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12878           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12879           archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12880           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12881           export_dynamic_flag_spec_FC='${wl}-E'
12882         else
12883           case $host_os in
12884            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12885              archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12886              hardcode_libdir_flag_spec_FC='-R$libdir'
12887              ;;
12888            *)
12889              archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12890              hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12891              ;;
12892           esac
12893         fi
12894       else
12895         ld_shlibs_FC=no
12896       fi
12897       ;;
12898
12899     os2*)
12900       hardcode_libdir_flag_spec_FC='-L$libdir'
12901       hardcode_minus_L_FC=yes
12902       allow_undefined_flag_FC=unsupported
12903       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'
12904       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12905       ;;
12906
12907     osf3*)
12908       if test "$GCC" = yes; then
12909         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12910         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'
12911       else
12912         allow_undefined_flag_FC=' -expect_unresolved \*'
12913         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'
12914       fi
12915       archive_cmds_need_lc_FC='no'
12916       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12917       hardcode_libdir_separator_FC=:
12918       ;;
12919
12920     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12921       if test "$GCC" = yes; then
12922         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12923         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'
12924         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12925       else
12926         allow_undefined_flag_FC=' -expect_unresolved \*'
12927         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'
12928         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~
12929         $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'
12930
12931         # Both c and cxx compiler support -rpath directly
12932         hardcode_libdir_flag_spec_FC='-rpath $libdir'
12933       fi
12934       archive_cmds_need_lc_FC='no'
12935       hardcode_libdir_separator_FC=:
12936       ;;
12937
12938     solaris*)
12939       no_undefined_flag_FC=' -z defs'
12940       if test "$GCC" = yes; then
12941         wlarc='${wl}'
12942         archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12943         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12944           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12945       else
12946         case `$CC -V 2>&1` in
12947         *"Compilers 5.0"*)
12948           wlarc=''
12949           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12950           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12951           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12952           ;;
12953         *)
12954           wlarc='${wl}'
12955           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12956           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12957           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12958           ;;
12959         esac
12960       fi
12961       hardcode_libdir_flag_spec_FC='-R$libdir'
12962       hardcode_shlibpath_var_FC=no
12963       case $host_os in
12964       solaris2.[0-5] | solaris2.[0-5].*) ;;
12965       *)
12966         # The compiler driver will combine and reorder linker options,
12967         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12968         # but is careful enough not to reorder.
12969         # Supported since Solaris 2.6 (maybe 2.5.1?)
12970         if test "$GCC" = yes; then
12971           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12972         else
12973           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12974         fi
12975         ;;
12976       esac
12977       link_all_deplibs_FC=yes
12978       ;;
12979
12980     sunos4*)
12981       if test "x$host_vendor" = xsequent; then
12982         # Use $CC to link under sequent, because it throws in some extra .o
12983         # files that make .init and .fini sections work.
12984         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12985       else
12986         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12987       fi
12988       hardcode_libdir_flag_spec_FC='-L$libdir'
12989       hardcode_direct_FC=yes
12990       hardcode_minus_L_FC=yes
12991       hardcode_shlibpath_var_FC=no
12992       ;;
12993
12994     sysv4)
12995       case $host_vendor in
12996         sni)
12997           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12998           hardcode_direct_FC=yes # is this really true???
12999         ;;
13000         siemens)
13001           ## LD is ld it makes a PLAMLIB
13002           ## CC just makes a GrossModule.
13003           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13004           reload_cmds_FC='$CC -r -o $output$reload_objs'
13005           hardcode_direct_FC=no
13006         ;;
13007         motorola)
13008           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13009           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13010         ;;
13011       esac
13012       runpath_var='LD_RUN_PATH'
13013       hardcode_shlibpath_var_FC=no
13014       ;;
13015
13016     sysv4.3*)
13017       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13018       hardcode_shlibpath_var_FC=no
13019       export_dynamic_flag_spec_FC='-Bexport'
13020       ;;
13021
13022     sysv4*MP*)
13023       if test -d /usr/nec; then
13024         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13025         hardcode_shlibpath_var_FC=no
13026         runpath_var=LD_RUN_PATH
13027         hardcode_runpath_var=yes
13028         ld_shlibs_FC=yes
13029       fi
13030       ;;
13031
13032     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13033       no_undefined_flag_FC='${wl}-z,text'
13034       archive_cmds_need_lc_FC=no
13035       hardcode_shlibpath_var_FC=no
13036       runpath_var='LD_RUN_PATH'
13037
13038       if test "$GCC" = yes; then
13039         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13040         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13041       else
13042         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13043         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13044       fi
13045       ;;
13046
13047     sysv5* | sco3.2v5* | sco5v6*)
13048       # Note: We can NOT use -z defs as we might desire, because we do not
13049       # link with -lc, and that would cause any symbols used from libc to
13050       # always be unresolved, which means just about no library would
13051       # ever link correctly.  If we're not using GNU ld we use -z text
13052       # though, which does catch some bad symbols but isn't as heavy-handed
13053       # as -z defs.
13054       no_undefined_flag_FC='${wl}-z,text'
13055       allow_undefined_flag_FC='${wl}-z,nodefs'
13056       archive_cmds_need_lc_FC=no
13057       hardcode_shlibpath_var_FC=no
13058       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13059       hardcode_libdir_separator_FC=':'
13060       link_all_deplibs_FC=yes
13061       export_dynamic_flag_spec_FC='${wl}-Bexport'
13062       runpath_var='LD_RUN_PATH'
13063
13064       if test "$GCC" = yes; then
13065         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13067       else
13068         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13069         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070       fi
13071       ;;
13072
13073     uts4*)
13074       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13075       hardcode_libdir_flag_spec_FC='-L$libdir'
13076       hardcode_shlibpath_var_FC=no
13077       ;;
13078
13079     *)
13080       ld_shlibs_FC=no
13081       ;;
13082     esac
13083
13084     if test x$host_vendor = xsni; then
13085       case $host in
13086       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13087         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13088         ;;
13089       esac
13090     fi
13091   fi
13092
13093 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
13094 echo "${ECHO_T}$ld_shlibs_FC" >&6
13095 test "$ld_shlibs_FC" = no && can_build_shared=no
13096
13097 with_gnu_ld_FC=$with_gnu_ld
13098
13099
13100
13101
13102
13103
13104 #
13105 # Do we need to explicitly link libc?
13106 #
13107 case "x$archive_cmds_need_lc_FC" in
13108 x|xyes)
13109   # Assume -lc should be added
13110   archive_cmds_need_lc_FC=yes
13111
13112   if test "$enable_shared" = yes && test "$GCC" = yes; then
13113     case $archive_cmds_FC in
13114     *'~'*)
13115       # FIXME: we may have to deal with multi-command sequences.
13116       ;;
13117     '$CC '*)
13118       # Test whether the compiler implicitly links with -lc since on some
13119       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13120       # to ld, don't add -lc before -lgcc.
13121       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13122 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13123 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126   $RM conftest*
13127         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13128
13129         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13130   (eval $ac_compile) 2>&5
13131   ac_status=$?
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); } 2>conftest.err; then
13134           soname=conftest
13135           lib=conftest
13136           libobjs=conftest.$ac_objext
13137           deplibs=
13138           wl=$lt_prog_compiler_wl_FC
13139           pic_flag=$lt_prog_compiler_pic_FC
13140           compiler_flags=-v
13141           linker_flags=-v
13142           verstring=
13143           output_objdir=.
13144           libname=conftest
13145           lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13146           allow_undefined_flag_FC=
13147           if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13148   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }
13152           then
13153             lt_cv_archive_cmds_need_lc_FC=no
13154           else
13155             lt_cv_archive_cmds_need_lc_FC=yes
13156           fi
13157           allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13158         else
13159           cat conftest.err 1>&5
13160         fi
13161         $RM conftest*
13162
13163 fi
13164 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13165 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_FC" >&6
13166       archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13167       ;;
13168     esac
13169   fi
13170   ;;
13171 esac
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13237 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13238
13239 library_names_spec=
13240 libname_spec='lib$name'
13241 soname_spec=
13242 shrext_cmds=".so"
13243 postinstall_cmds=
13244 postuninstall_cmds=
13245 finish_cmds=
13246 finish_eval=
13247 shlibpath_var=
13248 shlibpath_overrides_runpath=unknown
13249 version_type=none
13250 dynamic_linker="$host_os ld.so"
13251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13252 need_lib_prefix=unknown
13253 hardcode_into_libs=no
13254
13255 # when you set need_version to no, make sure it does not cause -set_version
13256 # flags to be left without arguments
13257 need_version=unknown
13258
13259 case $host_os in
13260 aix3*)
13261   version_type=linux
13262   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13263   shlibpath_var=LIBPATH
13264
13265   # AIX 3 has no versioning support, so we append a major version to the name.
13266   soname_spec='${libname}${release}${shared_ext}$major'
13267   ;;
13268
13269 aix[4-9]*)
13270   version_type=linux
13271   need_lib_prefix=no
13272   need_version=no
13273   hardcode_into_libs=yes
13274   if test "$host_cpu" = ia64; then
13275     # AIX 5 supports IA64
13276     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13277     shlibpath_var=LD_LIBRARY_PATH
13278   else
13279     # With GCC up to 2.95.x, collect2 would create an import file
13280     # for dependence libraries.  The import file would start with
13281     # the line `#! .'.  This would cause the generated library to
13282     # depend on `.', always an invalid library.  This was fixed in
13283     # development snapshots of GCC prior to 3.0.
13284     case $host_os in
13285       aix4 | aix4.[01] | aix4.[01].*)
13286       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13287            echo ' yes '
13288            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13289         :
13290       else
13291         can_build_shared=no
13292       fi
13293       ;;
13294     esac
13295     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13296     # soname into executable. Probably we can add versioning support to
13297     # collect2, so additional links can be useful in future.
13298     if test "$aix_use_runtimelinking" = yes; then
13299       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13300       # instead of lib<name>.a to let people know that these are not
13301       # typical AIX shared libraries.
13302       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303     else
13304       # We preserve .a as extension for shared libraries through AIX4.2
13305       # and later when we are not doing run time linking.
13306       library_names_spec='${libname}${release}.a $libname.a'
13307       soname_spec='${libname}${release}${shared_ext}$major'
13308     fi
13309     shlibpath_var=LIBPATH
13310   fi
13311   ;;
13312
13313 amigaos*)
13314   case $host_cpu in
13315   powerpc)
13316     # Since July 2007 AmigaOS4 officially supports .so libraries.
13317     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13319     ;;
13320   m68k)
13321     library_names_spec='$libname.ixlibrary $libname.a'
13322     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13323     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'
13324     ;;
13325   esac
13326   ;;
13327
13328 beos*)
13329   library_names_spec='${libname}${shared_ext}'
13330   dynamic_linker="$host_os ld.so"
13331   shlibpath_var=LIBRARY_PATH
13332   ;;
13333
13334 bsdi[45]*)
13335   version_type=linux
13336   need_version=no
13337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338   soname_spec='${libname}${release}${shared_ext}$major'
13339   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13340   shlibpath_var=LD_LIBRARY_PATH
13341   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13342   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13343   # the default ld.so.conf also contains /usr/contrib/lib and
13344   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13345   # libtool to hard-code these into programs
13346   ;;
13347
13348 cygwin* | mingw* | pw32* | cegcc*)
13349   version_type=windows
13350   shrext_cmds=".dll"
13351   need_version=no
13352   need_lib_prefix=no
13353
13354   case $GCC,$host_os in
13355   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13356     library_names_spec='$libname.dll.a'
13357     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13358     postinstall_cmds='base_file=`basename \${file}`~
13359       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13360       dldir=$destdir/`dirname \$dlpath`~
13361       test -d \$dldir || mkdir -p \$dldir~
13362       $install_prog $dir/$dlname \$dldir/$dlname~
13363       chmod a+x \$dldir/$dlname~
13364       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13365         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13366       fi'
13367     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13368       dlpath=$dir/\$dldll~
13369        $RM \$dlpath'
13370     shlibpath_overrides_runpath=yes
13371
13372     case $host_os in
13373     cygwin*)
13374       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13375       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13376       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13377       ;;
13378     mingw* | cegcc*)
13379       # MinGW DLLs use traditional 'lib' prefix
13380       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13381       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13382       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13383         # It is most probably a Windows format PATH printed by
13384         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13385         # path with ; separators, and with drive letters. We can handle the
13386         # drive letters (cygwin fileutils understands them), so leave them,
13387         # especially as we might pass files found there to a mingw objdump,
13388         # which wouldn't understand a cygwinified path. Ahh.
13389         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13390       else
13391         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13392       fi
13393       ;;
13394     pw32*)
13395       # pw32 DLLs use 'pw' prefix rather than 'lib'
13396       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13397       ;;
13398     esac
13399     ;;
13400
13401   *)
13402     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13403     ;;
13404   esac
13405   dynamic_linker='Win32 ld.exe'
13406   # FIXME: first we should search . and the directory the executable is in
13407   shlibpath_var=PATH
13408   ;;
13409
13410 darwin* | rhapsody*)
13411   dynamic_linker="$host_os dyld"
13412   version_type=darwin
13413   need_lib_prefix=no
13414   need_version=no
13415   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13416   soname_spec='${libname}${release}${major}$shared_ext'
13417   shlibpath_overrides_runpath=yes
13418   shlibpath_var=DYLD_LIBRARY_PATH
13419   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13420
13421   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13422   ;;
13423
13424 dgux*)
13425   version_type=linux
13426   need_lib_prefix=no
13427   need_version=no
13428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13429   soname_spec='${libname}${release}${shared_ext}$major'
13430   shlibpath_var=LD_LIBRARY_PATH
13431   ;;
13432
13433 freebsd1*)
13434   dynamic_linker=no
13435   ;;
13436
13437 freebsd* | dragonfly*)
13438   # DragonFly does not have aout.  When/if they implement a new
13439   # versioning mechanism, adjust this.
13440   if test -x /usr/bin/objformat; then
13441     objformat=`/usr/bin/objformat`
13442   else
13443     case $host_os in
13444     freebsd[123]*) objformat=aout ;;
13445     *) objformat=elf ;;
13446     esac
13447   fi
13448   version_type=freebsd-$objformat
13449   case $version_type in
13450     freebsd-elf*)
13451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13452       need_version=no
13453       need_lib_prefix=no
13454       ;;
13455     freebsd-*)
13456       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13457       need_version=yes
13458       ;;
13459   esac
13460   shlibpath_var=LD_LIBRARY_PATH
13461   case $host_os in
13462   freebsd2*)
13463     shlibpath_overrides_runpath=yes
13464     ;;
13465   freebsd3.[01]* | freebsdelf3.[01]*)
13466     shlibpath_overrides_runpath=yes
13467     hardcode_into_libs=yes
13468     ;;
13469   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13470   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13471     shlibpath_overrides_runpath=no
13472     hardcode_into_libs=yes
13473     ;;
13474   *) # from 4.6 on, and DragonFly
13475     shlibpath_overrides_runpath=yes
13476     hardcode_into_libs=yes
13477     ;;
13478   esac
13479   ;;
13480
13481 gnu*)
13482   version_type=linux
13483   need_lib_prefix=no
13484   need_version=no
13485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13486   soname_spec='${libname}${release}${shared_ext}$major'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   hardcode_into_libs=yes
13489   ;;
13490
13491 hpux9* | hpux10* | hpux11*)
13492   # Give a soname corresponding to the major version so that dld.sl refuses to
13493   # link against other versions.
13494   version_type=sunos
13495   need_lib_prefix=no
13496   need_version=no
13497   case $host_cpu in
13498   ia64*)
13499     shrext_cmds='.so'
13500     hardcode_into_libs=yes
13501     dynamic_linker="$host_os dld.so"
13502     shlibpath_var=LD_LIBRARY_PATH
13503     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505     soname_spec='${libname}${release}${shared_ext}$major'
13506     if test "X$HPUX_IA64_MODE" = X32; then
13507       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13508     else
13509       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13510     fi
13511     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13512     ;;
13513   hppa*64*)
13514     shrext_cmds='.sl'
13515     hardcode_into_libs=yes
13516     dynamic_linker="$host_os dld.sl"
13517     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13518     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520     soname_spec='${libname}${release}${shared_ext}$major'
13521     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13522     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13523     ;;
13524   *)
13525     shrext_cmds='.sl'
13526     dynamic_linker="$host_os dld.sl"
13527     shlibpath_var=SHLIB_PATH
13528     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530     soname_spec='${libname}${release}${shared_ext}$major'
13531     ;;
13532   esac
13533   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13534   postinstall_cmds='chmod 555 $lib'
13535   ;;
13536
13537 interix[3-9]*)
13538   version_type=linux
13539   need_lib_prefix=no
13540   need_version=no
13541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13542   soname_spec='${libname}${release}${shared_ext}$major'
13543   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13544   shlibpath_var=LD_LIBRARY_PATH
13545   shlibpath_overrides_runpath=no
13546   hardcode_into_libs=yes
13547   ;;
13548
13549 irix5* | irix6* | nonstopux*)
13550   case $host_os in
13551     nonstopux*) version_type=nonstopux ;;
13552     *)
13553         if test "$lt_cv_prog_gnu_ld" = yes; then
13554                 version_type=linux
13555         else
13556                 version_type=irix
13557         fi ;;
13558   esac
13559   need_lib_prefix=no
13560   need_version=no
13561   soname_spec='${libname}${release}${shared_ext}$major'
13562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13563   case $host_os in
13564   irix5* | nonstopux*)
13565     libsuff= shlibsuff=
13566     ;;
13567   *)
13568     case $LD in # libtool.m4 will add one of these switches to LD
13569     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13570       libsuff= shlibsuff= libmagic=32-bit;;
13571     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13572       libsuff=32 shlibsuff=N32 libmagic=N32;;
13573     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13574       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13575     *) libsuff= shlibsuff= libmagic=never-match;;
13576     esac
13577     ;;
13578   esac
13579   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13580   shlibpath_overrides_runpath=no
13581   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13582   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13583   hardcode_into_libs=yes
13584   ;;
13585
13586 # No shared lib support for Linux oldld, aout, or coff.
13587 linux*oldld* | linux*aout* | linux*coff*)
13588   dynamic_linker=no
13589   ;;
13590
13591 # This must be Linux ELF.
13592 linux* | k*bsd*-gnu)
13593   version_type=linux
13594   need_lib_prefix=no
13595   need_version=no
13596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597   soname_spec='${libname}${release}${shared_ext}$major'
13598   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13599   shlibpath_var=LD_LIBRARY_PATH
13600   shlibpath_overrides_runpath=no
13601
13602   # Some binutils ld are patched to set DT_RUNPATH
13603   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
13604   echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606   lt_cv_shlibpath_overrides_runpath=no
13607     save_LDFLAGS=$LDFLAGS
13608     save_libdir=$libdir
13609     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
13610          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
13611     cat >conftest.$ac_ext <<_ACEOF
13612       program main
13613
13614       end
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618   (eval $ac_link) 2>conftest.er1
13619   ac_status=$?
13620   grep -v '^ *+' conftest.er1 >conftest.err
13621   rm -f conftest.er1
13622   cat conftest.err >&5
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } &&
13625          { ac_try='test -z "$ac_fc_werror_flag"
13626                          || test ! -s conftest.err'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; } &&
13632          { ac_try='test -s conftest$ac_exeext'
13633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634   (eval $ac_try) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; }; then
13638   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13639   lt_cv_shlibpath_overrides_runpath=yes
13640 fi
13641
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 fi
13647 rm -f conftest.err conftest.$ac_objext \
13648       conftest$ac_exeext conftest.$ac_ext
13649     LDFLAGS=$save_LDFLAGS
13650     libdir=$save_libdir
13651
13652 fi
13653
13654   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13655
13656   # This implies no fast_install, which is unacceptable.
13657   # Some rework will be needed to allow for fast_install
13658   # before this can be enabled.
13659   hardcode_into_libs=yes
13660
13661   # Append ld.so.conf contents to the search path
13662   if test -f /etc/ld.so.conf; then
13663     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13664     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13665   fi
13666
13667   # We used to test for /lib/ld.so.1 and disable shared libraries on
13668   # powerpc, because MkLinux only supported shared libraries with the
13669   # GNU dynamic linker.  Since this was broken with cross compilers,
13670   # most powerpc-linux boxes support dynamic linking these days and
13671   # people can always --disable-shared, the test was removed, and we
13672   # assume the GNU/Linux dynamic linker is in use.
13673   dynamic_linker='GNU/Linux ld.so'
13674   ;;
13675
13676 netbsd*)
13677   version_type=sunos
13678   need_lib_prefix=no
13679   need_version=no
13680   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13682     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13683     dynamic_linker='NetBSD (a.out) ld.so'
13684   else
13685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13686     soname_spec='${libname}${release}${shared_ext}$major'
13687     dynamic_linker='NetBSD ld.elf_so'
13688   fi
13689   shlibpath_var=LD_LIBRARY_PATH
13690   shlibpath_overrides_runpath=yes
13691   hardcode_into_libs=yes
13692   ;;
13693
13694 newsos6)
13695   version_type=linux
13696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697   shlibpath_var=LD_LIBRARY_PATH
13698   shlibpath_overrides_runpath=yes
13699   ;;
13700
13701 *nto* | *qnx*)
13702   version_type=qnx
13703   need_lib_prefix=no
13704   need_version=no
13705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706   soname_spec='${libname}${release}${shared_ext}$major'
13707   shlibpath_var=LD_LIBRARY_PATH
13708   shlibpath_overrides_runpath=no
13709   hardcode_into_libs=yes
13710   dynamic_linker='ldqnx.so'
13711   ;;
13712
13713 openbsd*)
13714   version_type=sunos
13715   sys_lib_dlsearch_path_spec="/usr/lib"
13716   need_lib_prefix=no
13717   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13718   case $host_os in
13719     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13720     *)                          need_version=no  ;;
13721   esac
13722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13724   shlibpath_var=LD_LIBRARY_PATH
13725   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13726     case $host_os in
13727       openbsd2.[89] | openbsd2.[89].*)
13728         shlibpath_overrides_runpath=no
13729         ;;
13730       *)
13731         shlibpath_overrides_runpath=yes
13732         ;;
13733       esac
13734   else
13735     shlibpath_overrides_runpath=yes
13736   fi
13737   ;;
13738
13739 os2*)
13740   libname_spec='$name'
13741   shrext_cmds=".dll"
13742   need_lib_prefix=no
13743   library_names_spec='$libname${shared_ext} $libname.a'
13744   dynamic_linker='OS/2 ld.exe'
13745   shlibpath_var=LIBPATH
13746   ;;
13747
13748 osf3* | osf4* | osf5*)
13749   version_type=osf
13750   need_lib_prefix=no
13751   need_version=no
13752   soname_spec='${libname}${release}${shared_ext}$major'
13753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754   shlibpath_var=LD_LIBRARY_PATH
13755   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13756   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13757   ;;
13758
13759 rdos*)
13760   dynamic_linker=no
13761   ;;
13762
13763 solaris*)
13764   version_type=linux
13765   need_lib_prefix=no
13766   need_version=no
13767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768   soname_spec='${libname}${release}${shared_ext}$major'
13769   shlibpath_var=LD_LIBRARY_PATH
13770   shlibpath_overrides_runpath=yes
13771   hardcode_into_libs=yes
13772   # ldd complains unless libraries are executable
13773   postinstall_cmds='chmod +x $lib'
13774   ;;
13775
13776 sunos4*)
13777   version_type=sunos
13778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13779   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13780   shlibpath_var=LD_LIBRARY_PATH
13781   shlibpath_overrides_runpath=yes
13782   if test "$with_gnu_ld" = yes; then
13783     need_lib_prefix=no
13784   fi
13785   need_version=yes
13786   ;;
13787
13788 sysv4 | sysv4.3*)
13789   version_type=linux
13790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13791   soname_spec='${libname}${release}${shared_ext}$major'
13792   shlibpath_var=LD_LIBRARY_PATH
13793   case $host_vendor in
13794     sni)
13795       shlibpath_overrides_runpath=no
13796       need_lib_prefix=no
13797       runpath_var=LD_RUN_PATH
13798       ;;
13799     siemens)
13800       need_lib_prefix=no
13801       ;;
13802     motorola)
13803       need_lib_prefix=no
13804       need_version=no
13805       shlibpath_overrides_runpath=no
13806       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13807       ;;
13808   esac
13809   ;;
13810
13811 sysv4*MP*)
13812   if test -d /usr/nec ;then
13813     version_type=linux
13814     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13815     soname_spec='$libname${shared_ext}.$major'
13816     shlibpath_var=LD_LIBRARY_PATH
13817   fi
13818   ;;
13819
13820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13821   version_type=freebsd-elf
13822   need_lib_prefix=no
13823   need_version=no
13824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13825   soname_spec='${libname}${release}${shared_ext}$major'
13826   shlibpath_var=LD_LIBRARY_PATH
13827   shlibpath_overrides_runpath=yes
13828   hardcode_into_libs=yes
13829   if test "$with_gnu_ld" = yes; then
13830     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13831   else
13832     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13833     case $host_os in
13834       sco3.2v5*)
13835         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13836         ;;
13837     esac
13838   fi
13839   sys_lib_dlsearch_path_spec='/usr/lib'
13840   ;;
13841
13842 tpf*)
13843   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13844   version_type=linux
13845   need_lib_prefix=no
13846   need_version=no
13847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13848   shlibpath_var=LD_LIBRARY_PATH
13849   shlibpath_overrides_runpath=no
13850   hardcode_into_libs=yes
13851   ;;
13852
13853 uts4*)
13854   version_type=linux
13855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13856   soname_spec='${libname}${release}${shared_ext}$major'
13857   shlibpath_var=LD_LIBRARY_PATH
13858   ;;
13859
13860 *)
13861   dynamic_linker=no
13862   ;;
13863 esac
13864 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13865 echo "${ECHO_T}$dynamic_linker" >&6
13866 test "$dynamic_linker" = no && can_build_shared=no
13867
13868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13869 if test "$GCC" = yes; then
13870   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13871 fi
13872
13873 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13874   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13875 fi
13876 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13877   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13878 fi
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13917 hardcode_action_FC=
13918 if test -n "$hardcode_libdir_flag_spec_FC" ||
13919    test -n "$runpath_var_FC" ||
13920    test "X$hardcode_automatic_FC" = "Xyes" ; then
13921
13922   # We can hardcode non-existent directories.
13923   if test "$hardcode_direct_FC" != no &&
13924      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13925      # have to relink, otherwise we might link with an installed library
13926      # when we should be linking with a yet-to-be-installed one
13927      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13928      test "$hardcode_minus_L_FC" != no; then
13929     # Linking always hardcodes the temporary library directory.
13930     hardcode_action_FC=relink
13931   else
13932     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13933     hardcode_action_FC=immediate
13934   fi
13935 else
13936   # We cannot hardcode anything, or else we can only hardcode existing
13937   # directories.
13938   hardcode_action_FC=unsupported
13939 fi
13940 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13941 echo "${ECHO_T}$hardcode_action_FC" >&6
13942
13943 if test "$hardcode_action_FC" = relink ||
13944    test "$inherit_rpath_FC" = yes; then
13945   # Fast installation is not supported
13946   enable_fast_install=no
13947 elif test "$shlibpath_overrides_runpath" = yes ||
13948      test "$enable_shared" = no; then
13949   # Fast installation is not necessary
13950   enable_fast_install=needless
13951 fi
13952
13953
13954
13955
13956
13957
13958
13959   fi # test -n "$compiler"
13960
13961   GCC=$lt_save_GCC
13962   CC="$lt_save_CC"
13963 fi # test "$_lt_disable_FC" != yes
13964
13965 ac_ext=c
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970
13971
13972 FCFLAGS="$FCFLAGS -Wall"
13973
13974 # For libtool versioning info, format is CURRENT:REVISION:AGE
13975 libtool_VERSION=1:0:0
13976
13977
13978 # Check header files.
13979 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13981 if test "${ac_cv_header_stdc+set}" = set; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h.  */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h.  */
13990 #include <stdlib.h>
13991 #include <stdarg.h>
13992 #include <string.h>
13993 #include <float.h>
13994
13995 int
13996 main ()
13997 {
13998
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 rm -f conftest.$ac_objext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14005   (eval $ac_compile) 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } &&
14012          { ac_try='test -z "$ac_c_werror_flag"
14013                          || test ! -s conftest.err'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; } &&
14019          { ac_try='test -s conftest.$ac_objext'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; }; then
14025   ac_cv_header_stdc=yes
14026 else
14027   echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 ac_cv_header_stdc=no
14031 fi
14032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14033
14034 if test $ac_cv_header_stdc = yes; then
14035   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14036   cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h.  */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h.  */
14042 #include <string.h>
14043
14044 _ACEOF
14045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14046   $EGREP "memchr" >/dev/null 2>&1; then
14047   :
14048 else
14049   ac_cv_header_stdc=no
14050 fi
14051 rm -f conftest*
14052
14053 fi
14054
14055 if test $ac_cv_header_stdc = yes; then
14056   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 #include <stdlib.h>
14064
14065 _ACEOF
14066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14067   $EGREP "free" >/dev/null 2>&1; then
14068   :
14069 else
14070   ac_cv_header_stdc=no
14071 fi
14072 rm -f conftest*
14073
14074 fi
14075
14076 if test $ac_cv_header_stdc = yes; then
14077   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14078   if test "$cross_compiling" = yes; then
14079   :
14080 else
14081   cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087 #include <ctype.h>
14088 #if ((' ' & 0x0FF) == 0x020)
14089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14091 #else
14092 # define ISLOWER(c) \
14093                    (('a' <= (c) && (c) <= 'i') \
14094                      || ('j' <= (c) && (c) <= 'r') \
14095                      || ('s' <= (c) && (c) <= 'z'))
14096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14097 #endif
14098
14099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14100 int
14101 main ()
14102 {
14103   int i;
14104   for (i = 0; i < 256; i++)
14105     if (XOR (islower (i), ISLOWER (i))
14106         || toupper (i) != TOUPPER (i))
14107       exit(2);
14108   exit (0);
14109 }
14110 _ACEOF
14111 rm -f conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113   (eval $ac_link) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122   :
14123 else
14124   echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ( exit $ac_status )
14129 ac_cv_header_stdc=no
14130 fi
14131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14132 fi
14133 fi
14134 fi
14135 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14136 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14137 if test $ac_cv_header_stdc = yes; then
14138
14139 cat >>confdefs.h <<\_ACEOF
14140 #define STDC_HEADERS 1
14141 _ACEOF
14142
14143 fi
14144
14145 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14146 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14147 if test "${ac_cv_header_time+set}" = set; then
14148   echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150   cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h.  */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h.  */
14156 #include <sys/types.h>
14157 #include <sys/time.h>
14158 #include <time.h>
14159
14160 int
14161 main ()
14162 {
14163 if ((struct tm *) 0)
14164 return 0;
14165   ;
14166   return 0;
14167 }
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171   (eval $ac_compile) 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } &&
14178          { ac_try='test -z "$ac_c_werror_flag"
14179                          || test ! -s conftest.err'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest.$ac_objext'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }; then
14191   ac_cv_header_time=yes
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196 ac_cv_header_time=no
14197 fi
14198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199 fi
14200 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14201 echo "${ECHO_T}$ac_cv_header_time" >&6
14202 if test $ac_cv_header_time = yes; then
14203
14204 cat >>confdefs.h <<\_ACEOF
14205 #define TIME_WITH_SYS_TIME 1
14206 _ACEOF
14207
14208 fi
14209
14210 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
14211 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
14212 if test "${gcc_cv_header_string+set}" = set; then
14213   echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215   cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h.  */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h.  */
14221 #include <string.h>
14222 #include <strings.h>
14223 int
14224 main ()
14225 {
14226
14227   ;
14228   return 0;
14229 }
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233   (eval $ac_compile) 2>conftest.er1
14234   ac_status=$?
14235   grep -v '^ *+' conftest.er1 >conftest.err
14236   rm -f conftest.er1
14237   cat conftest.err >&5
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); } &&
14240          { ac_try='test -z "$ac_c_werror_flag"
14241                          || test ! -s conftest.err'
14242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243   (eval $ac_try) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; } &&
14247          { ac_try='test -s conftest.$ac_objext'
14248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249   (eval $ac_try) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); }; }; then
14253   gcc_cv_header_string=yes
14254 else
14255   echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14257
14258 gcc_cv_header_string=no
14259 fi
14260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14261 fi
14262 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
14263 echo "${ECHO_T}$gcc_cv_header_string" >&6
14264 if test $gcc_cv_header_string = yes; then
14265
14266 cat >>confdefs.h <<\_ACEOF
14267 #define STRING_WITH_STRINGS 1
14268 _ACEOF
14269
14270 fi
14271
14272
14273
14274
14275
14276
14277 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14278 do
14279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14281   echo "$as_me:$LINENO: checking for $ac_header" >&5
14282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14284   echo $ECHO_N "(cached) $ECHO_C" >&6
14285 fi
14286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14288 else
14289   # Is the header compilable?
14290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14292 cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298 $ac_includes_default
14299 #include <$ac_header>
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303   (eval $ac_compile) 2>conftest.er1
14304   ac_status=$?
14305   grep -v '^ *+' conftest.er1 >conftest.err
14306   rm -f conftest.er1
14307   cat conftest.err >&5
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -z "$ac_c_werror_flag"
14311                          || test ! -s conftest.err'
14312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313   (eval $ac_try) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; } &&
14317          { ac_try='test -s conftest.$ac_objext'
14318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319   (eval $ac_try) 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; }; then
14323   ac_header_compiler=yes
14324 else
14325   echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 ac_header_compiler=no
14329 fi
14330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14332 echo "${ECHO_T}$ac_header_compiler" >&6
14333
14334 # Is the header present?
14335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 #include <$ac_header>
14344 _ACEOF
14345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } >/dev/null; then
14353   if test -s conftest.err; then
14354     ac_cpp_err=$ac_c_preproc_warn_flag
14355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14356   else
14357     ac_cpp_err=
14358   fi
14359 else
14360   ac_cpp_err=yes
14361 fi
14362 if test -z "$ac_cpp_err"; then
14363   ac_header_preproc=yes
14364 else
14365   echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14367
14368   ac_header_preproc=no
14369 fi
14370 rm -f conftest.err conftest.$ac_ext
14371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14372 echo "${ECHO_T}$ac_header_preproc" >&6
14373
14374 # So?  What about this header?
14375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14376   yes:no: )
14377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14381     ac_header_preproc=yes
14382     ;;
14383   no:yes:* )
14384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14386     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14387 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14388     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14390     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14391 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14394     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14396     (
14397       cat <<\_ASBOX
14398 ## ----------------------------------------------------- ##
14399 ## Report this to the GNU OpenMP Runtime Library lists.  ##
14400 ## ----------------------------------------------------- ##
14401 _ASBOX
14402     ) |
14403       sed "s/^/$as_me: WARNING:     /" >&2
14404     ;;
14405 esac
14406 echo "$as_me:$LINENO: checking for $ac_header" >&5
14407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14409   echo $ECHO_N "(cached) $ECHO_C" >&6
14410 else
14411   eval "$as_ac_Header=\$ac_header_preproc"
14412 fi
14413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14415
14416 fi
14417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14418   cat >>confdefs.h <<_ACEOF
14419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14420 _ACEOF
14421
14422 fi
14423
14424 done
14425
14426
14427
14428
14429 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14430
14431 acx_cv_header_stdint=stddef.h
14432 acx_cv_header_stdint_kind="(already complete)"
14433 for i in stdint.h $inttype_headers; do
14434   unset ac_cv_type_uintptr_t
14435   unset ac_cv_type_uintmax_t
14436   unset ac_cv_type_int_least32_t
14437   unset ac_cv_type_int_fast32_t
14438   unset ac_cv_type_uint64_t
14439   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14440   echo "$as_me:$LINENO: checking for uintmax_t" >&5
14441 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14442 if test "${ac_cv_type_uintmax_t+set}" = set; then
14443   echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445   cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h.  */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h.  */
14451 #include <sys/types.h>
14452 #include <$i>
14453
14454 int
14455 main ()
14456 {
14457 if ((uintmax_t *) 0)
14458   return 0;
14459 if (sizeof (uintmax_t))
14460   return 0;
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467   (eval $ac_compile) 2>conftest.er1
14468   ac_status=$?
14469   grep -v '^ *+' conftest.er1 >conftest.err
14470   rm -f conftest.er1
14471   cat conftest.err >&5
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } &&
14474          { ac_try='test -z "$ac_c_werror_flag"
14475                          || test ! -s conftest.err'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; } &&
14481          { ac_try='test -s conftest.$ac_objext'
14482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483   (eval $ac_try) 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; }; then
14487   ac_cv_type_uintmax_t=yes
14488 else
14489   echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14491
14492 ac_cv_type_uintmax_t=no
14493 fi
14494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495 fi
14496 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14497 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14498 if test $ac_cv_type_uintmax_t = yes; then
14499   acx_cv_header_stdint=$i
14500 else
14501   continue
14502 fi
14503
14504   echo "$as_me:$LINENO: checking for uintptr_t" >&5
14505 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14506 if test "${ac_cv_type_uintptr_t+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515 #include <sys/types.h>
14516 #include <$i>
14517
14518 int
14519 main ()
14520 {
14521 if ((uintptr_t *) 0)
14522   return 0;
14523 if (sizeof (uintptr_t))
14524   return 0;
14525   ;
14526   return 0;
14527 }
14528 _ACEOF
14529 rm -f conftest.$ac_objext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14531   (eval $ac_compile) 2>conftest.er1
14532   ac_status=$?
14533   grep -v '^ *+' conftest.er1 >conftest.err
14534   rm -f conftest.er1
14535   cat conftest.err >&5
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } &&
14538          { ac_try='test -z "$ac_c_werror_flag"
14539                          || test ! -s conftest.err'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; } &&
14545          { ac_try='test -s conftest.$ac_objext'
14546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547   (eval $ac_try) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551   ac_cv_type_uintptr_t=yes
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 ac_cv_type_uintptr_t=no
14557 fi
14558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14559 fi
14560 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14561 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14562 if test $ac_cv_type_uintptr_t = yes; then
14563   :
14564 else
14565   acx_cv_header_stdint_kind="(mostly complete)"
14566 fi
14567
14568   echo "$as_me:$LINENO: checking for int_least32_t" >&5
14569 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14570 if test "${ac_cv_type_int_least32_t+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573   cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h.  */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h.  */
14579 #include <sys/types.h>
14580 #include <$i>
14581
14582 int
14583 main ()
14584 {
14585 if ((int_least32_t *) 0)
14586   return 0;
14587 if (sizeof (int_least32_t))
14588   return 0;
14589   ;
14590   return 0;
14591 }
14592 _ACEOF
14593 rm -f conftest.$ac_objext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14595   (eval $ac_compile) 2>conftest.er1
14596   ac_status=$?
14597   grep -v '^ *+' conftest.er1 >conftest.err
14598   rm -f conftest.er1
14599   cat conftest.err >&5
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); } &&
14602          { ac_try='test -z "$ac_c_werror_flag"
14603                          || test ! -s conftest.err'
14604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605   (eval $ac_try) 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); }; } &&
14609          { ac_try='test -s conftest.$ac_objext'
14610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611   (eval $ac_try) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; }; then
14615   ac_cv_type_int_least32_t=yes
14616 else
14617   echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 ac_cv_type_int_least32_t=no
14621 fi
14622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14623 fi
14624 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14625 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14626 if test $ac_cv_type_int_least32_t = yes; then
14627   :
14628 else
14629   acx_cv_header_stdint_kind="(mostly complete)"
14630 fi
14631
14632   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14633 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14634 if test "${ac_cv_type_int_fast32_t+set}" = set; then
14635   echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637   cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h.  */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h.  */
14643 #include <sys/types.h>
14644 #include <$i>
14645
14646 int
14647 main ()
14648 {
14649 if ((int_fast32_t *) 0)
14650   return 0;
14651 if (sizeof (int_fast32_t))
14652   return 0;
14653   ;
14654   return 0;
14655 }
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659   (eval $ac_compile) 2>conftest.er1
14660   ac_status=$?
14661   grep -v '^ *+' conftest.er1 >conftest.err
14662   rm -f conftest.er1
14663   cat conftest.err >&5
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } &&
14666          { ac_try='test -z "$ac_c_werror_flag"
14667                          || test ! -s conftest.err'
14668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669   (eval $ac_try) 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); }; } &&
14673          { ac_try='test -s conftest.$ac_objext'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   ac_cv_type_int_fast32_t=yes
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684 ac_cv_type_int_fast32_t=no
14685 fi
14686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14687 fi
14688 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14689 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14690 if test $ac_cv_type_int_fast32_t = yes; then
14691   :
14692 else
14693   acx_cv_header_stdint_kind="(mostly complete)"
14694 fi
14695
14696   echo "$as_me:$LINENO: checking for uint64_t" >&5
14697 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14698 if test "${ac_cv_type_uint64_t+set}" = set; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701   cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h.  */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h.  */
14707 #include <sys/types.h>
14708 #include <$i>
14709
14710 int
14711 main ()
14712 {
14713 if ((uint64_t *) 0)
14714   return 0;
14715 if (sizeof (uint64_t))
14716   return 0;
14717   ;
14718   return 0;
14719 }
14720 _ACEOF
14721 rm -f conftest.$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723   (eval $ac_compile) 2>conftest.er1
14724   ac_status=$?
14725   grep -v '^ *+' conftest.er1 >conftest.err
14726   rm -f conftest.er1
14727   cat conftest.err >&5
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); } &&
14730          { ac_try='test -z "$ac_c_werror_flag"
14731                          || test ! -s conftest.err'
14732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733   (eval $ac_try) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); }; } &&
14737          { ac_try='test -s conftest.$ac_objext'
14738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739   (eval $ac_try) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; }; then
14743   ac_cv_type_uint64_t=yes
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748 ac_cv_type_uint64_t=no
14749 fi
14750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751 fi
14752 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14753 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14754 if test $ac_cv_type_uint64_t = yes; then
14755   :
14756 else
14757   acx_cv_header_stdint_kind="(lacks uint64_t)"
14758 fi
14759
14760   break
14761 done
14762 if test "$acx_cv_header_stdint" = stddef.h; then
14763   acx_cv_header_stdint_kind="(lacks uintmax_t)"
14764   for i in stdint.h $inttype_headers; do
14765     unset ac_cv_type_uintptr_t
14766     unset ac_cv_type_uint32_t
14767     unset ac_cv_type_uint64_t
14768     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14769     echo "$as_me:$LINENO: checking for uint32_t" >&5
14770 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14771 if test "${ac_cv_type_uint32_t+set}" = set; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774   cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h.  */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h.  */
14780 #include <sys/types.h>
14781 #include <$i>
14782
14783 int
14784 main ()
14785 {
14786 if ((uint32_t *) 0)
14787   return 0;
14788 if (sizeof (uint32_t))
14789   return 0;
14790   ;
14791   return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796   (eval $ac_compile) 2>conftest.er1
14797   ac_status=$?
14798   grep -v '^ *+' conftest.er1 >conftest.err
14799   rm -f conftest.er1
14800   cat conftest.err >&5
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } &&
14803          { ac_try='test -z "$ac_c_werror_flag"
14804                          || test ! -s conftest.err'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; } &&
14810          { ac_try='test -s conftest.$ac_objext'
14811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812   (eval $ac_try) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); }; }; then
14816   ac_cv_type_uint32_t=yes
14817 else
14818   echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14820
14821 ac_cv_type_uint32_t=no
14822 fi
14823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14824 fi
14825 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14826 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14827 if test $ac_cv_type_uint32_t = yes; then
14828   acx_cv_header_stdint=$i
14829 else
14830   continue
14831 fi
14832
14833     echo "$as_me:$LINENO: checking for uint64_t" >&5
14834 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14835 if test "${ac_cv_type_uint64_t+set}" = set; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838   cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h.  */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h.  */
14844 #include <sys/types.h>
14845 #include <$i>
14846
14847 int
14848 main ()
14849 {
14850 if ((uint64_t *) 0)
14851   return 0;
14852 if (sizeof (uint64_t))
14853   return 0;
14854   ;
14855   return 0;
14856 }
14857 _ACEOF
14858 rm -f conftest.$ac_objext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860   (eval $ac_compile) 2>conftest.er1
14861   ac_status=$?
14862   grep -v '^ *+' conftest.er1 >conftest.err
14863   rm -f conftest.er1
14864   cat conftest.err >&5
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); } &&
14867          { ac_try='test -z "$ac_c_werror_flag"
14868                          || test ! -s conftest.err'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; } &&
14874          { ac_try='test -s conftest.$ac_objext'
14875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876   (eval $ac_try) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; }; then
14880   ac_cv_type_uint64_t=yes
14881 else
14882   echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885 ac_cv_type_uint64_t=no
14886 fi
14887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14888 fi
14889 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14890 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14891
14892     echo "$as_me:$LINENO: checking for uintptr_t" >&5
14893 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14894 if test "${ac_cv_type_uintptr_t+set}" = set; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897   cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h.  */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h.  */
14903 #include <sys/types.h>
14904 #include <$i>
14905
14906 int
14907 main ()
14908 {
14909 if ((uintptr_t *) 0)
14910   return 0;
14911 if (sizeof (uintptr_t))
14912   return 0;
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919   (eval $ac_compile) 2>conftest.er1
14920   ac_status=$?
14921   grep -v '^ *+' conftest.er1 >conftest.err
14922   rm -f conftest.er1
14923   cat conftest.err >&5
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -z "$ac_c_werror_flag"
14927                          || test ! -s conftest.err'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; } &&
14933          { ac_try='test -s conftest.$ac_objext'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; }; then
14939   ac_cv_type_uintptr_t=yes
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944 ac_cv_type_uintptr_t=no
14945 fi
14946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14947 fi
14948 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14949 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14950
14951     break
14952   done
14953 fi
14954 if test "$acx_cv_header_stdint" = stddef.h; then
14955   acx_cv_header_stdint_kind="(u_intXX_t style)"
14956   for i in sys/types.h $inttype_headers; do
14957     unset ac_cv_type_u_int32_t
14958     unset ac_cv_type_u_int64_t
14959     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14960     echo "$as_me:$LINENO: checking for u_int32_t" >&5
14961 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14962 if test "${ac_cv_type_u_int32_t+set}" = set; then
14963   echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965   cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971 #include <sys/types.h>
14972 #include <$i>
14973
14974 int
14975 main ()
14976 {
14977 if ((u_int32_t *) 0)
14978   return 0;
14979 if (sizeof (u_int32_t))
14980   return 0;
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987   (eval $ac_compile) 2>conftest.er1
14988   ac_status=$?
14989   grep -v '^ *+' conftest.er1 >conftest.err
14990   rm -f conftest.er1
14991   cat conftest.err >&5
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } &&
14994          { ac_try='test -z "$ac_c_werror_flag"
14995                          || test ! -s conftest.err'
14996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997   (eval $ac_try) 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); }; } &&
15001          { ac_try='test -s conftest.$ac_objext'
15002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003   (eval $ac_try) 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); }; }; then
15007   ac_cv_type_u_int32_t=yes
15008 else
15009   echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012 ac_cv_type_u_int32_t=no
15013 fi
15014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15015 fi
15016 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
15017 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
15018 if test $ac_cv_type_u_int32_t = yes; then
15019   acx_cv_header_stdint=$i
15020 else
15021   continue
15022 fi
15023
15024     echo "$as_me:$LINENO: checking for u_int64_t" >&5
15025 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
15026 if test "${ac_cv_type_u_int64_t+set}" = set; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029   cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035 #include <sys/types.h>
15036 #include <$i>
15037
15038 int
15039 main ()
15040 {
15041 if ((u_int64_t *) 0)
15042   return 0;
15043 if (sizeof (u_int64_t))
15044   return 0;
15045   ;
15046   return 0;
15047 }
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051   (eval $ac_compile) 2>conftest.er1
15052   ac_status=$?
15053   grep -v '^ *+' conftest.er1 >conftest.err
15054   rm -f conftest.er1
15055   cat conftest.err >&5
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); } &&
15058          { ac_try='test -z "$ac_c_werror_flag"
15059                          || test ! -s conftest.err'
15060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061   (eval $ac_try) 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; } &&
15065          { ac_try='test -s conftest.$ac_objext'
15066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067   (eval $ac_try) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; }; then
15071   ac_cv_type_u_int64_t=yes
15072 else
15073   echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 ac_cv_type_u_int64_t=no
15077 fi
15078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15079 fi
15080 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15081 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
15082
15083     break
15084   done
15085 fi
15086 if test "$acx_cv_header_stdint" = stddef.h; then
15087   acx_cv_header_stdint_kind="(using manual detection)"
15088 fi
15089
15090 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15091 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15092 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15093 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15094 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15095
15096 # ----------------- Summarize what we found so far
15097
15098 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
15099 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
15100
15101 case `$as_basename gstdint.h ||
15102 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15103          Xgstdint.h : 'X\(//\)$' \| \
15104          Xgstdint.h : 'X\(/\)$' \| \
15105          .     : '\(.\)' 2>/dev/null ||
15106 echo X/gstdint.h |
15107     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15108           /^X\/\(\/\/\)$/{ s//\1/; q; }
15109           /^X\/\(\/\).*/{ s//\1/; q; }
15110           s/.*/./; q'` in
15111   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
15112 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15113   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
15114 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15115   *) ;;
15116 esac
15117
15118 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15119 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
15120
15121 # ----------------- done included file, check C basic types --------
15122
15123 # Lacking an uintptr_t?  Test size of void *
15124 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15125   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
15126 echo $ECHO_N "checking for void *... $ECHO_C" >&6
15127 if test "${ac_cv_type_void_p+set}" = set; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136 $ac_includes_default
15137 int
15138 main ()
15139 {
15140 if ((void * *) 0)
15141   return 0;
15142 if (sizeof (void *))
15143   return 0;
15144   ;
15145   return 0;
15146 }
15147 _ACEOF
15148 rm -f conftest.$ac_objext
15149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15150   (eval $ac_compile) 2>conftest.er1
15151   ac_status=$?
15152   grep -v '^ *+' conftest.er1 >conftest.err
15153   rm -f conftest.er1
15154   cat conftest.err >&5
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); } &&
15157          { ac_try='test -z "$ac_c_werror_flag"
15158                          || test ! -s conftest.err'
15159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; } &&
15164          { ac_try='test -s conftest.$ac_objext'
15165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166   (eval $ac_try) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; }; then
15170   ac_cv_type_void_p=yes
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ac_cv_type_void_p=no
15176 fi
15177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15178 fi
15179 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15180 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15181
15182 echo "$as_me:$LINENO: checking size of void *" >&5
15183 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15184 if test "${ac_cv_sizeof_void_p+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   if test "$ac_cv_type_void_p" = yes; then
15188   # The cast to unsigned long works around a bug in the HP C Compiler
15189   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15190   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15191   # This bug is HP SR number 8606223364.
15192   if test "$cross_compiling" = yes; then
15193   # Depending upon the size, compute the lo and hi bounds.
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 $ac_includes_default
15201 int
15202 main ()
15203 {
15204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15205 test_array [0] = 0
15206
15207   ;
15208   return 0;
15209 }
15210 _ACEOF
15211 rm -f conftest.$ac_objext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213   (eval $ac_compile) 2>conftest.er1
15214   ac_status=$?
15215   grep -v '^ *+' conftest.er1 >conftest.err
15216   rm -f conftest.er1
15217   cat conftest.err >&5
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } &&
15220          { ac_try='test -z "$ac_c_werror_flag"
15221                          || test ! -s conftest.err'
15222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223   (eval $ac_try) 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); }; } &&
15227          { ac_try='test -s conftest.$ac_objext'
15228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229   (eval $ac_try) 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; }; then
15233   ac_lo=0 ac_mid=0
15234   while :; do
15235     cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 $ac_includes_default
15242 int
15243 main ()
15244 {
15245 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15246 test_array [0] = 0
15247
15248   ;
15249   return 0;
15250 }
15251 _ACEOF
15252 rm -f conftest.$ac_objext
15253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15254   (eval $ac_compile) 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } &&
15261          { ac_try='test -z "$ac_c_werror_flag"
15262                          || test ! -s conftest.err'
15263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264   (eval $ac_try) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; } &&
15268          { ac_try='test -s conftest.$ac_objext'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   ac_hi=$ac_mid; break
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_lo=`expr $ac_mid + 1`
15280                     if test $ac_lo -le $ac_mid; then
15281                       ac_lo= ac_hi=
15282                       break
15283                     fi
15284                     ac_mid=`expr 2 '*' $ac_mid + 1`
15285 fi
15286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287   done
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298 $ac_includes_default
15299 int
15300 main ()
15301 {
15302 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15303 test_array [0] = 0
15304
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15311   (eval $ac_compile) 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } &&
15318          { ac_try='test -z "$ac_c_werror_flag"
15319                          || test ! -s conftest.err'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; } &&
15325          { ac_try='test -s conftest.$ac_objext'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; }; then
15331   ac_hi=-1 ac_mid=-1
15332   while :; do
15333     cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 $ac_includes_default
15340 int
15341 main ()
15342 {
15343 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15344 test_array [0] = 0
15345
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15352   (eval $ac_compile) 2>conftest.er1
15353   ac_status=$?
15354   grep -v '^ *+' conftest.er1 >conftest.err
15355   rm -f conftest.er1
15356   cat conftest.err >&5
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } &&
15359          { ac_try='test -z "$ac_c_werror_flag"
15360                          || test ! -s conftest.err'
15361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362   (eval $ac_try) 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); }; } &&
15366          { ac_try='test -s conftest.$ac_objext'
15367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368   (eval $ac_try) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; }; then
15372   ac_lo=$ac_mid; break
15373 else
15374   echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15376
15377 ac_hi=`expr '(' $ac_mid ')' - 1`
15378                        if test $ac_mid -le $ac_hi; then
15379                          ac_lo= ac_hi=
15380                          break
15381                        fi
15382                        ac_mid=`expr 2 '*' $ac_mid`
15383 fi
15384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15385   done
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390 ac_lo= ac_hi=
15391 fi
15392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15393 fi
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395 # Binary search between lo and hi bounds.
15396 while test "x$ac_lo" != "x$ac_hi"; do
15397   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15398   cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h.  */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h.  */
15404 $ac_includes_default
15405 int
15406 main ()
15407 {
15408 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15409 test_array [0] = 0
15410
15411   ;
15412   return 0;
15413 }
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417   (eval $ac_compile) 2>conftest.er1
15418   ac_status=$?
15419   grep -v '^ *+' conftest.er1 >conftest.err
15420   rm -f conftest.er1
15421   cat conftest.err >&5
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } &&
15424          { ac_try='test -z "$ac_c_werror_flag"
15425                          || test ! -s conftest.err'
15426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427   (eval $ac_try) 2>&5
15428   ac_status=$?
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); }; } &&
15431          { ac_try='test -s conftest.$ac_objext'
15432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433   (eval $ac_try) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; }; then
15437   ac_hi=$ac_mid
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 ac_lo=`expr '(' $ac_mid ')' + 1`
15443 fi
15444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445 done
15446 case $ac_lo in
15447 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15448 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15449 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15450 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15451 See \`config.log' for more details." >&5
15452 echo "$as_me: error: cannot compute sizeof (void *), 77
15453 See \`config.log' for more details." >&2;}
15454    { (exit 1); exit 1; }; }; } ;;
15455 esac
15456 else
15457   if test "$cross_compiling" = yes; then
15458   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15459 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15460 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15461 See \`config.log' for more details." >&5
15462 echo "$as_me: error: cannot run test program while cross compiling
15463 See \`config.log' for more details." >&2;}
15464    { (exit 1); exit 1; }; }; }
15465 else
15466   cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472 $ac_includes_default
15473 long longval () { return (long) (sizeof (void *)); }
15474 unsigned long ulongval () { return (long) (sizeof (void *)); }
15475 #include <stdio.h>
15476 #include <stdlib.h>
15477 int
15478 main ()
15479 {
15480
15481   FILE *f = fopen ("conftest.val", "w");
15482   if (! f)
15483     exit (1);
15484   if (((long) (sizeof (void *))) < 0)
15485     {
15486       long i = longval ();
15487       if (i != ((long) (sizeof (void *))))
15488         exit (1);
15489       fprintf (f, "%ld\n", i);
15490     }
15491   else
15492     {
15493       unsigned long i = ulongval ();
15494       if (i != ((long) (sizeof (void *))))
15495         exit (1);
15496       fprintf (f, "%lu\n", i);
15497     }
15498   exit (ferror (f) || fclose (f) != 0);
15499
15500   ;
15501   return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest$ac_exeext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506   (eval $ac_link) 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511   (eval $ac_try) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); }; }; then
15515   ac_cv_sizeof_void_p=`cat conftest.val`
15516 else
15517   echo "$as_me: program exited with status $ac_status" >&5
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 ( exit $ac_status )
15522 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15523 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15525 See \`config.log' for more details." >&5
15526 echo "$as_me: error: cannot compute sizeof (void *), 77
15527 See \`config.log' for more details." >&2;}
15528    { (exit 1); exit 1; }; }; }
15529 fi
15530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15531 fi
15532 fi
15533 rm -f conftest.val
15534 else
15535   ac_cv_sizeof_void_p=0
15536 fi
15537 fi
15538 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15539 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15540 cat >>confdefs.h <<_ACEOF
15541 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15542 _ACEOF
15543
15544  ;;
15545 esac
15546
15547 # Lacking an uint64_t?  Test size of long
15548 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15549   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15550 echo $ECHO_N "checking for long... $ECHO_C" >&6
15551 if test "${ac_cv_type_long+set}" = set; then
15552   echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554   cat >conftest.$ac_ext <<_ACEOF
15555 /* confdefs.h.  */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h.  */
15560 $ac_includes_default
15561 int
15562 main ()
15563 {
15564 if ((long *) 0)
15565   return 0;
15566 if (sizeof (long))
15567   return 0;
15568   ;
15569   return 0;
15570 }
15571 _ACEOF
15572 rm -f conftest.$ac_objext
15573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574   (eval $ac_compile) 2>conftest.er1
15575   ac_status=$?
15576   grep -v '^ *+' conftest.er1 >conftest.err
15577   rm -f conftest.er1
15578   cat conftest.err >&5
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); } &&
15581          { ac_try='test -z "$ac_c_werror_flag"
15582                          || test ! -s conftest.err'
15583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584   (eval $ac_try) 2>&5
15585   ac_status=$?
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); }; } &&
15588          { ac_try='test -s conftest.$ac_objext'
15589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590   (eval $ac_try) 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; }; then
15594   ac_cv_type_long=yes
15595 else
15596   echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599 ac_cv_type_long=no
15600 fi
15601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15602 fi
15603 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15604 echo "${ECHO_T}$ac_cv_type_long" >&6
15605
15606 echo "$as_me:$LINENO: checking size of long" >&5
15607 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15608 if test "${ac_cv_sizeof_long+set}" = set; then
15609   echo $ECHO_N "(cached) $ECHO_C" >&6
15610 else
15611   if test "$ac_cv_type_long" = yes; then
15612   # The cast to unsigned long works around a bug in the HP C Compiler
15613   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15614   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15615   # This bug is HP SR number 8606223364.
15616   if test "$cross_compiling" = yes; then
15617   # Depending upon the size, compute the lo and hi bounds.
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624 $ac_includes_default
15625 int
15626 main ()
15627 {
15628 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15629 test_array [0] = 0
15630
15631   ;
15632   return 0;
15633 }
15634 _ACEOF
15635 rm -f conftest.$ac_objext
15636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15637   (eval $ac_compile) 2>conftest.er1
15638   ac_status=$?
15639   grep -v '^ *+' conftest.er1 >conftest.err
15640   rm -f conftest.er1
15641   cat conftest.err >&5
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } &&
15644          { ac_try='test -z "$ac_c_werror_flag"
15645                          || test ! -s conftest.err'
15646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647   (eval $ac_try) 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); }; } &&
15651          { ac_try='test -s conftest.$ac_objext'
15652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653   (eval $ac_try) 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; }; then
15657   ac_lo=0 ac_mid=0
15658   while :; do
15659     cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665 $ac_includes_default
15666 int
15667 main ()
15668 {
15669 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15670 test_array [0] = 0
15671
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678   (eval $ac_compile) 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } &&
15685          { ac_try='test -z "$ac_c_werror_flag"
15686                          || test ! -s conftest.err'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; } &&
15692          { ac_try='test -s conftest.$ac_objext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   ac_hi=$ac_mid; break
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ac_lo=`expr $ac_mid + 1`
15704                     if test $ac_lo -le $ac_mid; then
15705                       ac_lo= ac_hi=
15706                       break
15707                     fi
15708                     ac_mid=`expr 2 '*' $ac_mid + 1`
15709 fi
15710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15711   done
15712 else
15713   echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 cat >conftest.$ac_ext <<_ACEOF
15717 /* confdefs.h.  */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h.  */
15722 $ac_includes_default
15723 int
15724 main ()
15725 {
15726 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15727 test_array [0] = 0
15728
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest.$ac_objext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735   (eval $ac_compile) 2>conftest.er1
15736   ac_status=$?
15737   grep -v '^ *+' conftest.er1 >conftest.err
15738   rm -f conftest.er1
15739   cat conftest.err >&5
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } &&
15742          { ac_try='test -z "$ac_c_werror_flag"
15743                          || test ! -s conftest.err'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; } &&
15749          { ac_try='test -s conftest.$ac_objext'
15750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751   (eval $ac_try) 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; }; then
15755   ac_hi=-1 ac_mid=-1
15756   while :; do
15757     cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763 $ac_includes_default
15764 int
15765 main ()
15766 {
15767 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15768 test_array [0] = 0
15769
15770   ;
15771   return 0;
15772 }
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776   (eval $ac_compile) 2>conftest.er1
15777   ac_status=$?
15778   grep -v '^ *+' conftest.er1 >conftest.err
15779   rm -f conftest.er1
15780   cat conftest.err >&5
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); } &&
15783          { ac_try='test -z "$ac_c_werror_flag"
15784                          || test ! -s conftest.err'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; } &&
15790          { ac_try='test -s conftest.$ac_objext'
15791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792   (eval $ac_try) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; }; then
15796   ac_lo=$ac_mid; break
15797 else
15798   echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15800
15801 ac_hi=`expr '(' $ac_mid ')' - 1`
15802                        if test $ac_mid -le $ac_hi; then
15803                          ac_lo= ac_hi=
15804                          break
15805                        fi
15806                        ac_mid=`expr 2 '*' $ac_mid`
15807 fi
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15809   done
15810 else
15811   echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ac_lo= ac_hi=
15815 fi
15816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15817 fi
15818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15819 # Binary search between lo and hi bounds.
15820 while test "x$ac_lo" != "x$ac_hi"; do
15821   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15822   cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828 $ac_includes_default
15829 int
15830 main ()
15831 {
15832 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15833 test_array [0] = 0
15834
15835   ;
15836   return 0;
15837 }
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841   (eval $ac_compile) 2>conftest.er1
15842   ac_status=$?
15843   grep -v '^ *+' conftest.er1 >conftest.err
15844   rm -f conftest.er1
15845   cat conftest.err >&5
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); } &&
15848          { ac_try='test -z "$ac_c_werror_flag"
15849                          || test ! -s conftest.err'
15850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851   (eval $ac_try) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; } &&
15855          { ac_try='test -s conftest.$ac_objext'
15856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857   (eval $ac_try) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; }; then
15861   ac_hi=$ac_mid
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866 ac_lo=`expr '(' $ac_mid ')' + 1`
15867 fi
15868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15869 done
15870 case $ac_lo in
15871 ?*) ac_cv_sizeof_long=$ac_lo;;
15872 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15874 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15875 See \`config.log' for more details." >&5
15876 echo "$as_me: error: cannot compute sizeof (long), 77
15877 See \`config.log' for more details." >&2;}
15878    { (exit 1); exit 1; }; }; } ;;
15879 esac
15880 else
15881   if test "$cross_compiling" = yes; then
15882   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15883 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15884 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15885 See \`config.log' for more details." >&5
15886 echo "$as_me: error: cannot run test program while cross compiling
15887 See \`config.log' for more details." >&2;}
15888    { (exit 1); exit 1; }; }; }
15889 else
15890   cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896 $ac_includes_default
15897 long longval () { return (long) (sizeof (long)); }
15898 unsigned long ulongval () { return (long) (sizeof (long)); }
15899 #include <stdio.h>
15900 #include <stdlib.h>
15901 int
15902 main ()
15903 {
15904
15905   FILE *f = fopen ("conftest.val", "w");
15906   if (! f)
15907     exit (1);
15908   if (((long) (sizeof (long))) < 0)
15909     {
15910       long i = longval ();
15911       if (i != ((long) (sizeof (long))))
15912         exit (1);
15913       fprintf (f, "%ld\n", i);
15914     }
15915   else
15916     {
15917       unsigned long i = ulongval ();
15918       if (i != ((long) (sizeof (long))))
15919         exit (1);
15920       fprintf (f, "%lu\n", i);
15921     }
15922   exit (ferror (f) || fclose (f) != 0);
15923
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest$ac_exeext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930   (eval $ac_link) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935   (eval $ac_try) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); }; }; then
15939   ac_cv_sizeof_long=`cat conftest.val`
15940 else
15941   echo "$as_me: program exited with status $ac_status" >&5
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 ( exit $ac_status )
15946 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15947 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15949 See \`config.log' for more details." >&5
15950 echo "$as_me: error: cannot compute sizeof (long), 77
15951 See \`config.log' for more details." >&2;}
15952    { (exit 1); exit 1; }; }; }
15953 fi
15954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15955 fi
15956 fi
15957 rm -f conftest.val
15958 else
15959   ac_cv_sizeof_long=0
15960 fi
15961 fi
15962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15963 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15964 cat >>confdefs.h <<_ACEOF
15965 #define SIZEOF_LONG $ac_cv_sizeof_long
15966 _ACEOF
15967
15968  ;;
15969 esac
15970
15971 if test $acx_cv_header_stdint = stddef.h; then
15972   # Lacking a good header?  Test size of everything and deduce all types.
15973   echo "$as_me:$LINENO: checking for int" >&5
15974 echo $ECHO_N "checking for int... $ECHO_C" >&6
15975 if test "${ac_cv_type_int+set}" = set; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h.  */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h.  */
15984 $ac_includes_default
15985 int
15986 main ()
15987 {
15988 if ((int *) 0)
15989   return 0;
15990 if (sizeof (int))
15991   return 0;
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15998   (eval $ac_compile) 2>conftest.er1
15999   ac_status=$?
16000   grep -v '^ *+' conftest.er1 >conftest.err
16001   rm -f conftest.er1
16002   cat conftest.err >&5
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); } &&
16005          { ac_try='test -z "$ac_c_werror_flag"
16006                          || test ! -s conftest.err'
16007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008   (eval $ac_try) 2>&5
16009   ac_status=$?
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); }; } &&
16012          { ac_try='test -s conftest.$ac_objext'
16013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014   (eval $ac_try) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   ac_cv_type_int=yes
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 ac_cv_type_int=no
16024 fi
16025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16026 fi
16027 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16028 echo "${ECHO_T}$ac_cv_type_int" >&6
16029
16030 echo "$as_me:$LINENO: checking size of int" >&5
16031 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16032 if test "${ac_cv_sizeof_int+set}" = set; then
16033   echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035   if test "$ac_cv_type_int" = yes; then
16036   # The cast to unsigned long works around a bug in the HP C Compiler
16037   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16038   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16039   # This bug is HP SR number 8606223364.
16040   if test "$cross_compiling" = yes; then
16041   # Depending upon the size, compute the lo and hi bounds.
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h.  */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h.  */
16048 $ac_includes_default
16049 int
16050 main ()
16051 {
16052 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16053 test_array [0] = 0
16054
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest.$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061   (eval $ac_compile) 2>conftest.er1
16062   ac_status=$?
16063   grep -v '^ *+' conftest.er1 >conftest.err
16064   rm -f conftest.er1
16065   cat conftest.err >&5
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } &&
16068          { ac_try='test -z "$ac_c_werror_flag"
16069                          || test ! -s conftest.err'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; } &&
16075          { ac_try='test -s conftest.$ac_objext'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; }; then
16081   ac_lo=0 ac_mid=0
16082   while :; do
16083     cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089 $ac_includes_default
16090 int
16091 main ()
16092 {
16093 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16094 test_array [0] = 0
16095
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 rm -f conftest.$ac_objext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16102   (eval $ac_compile) 2>conftest.er1
16103   ac_status=$?
16104   grep -v '^ *+' conftest.er1 >conftest.err
16105   rm -f conftest.er1
16106   cat conftest.err >&5
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); } &&
16109          { ac_try='test -z "$ac_c_werror_flag"
16110                          || test ! -s conftest.err'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; } &&
16116          { ac_try='test -s conftest.$ac_objext'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; }; then
16122   ac_hi=$ac_mid; break
16123 else
16124   echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16126
16127 ac_lo=`expr $ac_mid + 1`
16128                     if test $ac_lo -le $ac_mid; then
16129                       ac_lo= ac_hi=
16130                       break
16131                     fi
16132                     ac_mid=`expr 2 '*' $ac_mid + 1`
16133 fi
16134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16135   done
16136 else
16137   echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 cat >conftest.$ac_ext <<_ACEOF
16141 /* confdefs.h.  */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h.  */
16146 $ac_includes_default
16147 int
16148 main ()
16149 {
16150 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16151 test_array [0] = 0
16152
16153   ;
16154   return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159   (eval $ac_compile) 2>conftest.er1
16160   ac_status=$?
16161   grep -v '^ *+' conftest.er1 >conftest.err
16162   rm -f conftest.er1
16163   cat conftest.err >&5
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } &&
16166          { ac_try='test -z "$ac_c_werror_flag"
16167                          || test ! -s conftest.err'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; } &&
16173          { ac_try='test -s conftest.$ac_objext'
16174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175   (eval $ac_try) 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; }; then
16179   ac_hi=-1 ac_mid=-1
16180   while :; do
16181     cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187 $ac_includes_default
16188 int
16189 main ()
16190 {
16191 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16192 test_array [0] = 0
16193
16194   ;
16195   return 0;
16196 }
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16200   (eval $ac_compile) 2>conftest.er1
16201   ac_status=$?
16202   grep -v '^ *+' conftest.er1 >conftest.err
16203   rm -f conftest.er1
16204   cat conftest.err >&5
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } &&
16207          { ac_try='test -z "$ac_c_werror_flag"
16208                          || test ! -s conftest.err'
16209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210   (eval $ac_try) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; } &&
16214          { ac_try='test -s conftest.$ac_objext'
16215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216   (eval $ac_try) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; }; then
16220   ac_lo=$ac_mid; break
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 ac_hi=`expr '(' $ac_mid ')' - 1`
16226                        if test $ac_mid -le $ac_hi; then
16227                          ac_lo= ac_hi=
16228                          break
16229                        fi
16230                        ac_mid=`expr 2 '*' $ac_mid`
16231 fi
16232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16233   done
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238 ac_lo= ac_hi=
16239 fi
16240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16241 fi
16242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243 # Binary search between lo and hi bounds.
16244 while test "x$ac_lo" != "x$ac_hi"; do
16245   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16246   cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252 $ac_includes_default
16253 int
16254 main ()
16255 {
16256 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16257 test_array [0] = 0
16258
16259   ;
16260   return 0;
16261 }
16262 _ACEOF
16263 rm -f conftest.$ac_objext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265   (eval $ac_compile) 2>conftest.er1
16266   ac_status=$?
16267   grep -v '^ *+' conftest.er1 >conftest.err
16268   rm -f conftest.er1
16269   cat conftest.err >&5
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } &&
16272          { ac_try='test -z "$ac_c_werror_flag"
16273                          || test ! -s conftest.err'
16274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275   (eval $ac_try) 2>&5
16276   ac_status=$?
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); }; } &&
16279          { ac_try='test -s conftest.$ac_objext'
16280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281   (eval $ac_try) 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); }; }; then
16285   ac_hi=$ac_mid
16286 else
16287   echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290 ac_lo=`expr '(' $ac_mid ')' + 1`
16291 fi
16292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16293 done
16294 case $ac_lo in
16295 ?*) ac_cv_sizeof_int=$ac_lo;;
16296 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16297 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16299 See \`config.log' for more details." >&5
16300 echo "$as_me: error: cannot compute sizeof (int), 77
16301 See \`config.log' for more details." >&2;}
16302    { (exit 1); exit 1; }; }; } ;;
16303 esac
16304 else
16305   if test "$cross_compiling" = yes; then
16306   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16307 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16309 See \`config.log' for more details." >&5
16310 echo "$as_me: error: cannot run test program while cross compiling
16311 See \`config.log' for more details." >&2;}
16312    { (exit 1); exit 1; }; }; }
16313 else
16314   cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320 $ac_includes_default
16321 long longval () { return (long) (sizeof (int)); }
16322 unsigned long ulongval () { return (long) (sizeof (int)); }
16323 #include <stdio.h>
16324 #include <stdlib.h>
16325 int
16326 main ()
16327 {
16328
16329   FILE *f = fopen ("conftest.val", "w");
16330   if (! f)
16331     exit (1);
16332   if (((long) (sizeof (int))) < 0)
16333     {
16334       long i = longval ();
16335       if (i != ((long) (sizeof (int))))
16336         exit (1);
16337       fprintf (f, "%ld\n", i);
16338     }
16339   else
16340     {
16341       unsigned long i = ulongval ();
16342       if (i != ((long) (sizeof (int))))
16343         exit (1);
16344       fprintf (f, "%lu\n", i);
16345     }
16346   exit (ferror (f) || fclose (f) != 0);
16347
16348   ;
16349   return 0;
16350 }
16351 _ACEOF
16352 rm -f conftest$ac_exeext
16353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16354   (eval $ac_link) 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359   (eval $ac_try) 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; }; then
16363   ac_cv_sizeof_int=`cat conftest.val`
16364 else
16365   echo "$as_me: program exited with status $ac_status" >&5
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16368
16369 ( exit $ac_status )
16370 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16371 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16373 See \`config.log' for more details." >&5
16374 echo "$as_me: error: cannot compute sizeof (int), 77
16375 See \`config.log' for more details." >&2;}
16376    { (exit 1); exit 1; }; }; }
16377 fi
16378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16379 fi
16380 fi
16381 rm -f conftest.val
16382 else
16383   ac_cv_sizeof_int=0
16384 fi
16385 fi
16386 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16387 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16388 cat >>confdefs.h <<_ACEOF
16389 #define SIZEOF_INT $ac_cv_sizeof_int
16390 _ACEOF
16391
16392
16393   echo "$as_me:$LINENO: checking for short" >&5
16394 echo $ECHO_N "checking for short... $ECHO_C" >&6
16395 if test "${ac_cv_type_short+set}" = set; then
16396   echo $ECHO_N "(cached) $ECHO_C" >&6
16397 else
16398   cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404 $ac_includes_default
16405 int
16406 main ()
16407 {
16408 if ((short *) 0)
16409   return 0;
16410 if (sizeof (short))
16411   return 0;
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418   (eval $ac_compile) 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -z "$ac_c_werror_flag"
16426                          || test ! -s conftest.err'
16427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428   (eval $ac_try) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest.$ac_objext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   ac_cv_type_short=yes
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ac_cv_type_short=no
16444 fi
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446 fi
16447 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16448 echo "${ECHO_T}$ac_cv_type_short" >&6
16449
16450 echo "$as_me:$LINENO: checking size of short" >&5
16451 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16452 if test "${ac_cv_sizeof_short+set}" = set; then
16453   echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455   if test "$ac_cv_type_short" = yes; then
16456   # The cast to unsigned long works around a bug in the HP C Compiler
16457   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16458   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16459   # This bug is HP SR number 8606223364.
16460   if test "$cross_compiling" = yes; then
16461   # Depending upon the size, compute the lo and hi bounds.
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468 $ac_includes_default
16469 int
16470 main ()
16471 {
16472 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16473 test_array [0] = 0
16474
16475   ;
16476   return 0;
16477 }
16478 _ACEOF
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481   (eval $ac_compile) 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -z "$ac_c_werror_flag"
16489                          || test ! -s conftest.err'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest.$ac_objext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501   ac_lo=0 ac_mid=0
16502   while :; do
16503     cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 $ac_includes_default
16510 int
16511 main ()
16512 {
16513 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16514 test_array [0] = 0
16515
16516   ;
16517   return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522   (eval $ac_compile) 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -z "$ac_c_werror_flag"
16530                          || test ! -s conftest.err'
16531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532   (eval $ac_try) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; } &&
16536          { ac_try='test -s conftest.$ac_objext'
16537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538   (eval $ac_try) 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; }; then
16542   ac_hi=$ac_mid; break
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 ac_lo=`expr $ac_mid + 1`
16548                     if test $ac_lo -le $ac_mid; then
16549                       ac_lo= ac_hi=
16550                       break
16551                     fi
16552                     ac_mid=`expr 2 '*' $ac_mid + 1`
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555   done
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566 $ac_includes_default
16567 int
16568 main ()
16569 {
16570 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16571 test_array [0] = 0
16572
16573   ;
16574   return 0;
16575 }
16576 _ACEOF
16577 rm -f conftest.$ac_objext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16579   (eval $ac_compile) 2>conftest.er1
16580   ac_status=$?
16581   grep -v '^ *+' conftest.er1 >conftest.err
16582   rm -f conftest.er1
16583   cat conftest.err >&5
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } &&
16586          { ac_try='test -z "$ac_c_werror_flag"
16587                          || test ! -s conftest.err'
16588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589   (eval $ac_try) 2>&5
16590   ac_status=$?
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); }; } &&
16593          { ac_try='test -s conftest.$ac_objext'
16594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595   (eval $ac_try) 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); }; }; then
16599   ac_hi=-1 ac_mid=-1
16600   while :; do
16601     cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h.  */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h.  */
16607 $ac_includes_default
16608 int
16609 main ()
16610 {
16611 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16612 test_array [0] = 0
16613
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620   (eval $ac_compile) 2>conftest.er1
16621   ac_status=$?
16622   grep -v '^ *+' conftest.er1 >conftest.err
16623   rm -f conftest.er1
16624   cat conftest.err >&5
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); } &&
16627          { ac_try='test -z "$ac_c_werror_flag"
16628                          || test ! -s conftest.err'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; } &&
16634          { ac_try='test -s conftest.$ac_objext'
16635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636   (eval $ac_try) 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; }; then
16640   ac_lo=$ac_mid; break
16641 else
16642   echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16644
16645 ac_hi=`expr '(' $ac_mid ')' - 1`
16646                        if test $ac_mid -le $ac_hi; then
16647                          ac_lo= ac_hi=
16648                          break
16649                        fi
16650                        ac_mid=`expr 2 '*' $ac_mid`
16651 fi
16652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16653   done
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ac_lo= ac_hi=
16659 fi
16660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16661 fi
16662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 # Binary search between lo and hi bounds.
16664 while test "x$ac_lo" != "x$ac_hi"; do
16665   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16666   cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h.  */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h.  */
16672 $ac_includes_default
16673 int
16674 main ()
16675 {
16676 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16677 test_array [0] = 0
16678
16679   ;
16680   return 0;
16681 }
16682 _ACEOF
16683 rm -f conftest.$ac_objext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685   (eval $ac_compile) 2>conftest.er1
16686   ac_status=$?
16687   grep -v '^ *+' conftest.er1 >conftest.err
16688   rm -f conftest.er1
16689   cat conftest.err >&5
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); } &&
16692          { ac_try='test -z "$ac_c_werror_flag"
16693                          || test ! -s conftest.err'
16694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695   (eval $ac_try) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; } &&
16699          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16705   ac_hi=$ac_mid
16706 else
16707   echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 ac_lo=`expr '(' $ac_mid ')' + 1`
16711 fi
16712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16713 done
16714 case $ac_lo in
16715 ?*) ac_cv_sizeof_short=$ac_lo;;
16716 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16717 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16718 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16719 See \`config.log' for more details." >&5
16720 echo "$as_me: error: cannot compute sizeof (short), 77
16721 See \`config.log' for more details." >&2;}
16722    { (exit 1); exit 1; }; }; } ;;
16723 esac
16724 else
16725   if test "$cross_compiling" = yes; then
16726   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16727 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16729 See \`config.log' for more details." >&5
16730 echo "$as_me: error: cannot run test program while cross compiling
16731 See \`config.log' for more details." >&2;}
16732    { (exit 1); exit 1; }; }; }
16733 else
16734   cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740 $ac_includes_default
16741 long longval () { return (long) (sizeof (short)); }
16742 unsigned long ulongval () { return (long) (sizeof (short)); }
16743 #include <stdio.h>
16744 #include <stdlib.h>
16745 int
16746 main ()
16747 {
16748
16749   FILE *f = fopen ("conftest.val", "w");
16750   if (! f)
16751     exit (1);
16752   if (((long) (sizeof (short))) < 0)
16753     {
16754       long i = longval ();
16755       if (i != ((long) (sizeof (short))))
16756         exit (1);
16757       fprintf (f, "%ld\n", i);
16758     }
16759   else
16760     {
16761       unsigned long i = ulongval ();
16762       if (i != ((long) (sizeof (short))))
16763         exit (1);
16764       fprintf (f, "%lu\n", i);
16765     }
16766   exit (ferror (f) || fclose (f) != 0);
16767
16768   ;
16769   return 0;
16770 }
16771 _ACEOF
16772 rm -f conftest$ac_exeext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16774   (eval $ac_link) 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779   (eval $ac_try) 2>&5
16780   ac_status=$?
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); }; }; then
16783   ac_cv_sizeof_short=`cat conftest.val`
16784 else
16785   echo "$as_me: program exited with status $ac_status" >&5
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789 ( exit $ac_status )
16790 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16791 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16792 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16793 See \`config.log' for more details." >&5
16794 echo "$as_me: error: cannot compute sizeof (short), 77
16795 See \`config.log' for more details." >&2;}
16796    { (exit 1); exit 1; }; }; }
16797 fi
16798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16799 fi
16800 fi
16801 rm -f conftest.val
16802 else
16803   ac_cv_sizeof_short=0
16804 fi
16805 fi
16806 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16807 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16808 cat >>confdefs.h <<_ACEOF
16809 #define SIZEOF_SHORT $ac_cv_sizeof_short
16810 _ACEOF
16811
16812
16813   echo "$as_me:$LINENO: checking for char" >&5
16814 echo $ECHO_N "checking for char... $ECHO_C" >&6
16815 if test "${ac_cv_type_char+set}" = set; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818   cat >conftest.$ac_ext <<_ACEOF
16819 /* confdefs.h.  */
16820 _ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h.  */
16824 $ac_includes_default
16825 int
16826 main ()
16827 {
16828 if ((char *) 0)
16829   return 0;
16830 if (sizeof (char))
16831   return 0;
16832   ;
16833   return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838   (eval $ac_compile) 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } &&
16845          { ac_try='test -z "$ac_c_werror_flag"
16846                          || test ! -s conftest.err'
16847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848   (eval $ac_try) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; } &&
16852          { ac_try='test -s conftest.$ac_objext'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; }; then
16858   ac_cv_type_char=yes
16859 else
16860   echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_cv_type_char=no
16864 fi
16865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 fi
16867 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16868 echo "${ECHO_T}$ac_cv_type_char" >&6
16869
16870 echo "$as_me:$LINENO: checking size of char" >&5
16871 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16872 if test "${ac_cv_sizeof_char+set}" = set; then
16873   echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875   if test "$ac_cv_type_char" = yes; then
16876   # The cast to unsigned long works around a bug in the HP C Compiler
16877   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16878   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16879   # This bug is HP SR number 8606223364.
16880   if test "$cross_compiling" = yes; then
16881   # Depending upon the size, compute the lo and hi bounds.
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888 $ac_includes_default
16889 int
16890 main ()
16891 {
16892 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16893 test_array [0] = 0
16894
16895   ;
16896   return 0;
16897 }
16898 _ACEOF
16899 rm -f conftest.$ac_objext
16900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16901   (eval $ac_compile) 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } &&
16908          { ac_try='test -z "$ac_c_werror_flag"
16909                          || test ! -s conftest.err'
16910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911   (eval $ac_try) 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); }; } &&
16915          { ac_try='test -s conftest.$ac_objext'
16916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917   (eval $ac_try) 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; }; then
16921   ac_lo=0 ac_mid=0
16922   while :; do
16923     cat >conftest.$ac_ext <<_ACEOF
16924 /* confdefs.h.  */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h.  */
16929 $ac_includes_default
16930 int
16931 main ()
16932 {
16933 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16934 test_array [0] = 0
16935
16936   ;
16937   return 0;
16938 }
16939 _ACEOF
16940 rm -f conftest.$ac_objext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16942   (eval $ac_compile) 2>conftest.er1
16943   ac_status=$?
16944   grep -v '^ *+' conftest.er1 >conftest.err
16945   rm -f conftest.er1
16946   cat conftest.err >&5
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); } &&
16949          { ac_try='test -z "$ac_c_werror_flag"
16950                          || test ! -s conftest.err'
16951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952   (eval $ac_try) 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; } &&
16956          { ac_try='test -s conftest.$ac_objext'
16957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958   (eval $ac_try) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; }; then
16962   ac_hi=$ac_mid; break
16963 else
16964   echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16966
16967 ac_lo=`expr $ac_mid + 1`
16968                     if test $ac_lo -le $ac_mid; then
16969                       ac_lo= ac_hi=
16970                       break
16971                     fi
16972                     ac_mid=`expr 2 '*' $ac_mid + 1`
16973 fi
16974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975   done
16976 else
16977   echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16979
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h.  */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h.  */
16986 $ac_includes_default
16987 int
16988 main ()
16989 {
16990 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16991 test_array [0] = 0
16992
16993   ;
16994   return 0;
16995 }
16996 _ACEOF
16997 rm -f conftest.$ac_objext
16998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16999   (eval $ac_compile) 2>conftest.er1
17000   ac_status=$?
17001   grep -v '^ *+' conftest.er1 >conftest.err
17002   rm -f conftest.er1
17003   cat conftest.err >&5
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); } &&
17006          { ac_try='test -z "$ac_c_werror_flag"
17007                          || test ! -s conftest.err'
17008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009   (eval $ac_try) 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); }; } &&
17013          { ac_try='test -s conftest.$ac_objext'
17014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015   (eval $ac_try) 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); }; }; then
17019   ac_hi=-1 ac_mid=-1
17020   while :; do
17021     cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 $ac_includes_default
17028 int
17029 main ()
17030 {
17031 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17032 test_array [0] = 0
17033
17034   ;
17035   return 0;
17036 }
17037 _ACEOF
17038 rm -f conftest.$ac_objext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17040   (eval $ac_compile) 2>conftest.er1
17041   ac_status=$?
17042   grep -v '^ *+' conftest.er1 >conftest.err
17043   rm -f conftest.er1
17044   cat conftest.err >&5
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } &&
17047          { ac_try='test -z "$ac_c_werror_flag"
17048                          || test ! -s conftest.err'
17049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050   (eval $ac_try) 2>&5
17051   ac_status=$?
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); }; } &&
17054          { ac_try='test -s conftest.$ac_objext'
17055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056   (eval $ac_try) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; }; then
17060   ac_lo=$ac_mid; break
17061 else
17062   echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 ac_hi=`expr '(' $ac_mid ')' - 1`
17066                        if test $ac_mid -le $ac_hi; then
17067                          ac_lo= ac_hi=
17068                          break
17069                        fi
17070                        ac_mid=`expr 2 '*' $ac_mid`
17071 fi
17072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17073   done
17074 else
17075   echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 ac_lo= ac_hi=
17079 fi
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 fi
17082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17083 # Binary search between lo and hi bounds.
17084 while test "x$ac_lo" != "x$ac_hi"; do
17085   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17086   cat >conftest.$ac_ext <<_ACEOF
17087 /* confdefs.h.  */
17088 _ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h.  */
17092 $ac_includes_default
17093 int
17094 main ()
17095 {
17096 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17097 test_array [0] = 0
17098
17099   ;
17100   return 0;
17101 }
17102 _ACEOF
17103 rm -f conftest.$ac_objext
17104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17105   (eval $ac_compile) 2>conftest.er1
17106   ac_status=$?
17107   grep -v '^ *+' conftest.er1 >conftest.err
17108   rm -f conftest.er1
17109   cat conftest.err >&5
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); } &&
17112          { ac_try='test -z "$ac_c_werror_flag"
17113                          || test ! -s conftest.err'
17114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115   (eval $ac_try) 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); }; } &&
17119          { ac_try='test -s conftest.$ac_objext'
17120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121   (eval $ac_try) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }; then
17125   ac_hi=$ac_mid
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 ac_lo=`expr '(' $ac_mid ')' + 1`
17131 fi
17132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17133 done
17134 case $ac_lo in
17135 ?*) ac_cv_sizeof_char=$ac_lo;;
17136 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17137 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17138 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17139 See \`config.log' for more details." >&5
17140 echo "$as_me: error: cannot compute sizeof (char), 77
17141 See \`config.log' for more details." >&2;}
17142    { (exit 1); exit 1; }; }; } ;;
17143 esac
17144 else
17145   if test "$cross_compiling" = yes; then
17146   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17147 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17148 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17149 See \`config.log' for more details." >&5
17150 echo "$as_me: error: cannot run test program while cross compiling
17151 See \`config.log' for more details." >&2;}
17152    { (exit 1); exit 1; }; }; }
17153 else
17154   cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h.  */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h.  */
17160 $ac_includes_default
17161 long longval () { return (long) (sizeof (char)); }
17162 unsigned long ulongval () { return (long) (sizeof (char)); }
17163 #include <stdio.h>
17164 #include <stdlib.h>
17165 int
17166 main ()
17167 {
17168
17169   FILE *f = fopen ("conftest.val", "w");
17170   if (! f)
17171     exit (1);
17172   if (((long) (sizeof (char))) < 0)
17173     {
17174       long i = longval ();
17175       if (i != ((long) (sizeof (char))))
17176         exit (1);
17177       fprintf (f, "%ld\n", i);
17178     }
17179   else
17180     {
17181       unsigned long i = ulongval ();
17182       if (i != ((long) (sizeof (char))))
17183         exit (1);
17184       fprintf (f, "%lu\n", i);
17185     }
17186   exit (ferror (f) || fclose (f) != 0);
17187
17188   ;
17189   return 0;
17190 }
17191 _ACEOF
17192 rm -f conftest$ac_exeext
17193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17194   (eval $ac_link) 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199   (eval $ac_try) 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); }; }; then
17203   ac_cv_sizeof_char=`cat conftest.val`
17204 else
17205   echo "$as_me: program exited with status $ac_status" >&5
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17208
17209 ( exit $ac_status )
17210 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17211 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17212 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17213 See \`config.log' for more details." >&5
17214 echo "$as_me: error: cannot compute sizeof (char), 77
17215 See \`config.log' for more details." >&2;}
17216    { (exit 1); exit 1; }; }; }
17217 fi
17218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17219 fi
17220 fi
17221 rm -f conftest.val
17222 else
17223   ac_cv_sizeof_char=0
17224 fi
17225 fi
17226 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17227 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17228 cat >>confdefs.h <<_ACEOF
17229 #define SIZEOF_CHAR $ac_cv_sizeof_char
17230 _ACEOF
17231
17232
17233
17234   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17235 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17236   case "$ac_cv_sizeof_char" in
17237     1) acx_cv_type_int8_t=char ;;
17238     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17239 echo "$as_me: error: no 8-bit type" >&2;}
17240    { (exit please report a bug); exit please report a bug; }; }
17241   esac
17242   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17243 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17244
17245   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17246 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17247   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17248     2:*) acx_cv_type_int16_t=int ;;
17249     *:2) acx_cv_type_int16_t=short ;;
17250     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17251 echo "$as_me: error: no 16-bit type" >&2;}
17252    { (exit please report a bug); exit please report a bug; }; }
17253   esac
17254   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17255 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17256
17257   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17258 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17259   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17260     4:*) acx_cv_type_int32_t=int ;;
17261     *:4) acx_cv_type_int32_t=long ;;
17262     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17263 echo "$as_me: error: no 32-bit type" >&2;}
17264    { (exit please report a bug); exit please report a bug; }; }
17265   esac
17266   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17267 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17268 fi
17269
17270 # These tests are here to make the output prettier
17271
17272 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17273   case "$ac_cv_sizeof_long" in
17274     8) acx_cv_type_int64_t=long ;;
17275   esac
17276   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17277 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17278   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17279 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17280 fi
17281
17282 # Now we can use the above types
17283
17284 if test "$ac_cv_type_uintptr_t" != yes; then
17285   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17286 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17287   case $ac_cv_sizeof_void_p in
17288     2) acx_cv_type_intptr_t=int16_t ;;
17289     4) acx_cv_type_intptr_t=int32_t ;;
17290     8) acx_cv_type_intptr_t=int64_t ;;
17291     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17292 echo "$as_me: error: no equivalent for intptr_t" >&2;}
17293    { (exit please report a bug); exit please report a bug; }; }
17294   esac
17295   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17296 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17297 fi
17298
17299 # ----------------- done all checks, emit header -------------
17300           ac_config_commands="$ac_config_commands gstdint.h"
17301
17302
17303
17304
17305 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
17306 # In case the pthread.h system header is not found, this test will fail.
17307 XPCFLAGS=""
17308 CFLAGS="$CFLAGS -pthread"
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315 #include <pthread.h>
17316    void *g(void *d) { return NULL; }
17317 int
17318 main ()
17319 {
17320 pthread_t t; pthread_create(&t,NULL,g,NULL);
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17327   (eval $ac_link) 2>conftest.er1
17328   ac_status=$?
17329   grep -v '^ *+' conftest.er1 >conftest.err
17330   rm -f conftest.er1
17331   cat conftest.err >&5
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } &&
17334          { ac_try='test -z "$ac_c_werror_flag"
17335                          || test ! -s conftest.err'
17336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337   (eval $ac_try) 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; } &&
17341          { ac_try='test -s conftest$ac_exeext'
17342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343   (eval $ac_try) 2>&5
17344   ac_status=$?
17345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346   (exit $ac_status); }; }; then
17347   XPCFLAGS=" -Wc,-pthread"
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
17353   cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359 #include <pthread.h>
17360      void *g(void *d) { return NULL; }
17361 int
17362 main ()
17363 {
17364 pthread_t t; pthread_create(&t,NULL,g,NULL);
17365   ;
17366   return 0;
17367 }
17368 _ACEOF
17369 rm -f conftest.$ac_objext conftest$ac_exeext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371   (eval $ac_link) 2>conftest.er1
17372   ac_status=$?
17373   grep -v '^ *+' conftest.er1 >conftest.err
17374   rm -f conftest.er1
17375   cat conftest.err >&5
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } &&
17378          { ac_try='test -z "$ac_c_werror_flag"
17379                          || test ! -s conftest.err'
17380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381   (eval $ac_try) 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); }; } &&
17385          { ac_try='test -s conftest$ac_exeext'
17386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387   (eval $ac_try) 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; }; then
17391   :
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
17397 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
17398    { (exit 1); exit 1; }; }
17399 fi
17400 rm -f conftest.err conftest.$ac_objext \
17401       conftest$ac_exeext conftest.$ac_ext
17402 fi
17403 rm -f conftest.err conftest.$ac_objext \
17404       conftest$ac_exeext conftest.$ac_ext
17405
17406 # Check for functions needed.
17407
17408
17409
17410 for ac_func in getloadavg clock_gettime strtoull
17411 do
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17415 if eval "test \"\${$as_ac_var+set}\" = set"; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h.  */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h.  */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17426 #define $ac_func innocuous_$ac_func
17427
17428 /* System header to define __stub macros and hopefully few prototypes,
17429     which can conflict with char $ac_func (); below.
17430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431     <limits.h> exists even on freestanding compilers.  */
17432
17433 #ifdef __STDC__
17434 # include <limits.h>
17435 #else
17436 # include <assert.h>
17437 #endif
17438
17439 #undef $ac_func
17440
17441 /* Override any gcc2 internal prototype to avoid an error.  */
17442 #ifdef __cplusplus
17443 extern "C"
17444 {
17445 #endif
17446 /* We use char because int might match the return type of a gcc2
17447    builtin and then its argument prototype would still apply.  */
17448 char $ac_func ();
17449 /* The GNU C library defines this for functions which it implements
17450     to always fail with ENOSYS.  Some functions are actually named
17451     something starting with __ and the normal name is an alias.  */
17452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17453 choke me
17454 #else
17455 char (*f) () = $ac_func;
17456 #endif
17457 #ifdef __cplusplus
17458 }
17459 #endif
17460
17461 int
17462 main ()
17463 {
17464 return f != $ac_func;
17465   ;
17466   return 0;
17467 }
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471   (eval $ac_link) 2>conftest.er1
17472   ac_status=$?
17473   grep -v '^ *+' conftest.er1 >conftest.err
17474   rm -f conftest.er1
17475   cat conftest.err >&5
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); } &&
17478          { ac_try='test -z "$ac_c_werror_flag"
17479                          || test ! -s conftest.err'
17480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481   (eval $ac_try) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); }; } &&
17485          { ac_try='test -s conftest$ac_exeext'
17486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487   (eval $ac_try) 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; }; then
17491   eval "$as_ac_var=yes"
17492 else
17493   echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496 eval "$as_ac_var=no"
17497 fi
17498 rm -f conftest.err conftest.$ac_objext \
17499       conftest$ac_exeext conftest.$ac_ext
17500 fi
17501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17503 if test `eval echo '${'$as_ac_var'}'` = yes; then
17504   cat >>confdefs.h <<_ACEOF
17505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17506 _ACEOF
17507
17508 fi
17509 done
17510
17511
17512 # Check for broken semaphore implementation on darwin.
17513 # sem_init returns: sem_init error: Function not implemented.
17514 case "$host" in
17515   *-darwin*)
17516
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
17519 _ACEOF
17520
17521     ;;
17522 esac
17523
17524  # Check whether --enable-linux-futex or --disable-linux-futex was given.
17525 if test "${enable_linux_futex+set}" = set; then
17526   enableval="$enable_linux_futex"
17527
17528       case "$enableval" in
17529        yes|no|default) ;;
17530        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
17531 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
17532    { (exit 1); exit 1; }; } ;;
17533                           esac
17534
17535 else
17536   enable_linux_futex=default
17537 fi;
17538
17539 case "$target" in
17540   *-linux*)
17541     case "$enable_linux_futex" in
17542       default)
17543         # If headers don't have gettid/futex syscalls definition, then
17544         # default to no, otherwise there will be compile time failures.
17545         # Otherwise, default to yes.  If we don't detect we are
17546         # compiled/linked against NPTL and not cross-compiling, check
17547         # if programs are run by default against NPTL and if not, issue
17548         # a warning.
17549         enable_linux_futex=no
17550         cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556 #include <sys/syscall.h>
17557            int lk;
17558 int
17559 main ()
17560 {
17561 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
17562   ;
17563   return 0;
17564 }
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568   (eval $ac_link) 2>conftest.er1
17569   ac_status=$?
17570   grep -v '^ *+' conftest.er1 >conftest.err
17571   rm -f conftest.er1
17572   cat conftest.err >&5
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); } &&
17575          { ac_try='test -z "$ac_c_werror_flag"
17576                          || test ! -s conftest.err'
17577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578   (eval $ac_try) 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; } &&
17582          { ac_try='test -s conftest$ac_exeext'
17583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584   (eval $ac_try) 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; }; then
17588   save_LIBS="$LIBS"
17589            LIBS="-lpthread $LIBS"
17590            cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h.  */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h.  */
17596 #ifndef _GNU_SOURCE
17597              #define _GNU_SOURCE 1
17598              #endif
17599              #include <pthread.h>
17600              pthread_t th; void *status;
17601 int
17602 main ()
17603 {
17604 pthread_tryjoin_np (th, &status);
17605   ;
17606   return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17611   (eval $ac_link) 2>conftest.er1
17612   ac_status=$?
17613   grep -v '^ *+' conftest.er1 >conftest.err
17614   rm -f conftest.er1
17615   cat conftest.err >&5
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); } &&
17618          { ac_try='test -z "$ac_c_werror_flag"
17619                          || test ! -s conftest.err'
17620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621   (eval $ac_try) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; } &&
17625          { ac_try='test -s conftest$ac_exeext'
17626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627   (eval $ac_try) 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); }; }; then
17631   enable_linux_futex=yes
17632 else
17633   echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17635
17636 if test x$cross_compiling = xno; then
17637                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
17638                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
17639                  { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
17640 If so, please configure with --disable-linux-futex" >&5
17641 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
17642 If so, please configure with --disable-linux-futex" >&2;}
17643                fi
17644              fi
17645              enable_linux_futex=yes
17646 fi
17647 rm -f conftest.err conftest.$ac_objext \
17648       conftest$ac_exeext conftest.$ac_ext
17649            LIBS="$save_LIBS"
17650 else
17651   echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17653
17654 fi
17655 rm -f conftest.err conftest.$ac_objext \
17656       conftest$ac_exeext conftest.$ac_ext
17657         ;;
17658       yes)
17659         cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h.  */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h.  */
17665 #include <sys/syscall.h>
17666            int lk;
17667 int
17668 main ()
17669 {
17670 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
17671   ;
17672   return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17677   (eval $ac_link) 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } &&
17684          { ac_try='test -z "$ac_c_werror_flag"
17685                          || test ! -s conftest.err'
17686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687   (eval $ac_try) 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; } &&
17691          { ac_try='test -s conftest$ac_exeext'
17692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693   (eval $ac_try) 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; }; then
17697   :
17698 else
17699   echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
17703 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
17704    { (exit 1); exit 1; }; }
17705 fi
17706 rm -f conftest.err conftest.$ac_objext \
17707       conftest$ac_exeext conftest.$ac_ext
17708         ;;
17709     esac
17710     ;;
17711   *)
17712     enable_linux_futex=no
17713     ;;
17714 esac
17715 if test x$enable_linux_futex = xyes; then
17716   :
17717 fi
17718
17719
17720 # Check for pthread_{,attr_}[sg]etaffinity_np.
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h.  */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h.  */
17727 #define _GNU_SOURCE
17728    #include <pthread.h>
17729 int
17730 main ()
17731 {
17732 cpu_set_t cpuset;
17733    pthread_attr_t attr;
17734    pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17735    if (CPU_ISSET (0, &cpuset))
17736      CPU_SET (1, &cpuset);
17737    else
17738      CPU_ZERO (&cpuset);
17739    pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17740    pthread_attr_init (&attr);
17741    pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17742    pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17743   ;
17744   return 0;
17745 }
17746 _ACEOF
17747 rm -f conftest.$ac_objext conftest$ac_exeext
17748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17749   (eval $ac_link) 2>conftest.er1
17750   ac_status=$?
17751   grep -v '^ *+' conftest.er1 >conftest.err
17752   rm -f conftest.er1
17753   cat conftest.err >&5
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); } &&
17756          { ac_try='test -z "$ac_c_werror_flag"
17757                          || test ! -s conftest.err'
17758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759   (eval $ac_try) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); }; } &&
17763          { ac_try='test -s conftest$ac_exeext'
17764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765   (eval $ac_try) 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; }; then
17769
17770 cat >>confdefs.h <<\_ACEOF
17771 #define HAVE_PTHREAD_AFFINITY_NP 1
17772 _ACEOF
17773
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 fi
17779 rm -f conftest.err conftest.$ac_objext \
17780       conftest$ac_exeext conftest.$ac_ext
17781
17782 # At least for glibc, clock_gettime is in librt.  But don't pull that
17783 # in if it still doesn't give us the function we want.
17784 if test $ac_cv_func_clock_gettime = no; then
17785   echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17786 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17787 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   ac_check_lib_save_LIBS=$LIBS
17791 LIBS="-lrt  $LIBS"
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798
17799 /* Override any gcc2 internal prototype to avoid an error.  */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 /* We use char because int might match the return type of a gcc2
17804    builtin and then its argument prototype would still apply.  */
17805 char clock_gettime ();
17806 int
17807 main ()
17808 {
17809 clock_gettime ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816   (eval $ac_link) 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -z "$ac_c_werror_flag"
17824                          || test ! -s conftest.err'
17825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826   (eval $ac_try) 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest$ac_exeext'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836   ac_cv_lib_rt_clock_gettime=yes
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_cv_lib_rt_clock_gettime=no
17842 fi
17843 rm -f conftest.err conftest.$ac_objext \
17844       conftest$ac_exeext conftest.$ac_ext
17845 LIBS=$ac_check_lib_save_LIBS
17846 fi
17847 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17848 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17849 if test $ac_cv_lib_rt_clock_gettime = yes; then
17850   LIBS="-lrt $LIBS"
17851
17852 cat >>confdefs.h <<\_ACEOF
17853 #define HAVE_CLOCK_GETTIME 1
17854 _ACEOF
17855
17856 fi
17857
17858 fi
17859
17860 # See if we support thread-local storage.
17861
17862    # Check whether --enable-tls or --disable-tls was given.
17863 if test "${enable_tls+set}" = set; then
17864   enableval="$enable_tls"
17865
17866       case "$enableval" in
17867        yes|no) ;;
17868        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17869 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17870    { (exit 1); exit 1; }; } ;;
17871       esac
17872
17873 else
17874   enable_tls=yes
17875 fi;
17876
17877   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17878 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17879 if test "${gcc_cv_have_tls+set}" = set; then
17880   echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882
17883     if test "$cross_compiling" = yes; then
17884                 cat >conftest.$ac_ext <<_ACEOF
17885 __thread int a; int b; int main() { return a = b; }
17886 _ACEOF
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889   (eval $ac_link) 2>conftest.er1
17890   ac_status=$?
17891   grep -v '^ *+' conftest.er1 >conftest.err
17892   rm -f conftest.er1
17893   cat conftest.err >&5
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } &&
17896          { ac_try='test -z "$ac_c_werror_flag"
17897                          || test ! -s conftest.err'
17898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899   (eval $ac_try) 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; } &&
17903          { ac_try='test -s conftest$ac_exeext'
17904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905   (eval $ac_try) 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); }; }; then
17909   gcc_cv_have_tls=yes
17910 else
17911   echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914 gcc_cv_have_tls=no
17915 fi
17916 rm -f conftest.err conftest.$ac_objext \
17917       conftest$ac_exeext conftest.$ac_ext
17918
17919
17920 else
17921   cat >conftest.$ac_ext <<_ACEOF
17922 __thread int a; int b; int main() { return a = b; }
17923 _ACEOF
17924 rm -f conftest$ac_exeext
17925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17926   (eval $ac_link) 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; }; then
17935                       chktls_save_LDFLAGS="$LDFLAGS"
17936       LDFLAGS="-static $LDFLAGS"
17937       cat >conftest.$ac_ext <<_ACEOF
17938 int main() { return 0; }
17939 _ACEOF
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17942   (eval $ac_link) 2>conftest.er1
17943   ac_status=$?
17944   grep -v '^ *+' conftest.er1 >conftest.err
17945   rm -f conftest.er1
17946   cat conftest.err >&5
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); } &&
17949          { ac_try='test -z "$ac_c_werror_flag"
17950                          || test ! -s conftest.err'
17951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952   (eval $ac_try) 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; } &&
17956          { ac_try='test -s conftest$ac_exeext'
17957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958   (eval $ac_try) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; }; then
17962   if test "$cross_compiling" = yes; then
17963   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17964 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17965 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17966 See \`config.log' for more details." >&5
17967 echo "$as_me: error: cannot run test program while cross compiling
17968 See \`config.log' for more details." >&2;}
17969    { (exit 1); exit 1; }; }; }
17970 else
17971   cat >conftest.$ac_ext <<_ACEOF
17972 __thread int a; int b; int main() { return a = b; }
17973 _ACEOF
17974 rm -f conftest$ac_exeext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17976   (eval $ac_link) 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; }; then
17985   gcc_cv_have_tls=yes
17986 else
17987   echo "$as_me: program exited with status $ac_status" >&5
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17990
17991 ( exit $ac_status )
17992 gcc_cv_have_tls=no
17993 fi
17994 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17995 fi
17996 else
17997   echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
17999
18000 gcc_cv_have_tls=yes
18001 fi
18002 rm -f conftest.err conftest.$ac_objext \
18003       conftest$ac_exeext conftest.$ac_ext
18004       LDFLAGS="$chktls_save_LDFLAGS"
18005       if test $gcc_cv_have_tls = yes; then
18006                                                 chktls_save_CFLAGS="$CFLAGS"
18007         thread_CFLAGS=failed
18008         for flag in '' '-pthread' '-lpthread'; do
18009           CFLAGS="$flag $chktls_save_CFLAGS"
18010           cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016 #include <pthread.h>
18017                 void *g(void *d) { return NULL; }
18018 int
18019 main ()
18020 {
18021 pthread_t t; pthread_create(&t,NULL,g,NULL);
18022   ;
18023   return 0;
18024 }
18025 _ACEOF
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028   (eval $ac_link) 2>conftest.er1
18029   ac_status=$?
18030   grep -v '^ *+' conftest.er1 >conftest.err
18031   rm -f conftest.er1
18032   cat conftest.err >&5
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); } &&
18035          { ac_try='test -z "$ac_c_werror_flag"
18036                          || test ! -s conftest.err'
18037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038   (eval $ac_try) 2>&5
18039   ac_status=$?
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); }; } &&
18042          { ac_try='test -s conftest$ac_exeext'
18043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044   (eval $ac_try) 2>&5
18045   ac_status=$?
18046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047   (exit $ac_status); }; }; then
18048   thread_CFLAGS="$flag"
18049 else
18050   echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18052
18053 fi
18054 rm -f conftest.err conftest.$ac_objext \
18055       conftest$ac_exeext conftest.$ac_ext
18056           if test "X$thread_CFLAGS" != Xfailed; then
18057             break
18058           fi
18059         done
18060         CFLAGS="$chktls_save_CFLAGS"
18061         if test "X$thread_CFLAGS" != Xfailed; then
18062           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
18063           if test "$cross_compiling" = yes; then
18064   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18065 echo "$as_me: error: in \`$ac_pwd':" >&2;}
18066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18067 See \`config.log' for more details." >&5
18068 echo "$as_me: error: cannot run test program while cross compiling
18069 See \`config.log' for more details." >&2;}
18070    { (exit 1); exit 1; }; }; }
18071 else
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 #include <pthread.h>
18079                 __thread int a;
18080                 static int *a_in_other_thread;
18081                 static void *
18082                 thread_func (void *arg)
18083                 {
18084                   a_in_other_thread = &a;
18085                   return (void *)0;
18086                 }
18087 int
18088 main ()
18089 {
18090 pthread_t thread;
18091                 void *thread_retval;
18092                 int *a_in_main_thread;
18093                 if (pthread_create (&thread, (pthread_attr_t *)0,
18094                                     thread_func, (void *)0))
18095                   return 0;
18096                 a_in_main_thread = &a;
18097                 if (pthread_join (thread, &thread_retval))
18098                   return 0;
18099                 return (a_in_other_thread == a_in_main_thread);
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106   (eval $ac_link) 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111   (eval $ac_try) 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; }; then
18115   gcc_cv_have_tls=yes
18116 else
18117   echo "$as_me: program exited with status $ac_status" >&5
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18120
18121 ( exit $ac_status )
18122 gcc_cv_have_tls=no
18123 fi
18124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18125 fi
18126           CFLAGS="$chktls_save_CFLAGS"
18127         fi
18128       fi
18129 else
18130   echo "$as_me: program exited with status $ac_status" >&5
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134 ( exit $ac_status )
18135 gcc_cv_have_tls=no
18136 fi
18137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18138 fi
18139 fi
18140 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
18141 echo "${ECHO_T}$gcc_cv_have_tls" >&6
18142   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
18143
18144 cat >>confdefs.h <<\_ACEOF
18145 #define HAVE_TLS 1
18146 _ACEOF
18147
18148   fi
18149
18150 # See what sort of export controls are availible.
18151
18152   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
18153 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
18154 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
18155   echo $ECHO_N "(cached) $ECHO_C" >&6
18156 else
18157
18158   save_CFLAGS="$CFLAGS"
18159   CFLAGS="$CFLAGS -Werror"
18160   cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166 void __attribute__((visibility("hidden"))) foo(void) { }
18167 int
18168 main ()
18169 {
18170
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext
18176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18177   (eval $ac_compile) 2>conftest.er1
18178   ac_status=$?
18179   grep -v '^ *+' conftest.er1 >conftest.err
18180   rm -f conftest.er1
18181   cat conftest.err >&5
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } &&
18184          { ac_try='test -z "$ac_c_werror_flag"
18185                          || test ! -s conftest.err'
18186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187   (eval $ac_try) 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; } &&
18191          { ac_try='test -s conftest.$ac_objext'
18192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193   (eval $ac_try) 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; }; then
18197   libgomp_cv_have_attribute_visibility=yes
18198 else
18199   echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202 libgomp_cv_have_attribute_visibility=no
18203 fi
18204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18205   CFLAGS="$save_CFLAGS"
18206 fi
18207 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
18208 echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
18209   if test $libgomp_cv_have_attribute_visibility = yes; then
18210
18211 cat >>confdefs.h <<\_ACEOF
18212 #define HAVE_ATTRIBUTE_VISIBILITY 1
18213 _ACEOF
18214
18215   fi
18216
18217   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
18218 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
18219 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
18220   echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222
18223   save_CFLAGS="$CFLAGS"
18224   CFLAGS="$CFLAGS -Werror"
18225   cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231 void __attribute__((dllexport)) foo(void) { }
18232 int
18233 main ()
18234 {
18235
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest.$ac_objext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18242   (eval $ac_compile) 2>conftest.er1
18243   ac_status=$?
18244   grep -v '^ *+' conftest.er1 >conftest.err
18245   rm -f conftest.er1
18246   cat conftest.err >&5
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } &&
18249          { ac_try='test -z "$ac_c_werror_flag"
18250                          || test ! -s conftest.err'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; } &&
18256          { ac_try='test -s conftest.$ac_objext'
18257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258   (eval $ac_try) 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; }; then
18262   libgomp_cv_have_attribute_dllexport=yes
18263 else
18264   echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 libgomp_cv_have_attribute_dllexport=no
18268 fi
18269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18270   CFLAGS="$save_CFLAGS"
18271 fi
18272 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
18273 echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
18274   if test $libgomp_cv_have_attribute_dllexport = yes; then
18275
18276 cat >>confdefs.h <<\_ACEOF
18277 #define HAVE_ATTRIBUTE_DLLEXPORT 1
18278 _ACEOF
18279
18280   fi
18281
18282   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
18283 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
18284 if test "${libgomp_cv_have_attribute_alias+set}" = set; then
18285   echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287
18288   cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h.  */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h.  */
18294
18295 void foo(void) { }
18296 extern void bar(void) __attribute__((alias("foo")));
18297 int
18298 main ()
18299 {
18300 bar();
18301   ;
18302   return 0;
18303 }
18304 _ACEOF
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18307   (eval $ac_link) 2>conftest.er1
18308   ac_status=$?
18309   grep -v '^ *+' conftest.er1 >conftest.err
18310   rm -f conftest.er1
18311   cat conftest.err >&5
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); } &&
18314          { ac_try='test -z "$ac_c_werror_flag"
18315                          || test ! -s conftest.err'
18316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; } &&
18321          { ac_try='test -s conftest$ac_exeext'
18322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323   (eval $ac_try) 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; }; then
18327   libgomp_cv_have_attribute_alias=yes
18328 else
18329   echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18331
18332 libgomp_cv_have_attribute_alias=no
18333 fi
18334 rm -f conftest.err conftest.$ac_objext \
18335       conftest$ac_exeext conftest.$ac_ext
18336 fi
18337 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
18338 echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
18339   if test $libgomp_cv_have_attribute_alias = yes; then
18340
18341 cat >>confdefs.h <<\_ACEOF
18342 #define HAVE_ATTRIBUTE_ALIAS 1
18343 _ACEOF
18344
18345   fi
18346
18347
18348 # Check whether --with-gnu-ld or --without-gnu-ld was given.
18349 if test "${with_gnu_ld+set}" = set; then
18350   withval="$with_gnu_ld"
18351   test "$withval" = no || with_gnu_ld=yes
18352 else
18353   with_gnu_ld=no
18354 fi;
18355 ac_prog=ld
18356 if test "$GCC" = yes; then
18357   # Check if gcc -print-prog-name=ld gives a path.
18358   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18359 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
18360   case $host in
18361   *-*-mingw*)
18362     # gcc leaves a trailing carriage return which upsets mingw
18363     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18364   *)
18365     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18366   esac
18367   case $ac_prog in
18368     # Accept absolute paths.
18369     [\\/]* | ?:[\\/]*)
18370       re_direlt='/[^/][^/]*/\.\./'
18371       # Canonicalize the pathname of ld
18372       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18373       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18374         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18375       done
18376       test -z "$LD" && LD="$ac_prog"
18377       ;;
18378   "")
18379     # If it fails, then pretend we aren't using GCC.
18380     ac_prog=ld
18381     ;;
18382   *)
18383     # If it is relative, then search for the first ld in PATH.
18384     with_gnu_ld=unknown
18385     ;;
18386   esac
18387 elif test "$with_gnu_ld" = yes; then
18388   echo "$as_me:$LINENO: checking for GNU ld" >&5
18389 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18390 else
18391   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18392 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18393 fi
18394 if test "${lt_cv_path_LD+set}" = set; then
18395   echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397   if test -z "$LD"; then
18398   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18399   for ac_dir in $PATH; do
18400     IFS="$lt_save_ifs"
18401     test -z "$ac_dir" && ac_dir=.
18402     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18403       lt_cv_path_LD="$ac_dir/$ac_prog"
18404       # Check to see if the program is GNU ld.  I'd rather use --version,
18405       # but apparently some variants of GNU ld only accept -v.
18406       # Break only if it was the GNU/non-GNU ld that we prefer.
18407       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18408       *GNU* | *'with BFD'*)
18409         test "$with_gnu_ld" != no && break
18410         ;;
18411       *)
18412         test "$with_gnu_ld" != yes && break
18413         ;;
18414       esac
18415     fi
18416   done
18417   IFS="$lt_save_ifs"
18418 else
18419   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18420 fi
18421 fi
18422
18423 LD="$lt_cv_path_LD"
18424 if test -n "$LD"; then
18425   echo "$as_me:$LINENO: result: $LD" >&5
18426 echo "${ECHO_T}$LD" >&6
18427 else
18428   echo "$as_me:$LINENO: result: no" >&5
18429 echo "${ECHO_T}no" >&6
18430 fi
18431 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18432 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18433    { (exit 1); exit 1; }; }
18434 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18435 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18436 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18437   echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18440 case `$LD -v 2>&1 </dev/null` in
18441 *GNU* | *'with BFD'*)
18442   lt_cv_prog_gnu_ld=yes
18443   ;;
18444 *)
18445   lt_cv_prog_gnu_ld=no
18446   ;;
18447 esac
18448 fi
18449 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18450 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
18451 with_gnu_ld=$lt_cv_prog_gnu_ld
18452
18453
18454
18455
18456
18457
18458
18459   # If we're not using GNU ld, then there's no point in even trying these
18460   # tests.  Check for that first.  We should have already tested for gld
18461   # by now (in libtool), but require it now just to be safe...
18462   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
18463   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
18464
18465
18466
18467   # The name set by libtool depends on the version of libtool.  Shame on us
18468   # for depending on an impl detail, but c'est la vie.  Older versions used
18469   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
18470   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
18471   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
18472   # set (hence we're using an older libtool), then set it.
18473   if test x${with_gnu_ld+set} != xset; then
18474     if test x${ac_cv_prog_gnu_ld+set} != xset; then
18475       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
18476       with_gnu_ld=no
18477     else
18478       with_gnu_ld=$ac_cv_prog_gnu_ld
18479     fi
18480   fi
18481
18482   # Start by getting the version number.  I think the libtool test already
18483   # does some of this, but throws away the result.
18484   libgomp_ld_is_gold=no
18485   if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
18486     libgomp_ld_is_gold=yes
18487   fi
18488
18489   ldver=`$LD --version 2>/dev/null | head -1 | \
18490          sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
18491
18492   libgomp_gnu_ld_version=`echo $ldver | \
18493          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
18494
18495   # Set --gc-sections.
18496   if test "$with_gnu_ld" = "notbroken"; then
18497     # GNU ld it is!  Joy and bunny rabbits!
18498
18499     # All these tests are for C++; save the language and the compiler flags.
18500     # Need to do this so that g++ won't try to link in libstdc++
18501     ac_test_CFLAGS="${CFLAGS+set}"
18502     ac_save_CFLAGS="$CFLAGS"
18503     CFLAGS='-x c++  -Wl,--gc-sections'
18504
18505     # Check for -Wl,--gc-sections
18506     # XXX This test is broken at the moment, as symbols required for linking
18507     # are now in libsupc++ (not built yet).  In addition, this test has
18508     # cored on solaris in the past.  In addition, --gc-sections doesn't
18509     # really work at the moment (keeps on discarding used sections, first
18510     # .eh_frame and now some of the glibc sections for iconv).
18511     # Bzzzzt.  Thanks for playing, maybe next time.
18512     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
18513 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
18514     if test "$cross_compiling" = yes; then
18515   ac_sectionLDflags=yes
18516 else
18517   cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523
18524      int main(void)
18525      {
18526        try { throw 1; }
18527        catch (...) { };
18528        return 0;
18529      }
18530
18531 _ACEOF
18532 rm -f conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534   (eval $ac_link) 2>&5
18535   ac_status=$?
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539   (eval $ac_try) 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }; }; then
18543   ac_sectionLDflags=yes
18544 else
18545   echo "$as_me: program exited with status $ac_status" >&5
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549 ( exit $ac_status )
18550 ac_sectionLDflags=no
18551 fi
18552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18553 fi
18554     if test "$ac_test_CFLAGS" = set; then
18555       CFLAGS="$ac_save_CFLAGS"
18556     else
18557       # this is the suspicious part
18558       CFLAGS=''
18559     fi
18560     if test "$ac_sectionLDflags" = "yes"; then
18561       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
18562     fi
18563     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
18564 echo "${ECHO_T}$ac_sectionLDflags" >&6
18565   fi
18566
18567   # Set linker optimization flags.
18568   if test x"$with_gnu_ld" = x"yes"; then
18569     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
18570   fi
18571
18572
18573
18574
18575
18576
18577  # Check whether --enable-symvers or --disable-symvers was given.
18578 if test "${enable_symvers+set}" = set; then
18579   enableval="$enable_symvers"
18580
18581       case "$enableval" in
18582        yes|no|gnu) ;;
18583        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
18584 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
18585    { (exit 1); exit 1; }; } ;;
18586                           esac
18587
18588 else
18589   enable_symvers=yes
18590 fi;
18591
18592
18593 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
18594 # don't know enough about $LD to do tricks...
18595
18596 # FIXME  The following test is too strict, in theory.
18597 if test $enable_shared = no ||
18598         test "x$LD" = x ||
18599         test x$libgomp_gnu_ld_version = x; then
18600   enable_symvers=no
18601 fi
18602
18603 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
18604 if test $enable_symvers != no; then
18605   echo "$as_me:$LINENO: checking for shared libgcc" >&5
18606 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
18607   ac_save_CFLAGS="$CFLAGS"
18608   CFLAGS=' -lgcc_s'
18609   cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h.  */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h.  */
18615
18616 int
18617 main ()
18618 {
18619 return 0;
18620   ;
18621   return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18626   (eval $ac_link) 2>conftest.er1
18627   ac_status=$?
18628   grep -v '^ *+' conftest.er1 >conftest.err
18629   rm -f conftest.er1
18630   cat conftest.err >&5
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); } &&
18633          { ac_try='test -z "$ac_c_werror_flag"
18634                          || test ! -s conftest.err'
18635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636   (eval $ac_try) 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); }; } &&
18640          { ac_try='test -s conftest$ac_exeext'
18641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642   (eval $ac_try) 2>&5
18643   ac_status=$?
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); }; }; then
18646   libgomp_shared_libgcc=yes
18647 else
18648   echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 libgomp_shared_libgcc=no
18652 fi
18653 rm -f conftest.err conftest.$ac_objext \
18654       conftest$ac_exeext conftest.$ac_ext
18655   CFLAGS="$ac_save_CFLAGS"
18656   if test $libgomp_shared_libgcc = no; then
18657     cat > conftest.c <<EOF
18658 int main (void) { return 0; }
18659 EOF
18660     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
18661                              -shared -shared-libgcc -o conftest.so \
18662                              conftest.c -v 2>&1 >/dev/null \
18663                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
18664     rm -f conftest.c conftest.so
18665     if test x${libgomp_libgcc_s_suffix+set} = xset; then
18666       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
18667       cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h.  */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h.  */
18673
18674 int
18675 main ()
18676 {
18677 return 0;
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18684   (eval $ac_link) 2>conftest.er1
18685   ac_status=$?
18686   grep -v '^ *+' conftest.er1 >conftest.err
18687   rm -f conftest.er1
18688   cat conftest.err >&5
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } &&
18691          { ac_try='test -z "$ac_c_werror_flag"
18692                          || test ! -s conftest.err'
18693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694   (eval $ac_try) 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; } &&
18698          { ac_try='test -s conftest$ac_exeext'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; }; then
18704   libgomp_shared_libgcc=yes
18705 else
18706   echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18708
18709 fi
18710 rm -f conftest.err conftest.$ac_objext \
18711       conftest$ac_exeext conftest.$ac_ext
18712       CFLAGS="$ac_save_CFLAGS"
18713     fi
18714   fi
18715   echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
18716 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
18717 fi
18718
18719 # For GNU ld, we need at least this version.  The format is described in
18720 # LIBGOMP_CHECK_LINKER_FEATURES above.
18721 libgomp_min_gnu_ld_version=21400
18722 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
18723
18724 # Check to see if unspecified "yes" value can win, given results above.
18725 # Change "yes" into either "no" or a style name.
18726 if test $enable_symvers = yes; then
18727   if test $with_gnu_ld = yes &&
18728      test $libgomp_shared_libgcc = yes;
18729   then
18730     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
18731       enable_symvers=gnu
18732     elif test $libgomp_ld_is_gold = yes ; then
18733       enable_symvers=gnu
18734     else
18735       # The right tools, the right setup, but too old.  Fallbacks?
18736       { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
18737 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
18738       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
18739 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
18740       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
18741 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
18742       { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
18743 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
18744       if test $libgomp_gnu_ld_version -ge 21200 ; then
18745         # Globbing fix is present, proper block support is not.
18746                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18747 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18748         enable_symvers=no
18749       else
18750         # 2.11 or older.
18751         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18752 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18753         enable_symvers=no
18754       fi
18755     fi
18756   else
18757     # just fail for now
18758     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
18759 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
18760     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
18761 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
18762     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
18763 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
18764     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18765 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18766     enable_symvers=no
18767   fi
18768 fi
18769
18770 echo "$as_me:$LINENO: checking whether the target supports .symver directive" >&5
18771 echo $ECHO_N "checking whether the target supports .symver directive... $ECHO_C" >&6
18772 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then
18773   echo $ECHO_N "(cached) $ECHO_C" >&6
18774 else
18775
18776   cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h.  */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h.  */
18782 void foo (void); __asm (".symver foo, bar@SYMVER");
18783 int
18784 main ()
18785 {
18786
18787   ;
18788   return 0;
18789 }
18790 _ACEOF
18791 rm -f conftest.$ac_objext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793   (eval $ac_compile) 2>conftest.er1
18794   ac_status=$?
18795   grep -v '^ *+' conftest.er1 >conftest.err
18796   rm -f conftest.er1
18797   cat conftest.err >&5
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); } &&
18800          { ac_try='test -z "$ac_c_werror_flag"
18801                          || test ! -s conftest.err'
18802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803   (eval $ac_try) 2>&5
18804   ac_status=$?
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); }; } &&
18807          { ac_try='test -s conftest.$ac_objext'
18808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809   (eval $ac_try) 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); }; }; then
18813   libgomp_cv_have_as_symver_directive=yes
18814 else
18815   echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 libgomp_cv_have_as_symver_directive=no
18819 fi
18820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18821 fi
18822 echo "$as_me:$LINENO: result: $libgomp_cv_have_as_symver_directive" >&5
18823 echo "${ECHO_T}$libgomp_cv_have_as_symver_directive" >&6
18824 if test $libgomp_cv_have_as_symver_directive = yes; then
18825
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_AS_SYMVER_DIRECTIVE 1
18828 _ACEOF
18829
18830 fi
18831
18832
18833
18834 if test $enable_symvers != no; then
18835   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
18836   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
18837 else
18838   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
18839   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
18840 fi
18841
18842 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
18843 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
18844
18845
18846 if test $enable_symvers = gnu; then
18847
18848 cat >>confdefs.h <<\_ACEOF
18849 #define LIBGOMP_GNU_SYMBOL_VERSIONING 1
18850 _ACEOF
18851
18852 fi
18853
18854 # Get target configury.
18855 . ${srcdir}/configure.tgt
18856 CFLAGS="$save_CFLAGS $XCFLAGS"
18857
18858 # Check for __sync_val_compare_and_swap, but only after the target has
18859 # had a chance to set XCFLAGS.
18860
18861   echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
18862 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
18863 if test "${libgomp_cv_have_sync_builtins+set}" = set; then
18864   echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866
18867   cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h.  */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h.  */
18873
18874 int
18875 main ()
18876 {
18877 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884   (eval $ac_link) 2>conftest.er1
18885   ac_status=$?
18886   grep -v '^ *+' conftest.er1 >conftest.err
18887   rm -f conftest.er1
18888   cat conftest.err >&5
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); } &&
18891          { ac_try='test -z "$ac_c_werror_flag"
18892                          || test ! -s conftest.err'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; } &&
18898          { ac_try='test -s conftest$ac_exeext'
18899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900   (eval $ac_try) 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; }; then
18904   libgomp_cv_have_sync_builtins=yes
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909 libgomp_cv_have_sync_builtins=no
18910 fi
18911 rm -f conftest.err conftest.$ac_objext \
18912       conftest$ac_exeext conftest.$ac_ext
18913 fi
18914 echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18915 echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18916   if test $libgomp_cv_have_sync_builtins = yes; then
18917
18918 cat >>confdefs.h <<\_ACEOF
18919 #define HAVE_SYNC_BUILTINS 1
18920 _ACEOF
18921
18922   fi
18923
18924 XCFLAGS="$XCFLAGS$XPCFLAGS"
18925
18926
18927
18928
18929
18930 # Cleanup and exit.
18931 CFLAGS="$save_CFLAGS"
18932 cat >confcache <<\_ACEOF
18933 # This file is a shell script that caches the results of configure
18934 # tests run on this system so they can be shared between configure
18935 # scripts and configure runs, see configure's option --config-cache.
18936 # It is not useful on other systems.  If it contains results you don't
18937 # want to keep, you may remove or edit it.
18938 #
18939 # config.status only pays attention to the cache file if you give it
18940 # the --recheck option to rerun configure.
18941 #
18942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18944 # following values.
18945
18946 _ACEOF
18947
18948 # The following way of writing the cache mishandles newlines in values,
18949 # but we know of no workaround that is simple, portable, and efficient.
18950 # So, don't put newlines in cache variables' values.
18951 # Ultrix sh set writes to stderr and can't be redirected directly,
18952 # and sets the high bit in the cache file unless we assign to the vars.
18953 {
18954   (set) 2>&1 |
18955     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18956     *ac_space=\ *)
18957       # `set' does not quote correctly, so add quotes (double-quote
18958       # substitution turns \\\\ into \\, and sed turns \\ into \).
18959       sed -n \
18960         "s/'/'\\\\''/g;
18961           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18962       ;;
18963     *)
18964       # `set' quotes correctly as required by POSIX, so do not add quotes.
18965       sed -n \
18966         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18967       ;;
18968     esac;
18969 } |
18970   sed '
18971      t clear
18972      : clear
18973      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18974      t end
18975      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18976      : end' >>confcache
18977 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18978   if test -w $cache_file; then
18979     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18980     cat confcache >$cache_file
18981   else
18982     echo "not updating unwritable cache $cache_file"
18983   fi
18984 fi
18985 rm -f confcache
18986
18987 if test ${multilib} = yes; then
18988   multilib_arg="--enable-multilib"
18989 else
18990   multilib_arg=
18991 fi
18992
18993 # Set up the set of libraries that we need to link against for libgomp.
18994 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18995 # which will force linkage against -lpthread (or equivalent for the system).
18996 # That's not 100% ideal, but about the best we can do easily.
18997 if test $enable_shared = yes; then
18998   link_gomp="-lgomp %{static: $LIBS}"
18999 else
19000   link_gomp="-lgomp $LIBS"
19001 fi
19002
19003
19004
19005
19006 if test "$ac_cv_fc_compiler_gnu" = yes; then
19007   USE_FORTRAN_TRUE=
19008   USE_FORTRAN_FALSE='#'
19009 else
19010   USE_FORTRAN_TRUE='#'
19011   USE_FORTRAN_FALSE=
19012 fi
19013
19014
19015 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
19016 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
19017 # the underscore here and update the PREREQ.  If it doesn't, then we'll
19018 # need to copy this macro to our acinclude.m4.
19019 save_CFLAGS="$CFLAGS"
19020 for i in $config_path; do
19021   if test -f $srcdir/config/$i/omp-lock.h; then
19022     CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
19023     break
19024   fi
19025 done
19026
19027 if test "$cross_compiling" = yes; then
19028   # Depending upon the size, compute the lo and hi bounds.
19029 cat >conftest.$ac_ext <<_ACEOF
19030 /* confdefs.h.  */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h.  */
19035
19036 int
19037 main ()
19038 {
19039 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
19040 test_array [0] = 0
19041
19042   ;
19043   return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048   (eval $ac_compile) 2>conftest.er1
19049   ac_status=$?
19050   grep -v '^ *+' conftest.er1 >conftest.err
19051   rm -f conftest.er1
19052   cat conftest.err >&5
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } &&
19055          { ac_try='test -z "$ac_c_werror_flag"
19056                          || test ! -s conftest.err'
19057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058   (eval $ac_try) 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }; } &&
19062          { ac_try='test -s conftest.$ac_objext'
19063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064   (eval $ac_try) 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; }; then
19068   ac_lo=0 ac_mid=0
19069   while :; do
19070     cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076
19077 int
19078 main ()
19079 {
19080 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
19081 test_array [0] = 0
19082
19083   ;
19084   return 0;
19085 }
19086 _ACEOF
19087 rm -f conftest.$ac_objext
19088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19089   (eval $ac_compile) 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } &&
19096          { ac_try='test -z "$ac_c_werror_flag"
19097                          || test ! -s conftest.err'
19098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099   (eval $ac_try) 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); }; } &&
19103          { ac_try='test -s conftest.$ac_objext'
19104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105   (eval $ac_try) 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; }; then
19109   ac_hi=$ac_mid; break
19110 else
19111   echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19113
19114 ac_lo=`expr $ac_mid + 1`
19115                     if test $ac_lo -le $ac_mid; then
19116                       ac_lo= ac_hi=
19117                       break
19118                     fi
19119                     ac_mid=`expr 2 '*' $ac_mid + 1`
19120 fi
19121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19122   done
19123 else
19124   echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19126
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133
19134 int
19135 main ()
19136 {
19137 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
19138 test_array [0] = 0
19139
19140   ;
19141   return 0;
19142 }
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19146   (eval $ac_compile) 2>conftest.er1
19147   ac_status=$?
19148   grep -v '^ *+' conftest.er1 >conftest.err
19149   rm -f conftest.er1
19150   cat conftest.err >&5
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); } &&
19153          { ac_try='test -z "$ac_c_werror_flag"
19154                          || test ! -s conftest.err'
19155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156   (eval $ac_try) 2>&5
19157   ac_status=$?
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); }; } &&
19160          { ac_try='test -s conftest.$ac_objext'
19161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162   (eval $ac_try) 2>&5
19163   ac_status=$?
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); }; }; then
19166   ac_hi=-1 ac_mid=-1
19167   while :; do
19168     cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174
19175 int
19176 main ()
19177 {
19178 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
19179 test_array [0] = 0
19180
19181   ;
19182   return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187   (eval $ac_compile) 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } &&
19194          { ac_try='test -z "$ac_c_werror_flag"
19195                          || test ! -s conftest.err'
19196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197   (eval $ac_try) 2>&5
19198   ac_status=$?
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); }; } &&
19201          { ac_try='test -s conftest.$ac_objext'
19202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203   (eval $ac_try) 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; }; then
19207   ac_lo=$ac_mid; break
19208 else
19209   echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19211
19212 ac_hi=`expr '(' $ac_mid ')' - 1`
19213                        if test $ac_mid -le $ac_hi; then
19214                          ac_lo= ac_hi=
19215                          break
19216                        fi
19217                        ac_mid=`expr 2 '*' $ac_mid`
19218 fi
19219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19220   done
19221 else
19222   echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19224
19225 ac_lo= ac_hi=
19226 fi
19227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19228 fi
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 # Binary search between lo and hi bounds.
19231 while test "x$ac_lo" != "x$ac_hi"; do
19232   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19233   cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h.  */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h.  */
19239
19240 int
19241 main ()
19242 {
19243 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
19244 test_array [0] = 0
19245
19246   ;
19247   return 0;
19248 }
19249 _ACEOF
19250 rm -f conftest.$ac_objext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19252   (eval $ac_compile) 2>conftest.er1
19253   ac_status=$?
19254   grep -v '^ *+' conftest.er1 >conftest.err
19255   rm -f conftest.er1
19256   cat conftest.err >&5
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); } &&
19259          { ac_try='test -z "$ac_c_werror_flag"
19260                          || test ! -s conftest.err'
19261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262   (eval $ac_try) 2>&5
19263   ac_status=$?
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); }; } &&
19266          { ac_try='test -s conftest.$ac_objext'
19267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268   (eval $ac_try) 2>&5
19269   ac_status=$?
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; }; then
19272   ac_hi=$ac_mid
19273 else
19274   echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277 ac_lo=`expr '(' $ac_mid ')' + 1`
19278 fi
19279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19280 done
19281 case $ac_lo in
19282 ?*) OMP_LOCK_SIZE=$ac_lo;;
19283 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
19284 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
19285    { (exit 1); exit 1; }; } ;;
19286 esac
19287 else
19288   if test "$cross_compiling" = yes; then
19289   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19290 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19291 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19292 See \`config.log' for more details." >&5
19293 echo "$as_me: error: cannot run test program while cross compiling
19294 See \`config.log' for more details." >&2;}
19295    { (exit 1); exit 1; }; }; }
19296 else
19297   cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h.  */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h.  */
19303
19304 long longval () { return sizeof (omp_lock_t); }
19305 unsigned long ulongval () { return sizeof (omp_lock_t); }
19306 #include <stdio.h>
19307 #include <stdlib.h>
19308 int
19309 main ()
19310 {
19311
19312   FILE *f = fopen ("conftest.val", "w");
19313   if (! f)
19314     exit (1);
19315   if ((sizeof (omp_lock_t)) < 0)
19316     {
19317       long i = longval ();
19318       if (i != (sizeof (omp_lock_t)))
19319         exit (1);
19320       fprintf (f, "%ld\n", i);
19321     }
19322   else
19323     {
19324       unsigned long i = ulongval ();
19325       if (i != (sizeof (omp_lock_t)))
19326         exit (1);
19327       fprintf (f, "%lu\n", i);
19328     }
19329   exit (ferror (f) || fclose (f) != 0);
19330
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest$ac_exeext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337   (eval $ac_link) 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342   (eval $ac_try) 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }; }; then
19346   OMP_LOCK_SIZE=`cat conftest.val`
19347 else
19348   echo "$as_me: program exited with status $ac_status" >&5
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352 ( exit $ac_status )
19353 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
19354 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
19355    { (exit 1); exit 1; }; }
19356 fi
19357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19358 fi
19359 fi
19360 rm -f conftest.val
19361 if test "$cross_compiling" = yes; then
19362   # Depending upon the size, compute the lo and hi bounds.
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369
19370 int
19371 main ()
19372 {
19373 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
19374 test_array [0] = 0
19375
19376   ;
19377   return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382   (eval $ac_compile) 2>conftest.er1
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
19386   cat conftest.err >&5
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -z "$ac_c_werror_flag"
19390                          || test ! -s conftest.err'
19391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392   (eval $ac_try) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; } &&
19396          { ac_try='test -s conftest.$ac_objext'
19397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398   (eval $ac_try) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; }; then
19402   ac_lo=0 ac_mid=0
19403   while :; do
19404     cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h.  */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h.  */
19410
19411 int
19412 main ()
19413 {
19414 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
19415 test_array [0] = 0
19416
19417   ;
19418   return 0;
19419 }
19420 _ACEOF
19421 rm -f conftest.$ac_objext
19422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423   (eval $ac_compile) 2>conftest.er1
19424   ac_status=$?
19425   grep -v '^ *+' conftest.er1 >conftest.err
19426   rm -f conftest.er1
19427   cat conftest.err >&5
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); } &&
19430          { ac_try='test -z "$ac_c_werror_flag"
19431                          || test ! -s conftest.err'
19432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433   (eval $ac_try) 2>&5
19434   ac_status=$?
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); }; } &&
19437          { ac_try='test -s conftest.$ac_objext'
19438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439   (eval $ac_try) 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); }; }; then
19443   ac_hi=$ac_mid; break
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448 ac_lo=`expr $ac_mid + 1`
19449                     if test $ac_lo -le $ac_mid; then
19450                       ac_lo= ac_hi=
19451                       break
19452                     fi
19453                     ac_mid=`expr 2 '*' $ac_mid + 1`
19454 fi
19455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19456   done
19457 else
19458   echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19460
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467
19468 int
19469 main ()
19470 {
19471 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
19472 test_array [0] = 0
19473
19474   ;
19475   return 0;
19476 }
19477 _ACEOF
19478 rm -f conftest.$ac_objext
19479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19480   (eval $ac_compile) 2>conftest.er1
19481   ac_status=$?
19482   grep -v '^ *+' conftest.er1 >conftest.err
19483   rm -f conftest.er1
19484   cat conftest.err >&5
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); } &&
19487          { ac_try='test -z "$ac_c_werror_flag"
19488                          || test ! -s conftest.err'
19489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490   (eval $ac_try) 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; } &&
19494          { ac_try='test -s conftest.$ac_objext'
19495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496   (eval $ac_try) 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; }; then
19500   ac_hi=-1 ac_mid=-1
19501   while :; do
19502     cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508
19509 int
19510 main ()
19511 {
19512 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
19513 test_array [0] = 0
19514
19515   ;
19516   return 0;
19517 }
19518 _ACEOF
19519 rm -f conftest.$ac_objext
19520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19521   (eval $ac_compile) 2>conftest.er1
19522   ac_status=$?
19523   grep -v '^ *+' conftest.er1 >conftest.err
19524   rm -f conftest.er1
19525   cat conftest.err >&5
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); } &&
19528          { ac_try='test -z "$ac_c_werror_flag"
19529                          || test ! -s conftest.err'
19530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531   (eval $ac_try) 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); }; } &&
19535          { ac_try='test -s conftest.$ac_objext'
19536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537   (eval $ac_try) 2>&5
19538   ac_status=$?
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); }; }; then
19541   ac_lo=$ac_mid; break
19542 else
19543   echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19545
19546 ac_hi=`expr '(' $ac_mid ')' - 1`
19547                        if test $ac_mid -le $ac_hi; then
19548                          ac_lo= ac_hi=
19549                          break
19550                        fi
19551                        ac_mid=`expr 2 '*' $ac_mid`
19552 fi
19553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19554   done
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_lo= ac_hi=
19560 fi
19561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19562 fi
19563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19564 # Binary search between lo and hi bounds.
19565 while test "x$ac_lo" != "x$ac_hi"; do
19566   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19567   cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h.  */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h.  */
19573
19574 int
19575 main ()
19576 {
19577 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
19578 test_array [0] = 0
19579
19580   ;
19581   return 0;
19582 }
19583 _ACEOF
19584 rm -f conftest.$ac_objext
19585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19586   (eval $ac_compile) 2>conftest.er1
19587   ac_status=$?
19588   grep -v '^ *+' conftest.er1 >conftest.err
19589   rm -f conftest.er1
19590   cat conftest.err >&5
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); } &&
19593          { ac_try='test -z "$ac_c_werror_flag"
19594                          || test ! -s conftest.err'
19595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596   (eval $ac_try) 2>&5
19597   ac_status=$?
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); }; } &&
19600          { ac_try='test -s conftest.$ac_objext'
19601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602   (eval $ac_try) 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; }; then
19606   ac_hi=$ac_mid
19607 else
19608   echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19610
19611 ac_lo=`expr '(' $ac_mid ')' + 1`
19612 fi
19613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19614 done
19615 case $ac_lo in
19616 ?*) OMP_LOCK_ALIGN=$ac_lo;;
19617 '')  ;;
19618 esac
19619 else
19620   if test "$cross_compiling" = yes; then
19621   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19622 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19623 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19624 See \`config.log' for more details." >&5
19625 echo "$as_me: error: cannot run test program while cross compiling
19626 See \`config.log' for more details." >&2;}
19627    { (exit 1); exit 1; }; }; }
19628 else
19629   cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h.  */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h.  */
19635
19636 long longval () { return __alignof (omp_lock_t); }
19637 unsigned long ulongval () { return __alignof (omp_lock_t); }
19638 #include <stdio.h>
19639 #include <stdlib.h>
19640 int
19641 main ()
19642 {
19643
19644   FILE *f = fopen ("conftest.val", "w");
19645   if (! f)
19646     exit (1);
19647   if ((__alignof (omp_lock_t)) < 0)
19648     {
19649       long i = longval ();
19650       if (i != (__alignof (omp_lock_t)))
19651         exit (1);
19652       fprintf (f, "%ld\n", i);
19653     }
19654   else
19655     {
19656       unsigned long i = ulongval ();
19657       if (i != (__alignof (omp_lock_t)))
19658         exit (1);
19659       fprintf (f, "%lu\n", i);
19660     }
19661   exit (ferror (f) || fclose (f) != 0);
19662
19663   ;
19664   return 0;
19665 }
19666 _ACEOF
19667 rm -f conftest$ac_exeext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19669   (eval $ac_link) 2>&5
19670   ac_status=$?
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674   (eval $ac_try) 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); }; }; then
19678   OMP_LOCK_ALIGN=`cat conftest.val`
19679 else
19680   echo "$as_me: program exited with status $ac_status" >&5
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684 fi
19685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19686 fi
19687 fi
19688 rm -f conftest.val
19689 if test "$cross_compiling" = yes; then
19690   # Depending upon the size, compute the lo and hi bounds.
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h.  */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h.  */
19697
19698 int
19699 main ()
19700 {
19701 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
19702 test_array [0] = 0
19703
19704   ;
19705   return 0;
19706 }
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19710   (eval $ac_compile) 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } &&
19717          { ac_try='test -z "$ac_c_werror_flag"
19718                          || test ! -s conftest.err'
19719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720   (eval $ac_try) 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; } &&
19724          { ac_try='test -s conftest.$ac_objext'
19725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726   (eval $ac_try) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }; }; then
19730   ac_lo=0 ac_mid=0
19731   while :; do
19732     cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h.  */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h.  */
19738
19739 int
19740 main ()
19741 {
19742 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19743 test_array [0] = 0
19744
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751   (eval $ac_compile) 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } &&
19758          { ac_try='test -z "$ac_c_werror_flag"
19759                          || test ! -s conftest.err'
19760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761   (eval $ac_try) 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; } &&
19765          { ac_try='test -s conftest.$ac_objext'
19766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767   (eval $ac_try) 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; }; then
19771   ac_hi=$ac_mid; break
19772 else
19773   echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776 ac_lo=`expr $ac_mid + 1`
19777                     if test $ac_lo -le $ac_mid; then
19778                       ac_lo= ac_hi=
19779                       break
19780                     fi
19781                     ac_mid=`expr 2 '*' $ac_mid + 1`
19782 fi
19783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19784   done
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795
19796 int
19797 main ()
19798 {
19799 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
19800 test_array [0] = 0
19801
19802   ;
19803   return 0;
19804 }
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808   (eval $ac_compile) 2>conftest.er1
19809   ac_status=$?
19810   grep -v '^ *+' conftest.er1 >conftest.err
19811   rm -f conftest.er1
19812   cat conftest.err >&5
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); } &&
19815          { ac_try='test -z "$ac_c_werror_flag"
19816                          || test ! -s conftest.err'
19817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818   (eval $ac_try) 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; } &&
19822          { ac_try='test -s conftest.$ac_objext'
19823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824   (eval $ac_try) 2>&5
19825   ac_status=$?
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); }; }; then
19828   ac_hi=-1 ac_mid=-1
19829   while :; do
19830     cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h.  */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h.  */
19836
19837 int
19838 main ()
19839 {
19840 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
19841 test_array [0] = 0
19842
19843   ;
19844   return 0;
19845 }
19846 _ACEOF
19847 rm -f conftest.$ac_objext
19848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19849   (eval $ac_compile) 2>conftest.er1
19850   ac_status=$?
19851   grep -v '^ *+' conftest.er1 >conftest.err
19852   rm -f conftest.er1
19853   cat conftest.err >&5
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } &&
19856          { ac_try='test -z "$ac_c_werror_flag"
19857                          || test ! -s conftest.err'
19858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859   (eval $ac_try) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; } &&
19863          { ac_try='test -s conftest.$ac_objext'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_lo=$ac_mid; break
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_hi=`expr '(' $ac_mid ')' - 1`
19875                        if test $ac_mid -le $ac_hi; then
19876                          ac_lo= ac_hi=
19877                          break
19878                        fi
19879                        ac_mid=`expr 2 '*' $ac_mid`
19880 fi
19881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19882   done
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 ac_lo= ac_hi=
19888 fi
19889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19890 fi
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 # Binary search between lo and hi bounds.
19893 while test "x$ac_lo" != "x$ac_hi"; do
19894   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19895   cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901
19902 int
19903 main ()
19904 {
19905 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19906 test_array [0] = 0
19907
19908   ;
19909   return 0;
19910 }
19911 _ACEOF
19912 rm -f conftest.$ac_objext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19914   (eval $ac_compile) 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } &&
19921          { ac_try='test -z "$ac_c_werror_flag"
19922                          || test ! -s conftest.err'
19923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924   (eval $ac_try) 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); }; } &&
19928          { ac_try='test -s conftest.$ac_objext'
19929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930   (eval $ac_try) 2>&5
19931   ac_status=$?
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); }; }; then
19934   ac_hi=$ac_mid
19935 else
19936   echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939 ac_lo=`expr '(' $ac_mid ')' + 1`
19940 fi
19941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19942 done
19943 case $ac_lo in
19944 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19945 '')  ;;
19946 esac
19947 else
19948   if test "$cross_compiling" = yes; then
19949   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19950 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19951 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19952 See \`config.log' for more details." >&5
19953 echo "$as_me: error: cannot run test program while cross compiling
19954 See \`config.log' for more details." >&2;}
19955    { (exit 1); exit 1; }; }; }
19956 else
19957   cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963
19964 long longval () { return sizeof (omp_nest_lock_t); }
19965 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19966 #include <stdio.h>
19967 #include <stdlib.h>
19968 int
19969 main ()
19970 {
19971
19972   FILE *f = fopen ("conftest.val", "w");
19973   if (! f)
19974     exit (1);
19975   if ((sizeof (omp_nest_lock_t)) < 0)
19976     {
19977       long i = longval ();
19978       if (i != (sizeof (omp_nest_lock_t)))
19979         exit (1);
19980       fprintf (f, "%ld\n", i);
19981     }
19982   else
19983     {
19984       unsigned long i = ulongval ();
19985       if (i != (sizeof (omp_nest_lock_t)))
19986         exit (1);
19987       fprintf (f, "%lu\n", i);
19988     }
19989   exit (ferror (f) || fclose (f) != 0);
19990
19991   ;
19992   return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest$ac_exeext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19997   (eval $ac_link) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002   (eval $ac_try) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; }; then
20006   OMP_NEST_LOCK_SIZE=`cat conftest.val`
20007 else
20008   echo "$as_me: program exited with status $ac_status" >&5
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 fi
20013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20014 fi
20015 fi
20016 rm -f conftest.val
20017 if test "$cross_compiling" = yes; then
20018   # Depending upon the size, compute the lo and hi bounds.
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h.  */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h.  */
20025
20026 int
20027 main ()
20028 {
20029 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
20030 test_array [0] = 0
20031
20032   ;
20033   return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038   (eval $ac_compile) 2>conftest.er1
20039   ac_status=$?
20040   grep -v '^ *+' conftest.er1 >conftest.err
20041   rm -f conftest.er1
20042   cat conftest.err >&5
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } &&
20045          { ac_try='test -z "$ac_c_werror_flag"
20046                          || test ! -s conftest.err'
20047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048   (eval $ac_try) 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; } &&
20052          { ac_try='test -s conftest.$ac_objext'
20053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054   (eval $ac_try) 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; }; then
20058   ac_lo=0 ac_mid=0
20059   while :; do
20060     cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066
20067 int
20068 main ()
20069 {
20070 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
20071 test_array [0] = 0
20072
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20079   (eval $ac_compile) 2>conftest.er1
20080   ac_status=$?
20081   grep -v '^ *+' conftest.er1 >conftest.err
20082   rm -f conftest.er1
20083   cat conftest.err >&5
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); } &&
20086          { ac_try='test -z "$ac_c_werror_flag"
20087                          || test ! -s conftest.err'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; } &&
20093          { ac_try='test -s conftest.$ac_objext'
20094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095   (eval $ac_try) 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); }; }; then
20099   ac_hi=$ac_mid; break
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 ac_lo=`expr $ac_mid + 1`
20105                     if test $ac_lo -le $ac_mid; then
20106                       ac_lo= ac_hi=
20107                       break
20108                     fi
20109                     ac_mid=`expr 2 '*' $ac_mid + 1`
20110 fi
20111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20112   done
20113 else
20114   echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h.  */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h.  */
20123
20124 int
20125 main ()
20126 {
20127 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
20128 test_array [0] = 0
20129
20130   ;
20131   return 0;
20132 }
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20136   (eval $ac_compile) 2>conftest.er1
20137   ac_status=$?
20138   grep -v '^ *+' conftest.er1 >conftest.err
20139   rm -f conftest.er1
20140   cat conftest.err >&5
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); } &&
20143          { ac_try='test -z "$ac_c_werror_flag"
20144                          || test ! -s conftest.err'
20145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146   (eval $ac_try) 2>&5
20147   ac_status=$?
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); }; } &&
20150          { ac_try='test -s conftest.$ac_objext'
20151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152   (eval $ac_try) 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }; }; then
20156   ac_hi=-1 ac_mid=-1
20157   while :; do
20158     cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h.  */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h.  */
20164
20165 int
20166 main ()
20167 {
20168 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
20169 test_array [0] = 0
20170
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 rm -f conftest.$ac_objext
20176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20177   (eval $ac_compile) 2>conftest.er1
20178   ac_status=$?
20179   grep -v '^ *+' conftest.er1 >conftest.err
20180   rm -f conftest.er1
20181   cat conftest.err >&5
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); } &&
20184          { ac_try='test -z "$ac_c_werror_flag"
20185                          || test ! -s conftest.err'
20186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187   (eval $ac_try) 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; } &&
20191          { ac_try='test -s conftest.$ac_objext'
20192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193   (eval $ac_try) 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; }; then
20197   ac_lo=$ac_mid; break
20198 else
20199   echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ac_hi=`expr '(' $ac_mid ')' - 1`
20203                        if test $ac_mid -le $ac_hi; then
20204                          ac_lo= ac_hi=
20205                          break
20206                        fi
20207                        ac_mid=`expr 2 '*' $ac_mid`
20208 fi
20209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20210   done
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ac_lo= ac_hi=
20216 fi
20217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20218 fi
20219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20220 # Binary search between lo and hi bounds.
20221 while test "x$ac_lo" != "x$ac_hi"; do
20222   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20223   cat >conftest.$ac_ext <<_ACEOF
20224 /* confdefs.h.  */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h.  */
20229
20230 int
20231 main ()
20232 {
20233 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
20234 test_array [0] = 0
20235
20236   ;
20237   return 0;
20238 }
20239 _ACEOF
20240 rm -f conftest.$ac_objext
20241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242   (eval $ac_compile) 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } &&
20249          { ac_try='test -z "$ac_c_werror_flag"
20250                          || test ! -s conftest.err'
20251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252   (eval $ac_try) 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); }; } &&
20256          { ac_try='test -s conftest.$ac_objext'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; }; then
20262   ac_hi=$ac_mid
20263 else
20264   echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 ac_lo=`expr '(' $ac_mid ')' + 1`
20268 fi
20269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20270 done
20271 case $ac_lo in
20272 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
20273 '')  ;;
20274 esac
20275 else
20276   if test "$cross_compiling" = yes; then
20277   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20278 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20279 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20280 See \`config.log' for more details." >&5
20281 echo "$as_me: error: cannot run test program while cross compiling
20282 See \`config.log' for more details." >&2;}
20283    { (exit 1); exit 1; }; }; }
20284 else
20285   cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291
20292 long longval () { return __alignof (omp_nest_lock_t); }
20293 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
20294 #include <stdio.h>
20295 #include <stdlib.h>
20296 int
20297 main ()
20298 {
20299
20300   FILE *f = fopen ("conftest.val", "w");
20301   if (! f)
20302     exit (1);
20303   if ((__alignof (omp_nest_lock_t)) < 0)
20304     {
20305       long i = longval ();
20306       if (i != (__alignof (omp_nest_lock_t)))
20307         exit (1);
20308       fprintf (f, "%ld\n", i);
20309     }
20310   else
20311     {
20312       unsigned long i = ulongval ();
20313       if (i != (__alignof (omp_nest_lock_t)))
20314         exit (1);
20315       fprintf (f, "%lu\n", i);
20316     }
20317   exit (ferror (f) || fclose (f) != 0);
20318
20319   ;
20320   return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325   (eval $ac_link) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330   (eval $ac_try) 2>&5
20331   ac_status=$?
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); }; }; then
20334   OMP_NEST_LOCK_ALIGN=`cat conftest.val`
20335 else
20336   echo "$as_me: program exited with status $ac_status" >&5
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 fi
20341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20342 fi
20343 fi
20344 rm -f conftest.val
20345 if test "$cross_compiling" = yes; then
20346   # Depending upon the size, compute the lo and hi bounds.
20347 cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353
20354 int
20355 main ()
20356 {
20357 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)];
20358 test_array [0] = 0
20359
20360   ;
20361   return 0;
20362 }
20363 _ACEOF
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366   (eval $ac_compile) 2>conftest.er1
20367   ac_status=$?
20368   grep -v '^ *+' conftest.er1 >conftest.err
20369   rm -f conftest.er1
20370   cat conftest.err >&5
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } &&
20373          { ac_try='test -z "$ac_c_werror_flag"
20374                          || test ! -s conftest.err'
20375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376   (eval $ac_try) 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; } &&
20380          { ac_try='test -s conftest.$ac_objext'
20381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382   (eval $ac_try) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; }; then
20386   ac_lo=0 ac_mid=0
20387   while :; do
20388     cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394
20395 int
20396 main ()
20397 {
20398 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
20399 test_array [0] = 0
20400
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407   (eval $ac_compile) 2>conftest.er1
20408   ac_status=$?
20409   grep -v '^ *+' conftest.er1 >conftest.err
20410   rm -f conftest.er1
20411   cat conftest.err >&5
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); } &&
20414          { ac_try='test -z "$ac_c_werror_flag"
20415                          || test ! -s conftest.err'
20416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417   (eval $ac_try) 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; } &&
20421          { ac_try='test -s conftest.$ac_objext'
20422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423   (eval $ac_try) 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   ac_hi=$ac_mid; break
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 ac_lo=`expr $ac_mid + 1`
20433                     if test $ac_lo -le $ac_mid; then
20434                       ac_lo= ac_hi=
20435                       break
20436                     fi
20437                     ac_mid=`expr 2 '*' $ac_mid + 1`
20438 fi
20439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20440   done
20441 else
20442   echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20444
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451
20452 int
20453 main ()
20454 {
20455 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)];
20456 test_array [0] = 0
20457
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 rm -f conftest.$ac_objext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20464   (eval $ac_compile) 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -z "$ac_c_werror_flag"
20472                          || test ! -s conftest.err'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; } &&
20478          { ac_try='test -s conftest.$ac_objext'
20479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480   (eval $ac_try) 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; }; then
20484   ac_hi=-1 ac_mid=-1
20485   while :; do
20486     cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492
20493 int
20494 main ()
20495 {
20496 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)];
20497 test_array [0] = 0
20498
20499   ;
20500   return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505   (eval $ac_compile) 2>conftest.er1
20506   ac_status=$?
20507   grep -v '^ *+' conftest.er1 >conftest.err
20508   rm -f conftest.er1
20509   cat conftest.err >&5
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); } &&
20512          { ac_try='test -z "$ac_c_werror_flag"
20513                          || test ! -s conftest.err'
20514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515   (eval $ac_try) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); }; } &&
20519          { ac_try='test -s conftest.$ac_objext'
20520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521   (eval $ac_try) 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); }; }; then
20525   ac_lo=$ac_mid; break
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ac_hi=`expr '(' $ac_mid ')' - 1`
20531                        if test $ac_mid -le $ac_hi; then
20532                          ac_lo= ac_hi=
20533                          break
20534                        fi
20535                        ac_mid=`expr 2 '*' $ac_mid`
20536 fi
20537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20538   done
20539 else
20540   echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543 ac_lo= ac_hi=
20544 fi
20545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20546 fi
20547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20548 # Binary search between lo and hi bounds.
20549 while test "x$ac_lo" != "x$ac_hi"; do
20550   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20551   cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h.  */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h.  */
20557
20558 int
20559 main ()
20560 {
20561 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
20562 test_array [0] = 0
20563
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext
20569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20570   (eval $ac_compile) 2>conftest.er1
20571   ac_status=$?
20572   grep -v '^ *+' conftest.er1 >conftest.err
20573   rm -f conftest.er1
20574   cat conftest.err >&5
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); } &&
20577          { ac_try='test -z "$ac_c_werror_flag"
20578                          || test ! -s conftest.err'
20579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580   (eval $ac_try) 2>&5
20581   ac_status=$?
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); }; } &&
20584          { ac_try='test -s conftest.$ac_objext'
20585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586   (eval $ac_try) 2>&5
20587   ac_status=$?
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); }; }; then
20590   ac_hi=$ac_mid
20591 else
20592   echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595 ac_lo=`expr '(' $ac_mid ')' + 1`
20596 fi
20597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20598 done
20599 case $ac_lo in
20600 ?*) OMP_LOCK_25_SIZE=$ac_lo;;
20601 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
20602 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
20603    { (exit 1); exit 1; }; } ;;
20604 esac
20605 else
20606   if test "$cross_compiling" = yes; then
20607   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20608 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20609 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20610 See \`config.log' for more details." >&5
20611 echo "$as_me: error: cannot run test program while cross compiling
20612 See \`config.log' for more details." >&2;}
20613    { (exit 1); exit 1; }; }; }
20614 else
20615   cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h.  */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h.  */
20621
20622 long longval () { return sizeof (omp_lock_25_t); }
20623 unsigned long ulongval () { return sizeof (omp_lock_25_t); }
20624 #include <stdio.h>
20625 #include <stdlib.h>
20626 int
20627 main ()
20628 {
20629
20630   FILE *f = fopen ("conftest.val", "w");
20631   if (! f)
20632     exit (1);
20633   if ((sizeof (omp_lock_25_t)) < 0)
20634     {
20635       long i = longval ();
20636       if (i != (sizeof (omp_lock_25_t)))
20637         exit (1);
20638       fprintf (f, "%ld\n", i);
20639     }
20640   else
20641     {
20642       unsigned long i = ulongval ();
20643       if (i != (sizeof (omp_lock_25_t)))
20644         exit (1);
20645       fprintf (f, "%lu\n", i);
20646     }
20647   exit (ferror (f) || fclose (f) != 0);
20648
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 rm -f conftest$ac_exeext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655   (eval $ac_link) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660   (eval $ac_try) 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); }; }; then
20664   OMP_LOCK_25_SIZE=`cat conftest.val`
20665 else
20666   echo "$as_me: program exited with status $ac_status" >&5
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ( exit $ac_status )
20671 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
20672 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
20673    { (exit 1); exit 1; }; }
20674 fi
20675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20676 fi
20677 fi
20678 rm -f conftest.val
20679 if test "$cross_compiling" = yes; then
20680   # Depending upon the size, compute the lo and hi bounds.
20681 cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h.  */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h.  */
20687
20688 int
20689 main ()
20690 {
20691 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)];
20692 test_array [0] = 0
20693
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700   (eval $ac_compile) 2>conftest.er1
20701   ac_status=$?
20702   grep -v '^ *+' conftest.er1 >conftest.err
20703   rm -f conftest.er1
20704   cat conftest.err >&5
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } &&
20707          { ac_try='test -z "$ac_c_werror_flag"
20708                          || test ! -s conftest.err'
20709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710   (eval $ac_try) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; } &&
20714          { ac_try='test -s conftest.$ac_objext'
20715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716   (eval $ac_try) 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; }; then
20720   ac_lo=0 ac_mid=0
20721   while :; do
20722     cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728
20729 int
20730 main ()
20731 {
20732 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20733 test_array [0] = 0
20734
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest.$ac_objext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20741   (eval $ac_compile) 2>conftest.er1
20742   ac_status=$?
20743   grep -v '^ *+' conftest.er1 >conftest.err
20744   rm -f conftest.er1
20745   cat conftest.err >&5
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } &&
20748          { ac_try='test -z "$ac_c_werror_flag"
20749                          || test ! -s conftest.err'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; } &&
20755          { ac_try='test -s conftest.$ac_objext'
20756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757   (eval $ac_try) 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ac_hi=$ac_mid; break
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766 ac_lo=`expr $ac_mid + 1`
20767                     if test $ac_lo -le $ac_mid; then
20768                       ac_lo= ac_hi=
20769                       break
20770                     fi
20771                     ac_mid=`expr 2 '*' $ac_mid + 1`
20772 fi
20773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20774   done
20775 else
20776   echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785
20786 int
20787 main ()
20788 {
20789 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)];
20790 test_array [0] = 0
20791
20792   ;
20793   return 0;
20794 }
20795 _ACEOF
20796 rm -f conftest.$ac_objext
20797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20798   (eval $ac_compile) 2>conftest.er1
20799   ac_status=$?
20800   grep -v '^ *+' conftest.er1 >conftest.err
20801   rm -f conftest.er1
20802   cat conftest.err >&5
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); } &&
20805          { ac_try='test -z "$ac_c_werror_flag"
20806                          || test ! -s conftest.err'
20807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808   (eval $ac_try) 2>&5
20809   ac_status=$?
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); }; } &&
20812          { ac_try='test -s conftest.$ac_objext'
20813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814   (eval $ac_try) 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); }; }; then
20818   ac_hi=-1 ac_mid=-1
20819   while :; do
20820     cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826
20827 int
20828 main ()
20829 {
20830 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)];
20831 test_array [0] = 0
20832
20833   ;
20834   return 0;
20835 }
20836 _ACEOF
20837 rm -f conftest.$ac_objext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20839   (eval $ac_compile) 2>conftest.er1
20840   ac_status=$?
20841   grep -v '^ *+' conftest.er1 >conftest.err
20842   rm -f conftest.er1
20843   cat conftest.err >&5
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); } &&
20846          { ac_try='test -z "$ac_c_werror_flag"
20847                          || test ! -s conftest.err'
20848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849   (eval $ac_try) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; } &&
20853          { ac_try='test -s conftest.$ac_objext'
20854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855   (eval $ac_try) 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); }; }; then
20859   ac_lo=$ac_mid; break
20860 else
20861   echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 ac_hi=`expr '(' $ac_mid ')' - 1`
20865                        if test $ac_mid -le $ac_hi; then
20866                          ac_lo= ac_hi=
20867                          break
20868                        fi
20869                        ac_mid=`expr 2 '*' $ac_mid`
20870 fi
20871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20872   done
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877 ac_lo= ac_hi=
20878 fi
20879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20880 fi
20881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20882 # Binary search between lo and hi bounds.
20883 while test "x$ac_lo" != "x$ac_hi"; do
20884   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20885   cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h.  */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h.  */
20891
20892 int
20893 main ()
20894 {
20895 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20896 test_array [0] = 0
20897
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20904   (eval $ac_compile) 2>conftest.er1
20905   ac_status=$?
20906   grep -v '^ *+' conftest.er1 >conftest.err
20907   rm -f conftest.er1
20908   cat conftest.err >&5
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); } &&
20911          { ac_try='test -z "$ac_c_werror_flag"
20912                          || test ! -s conftest.err'
20913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914   (eval $ac_try) 2>&5
20915   ac_status=$?
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); }; } &&
20918          { ac_try='test -s conftest.$ac_objext'
20919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920   (eval $ac_try) 2>&5
20921   ac_status=$?
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; }; then
20924   ac_hi=$ac_mid
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929 ac_lo=`expr '(' $ac_mid ')' + 1`
20930 fi
20931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20932 done
20933 case $ac_lo in
20934 ?*) OMP_LOCK_25_ALIGN=$ac_lo;;
20935 '')  ;;
20936 esac
20937 else
20938   if test "$cross_compiling" = yes; then
20939   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20940 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20941 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20942 See \`config.log' for more details." >&5
20943 echo "$as_me: error: cannot run test program while cross compiling
20944 See \`config.log' for more details." >&2;}
20945    { (exit 1); exit 1; }; }; }
20946 else
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953
20954 long longval () { return __alignof (omp_lock_25_t); }
20955 unsigned long ulongval () { return __alignof (omp_lock_25_t); }
20956 #include <stdio.h>
20957 #include <stdlib.h>
20958 int
20959 main ()
20960 {
20961
20962   FILE *f = fopen ("conftest.val", "w");
20963   if (! f)
20964     exit (1);
20965   if ((__alignof (omp_lock_25_t)) < 0)
20966     {
20967       long i = longval ();
20968       if (i != (__alignof (omp_lock_25_t)))
20969         exit (1);
20970       fprintf (f, "%ld\n", i);
20971     }
20972   else
20973     {
20974       unsigned long i = ulongval ();
20975       if (i != (__alignof (omp_lock_25_t)))
20976         exit (1);
20977       fprintf (f, "%lu\n", i);
20978     }
20979   exit (ferror (f) || fclose (f) != 0);
20980
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest$ac_exeext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987   (eval $ac_link) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992   (eval $ac_try) 2>&5
20993   ac_status=$?
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); }; }; then
20996   OMP_LOCK_25_ALIGN=`cat conftest.val`
20997 else
20998   echo "$as_me: program exited with status $ac_status" >&5
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 fi
21003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21004 fi
21005 fi
21006 rm -f conftest.val
21007 if test "$cross_compiling" = yes; then
21008   # Depending upon the size, compute the lo and hi bounds.
21009 cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h.  */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h.  */
21015
21016 int
21017 main ()
21018 {
21019 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)];
21020 test_array [0] = 0
21021
21022   ;
21023   return 0;
21024 }
21025 _ACEOF
21026 rm -f conftest.$ac_objext
21027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21028   (eval $ac_compile) 2>conftest.er1
21029   ac_status=$?
21030   grep -v '^ *+' conftest.er1 >conftest.err
21031   rm -f conftest.er1
21032   cat conftest.err >&5
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); } &&
21035          { ac_try='test -z "$ac_c_werror_flag"
21036                          || test ! -s conftest.err'
21037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038   (eval $ac_try) 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; } &&
21042          { ac_try='test -s conftest.$ac_objext'
21043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044   (eval $ac_try) 2>&5
21045   ac_status=$?
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); }; }; then
21048   ac_lo=0 ac_mid=0
21049   while :; do
21050     cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056
21057 int
21058 main ()
21059 {
21060 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
21061 test_array [0] = 0
21062
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21069   (eval $ac_compile) 2>conftest.er1
21070   ac_status=$?
21071   grep -v '^ *+' conftest.er1 >conftest.err
21072   rm -f conftest.er1
21073   cat conftest.err >&5
21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); } &&
21076          { ac_try='test -z "$ac_c_werror_flag"
21077                          || test ! -s conftest.err'
21078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079   (eval $ac_try) 2>&5
21080   ac_status=$?
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); }; } &&
21083          { ac_try='test -s conftest.$ac_objext'
21084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085   (eval $ac_try) 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; }; then
21089   ac_hi=$ac_mid; break
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094 ac_lo=`expr $ac_mid + 1`
21095                     if test $ac_lo -le $ac_mid; then
21096                       ac_lo= ac_hi=
21097                       break
21098                     fi
21099                     ac_mid=`expr 2 '*' $ac_mid + 1`
21100 fi
21101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21102   done
21103 else
21104   echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21106
21107 cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113
21114 int
21115 main ()
21116 {
21117 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)];
21118 test_array [0] = 0
21119
21120   ;
21121   return 0;
21122 }
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21126   (eval $ac_compile) 2>conftest.er1
21127   ac_status=$?
21128   grep -v '^ *+' conftest.er1 >conftest.err
21129   rm -f conftest.er1
21130   cat conftest.err >&5
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } &&
21133          { ac_try='test -z "$ac_c_werror_flag"
21134                          || test ! -s conftest.err'
21135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136   (eval $ac_try) 2>&5
21137   ac_status=$?
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); }; } &&
21140          { ac_try='test -s conftest.$ac_objext'
21141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142   (eval $ac_try) 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); }; }; then
21146   ac_hi=-1 ac_mid=-1
21147   while :; do
21148     cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154
21155 int
21156 main ()
21157 {
21158 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)];
21159 test_array [0] = 0
21160
21161   ;
21162   return 0;
21163 }
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21167   (eval $ac_compile) 2>conftest.er1
21168   ac_status=$?
21169   grep -v '^ *+' conftest.er1 >conftest.err
21170   rm -f conftest.er1
21171   cat conftest.err >&5
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } &&
21174          { ac_try='test -z "$ac_c_werror_flag"
21175                          || test ! -s conftest.err'
21176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177   (eval $ac_try) 2>&5
21178   ac_status=$?
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); }; } &&
21181          { ac_try='test -s conftest.$ac_objext'
21182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183   (eval $ac_try) 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); }; }; then
21187   ac_lo=$ac_mid; break
21188 else
21189   echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21191
21192 ac_hi=`expr '(' $ac_mid ')' - 1`
21193                        if test $ac_mid -le $ac_hi; then
21194                          ac_lo= ac_hi=
21195                          break
21196                        fi
21197                        ac_mid=`expr 2 '*' $ac_mid`
21198 fi
21199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21200   done
21201 else
21202   echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205 ac_lo= ac_hi=
21206 fi
21207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21208 fi
21209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21210 # Binary search between lo and hi bounds.
21211 while test "x$ac_lo" != "x$ac_hi"; do
21212   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21213   cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219
21220 int
21221 main ()
21222 {
21223 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
21224 test_array [0] = 0
21225
21226   ;
21227   return 0;
21228 }
21229 _ACEOF
21230 rm -f conftest.$ac_objext
21231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21232   (eval $ac_compile) 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } &&
21239          { ac_try='test -z "$ac_c_werror_flag"
21240                          || test ! -s conftest.err'
21241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242   (eval $ac_try) 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; } &&
21246          { ac_try='test -s conftest.$ac_objext'
21247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248   (eval $ac_try) 2>&5
21249   ac_status=$?
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); }; }; then
21252   ac_hi=$ac_mid
21253 else
21254   echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 ac_lo=`expr '(' $ac_mid ')' + 1`
21258 fi
21259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21260 done
21261 case $ac_lo in
21262 ?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;;
21263 '')  ;;
21264 esac
21265 else
21266   if test "$cross_compiling" = yes; then
21267   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21269 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21270 See \`config.log' for more details." >&5
21271 echo "$as_me: error: cannot run test program while cross compiling
21272 See \`config.log' for more details." >&2;}
21273    { (exit 1); exit 1; }; }; }
21274 else
21275   cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281
21282 long longval () { return sizeof (omp_nest_lock_25_t); }
21283 unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); }
21284 #include <stdio.h>
21285 #include <stdlib.h>
21286 int
21287 main ()
21288 {
21289
21290   FILE *f = fopen ("conftest.val", "w");
21291   if (! f)
21292     exit (1);
21293   if ((sizeof (omp_nest_lock_25_t)) < 0)
21294     {
21295       long i = longval ();
21296       if (i != (sizeof (omp_nest_lock_25_t)))
21297         exit (1);
21298       fprintf (f, "%ld\n", i);
21299     }
21300   else
21301     {
21302       unsigned long i = ulongval ();
21303       if (i != (sizeof (omp_nest_lock_25_t)))
21304         exit (1);
21305       fprintf (f, "%lu\n", i);
21306     }
21307   exit (ferror (f) || fclose (f) != 0);
21308
21309   ;
21310   return 0;
21311 }
21312 _ACEOF
21313 rm -f conftest$ac_exeext
21314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315   (eval $ac_link) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320   (eval $ac_try) 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); }; }; then
21324   OMP_NEST_LOCK_25_SIZE=`cat conftest.val`
21325 else
21326   echo "$as_me: program exited with status $ac_status" >&5
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 fi
21331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21332 fi
21333 fi
21334 rm -f conftest.val
21335 if test "$cross_compiling" = yes; then
21336   # Depending upon the size, compute the lo and hi bounds.
21337 cat >conftest.$ac_ext <<_ACEOF
21338 /* confdefs.h.  */
21339 _ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h.  */
21343
21344 int
21345 main ()
21346 {
21347 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)];
21348 test_array [0] = 0
21349
21350   ;
21351   return 0;
21352 }
21353 _ACEOF
21354 rm -f conftest.$ac_objext
21355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21356   (eval $ac_compile) 2>conftest.er1
21357   ac_status=$?
21358   grep -v '^ *+' conftest.er1 >conftest.err
21359   rm -f conftest.er1
21360   cat conftest.err >&5
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } &&
21363          { ac_try='test -z "$ac_c_werror_flag"
21364                          || test ! -s conftest.err'
21365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366   (eval $ac_try) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; } &&
21370          { ac_try='test -s conftest.$ac_objext'
21371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372   (eval $ac_try) 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); }; }; then
21376   ac_lo=0 ac_mid=0
21377   while :; do
21378     cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h.  */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h.  */
21384
21385 int
21386 main ()
21387 {
21388 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
21389 test_array [0] = 0
21390
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21397   (eval $ac_compile) 2>conftest.er1
21398   ac_status=$?
21399   grep -v '^ *+' conftest.er1 >conftest.err
21400   rm -f conftest.er1
21401   cat conftest.err >&5
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); } &&
21404          { ac_try='test -z "$ac_c_werror_flag"
21405                          || test ! -s conftest.err'
21406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407   (eval $ac_try) 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; } &&
21411          { ac_try='test -s conftest.$ac_objext'
21412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413   (eval $ac_try) 2>&5
21414   ac_status=$?
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); }; }; then
21417   ac_hi=$ac_mid; break
21418 else
21419   echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21421
21422 ac_lo=`expr $ac_mid + 1`
21423                     if test $ac_lo -le $ac_mid; then
21424                       ac_lo= ac_hi=
21425                       break
21426                     fi
21427                     ac_mid=`expr 2 '*' $ac_mid + 1`
21428 fi
21429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21430   done
21431 else
21432   echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21434
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h.  */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h.  */
21441
21442 int
21443 main ()
21444 {
21445 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)];
21446 test_array [0] = 0
21447
21448   ;
21449   return 0;
21450 }
21451 _ACEOF
21452 rm -f conftest.$ac_objext
21453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21454   (eval $ac_compile) 2>conftest.er1
21455   ac_status=$?
21456   grep -v '^ *+' conftest.er1 >conftest.err
21457   rm -f conftest.er1
21458   cat conftest.err >&5
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); } &&
21461          { ac_try='test -z "$ac_c_werror_flag"
21462                          || test ! -s conftest.err'
21463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464   (eval $ac_try) 2>&5
21465   ac_status=$?
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); }; } &&
21468          { ac_try='test -s conftest.$ac_objext'
21469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470   (eval $ac_try) 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); }; }; then
21474   ac_hi=-1 ac_mid=-1
21475   while :; do
21476     cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482
21483 int
21484 main ()
21485 {
21486 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)];
21487 test_array [0] = 0
21488
21489   ;
21490   return 0;
21491 }
21492 _ACEOF
21493 rm -f conftest.$ac_objext
21494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21495   (eval $ac_compile) 2>conftest.er1
21496   ac_status=$?
21497   grep -v '^ *+' conftest.er1 >conftest.err
21498   rm -f conftest.er1
21499   cat conftest.err >&5
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); } &&
21502          { ac_try='test -z "$ac_c_werror_flag"
21503                          || test ! -s conftest.err'
21504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505   (eval $ac_try) 2>&5
21506   ac_status=$?
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); }; } &&
21509          { ac_try='test -s conftest.$ac_objext'
21510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511   (eval $ac_try) 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); }; }; then
21515   ac_lo=$ac_mid; break
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520 ac_hi=`expr '(' $ac_mid ')' - 1`
21521                        if test $ac_mid -le $ac_hi; then
21522                          ac_lo= ac_hi=
21523                          break
21524                        fi
21525                        ac_mid=`expr 2 '*' $ac_mid`
21526 fi
21527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21528   done
21529 else
21530   echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533 ac_lo= ac_hi=
21534 fi
21535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21536 fi
21537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21538 # Binary search between lo and hi bounds.
21539 while test "x$ac_lo" != "x$ac_hi"; do
21540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21541   cat >conftest.$ac_ext <<_ACEOF
21542 /* confdefs.h.  */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h.  */
21547
21548 int
21549 main ()
21550 {
21551 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
21552 test_array [0] = 0
21553
21554   ;
21555   return 0;
21556 }
21557 _ACEOF
21558 rm -f conftest.$ac_objext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21560   (eval $ac_compile) 2>conftest.er1
21561   ac_status=$?
21562   grep -v '^ *+' conftest.er1 >conftest.err
21563   rm -f conftest.er1
21564   cat conftest.err >&5
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } &&
21567          { ac_try='test -z "$ac_c_werror_flag"
21568                          || test ! -s conftest.err'
21569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570   (eval $ac_try) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; } &&
21574          { ac_try='test -s conftest.$ac_objext'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580   ac_hi=$ac_mid
21581 else
21582   echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 ac_lo=`expr '(' $ac_mid ')' + 1`
21586 fi
21587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588 done
21589 case $ac_lo in
21590 ?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;;
21591 '')  ;;
21592 esac
21593 else
21594   if test "$cross_compiling" = yes; then
21595   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21596 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21597 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21598 See \`config.log' for more details." >&5
21599 echo "$as_me: error: cannot run test program while cross compiling
21600 See \`config.log' for more details." >&2;}
21601    { (exit 1); exit 1; }; }; }
21602 else
21603   cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609
21610 long longval () { return __alignof (omp_nest_lock_25_t); }
21611 unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); }
21612 #include <stdio.h>
21613 #include <stdlib.h>
21614 int
21615 main ()
21616 {
21617
21618   FILE *f = fopen ("conftest.val", "w");
21619   if (! f)
21620     exit (1);
21621   if ((__alignof (omp_nest_lock_25_t)) < 0)
21622     {
21623       long i = longval ();
21624       if (i != (__alignof (omp_nest_lock_25_t)))
21625         exit (1);
21626       fprintf (f, "%ld\n", i);
21627     }
21628   else
21629     {
21630       unsigned long i = ulongval ();
21631       if (i != (__alignof (omp_nest_lock_25_t)))
21632         exit (1);
21633       fprintf (f, "%lu\n", i);
21634     }
21635   exit (ferror (f) || fclose (f) != 0);
21636
21637   ;
21638   return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest$ac_exeext
21642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21643   (eval $ac_link) 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648   (eval $ac_try) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); }; }; then
21652   OMP_NEST_LOCK_25_ALIGN=`cat conftest.val`
21653 else
21654   echo "$as_me: program exited with status $ac_status" >&5
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658 fi
21659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21660 fi
21661 fi
21662 rm -f conftest.val
21663
21664 # If the lock fits in an integer, then arrange for Fortran to use that
21665 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
21666 # Except that we don't have a way at present to multi-lib the installed
21667 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
21668 # actual target.
21669 OMP_LOCK_KIND=$OMP_LOCK_SIZE
21670 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
21671 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
21672   OMP_LOCK_KIND=8
21673 fi
21674 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
21675   OMP_NEST_LOCK_KIND=8
21676 fi
21677 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
21678 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
21679 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
21680   OMP_LOCK_25_KIND=8
21681 fi
21682 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
21683   OMP_NEST_LOCK_25_KIND=8
21684 fi
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698 CFLAGS="$save_CFLAGS"
21699
21700                                         ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
21701
21702                               ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
21703
21704 cat >confcache <<\_ACEOF
21705 # This file is a shell script that caches the results of configure
21706 # tests run on this system so they can be shared between configure
21707 # scripts and configure runs, see configure's option --config-cache.
21708 # It is not useful on other systems.  If it contains results you don't
21709 # want to keep, you may remove or edit it.
21710 #
21711 # config.status only pays attention to the cache file if you give it
21712 # the --recheck option to rerun configure.
21713 #
21714 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21715 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21716 # following values.
21717
21718 _ACEOF
21719
21720 # The following way of writing the cache mishandles newlines in values,
21721 # but we know of no workaround that is simple, portable, and efficient.
21722 # So, don't put newlines in cache variables' values.
21723 # Ultrix sh set writes to stderr and can't be redirected directly,
21724 # and sets the high bit in the cache file unless we assign to the vars.
21725 {
21726   (set) 2>&1 |
21727     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21728     *ac_space=\ *)
21729       # `set' does not quote correctly, so add quotes (double-quote
21730       # substitution turns \\\\ into \\, and sed turns \\ into \).
21731       sed -n \
21732         "s/'/'\\\\''/g;
21733           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21734       ;;
21735     *)
21736       # `set' quotes correctly as required by POSIX, so do not add quotes.
21737       sed -n \
21738         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21739       ;;
21740     esac;
21741 } |
21742   sed '
21743      t clear
21744      : clear
21745      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21746      t end
21747      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21748      : end' >>confcache
21749 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21750   if test -w $cache_file; then
21751     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21752     cat confcache >$cache_file
21753   else
21754     echo "not updating unwritable cache $cache_file"
21755   fi
21756 fi
21757 rm -f confcache
21758
21759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21760 # Let make expand exec_prefix.
21761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21762
21763 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21764 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21765 # trailing colons and then remove the whole line if VPATH becomes empty
21766 # (actually we leave an empty line to preserve line numbers).
21767 if test "x$srcdir" = x.; then
21768   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21769 s/:*\$(srcdir):*/:/;
21770 s/:*\${srcdir}:*/:/;
21771 s/:*@srcdir@:*/:/;
21772 s/^\([^=]*=[     ]*\):*/\1/;
21773 s/:*$//;
21774 s/^[^=]*=[       ]*$//;
21775 }'
21776 fi
21777
21778 DEFS=-DHAVE_CONFIG_H
21779
21780 ac_libobjs=
21781 ac_ltlibobjs=
21782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21783   # 1. Remove the extension, and $U if already installed.
21784   ac_i=`echo "$ac_i" |
21785          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21786   # 2. Add them.
21787   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21788   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21789 done
21790 LIBOBJS=$ac_libobjs
21791
21792 LTLIBOBJS=$ac_ltlibobjs
21793
21794
21795 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
21796   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
21797 Usually this means the macro was only invoked conditionally." >&5
21798 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
21799 Usually this means the macro was only invoked conditionally." >&2;}
21800    { (exit 1); exit 1; }; }
21801 fi
21802 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21803   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21804 Usually this means the macro was only invoked conditionally." >&5
21805 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21806 Usually this means the macro was only invoked conditionally." >&2;}
21807    { (exit 1); exit 1; }; }
21808 fi
21809 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21810   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21811 Usually this means the macro was only invoked conditionally." >&5
21812 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21813 Usually this means the macro was only invoked conditionally." >&2;}
21814    { (exit 1); exit 1; }; }
21815 fi
21816 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
21817   { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
21818 Usually this means the macro was only invoked conditionally." >&5
21819 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
21820 Usually this means the macro was only invoked conditionally." >&2;}
21821    { (exit 1); exit 1; }; }
21822 fi
21823 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21824   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21825 Usually this means the macro was only invoked conditionally." >&5
21826 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21827 Usually this means the macro was only invoked conditionally." >&2;}
21828    { (exit 1); exit 1; }; }
21829 fi
21830 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
21831   { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21832 Usually this means the macro was only invoked conditionally." >&5
21833 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21834 Usually this means the macro was only invoked conditionally." >&2;}
21835    { (exit 1); exit 1; }; }
21836 fi
21837 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
21838   { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
21839 Usually this means the macro was only invoked conditionally." >&5
21840 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
21841 Usually this means the macro was only invoked conditionally." >&2;}
21842    { (exit 1); exit 1; }; }
21843 fi
21844
21845 : ${CONFIG_STATUS=./config.status}
21846 ac_clean_files_save=$ac_clean_files
21847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21848 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21849 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21850 cat >$CONFIG_STATUS <<_ACEOF
21851 #! $SHELL
21852 # Generated by $as_me.
21853 # Run this file to recreate the current configuration.
21854 # Compiler output produced by configure, useful for debugging
21855 # configure, is in config.log if it exists.
21856
21857 debug=false
21858 ac_cs_recheck=false
21859 ac_cs_silent=false
21860 SHELL=\${CONFIG_SHELL-$SHELL}
21861 _ACEOF
21862
21863 cat >>$CONFIG_STATUS <<\_ACEOF
21864 ## --------------------- ##
21865 ## M4sh Initialization.  ##
21866 ## --------------------- ##
21867
21868 # Be Bourne compatible
21869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21870   emulate sh
21871   NULLCMD=:
21872   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21873   # is contrary to our usage.  Disable this feature.
21874   alias -g '${1+"$@"}'='"$@"'
21875 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21876   set -o posix
21877 fi
21878 DUALCASE=1; export DUALCASE # for MKS sh
21879
21880 # Support unset when possible.
21881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21882   as_unset=unset
21883 else
21884   as_unset=false
21885 fi
21886
21887
21888 # Work around bugs in pre-3.0 UWIN ksh.
21889 $as_unset ENV MAIL MAILPATH
21890 PS1='$ '
21891 PS2='> '
21892 PS4='+ '
21893
21894 # NLS nuisances.
21895 for as_var in \
21896   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21897   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21898   LC_TELEPHONE LC_TIME
21899 do
21900   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21901     eval $as_var=C; export $as_var
21902   else
21903     $as_unset $as_var
21904   fi
21905 done
21906
21907 # Required to use basename.
21908 if expr a : '\(a\)' >/dev/null 2>&1; then
21909   as_expr=expr
21910 else
21911   as_expr=false
21912 fi
21913
21914 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21915   as_basename=basename
21916 else
21917   as_basename=false
21918 fi
21919
21920
21921 # Name of the executable.
21922 as_me=`$as_basename "$0" ||
21923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21924          X"$0" : 'X\(//\)$' \| \
21925          X"$0" : 'X\(/\)$' \| \
21926          .     : '\(.\)' 2>/dev/null ||
21927 echo X/"$0" |
21928     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21929           /^X\/\(\/\/\)$/{ s//\1/; q; }
21930           /^X\/\(\/\).*/{ s//\1/; q; }
21931           s/.*/./; q'`
21932
21933
21934 # PATH needs CR, and LINENO needs CR and PATH.
21935 # Avoid depending upon Character Ranges.
21936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21939 as_cr_digits='0123456789'
21940 as_cr_alnum=$as_cr_Letters$as_cr_digits
21941
21942 # The user is always right.
21943 if test "${PATH_SEPARATOR+set}" != set; then
21944   echo "#! /bin/sh" >conf$$.sh
21945   echo  "exit 0"   >>conf$$.sh
21946   chmod +x conf$$.sh
21947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21948     PATH_SEPARATOR=';'
21949   else
21950     PATH_SEPARATOR=:
21951   fi
21952   rm -f conf$$.sh
21953 fi
21954
21955
21956   as_lineno_1=$LINENO
21957   as_lineno_2=$LINENO
21958   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21959   test "x$as_lineno_1" != "x$as_lineno_2" &&
21960   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21961   # Find who we are.  Look in the path if we contain no path at all
21962   # relative or not.
21963   case $0 in
21964     *[\\/]* ) as_myself=$0 ;;
21965     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21966 for as_dir in $PATH
21967 do
21968   IFS=$as_save_IFS
21969   test -z "$as_dir" && as_dir=.
21970   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21971 done
21972
21973        ;;
21974   esac
21975   # We did not find ourselves, most probably we were run as `sh COMMAND'
21976   # in which case we are not to be found in the path.
21977   if test "x$as_myself" = x; then
21978     as_myself=$0
21979   fi
21980   if test ! -f "$as_myself"; then
21981     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21982 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21983    { (exit 1); exit 1; }; }
21984   fi
21985   case $CONFIG_SHELL in
21986   '')
21987     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21988 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21989 do
21990   IFS=$as_save_IFS
21991   test -z "$as_dir" && as_dir=.
21992   for as_base in sh bash ksh sh5; do
21993          case $as_dir in
21994          /*)
21995            if ("$as_dir/$as_base" -c '
21996   as_lineno_1=$LINENO
21997   as_lineno_2=$LINENO
21998   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21999   test "x$as_lineno_1" != "x$as_lineno_2" &&
22000   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22001              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22002              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22003              CONFIG_SHELL=$as_dir/$as_base
22004              export CONFIG_SHELL
22005              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22006            fi;;
22007          esac
22008        done
22009 done
22010 ;;
22011   esac
22012
22013   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22014   # uniformly replaced by the line number.  The first 'sed' inserts a
22015   # line-number line before each line; the second 'sed' does the real
22016   # work.  The second script uses 'N' to pair each line-number line
22017   # with the numbered line, and appends trailing '-' during
22018   # substitution so that $LINENO is not a special case at line end.
22019   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22020   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22021   sed '=' <$as_myself |
22022     sed '
22023       N
22024       s,$,-,
22025       : loop
22026       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22027       t loop
22028       s,-$,,
22029       s,^['$as_cr_digits']*\n,,
22030     ' >$as_me.lineno &&
22031   chmod +x $as_me.lineno ||
22032     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22033 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22034    { (exit 1); exit 1; }; }
22035
22036   # Don't try to exec as it changes $[0], causing all sort of problems
22037   # (the dirname of $[0] is not the place where we might find the
22038   # original and so on.  Autoconf is especially sensible to this).
22039   . ./$as_me.lineno
22040   # Exit status is that of the last command.
22041   exit
22042 }
22043
22044
22045 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22046   *c*,-n*) ECHO_N= ECHO_C='
22047 ' ECHO_T='      ' ;;
22048   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22049   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22050 esac
22051
22052 if expr a : '\(a\)' >/dev/null 2>&1; then
22053   as_expr=expr
22054 else
22055   as_expr=false
22056 fi
22057
22058 rm -f conf$$ conf$$.exe conf$$.file
22059 echo >conf$$.file
22060 if ln -s conf$$.file conf$$ 2>/dev/null; then
22061   # We could just check for DJGPP; but this test a) works b) is more generic
22062   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22063   if test -f conf$$.exe; then
22064     # Don't use ln at all; we don't have any links
22065     as_ln_s='cp -p'
22066   else
22067     as_ln_s='ln -s'
22068   fi
22069 elif ln conf$$.file conf$$ 2>/dev/null; then
22070   as_ln_s=ln
22071 else
22072   as_ln_s='cp -p'
22073 fi
22074 rm -f conf$$ conf$$.exe conf$$.file
22075
22076 if mkdir -p . 2>/dev/null; then
22077   as_mkdir_p=:
22078 else
22079   test -d ./-p && rmdir ./-p
22080   as_mkdir_p=false
22081 fi
22082
22083 as_executable_p="test -f"
22084
22085 # Sed expression to map a string onto a valid CPP name.
22086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22087
22088 # Sed expression to map a string onto a valid variable name.
22089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22090
22091
22092 # IFS
22093 # We need space, tab and new line, in precisely that order.
22094 as_nl='
22095 '
22096 IFS="   $as_nl"
22097
22098 # CDPATH.
22099 $as_unset CDPATH
22100
22101 exec 6>&1
22102
22103 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22104 # report actual input values of CONFIG_FILES etc. instead of their
22105 # values after options handling.  Logging --version etc. is OK.
22106 exec 5>>config.log
22107 {
22108   echo
22109   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22110 ## Running $as_me. ##
22111 _ASBOX
22112 } >&5
22113 cat >&5 <<_CSEOF
22114
22115 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
22116 generated by GNU Autoconf 2.59.  Invocation command line was
22117
22118   CONFIG_FILES    = $CONFIG_FILES
22119   CONFIG_HEADERS  = $CONFIG_HEADERS
22120   CONFIG_LINKS    = $CONFIG_LINKS
22121   CONFIG_COMMANDS = $CONFIG_COMMANDS
22122   $ $0 $@
22123
22124 _CSEOF
22125 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22126 echo >&5
22127 _ACEOF
22128
22129 # Files that config.status was made for.
22130 if test -n "$ac_config_files"; then
22131   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22132 fi
22133
22134 if test -n "$ac_config_headers"; then
22135   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22136 fi
22137
22138 if test -n "$ac_config_links"; then
22139   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22140 fi
22141
22142 if test -n "$ac_config_commands"; then
22143   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22144 fi
22145
22146 cat >>$CONFIG_STATUS <<\_ACEOF
22147
22148 ac_cs_usage="\
22149 \`$as_me' instantiates files from templates according to the
22150 current configuration.
22151
22152 Usage: $0 [OPTIONS] [FILE]...
22153
22154   -h, --help       print this help, then exit
22155   -V, --version    print version number, then exit
22156   -q, --quiet      do not print progress messages
22157   -d, --debug      don't remove temporary files
22158       --recheck    update $as_me by reconfiguring in the same conditions
22159   --file=FILE[:TEMPLATE]
22160                    instantiate the configuration file FILE
22161   --header=FILE[:TEMPLATE]
22162                    instantiate the configuration header FILE
22163
22164 Configuration files:
22165 $config_files
22166
22167 Configuration headers:
22168 $config_headers
22169
22170 Configuration commands:
22171 $config_commands
22172
22173 Report bugs to <bug-autoconf@gnu.org>."
22174 _ACEOF
22175
22176 cat >>$CONFIG_STATUS <<_ACEOF
22177 ac_cs_version="\\
22178 GNU OpenMP Runtime Library config.status 1.0
22179 configured by $0, generated by GNU Autoconf 2.59,
22180   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22181
22182 Copyright (C) 2003 Free Software Foundation, Inc.
22183 This config.status script is free software; the Free Software Foundation
22184 gives unlimited permission to copy, distribute and modify it."
22185 srcdir=$srcdir
22186 INSTALL="$INSTALL"
22187 _ACEOF
22188
22189 cat >>$CONFIG_STATUS <<\_ACEOF
22190 # If no file are specified by the user, then we need to provide default
22191 # value.  By we need to know if files were specified by the user.
22192 ac_need_defaults=:
22193 while test $# != 0
22194 do
22195   case $1 in
22196   --*=*)
22197     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22198     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22199     ac_shift=:
22200     ;;
22201   -*)
22202     ac_option=$1
22203     ac_optarg=$2
22204     ac_shift=shift
22205     ;;
22206   *) # This is not an option, so the user has probably given explicit
22207      # arguments.
22208      ac_option=$1
22209      ac_need_defaults=false;;
22210   esac
22211
22212   case $ac_option in
22213   # Handling of the options.
22214 _ACEOF
22215 cat >>$CONFIG_STATUS <<\_ACEOF
22216   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22217     ac_cs_recheck=: ;;
22218   --version | --vers* | -V )
22219     echo "$ac_cs_version"; exit 0 ;;
22220   --he | --h)
22221     # Conflict between --help and --header
22222     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22223 Try \`$0 --help' for more information." >&5
22224 echo "$as_me: error: ambiguous option: $1
22225 Try \`$0 --help' for more information." >&2;}
22226    { (exit 1); exit 1; }; };;
22227   --help | --hel | -h )
22228     echo "$ac_cs_usage"; exit 0 ;;
22229   --debug | --d* | -d )
22230     debug=: ;;
22231   --file | --fil | --fi | --f )
22232     $ac_shift
22233     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22234     ac_need_defaults=false;;
22235   --header | --heade | --head | --hea )
22236     $ac_shift
22237     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22238     ac_need_defaults=false;;
22239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22240   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22241     ac_cs_silent=: ;;
22242
22243   # This is an error.
22244   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22245 Try \`$0 --help' for more information." >&5
22246 echo "$as_me: error: unrecognized option: $1
22247 Try \`$0 --help' for more information." >&2;}
22248    { (exit 1); exit 1; }; } ;;
22249
22250   *) ac_config_targets="$ac_config_targets $1" ;;
22251
22252   esac
22253   shift
22254 done
22255
22256 ac_configure_extra_args=
22257
22258 if $ac_cs_silent; then
22259   exec 6>/dev/null
22260   ac_configure_extra_args="$ac_configure_extra_args --silent"
22261 fi
22262
22263 _ACEOF
22264 cat >>$CONFIG_STATUS <<_ACEOF
22265 if \$ac_cs_recheck; then
22266   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22267   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22268 fi
22269
22270 _ACEOF
22271
22272 cat >>$CONFIG_STATUS <<_ACEOF
22273 #
22274 # INIT-COMMANDS section.
22275 #
22276
22277
22278 srcdir="$srcdir"
22279 host="$host"
22280 target="$target"
22281 with_multisubdir="$with_multisubdir"
22282 with_multisrctop="$with_multisrctop"
22283 with_target_subdir="$with_target_subdir"
22284 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22285 multi_basedir="$multi_basedir"
22286 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22287 CC="$CC"
22288 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22289
22290
22291 # The HP-UX ksh and POSIX shell print the target directory to stdout
22292 # if CDPATH is set.
22293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22294
22295 sed_quote_subst='$sed_quote_subst'
22296 double_quote_subst='$double_quote_subst'
22297 delay_variable_subst='$delay_variable_subst'
22298 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22299 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22300 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22301 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22302 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22303 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22304 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22305 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22306 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22307 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22308 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22309 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22310 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22311 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22312 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22313 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22314 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22315 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22316 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22317 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22318 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22319 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22320 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22321 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22322 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22323 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22324 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22325 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22326 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22327 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22328 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22329 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22330 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22331 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22332 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22333 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22334 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22335 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22336 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22337 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22338 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22339 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22340 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22341 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22342 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"`'
22343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22344 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22345 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22346 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22347 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22348 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22349 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22350 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22351 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22352 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22353 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22354 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22355 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22356 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22357 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22358 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22359 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22360 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22361 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22362 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22363 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22364 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22365 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22366 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22367 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22368 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22369 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22370 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22371 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22372 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22373 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22374 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22375 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22376 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22377 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22378 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22379 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22380 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22381 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22382 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22383 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22384 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22385 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22386 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22387 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22388 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22389 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22390 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22391 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22392 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22393 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22394 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22395 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22396 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22397 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22398 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22399 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22400 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22401 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22402 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22403 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22404 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22405 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22406 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22407 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22408 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22409 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22410 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22411 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22412 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22413 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22414 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22415 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22416 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
22417 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22418 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22419 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
22420 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
22421 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
22422 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
22423 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22424 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
22425 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
22426 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22427 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
22428 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
22429 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
22430 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
22431 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
22432 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
22433 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22434 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22435 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
22436 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22437 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22438 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22439 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22440 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22441 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22442 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
22443 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22444 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22445 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22446 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
22447 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
22448 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
22449 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
22450 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
22451 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
22452 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
22453 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
22454 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
22455 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
22456 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
22457 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22458 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
22459 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
22460 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22461 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22462 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
22463 compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`'
22464 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
22465 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
22466 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
22467 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
22468 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
22469
22470 LTCC='$LTCC'
22471 LTCFLAGS='$LTCFLAGS'
22472 compiler='$compiler_DEFAULT'
22473
22474 # Quote evaled strings.
22475 for var in SED \
22476 GREP \
22477 EGREP \
22478 FGREP \
22479 LD \
22480 NM \
22481 LN_S \
22482 lt_SP2NL \
22483 lt_NL2SP \
22484 reload_flag \
22485 OBJDUMP \
22486 deplibs_check_method \
22487 file_magic_cmd \
22488 AR \
22489 AR_FLAGS \
22490 STRIP \
22491 RANLIB \
22492 CC \
22493 CFLAGS \
22494 compiler \
22495 lt_cv_sys_global_symbol_pipe \
22496 lt_cv_sys_global_symbol_to_cdecl \
22497 lt_cv_sys_global_symbol_to_c_name_address \
22498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22499 SHELL \
22500 ECHO \
22501 lt_prog_compiler_no_builtin_flag \
22502 lt_prog_compiler_wl \
22503 lt_prog_compiler_pic \
22504 lt_prog_compiler_static \
22505 lt_cv_prog_compiler_c_o \
22506 need_locks \
22507 DSYMUTIL \
22508 NMEDIT \
22509 LIPO \
22510 OTOOL \
22511 OTOOL64 \
22512 shrext_cmds \
22513 export_dynamic_flag_spec \
22514 whole_archive_flag_spec \
22515 compiler_needs_object \
22516 with_gnu_ld \
22517 allow_undefined_flag \
22518 no_undefined_flag \
22519 hardcode_libdir_flag_spec \
22520 hardcode_libdir_flag_spec_ld \
22521 hardcode_libdir_separator \
22522 fix_srcfile_path \
22523 exclude_expsyms \
22524 include_expsyms \
22525 file_list_spec \
22526 variables_saved_for_relink \
22527 libname_spec \
22528 library_names_spec \
22529 soname_spec \
22530 finish_eval \
22531 old_striplib \
22532 striplib \
22533 compiler_lib_search_dirs \
22534 predep_objects \
22535 postdep_objects \
22536 predeps \
22537 postdeps \
22538 compiler_lib_search_path \
22539 LD_FC \
22540 compiler_FC \
22541 lt_prog_compiler_no_builtin_flag_FC \
22542 lt_prog_compiler_wl_FC \
22543 lt_prog_compiler_pic_FC \
22544 lt_prog_compiler_static_FC \
22545 lt_cv_prog_compiler_c_o_FC \
22546 export_dynamic_flag_spec_FC \
22547 whole_archive_flag_spec_FC \
22548 compiler_needs_object_FC \
22549 with_gnu_ld_FC \
22550 allow_undefined_flag_FC \
22551 no_undefined_flag_FC \
22552 hardcode_libdir_flag_spec_FC \
22553 hardcode_libdir_flag_spec_ld_FC \
22554 hardcode_libdir_separator_FC \
22555 fix_srcfile_path_FC \
22556 exclude_expsyms_FC \
22557 include_expsyms_FC \
22558 file_list_spec_FC \
22559 compiler_lib_search_dirs_FC \
22560 predep_objects_FC \
22561 postdep_objects_FC \
22562 predeps_FC \
22563 postdeps_FC \
22564 compiler_lib_search_path_FC; do
22565     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22566     *[\\\\\\\`\\"\\\$]*)
22567       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22568       ;;
22569     *)
22570       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22571       ;;
22572     esac
22573 done
22574
22575 # Double-quote double-evaled strings.
22576 for var in reload_cmds \
22577 old_postinstall_cmds \
22578 old_postuninstall_cmds \
22579 old_archive_cmds \
22580 extract_expsyms_cmds \
22581 old_archive_from_new_cmds \
22582 old_archive_from_expsyms_cmds \
22583 archive_cmds \
22584 archive_expsym_cmds \
22585 module_cmds \
22586 module_expsym_cmds \
22587 export_symbols_cmds \
22588 prelink_cmds \
22589 postinstall_cmds \
22590 postuninstall_cmds \
22591 finish_cmds \
22592 sys_lib_search_path_spec \
22593 sys_lib_dlsearch_path_spec \
22594 old_archive_cmds_FC \
22595 old_archive_from_new_cmds_FC \
22596 old_archive_from_expsyms_cmds_FC \
22597 archive_cmds_FC \
22598 archive_expsym_cmds_FC \
22599 module_cmds_FC \
22600 module_expsym_cmds_FC \
22601 export_symbols_cmds_FC \
22602 prelink_cmds_FC; do
22603     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22604     *[\\\\\\\`\\"\\\$]*)
22605       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22606       ;;
22607     *)
22608       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22609       ;;
22610     esac
22611 done
22612
22613 # Fix-up fallback echo if it was mangled by the above quoting rules.
22614 case \$lt_ECHO in
22615 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22616   ;;
22617 esac
22618
22619 ac_aux_dir='$ac_aux_dir'
22620 xsi_shell='$xsi_shell'
22621 lt_shell_append='$lt_shell_append'
22622
22623 # See if we are running on zsh, and set the options which allow our
22624 # commands through without removal of \ escapes INIT.
22625 if test -n "\${ZSH_VERSION+set}" ; then
22626    setopt NO_GLOB_SUBST
22627 fi
22628
22629
22630     PACKAGE='$PACKAGE'
22631     VERSION='$VERSION'
22632     TIMESTAMP='$TIMESTAMP'
22633     RM='$RM'
22634     ofile='$ofile'
22635
22636
22637
22638
22639
22640
22641 GCC="$GCC"
22642 CC="$CC"
22643 acx_cv_header_stdint="$acx_cv_header_stdint"
22644 acx_cv_type_int8_t="$acx_cv_type_int8_t"
22645 acx_cv_type_int16_t="$acx_cv_type_int16_t"
22646 acx_cv_type_int32_t="$acx_cv_type_int32_t"
22647 acx_cv_type_int64_t="$acx_cv_type_int64_t"
22648 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22649 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
22650 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
22651 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
22652 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
22653 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
22654 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
22655 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
22656 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
22657
22658
22659 _ACEOF
22660
22661
22662
22663 cat >>$CONFIG_STATUS <<\_ACEOF
22664 for ac_config_target in $ac_config_targets
22665 do
22666   case "$ac_config_target" in
22667   # Handling of arguments.
22668   "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
22669   "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
22670   "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
22671   "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
22672   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22673   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
22674   "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
22675   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22676   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22677   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22678   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
22679   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22680   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22681 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22682    { (exit 1); exit 1; }; };;
22683   esac
22684 done
22685
22686 # If the user did not use the arguments to specify the items to instantiate,
22687 # then the envvar interface is used.  Set only those that are not.
22688 # We use the long form for the default assignment because of an extremely
22689 # bizarre bug on SunOS 4.1.3.
22690 if $ac_need_defaults; then
22691   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22692   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22693   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22694 fi
22695
22696 # Have a temporary directory for convenience.  Make it in the build tree
22697 # simply because there is no reason to put it here, and in addition,
22698 # creating and moving files from /tmp can sometimes cause problems.
22699 # Create a temporary directory, and hook for its removal unless debugging.
22700 $debug ||
22701 {
22702   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22703   trap '{ (exit 1); exit 1; }' 1 2 13 15
22704 }
22705
22706 # Create a (secure) tmp directory for tmp files.
22707
22708 {
22709   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22710   test -n "$tmp" && test -d "$tmp"
22711 }  ||
22712 {
22713   tmp=./confstat$$-$RANDOM
22714   (umask 077 && mkdir $tmp)
22715 } ||
22716 {
22717    echo "$me: cannot create a temporary directory in ." >&2
22718    { (exit 1); exit 1; }
22719 }
22720
22721 _ACEOF
22722
22723 cat >>$CONFIG_STATUS <<_ACEOF
22724
22725 #
22726 # CONFIG_FILES section.
22727 #
22728
22729 # No need to generate the scripts if there are no CONFIG_FILES.
22730 # This happens for instance when ./config.status config.h
22731 if test -n "\$CONFIG_FILES"; then
22732   # Protect against being on the right side of a sed subst in config.status.
22733   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22734    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22735 s,@SHELL@,$SHELL,;t t
22736 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22737 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22738 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22739 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22740 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22741 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22742 s,@exec_prefix@,$exec_prefix,;t t
22743 s,@prefix@,$prefix,;t t
22744 s,@program_transform_name@,$program_transform_name,;t t
22745 s,@bindir@,$bindir,;t t
22746 s,@sbindir@,$sbindir,;t t
22747 s,@libexecdir@,$libexecdir,;t t
22748 s,@datadir@,$datadir,;t t
22749 s,@sysconfdir@,$sysconfdir,;t t
22750 s,@sharedstatedir@,$sharedstatedir,;t t
22751 s,@localstatedir@,$localstatedir,;t t
22752 s,@libdir@,$libdir,;t t
22753 s,@includedir@,$includedir,;t t
22754 s,@oldincludedir@,$oldincludedir,;t t
22755 s,@infodir@,$infodir,;t t
22756 s,@mandir@,$mandir,;t t
22757 s,@build_alias@,$build_alias,;t t
22758 s,@host_alias@,$host_alias,;t t
22759 s,@target_alias@,$target_alias,;t t
22760 s,@DEFS@,$DEFS,;t t
22761 s,@ECHO_C@,$ECHO_C,;t t
22762 s,@ECHO_N@,$ECHO_N,;t t
22763 s,@ECHO_T@,$ECHO_T,;t t
22764 s,@LIBS@,$LIBS,;t t
22765 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
22766 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
22767 s,@build@,$build,;t t
22768 s,@build_cpu@,$build_cpu,;t t
22769 s,@build_vendor@,$build_vendor,;t t
22770 s,@build_os@,$build_os,;t t
22771 s,@host@,$host,;t t
22772 s,@host_cpu@,$host_cpu,;t t
22773 s,@host_vendor@,$host_vendor,;t t
22774 s,@host_os@,$host_os,;t t
22775 s,@target@,$target,;t t
22776 s,@target_cpu@,$target_cpu,;t t
22777 s,@target_vendor@,$target_vendor,;t t
22778 s,@target_os@,$target_os,;t t
22779 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22780 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22781 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22782 s,@CYGPATH_W@,$CYGPATH_W,;t t
22783 s,@PACKAGE@,$PACKAGE,;t t
22784 s,@VERSION@,$VERSION,;t t
22785 s,@ACLOCAL@,$ACLOCAL,;t t
22786 s,@AUTOCONF@,$AUTOCONF,;t t
22787 s,@AUTOMAKE@,$AUTOMAKE,;t t
22788 s,@AUTOHEADER@,$AUTOHEADER,;t t
22789 s,@MAKEINFO@,$MAKEINFO,;t t
22790 s,@install_sh@,$install_sh,;t t
22791 s,@STRIP@,$STRIP,;t t
22792 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22793 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22794 s,@mkdir_p@,$mkdir_p,;t t
22795 s,@AWK@,$AWK,;t t
22796 s,@SET_MAKE@,$SET_MAKE,;t t
22797 s,@am__leading_dot@,$am__leading_dot,;t t
22798 s,@AMTAR@,$AMTAR,;t t
22799 s,@am__tar@,$am__tar,;t t
22800 s,@am__untar@,$am__untar,;t t
22801 s,@multi_basedir@,$multi_basedir,;t t
22802 s,@toolexecdir@,$toolexecdir,;t t
22803 s,@toolexeclibdir@,$toolexeclibdir,;t t
22804 s,@CC@,$CC,;t t
22805 s,@ac_ct_CC@,$ac_ct_CC,;t t
22806 s,@EXEEXT@,$EXEEXT,;t t
22807 s,@OBJEXT@,$OBJEXT,;t t
22808 s,@DEPDIR@,$DEPDIR,;t t
22809 s,@am__include@,$am__include,;t t
22810 s,@am__quote@,$am__quote,;t t
22811 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22812 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22813 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22814 s,@CCDEPMODE@,$CCDEPMODE,;t t
22815 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22816 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22817 s,@CFLAGS@,$CFLAGS,;t t
22818 s,@AR@,$AR,;t t
22819 s,@ac_ct_AR@,$ac_ct_AR,;t t
22820 s,@RANLIB@,$RANLIB,;t t
22821 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22822 s,@PERL@,$PERL,;t t
22823 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
22824 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
22825 s,@LIBTOOL@,$LIBTOOL,;t t
22826 s,@SED@,$SED,;t t
22827 s,@EGREP@,$EGREP,;t t
22828 s,@FGREP@,$FGREP,;t t
22829 s,@GREP@,$GREP,;t t
22830 s,@LD@,$LD,;t t
22831 s,@DUMPBIN@,$DUMPBIN,;t t
22832 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22833 s,@NM@,$NM,;t t
22834 s,@LN_S@,$LN_S,;t t
22835 s,@OBJDUMP@,$OBJDUMP,;t t
22836 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22837 s,@lt_ECHO@,$lt_ECHO,;t t
22838 s,@DSYMUTIL@,$DSYMUTIL,;t t
22839 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
22840 s,@NMEDIT@,$NMEDIT,;t t
22841 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
22842 s,@LIPO@,$LIPO,;t t
22843 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
22844 s,@OTOOL@,$OTOOL,;t t
22845 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
22846 s,@OTOOL64@,$OTOOL64,;t t
22847 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
22848 s,@CPP@,$CPP,;t t
22849 s,@CPPFLAGS@,$CPPFLAGS,;t t
22850 s,@enable_shared@,$enable_shared,;t t
22851 s,@enable_static@,$enable_static,;t t
22852 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22853 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22854 s,@MAINT@,$MAINT,;t t
22855 s,@FC@,$FC,;t t
22856 s,@FCFLAGS@,$FCFLAGS,;t t
22857 s,@LDFLAGS@,$LDFLAGS,;t t
22858 s,@ac_ct_FC@,$ac_ct_FC,;t t
22859 s,@libtool_VERSION@,$libtool_VERSION,;t t
22860 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
22861 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
22862 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
22863 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
22864 s,@config_path@,$config_path,;t t
22865 s,@XCFLAGS@,$XCFLAGS,;t t
22866 s,@XLDFLAGS@,$XLDFLAGS,;t t
22867 s,@link_gomp@,$link_gomp,;t t
22868 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
22869 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
22870 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
22871 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
22872 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
22873 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
22874 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
22875 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
22876 s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t
22877 s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t
22878 s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t
22879 s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t
22880 s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t
22881 s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t
22882 s,@LIBOBJS@,$LIBOBJS,;t t
22883 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22884 CEOF
22885
22886 _ACEOF
22887
22888   cat >>$CONFIG_STATUS <<\_ACEOF
22889   # Split the substitutions into bite-sized pieces for seds with
22890   # small command number limits, like on Digital OSF/1 and HP-UX.
22891   ac_max_sed_lines=48
22892   ac_sed_frag=1 # Number of current file.
22893   ac_beg=1 # First line for current file.
22894   ac_end=$ac_max_sed_lines # Line after last line for current file.
22895   ac_more_lines=:
22896   ac_sed_cmds=
22897   while $ac_more_lines; do
22898     if test $ac_beg -gt 1; then
22899       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22900     else
22901       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22902     fi
22903     if test ! -s $tmp/subs.frag; then
22904       ac_more_lines=false
22905     else
22906       # The purpose of the label and of the branching condition is to
22907       # speed up the sed processing (if there are no `@' at all, there
22908       # is no need to browse any of the substitutions).
22909       # These are the two extra sed commands mentioned above.
22910       (echo ':t
22911   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22912       if test -z "$ac_sed_cmds"; then
22913         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22914       else
22915         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22916       fi
22917       ac_sed_frag=`expr $ac_sed_frag + 1`
22918       ac_beg=$ac_end
22919       ac_end=`expr $ac_end + $ac_max_sed_lines`
22920     fi
22921   done
22922   if test -z "$ac_sed_cmds"; then
22923     ac_sed_cmds=cat
22924   fi
22925 fi # test -n "$CONFIG_FILES"
22926
22927 _ACEOF
22928 cat >>$CONFIG_STATUS <<\_ACEOF
22929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22930   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22931   case $ac_file in
22932   - | *:- | *:-:* ) # input from stdin
22933         cat >$tmp/stdin
22934         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22935         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22936   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22938   * )   ac_file_in=$ac_file.in ;;
22939   esac
22940
22941   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22942   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944          X"$ac_file" : 'X\(//\)[^/]' \| \
22945          X"$ac_file" : 'X\(//\)$' \| \
22946          X"$ac_file" : 'X\(/\)' \| \
22947          .     : '\(.\)' 2>/dev/null ||
22948 echo X"$ac_file" |
22949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951           /^X\(\/\/\)$/{ s//\1/; q; }
22952           /^X\(\/\).*/{ s//\1/; q; }
22953           s/.*/./; q'`
22954   { if $as_mkdir_p; then
22955     mkdir -p "$ac_dir"
22956   else
22957     as_dir="$ac_dir"
22958     as_dirs=
22959     while test ! -d "$as_dir"; do
22960       as_dirs="$as_dir $as_dirs"
22961       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22963          X"$as_dir" : 'X\(//\)[^/]' \| \
22964          X"$as_dir" : 'X\(//\)$' \| \
22965          X"$as_dir" : 'X\(/\)' \| \
22966          .     : '\(.\)' 2>/dev/null ||
22967 echo X"$as_dir" |
22968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22970           /^X\(\/\/\)$/{ s//\1/; q; }
22971           /^X\(\/\).*/{ s//\1/; q; }
22972           s/.*/./; q'`
22973     done
22974     test ! -n "$as_dirs" || mkdir $as_dirs
22975   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22977    { (exit 1); exit 1; }; }; }
22978
22979   ac_builddir=.
22980
22981 if test "$ac_dir" != .; then
22982   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22983   # A "../" for each directory in $ac_dir_suffix.
22984   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22985 else
22986   ac_dir_suffix= ac_top_builddir=
22987 fi
22988
22989 case $srcdir in
22990   .)  # No --srcdir option.  We are building in place.
22991     ac_srcdir=.
22992     if test -z "$ac_top_builddir"; then
22993        ac_top_srcdir=.
22994     else
22995        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22996     fi ;;
22997   [\\/]* | ?:[\\/]* )  # Absolute path.
22998     ac_srcdir=$srcdir$ac_dir_suffix;
22999     ac_top_srcdir=$srcdir ;;
23000   *) # Relative path.
23001     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23002     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23003 esac
23004
23005 # Do not use `cd foo && pwd` to compute absolute paths, because
23006 # the directories may not exist.
23007 case `pwd` in
23008 .) ac_abs_builddir="$ac_dir";;
23009 *)
23010   case "$ac_dir" in
23011   .) ac_abs_builddir=`pwd`;;
23012   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23013   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23014   esac;;
23015 esac
23016 case $ac_abs_builddir in
23017 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23018 *)
23019   case ${ac_top_builddir}. in
23020   .) ac_abs_top_builddir=$ac_abs_builddir;;
23021   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23022   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23023   esac;;
23024 esac
23025 case $ac_abs_builddir in
23026 .) ac_abs_srcdir=$ac_srcdir;;
23027 *)
23028   case $ac_srcdir in
23029   .) ac_abs_srcdir=$ac_abs_builddir;;
23030   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23031   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23032   esac;;
23033 esac
23034 case $ac_abs_builddir in
23035 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23036 *)
23037   case $ac_top_srcdir in
23038   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23039   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23040   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23041   esac;;
23042 esac
23043
23044
23045   case $INSTALL in
23046   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23047   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23048   esac
23049
23050   if test x"$ac_file" != x-; then
23051     { echo "$as_me:$LINENO: creating $ac_file" >&5
23052 echo "$as_me: creating $ac_file" >&6;}
23053     rm -f "$ac_file"
23054   fi
23055   # Let's still pretend it is `configure' which instantiates (i.e., don't
23056   # use $as_me), people would be surprised to read:
23057   #    /* config.h.  Generated by config.status.  */
23058   if test x"$ac_file" = x-; then
23059     configure_input=
23060   else
23061     configure_input="$ac_file.  "
23062   fi
23063   configure_input=$configure_input"Generated from `echo $ac_file_in |
23064                                      sed 's,.*/,,'` by configure."
23065
23066   # First look for the input files in the build tree, otherwise in the
23067   # src tree.
23068   ac_file_inputs=`IFS=:
23069     for f in $ac_file_in; do
23070       case $f in
23071       -) echo $tmp/stdin ;;
23072       [\\/$]*)
23073          # Absolute (can't be DOS-style, as IFS=:)
23074          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23075 echo "$as_me: error: cannot find input file: $f" >&2;}
23076    { (exit 1); exit 1; }; }
23077          echo "$f";;
23078       *) # Relative
23079          if test -f "$f"; then
23080            # Build tree
23081            echo "$f"
23082          elif test -f "$srcdir/$f"; then
23083            # Source tree
23084            echo "$srcdir/$f"
23085          else
23086            # /dev/null tree
23087            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23088 echo "$as_me: error: cannot find input file: $f" >&2;}
23089    { (exit 1); exit 1; }; }
23090          fi;;
23091       esac
23092     done` || { (exit 1); exit 1; }
23093 _ACEOF
23094 cat >>$CONFIG_STATUS <<_ACEOF
23095   sed "$ac_vpsub
23096 $extrasub
23097 _ACEOF
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23099 :t
23100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23101 s,@configure_input@,$configure_input,;t t
23102 s,@srcdir@,$ac_srcdir,;t t
23103 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23104 s,@top_srcdir@,$ac_top_srcdir,;t t
23105 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23106 s,@builddir@,$ac_builddir,;t t
23107 s,@abs_builddir@,$ac_abs_builddir,;t t
23108 s,@top_builddir@,$ac_top_builddir,;t t
23109 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23110 s,@INSTALL@,$ac_INSTALL,;t t
23111 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23112   rm -f $tmp/stdin
23113   if test x"$ac_file" != x-; then
23114     mv $tmp/out $ac_file
23115   else
23116     cat $tmp/out
23117     rm -f $tmp/out
23118   fi
23119
23120 done
23121 _ACEOF
23122 cat >>$CONFIG_STATUS <<\_ACEOF
23123
23124 #
23125 # CONFIG_HEADER section.
23126 #
23127
23128 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23129 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23130 #
23131 # ac_d sets the value in "#define NAME VALUE" lines.
23132 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23133 ac_dB='[         ].*$,\1#\2'
23134 ac_dC=' '
23135 ac_dD=',;t'
23136 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23137 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23138 ac_uB='$,\1#\2define\3'
23139 ac_uC=' '
23140 ac_uD=',;t'
23141
23142 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23143   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23144   case $ac_file in
23145   - | *:- | *:-:* ) # input from stdin
23146         cat >$tmp/stdin
23147         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23148         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23149   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23150         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23151   * )   ac_file_in=$ac_file.in ;;
23152   esac
23153
23154   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23155 echo "$as_me: creating $ac_file" >&6;}
23156
23157   # First look for the input files in the build tree, otherwise in the
23158   # src tree.
23159   ac_file_inputs=`IFS=:
23160     for f in $ac_file_in; do
23161       case $f in
23162       -) echo $tmp/stdin ;;
23163       [\\/$]*)
23164          # Absolute (can't be DOS-style, as IFS=:)
23165          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23166 echo "$as_me: error: cannot find input file: $f" >&2;}
23167    { (exit 1); exit 1; }; }
23168          # Do quote $f, to prevent DOS paths from being IFS'd.
23169          echo "$f";;
23170       *) # Relative
23171          if test -f "$f"; then
23172            # Build tree
23173            echo "$f"
23174          elif test -f "$srcdir/$f"; then
23175            # Source tree
23176            echo "$srcdir/$f"
23177          else
23178            # /dev/null tree
23179            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23180 echo "$as_me: error: cannot find input file: $f" >&2;}
23181    { (exit 1); exit 1; }; }
23182          fi;;
23183       esac
23184     done` || { (exit 1); exit 1; }
23185   # Remove the trailing spaces.
23186   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23187
23188 _ACEOF
23189
23190 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23191 # `conftest.undefs', that substitutes the proper values into
23192 # config.h.in to produce config.h.  The first handles `#define'
23193 # templates, and the second `#undef' templates.
23194 # And first: Protect against being on the right side of a sed subst in
23195 # config.status.  Protect against being in an unquoted here document
23196 # in config.status.
23197 rm -f conftest.defines conftest.undefs
23198 # Using a here document instead of a string reduces the quoting nightmare.
23199 # Putting comments in sed scripts is not portable.
23200 #
23201 # `end' is used to avoid that the second main sed command (meant for
23202 # 0-ary CPP macros) applies to n-ary macro definitions.
23203 # See the Autoconf documentation for `clear'.
23204 cat >confdef2sed.sed <<\_ACEOF
23205 s/[\\&,]/\\&/g
23206 s,[\\$`],\\&,g
23207 t clear
23208 : clear
23209 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23210 t end
23211 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23212 : end
23213 _ACEOF
23214 # If some macros were called several times there might be several times
23215 # the same #defines, which is useless.  Nevertheless, we may not want to
23216 # sort them, since we want the *last* AC-DEFINE to be honored.
23217 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23218 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23219 rm -f confdef2sed.sed
23220
23221 # This sed command replaces #undef with comments.  This is necessary, for
23222 # example, in the case of _POSIX_SOURCE, which is predefined and required
23223 # on some systems where configure will not decide to define it.
23224 cat >>conftest.undefs <<\_ACEOF
23225 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23226 _ACEOF
23227
23228 # Break up conftest.defines because some shells have a limit on the size
23229 # of here documents, and old seds have small limits too (100 cmds).
23230 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23231 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23232 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23233 echo '  :' >>$CONFIG_STATUS
23234 rm -f conftest.tail
23235 while grep . conftest.defines >/dev/null
23236 do
23237   # Write a limited-size here document to $tmp/defines.sed.
23238   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23239   # Speed up: don't consider the non `#define' lines.
23240   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23241   # Work around the forget-to-reset-the-flag bug.
23242   echo 't clr' >>$CONFIG_STATUS
23243   echo ': clr' >>$CONFIG_STATUS
23244   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23245   echo 'CEOF
23246   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23247   rm -f $tmp/in
23248   mv $tmp/out $tmp/in
23249 ' >>$CONFIG_STATUS
23250   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23251   rm -f conftest.defines
23252   mv conftest.tail conftest.defines
23253 done
23254 rm -f conftest.defines
23255 echo '  fi # grep' >>$CONFIG_STATUS
23256 echo >>$CONFIG_STATUS
23257
23258 # Break up conftest.undefs because some shells have a limit on the size
23259 # of here documents, and old seds have small limits too (100 cmds).
23260 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23261 rm -f conftest.tail
23262 while grep . conftest.undefs >/dev/null
23263 do
23264   # Write a limited-size here document to $tmp/undefs.sed.
23265   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23266   # Speed up: don't consider the non `#undef'
23267   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23268   # Work around the forget-to-reset-the-flag bug.
23269   echo 't clr' >>$CONFIG_STATUS
23270   echo ': clr' >>$CONFIG_STATUS
23271   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23272   echo 'CEOF
23273   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23274   rm -f $tmp/in
23275   mv $tmp/out $tmp/in
23276 ' >>$CONFIG_STATUS
23277   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23278   rm -f conftest.undefs
23279   mv conftest.tail conftest.undefs
23280 done
23281 rm -f conftest.undefs
23282
23283 cat >>$CONFIG_STATUS <<\_ACEOF
23284   # Let's still pretend it is `configure' which instantiates (i.e., don't
23285   # use $as_me), people would be surprised to read:
23286   #    /* config.h.  Generated by config.status.  */
23287   if test x"$ac_file" = x-; then
23288     echo "/* Generated by configure.  */" >$tmp/config.h
23289   else
23290     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23291   fi
23292   cat $tmp/in >>$tmp/config.h
23293   rm -f $tmp/in
23294   if test x"$ac_file" != x-; then
23295     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23296       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23297 echo "$as_me: $ac_file is unchanged" >&6;}
23298     else
23299       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23301          X"$ac_file" : 'X\(//\)[^/]' \| \
23302          X"$ac_file" : 'X\(//\)$' \| \
23303          X"$ac_file" : 'X\(/\)' \| \
23304          .     : '\(.\)' 2>/dev/null ||
23305 echo X"$ac_file" |
23306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23308           /^X\(\/\/\)$/{ s//\1/; q; }
23309           /^X\(\/\).*/{ s//\1/; q; }
23310           s/.*/./; q'`
23311       { if $as_mkdir_p; then
23312     mkdir -p "$ac_dir"
23313   else
23314     as_dir="$ac_dir"
23315     as_dirs=
23316     while test ! -d "$as_dir"; do
23317       as_dirs="$as_dir $as_dirs"
23318       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23320          X"$as_dir" : 'X\(//\)[^/]' \| \
23321          X"$as_dir" : 'X\(//\)$' \| \
23322          X"$as_dir" : 'X\(/\)' \| \
23323          .     : '\(.\)' 2>/dev/null ||
23324 echo X"$as_dir" |
23325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23327           /^X\(\/\/\)$/{ s//\1/; q; }
23328           /^X\(\/\).*/{ s//\1/; q; }
23329           s/.*/./; q'`
23330     done
23331     test ! -n "$as_dirs" || mkdir $as_dirs
23332   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23333 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23334    { (exit 1); exit 1; }; }; }
23335
23336       rm -f $ac_file
23337       mv $tmp/config.h $ac_file
23338     fi
23339   else
23340     cat $tmp/config.h
23341     rm -f $tmp/config.h
23342   fi
23343 # Compute $ac_file's index in $config_headers.
23344 _am_stamp_count=1
23345 for _am_header in $config_headers :; do
23346   case $_am_header in
23347     $ac_file | $ac_file:* )
23348       break ;;
23349     * )
23350       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23351   esac
23352 done
23353 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23354 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23355          X$ac_file : 'X\(//\)[^/]' \| \
23356          X$ac_file : 'X\(//\)$' \| \
23357          X$ac_file : 'X\(/\)' \| \
23358          .     : '\(.\)' 2>/dev/null ||
23359 echo X$ac_file |
23360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23361           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23362           /^X\(\/\/\)$/{ s//\1/; q; }
23363           /^X\(\/\).*/{ s//\1/; q; }
23364           s/.*/./; q'`/stamp-h$_am_stamp_count
23365 done
23366 _ACEOF
23367 cat >>$CONFIG_STATUS <<\_ACEOF
23368
23369 #
23370 # CONFIG_COMMANDS section.
23371 #
23372 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23373   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23374   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23375   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23376 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377          X"$ac_dest" : 'X\(//\)[^/]' \| \
23378          X"$ac_dest" : 'X\(//\)$' \| \
23379          X"$ac_dest" : 'X\(/\)' \| \
23380          .     : '\(.\)' 2>/dev/null ||
23381 echo X"$ac_dest" |
23382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23383           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23384           /^X\(\/\/\)$/{ s//\1/; q; }
23385           /^X\(\/\).*/{ s//\1/; q; }
23386           s/.*/./; q'`
23387   { if $as_mkdir_p; then
23388     mkdir -p "$ac_dir"
23389   else
23390     as_dir="$ac_dir"
23391     as_dirs=
23392     while test ! -d "$as_dir"; do
23393       as_dirs="$as_dir $as_dirs"
23394       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23396          X"$as_dir" : 'X\(//\)[^/]' \| \
23397          X"$as_dir" : 'X\(//\)$' \| \
23398          X"$as_dir" : 'X\(/\)' \| \
23399          .     : '\(.\)' 2>/dev/null ||
23400 echo X"$as_dir" |
23401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23402           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23403           /^X\(\/\/\)$/{ s//\1/; q; }
23404           /^X\(\/\).*/{ s//\1/; q; }
23405           s/.*/./; q'`
23406     done
23407     test ! -n "$as_dirs" || mkdir $as_dirs
23408   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23410    { (exit 1); exit 1; }; }; }
23411
23412   ac_builddir=.
23413
23414 if test "$ac_dir" != .; then
23415   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23416   # A "../" for each directory in $ac_dir_suffix.
23417   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23418 else
23419   ac_dir_suffix= ac_top_builddir=
23420 fi
23421
23422 case $srcdir in
23423   .)  # No --srcdir option.  We are building in place.
23424     ac_srcdir=.
23425     if test -z "$ac_top_builddir"; then
23426        ac_top_srcdir=.
23427     else
23428        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23429     fi ;;
23430   [\\/]* | ?:[\\/]* )  # Absolute path.
23431     ac_srcdir=$srcdir$ac_dir_suffix;
23432     ac_top_srcdir=$srcdir ;;
23433   *) # Relative path.
23434     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23435     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23436 esac
23437
23438 # Do not use `cd foo && pwd` to compute absolute paths, because
23439 # the directories may not exist.
23440 case `pwd` in
23441 .) ac_abs_builddir="$ac_dir";;
23442 *)
23443   case "$ac_dir" in
23444   .) ac_abs_builddir=`pwd`;;
23445   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23446   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23447   esac;;
23448 esac
23449 case $ac_abs_builddir in
23450 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23451 *)
23452   case ${ac_top_builddir}. in
23453   .) ac_abs_top_builddir=$ac_abs_builddir;;
23454   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23455   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23456   esac;;
23457 esac
23458 case $ac_abs_builddir in
23459 .) ac_abs_srcdir=$ac_srcdir;;
23460 *)
23461   case $ac_srcdir in
23462   .) ac_abs_srcdir=$ac_abs_builddir;;
23463   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23464   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23465   esac;;
23466 esac
23467 case $ac_abs_builddir in
23468 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23469 *)
23470   case $ac_top_srcdir in
23471   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23472   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23473   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23474   esac;;
23475 esac
23476
23477
23478   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23479 echo "$as_me: executing $ac_dest commands" >&6;}
23480   case $ac_dest in
23481     default-1 )
23482 # Only add multilib support code if we just rebuilt the top-level
23483 # Makefile.
23484 case " $CONFIG_FILES " in
23485  *" Makefile "*)
23486    ac_file=Makefile . ${multi_basedir}/config-ml.in
23487    ;;
23488 esac ;;
23489     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23490   # Strip MF so we end up with the name of the file.
23491   mf=`echo "$mf" | sed -e 's/:.*$//'`
23492   # Check whether this is an Automake generated Makefile or not.
23493   # We used to match only the files named `Makefile.in', but
23494   # some people rename them; so instead we look at the file content.
23495   # Grep'ing the first line is not enough: some people post-process
23496   # each Makefile.in and add a new line on top of each file to say so.
23497   # So let's grep whole file.
23498   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23499     dirpart=`(dirname "$mf") 2>/dev/null ||
23500 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23501          X"$mf" : 'X\(//\)[^/]' \| \
23502          X"$mf" : 'X\(//\)$' \| \
23503          X"$mf" : 'X\(/\)' \| \
23504          .     : '\(.\)' 2>/dev/null ||
23505 echo X"$mf" |
23506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23508           /^X\(\/\/\)$/{ s//\1/; q; }
23509           /^X\(\/\).*/{ s//\1/; q; }
23510           s/.*/./; q'`
23511   else
23512     continue
23513   fi
23514   # Extract the definition of DEPDIR, am__include, and am__quote
23515   # from the Makefile without running `make'.
23516   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23517   test -z "$DEPDIR" && continue
23518   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23519   test -z "am__include" && continue
23520   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23521   # When using ansi2knr, U may be empty or an underscore; expand it
23522   U=`sed -n 's/^U = //p' < "$mf"`
23523   # Find all dependency output files, they are included files with
23524   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23525   # simplest approach to changing $(DEPDIR) to its actual value in the
23526   # expansion.
23527   for file in `sed -n "
23528     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23529        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23530     # Make sure the directory exists.
23531     test -f "$dirpart/$file" && continue
23532     fdir=`(dirname "$file") 2>/dev/null ||
23533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23534          X"$file" : 'X\(//\)[^/]' \| \
23535          X"$file" : 'X\(//\)$' \| \
23536          X"$file" : 'X\(/\)' \| \
23537          .     : '\(.\)' 2>/dev/null ||
23538 echo X"$file" |
23539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23540           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23541           /^X\(\/\/\)$/{ s//\1/; q; }
23542           /^X\(\/\).*/{ s//\1/; q; }
23543           s/.*/./; q'`
23544     { if $as_mkdir_p; then
23545     mkdir -p $dirpart/$fdir
23546   else
23547     as_dir=$dirpart/$fdir
23548     as_dirs=
23549     while test ! -d "$as_dir"; do
23550       as_dirs="$as_dir $as_dirs"
23551       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23553          X"$as_dir" : 'X\(//\)[^/]' \| \
23554          X"$as_dir" : 'X\(//\)$' \| \
23555          X"$as_dir" : 'X\(/\)' \| \
23556          .     : '\(.\)' 2>/dev/null ||
23557 echo X"$as_dir" |
23558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23559           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23560           /^X\(\/\/\)$/{ s//\1/; q; }
23561           /^X\(\/\).*/{ s//\1/; q; }
23562           s/.*/./; q'`
23563     done
23564     test ! -n "$as_dirs" || mkdir $as_dirs
23565   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23566 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23567    { (exit 1); exit 1; }; }; }
23568
23569     # echo "creating $dirpart/$file"
23570     echo '# dummy' > "$dirpart/$file"
23571   done
23572 done
23573  ;;
23574     libtool )
23575
23576     # See if we are running on zsh, and set the options which allow our
23577     # commands through without removal of \ escapes.
23578     if test -n "${ZSH_VERSION+set}" ; then
23579       setopt NO_GLOB_SUBST
23580     fi
23581
23582     cfgfile="${ofile}T"
23583     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23584     $RM "$cfgfile"
23585
23586     cat <<_LT_EOF >> "$cfgfile"
23587 #! $SHELL
23588
23589 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23590 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23593 #
23594 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23595 #                 2006, 2007, 2008 Free Software Foundation, Inc.
23596 #   Written by Gordon Matzigkeit, 1996
23597 #
23598 #   This file is part of GNU Libtool.
23599 #
23600 # GNU Libtool is free software; you can redistribute it and/or
23601 # modify it under the terms of the GNU General Public License as
23602 # published by the Free Software Foundation; either version 2 of
23603 # the License, or (at your option) any later version.
23604 #
23605 # As a special exception to the GNU General Public License,
23606 # if you distribute this file as part of a program or library that
23607 # is built using GNU Libtool, you may include this file under the
23608 # same distribution terms that you use for the rest of that program.
23609 #
23610 # GNU Libtool is distributed in the hope that it will be useful,
23611 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23612 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23613 # GNU General Public License for more details.
23614 #
23615 # You should have received a copy of the GNU General Public License
23616 # along with GNU Libtool; see the file COPYING.  If not, a copy
23617 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23618 # obtained by writing to the Free Software Foundation, Inc.,
23619 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23620
23621
23622 # The names of the tagged configurations supported by this script.
23623 available_tags="FC "
23624
23625 # ### BEGIN LIBTOOL CONFIG
23626
23627 # Which release of libtool.m4 was used?
23628 macro_version=$macro_version
23629 macro_revision=$macro_revision
23630
23631 # Whether or not to build shared libraries.
23632 build_libtool_libs=$enable_shared
23633
23634 # Whether or not to build static libraries.
23635 build_old_libs=$enable_static
23636
23637 # What type of objects to build.
23638 pic_mode=$pic_mode
23639
23640 # Whether or not to optimize for fast installation.
23641 fast_install=$enable_fast_install
23642
23643 # The host system.
23644 host_alias=$host_alias
23645 host=$host
23646 host_os=$host_os
23647
23648 # The build system.
23649 build_alias=$build_alias
23650 build=$build
23651 build_os=$build_os
23652
23653 # A sed program that does not truncate output.
23654 SED=$lt_SED
23655
23656 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23657 Xsed="\$SED -e 1s/^X//"
23658
23659 # A grep program that handles long lines.
23660 GREP=$lt_GREP
23661
23662 # An ERE matcher.
23663 EGREP=$lt_EGREP
23664
23665 # A literal string matcher.
23666 FGREP=$lt_FGREP
23667
23668 # A BSD- or MS-compatible name lister.
23669 NM=$lt_NM
23670
23671 # Whether we need soft or hard links.
23672 LN_S=$lt_LN_S
23673
23674 # What is the maximum length of a command?
23675 max_cmd_len=$max_cmd_len
23676
23677 # Object file suffix (normally "o").
23678 objext=$ac_objext
23679
23680 # Executable file suffix (normally "").
23681 exeext=$exeext
23682
23683 # whether the shell understands "unset".
23684 lt_unset=$lt_unset
23685
23686 # turn spaces into newlines.
23687 SP2NL=$lt_lt_SP2NL
23688
23689 # turn newlines into spaces.
23690 NL2SP=$lt_lt_NL2SP
23691
23692 # How to create reloadable object files.
23693 reload_flag=$lt_reload_flag
23694 reload_cmds=$lt_reload_cmds
23695
23696 # An object symbol dumper.
23697 OBJDUMP=$lt_OBJDUMP
23698
23699 # Method to check whether dependent libraries are shared objects.
23700 deplibs_check_method=$lt_deplibs_check_method
23701
23702 # Command to use when deplibs_check_method == "file_magic".
23703 file_magic_cmd=$lt_file_magic_cmd
23704
23705 # The archiver.
23706 AR=$lt_AR
23707 AR_FLAGS=$lt_AR_FLAGS
23708
23709 # A symbol stripping program.
23710 STRIP=$lt_STRIP
23711
23712 # Commands used to install an old-style archive.
23713 RANLIB=$lt_RANLIB
23714 old_postinstall_cmds=$lt_old_postinstall_cmds
23715 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23716
23717 # A C compiler.
23718 LTCC=$lt_CC
23719
23720 # LTCC compiler flags.
23721 LTCFLAGS=$lt_CFLAGS
23722
23723 # Take the output of nm and produce a listing of raw symbols and C names.
23724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23725
23726 # Transform the output of nm in a proper C declaration.
23727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23728
23729 # Transform the output of nm in a C name address pair.
23730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23731
23732 # Transform the output of nm in a C name address pair when lib prefix is needed.
23733 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23734
23735 # The name of the directory that contains temporary libtool files.
23736 objdir=$objdir
23737
23738 # Shell to use when invoking shell scripts.
23739 SHELL=$lt_SHELL
23740
23741 # An echo program that does not interpret backslashes.
23742 ECHO=$lt_ECHO
23743
23744 # Used to examine libraries when file_magic_cmd begins with "file".
23745 MAGIC_CMD=$MAGIC_CMD
23746
23747 # Must we lock files when doing compilation?
23748 need_locks=$lt_need_locks
23749
23750 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23751 DSYMUTIL=$lt_DSYMUTIL
23752
23753 # Tool to change global to local symbols on Mac OS X.
23754 NMEDIT=$lt_NMEDIT
23755
23756 # Tool to manipulate fat objects and archives on Mac OS X.
23757 LIPO=$lt_LIPO
23758
23759 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23760 OTOOL=$lt_OTOOL
23761
23762 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23763 OTOOL64=$lt_OTOOL64
23764
23765 # Old archive suffix (normally "a").
23766 libext=$libext
23767
23768 # Shared library suffix (normally ".so").
23769 shrext_cmds=$lt_shrext_cmds
23770
23771 # The commands to extract the exported symbol list from a shared archive.
23772 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23773
23774 # Variables whose values should be saved in libtool wrapper scripts and
23775 # restored at link time.
23776 variables_saved_for_relink=$lt_variables_saved_for_relink
23777
23778 # Do we need the "lib" prefix for modules?
23779 need_lib_prefix=$need_lib_prefix
23780
23781 # Do we need a version for libraries?
23782 need_version=$need_version
23783
23784 # Library versioning type.
23785 version_type=$version_type
23786
23787 # Shared library runtime path variable.
23788 runpath_var=$runpath_var
23789
23790 # Shared library path variable.
23791 shlibpath_var=$shlibpath_var
23792
23793 # Is shlibpath searched before the hard-coded library search path?
23794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23795
23796 # Format of library name prefix.
23797 libname_spec=$lt_libname_spec
23798
23799 # List of archive names.  First name is the real one, the rest are links.
23800 # The last name is the one that the linker finds with -lNAME
23801 library_names_spec=$lt_library_names_spec
23802
23803 # The coded name of the library, if different from the real name.
23804 soname_spec=$lt_soname_spec
23805
23806 # Command to use after installation of a shared archive.
23807 postinstall_cmds=$lt_postinstall_cmds
23808
23809 # Command to use after uninstallation of a shared archive.
23810 postuninstall_cmds=$lt_postuninstall_cmds
23811
23812 # Commands used to finish a libtool library installation in a directory.
23813 finish_cmds=$lt_finish_cmds
23814
23815 # As "finish_cmds", except a single script fragment to be evaled but
23816 # not shown.
23817 finish_eval=$lt_finish_eval
23818
23819 # Whether we should hardcode library paths into libraries.
23820 hardcode_into_libs=$hardcode_into_libs
23821
23822 # Compile-time system search path for libraries.
23823 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23824
23825 # Run-time system search path for libraries.
23826 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23827
23828 # Whether dlopen is supported.
23829 dlopen_support=$enable_dlopen
23830
23831 # Whether dlopen of programs is supported.
23832 dlopen_self=$enable_dlopen_self
23833
23834 # Whether dlopen of statically linked programs is supported.
23835 dlopen_self_static=$enable_dlopen_self_static
23836
23837 # Commands to strip libraries.
23838 old_striplib=$lt_old_striplib
23839 striplib=$lt_striplib
23840
23841
23842 # The linker used to build libraries.
23843 LD=$lt_LD
23844
23845 # Commands used to build an old-style archive.
23846 old_archive_cmds=$lt_old_archive_cmds
23847
23848 # A language specific compiler.
23849 CC=$lt_compiler
23850
23851 # Is the compiler the GNU compiler?
23852 with_gcc=$GCC
23853
23854 # Compiler flag to turn off builtin functions.
23855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23856
23857 # How to pass a linker flag through the compiler.
23858 wl=$lt_lt_prog_compiler_wl
23859
23860 # Additional compiler flags for building library objects.
23861 pic_flag=$lt_lt_prog_compiler_pic
23862
23863 # Compiler flag to prevent dynamic linking.
23864 link_static_flag=$lt_lt_prog_compiler_static
23865
23866 # Does compiler simultaneously support -c and -o options?
23867 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23868
23869 # Whether or not to add -lc for building shared libraries.
23870 build_libtool_need_lc=$archive_cmds_need_lc
23871
23872 # Whether or not to disallow shared libs when runtime libs are static.
23873 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23874
23875 # Compiler flag to allow reflexive dlopens.
23876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23877
23878 # Compiler flag to generate shared objects directly from archives.
23879 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23880
23881 # Whether the compiler copes with passing no objects directly.
23882 compiler_needs_object=$lt_compiler_needs_object
23883
23884 # Create an old-style archive from a shared archive.
23885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23886
23887 # Create a temporary old-style archive to link instead of a shared archive.
23888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23889
23890 # Commands used to build a shared archive.
23891 archive_cmds=$lt_archive_cmds
23892 archive_expsym_cmds=$lt_archive_expsym_cmds
23893
23894 # Commands used to build a loadable module if different from building
23895 # a shared archive.
23896 module_cmds=$lt_module_cmds
23897 module_expsym_cmds=$lt_module_expsym_cmds
23898
23899 # Whether we are building with GNU ld or not.
23900 with_gnu_ld=$lt_with_gnu_ld
23901
23902 # Flag that allows shared libraries with undefined symbols to be built.
23903 allow_undefined_flag=$lt_allow_undefined_flag
23904
23905 # Flag that enforces no undefined symbols.
23906 no_undefined_flag=$lt_no_undefined_flag
23907
23908 # Flag to hardcode \$libdir into a binary during linking.
23909 # This must work even if \$libdir does not exist
23910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23911
23912 # If ld is used when linking, flag to hardcode \$libdir into a binary
23913 # during linking.  This must work even if \$libdir does not exist.
23914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23915
23916 # Whether we need a single "-rpath" flag with a separated argument.
23917 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23918
23919 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23920 # DIR into the resulting binary.
23921 hardcode_direct=$hardcode_direct
23922
23923 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23924 # DIR into the resulting binary and the resulting library dependency is
23925 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23926 # library is relocated.
23927 hardcode_direct_absolute=$hardcode_direct_absolute
23928
23929 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23930 # into the resulting binary.
23931 hardcode_minus_L=$hardcode_minus_L
23932
23933 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23934 # into the resulting binary.
23935 hardcode_shlibpath_var=$hardcode_shlibpath_var
23936
23937 # Set to "yes" if building a shared library automatically hardcodes DIR
23938 # into the library and all subsequent libraries and executables linked
23939 # against it.
23940 hardcode_automatic=$hardcode_automatic
23941
23942 # Set to yes if linker adds runtime paths of dependent libraries
23943 # to runtime path list.
23944 inherit_rpath=$inherit_rpath
23945
23946 # Whether libtool must link a program against all its dependency libraries.
23947 link_all_deplibs=$link_all_deplibs
23948
23949 # Fix the shell variable \$srcfile for the compiler.
23950 fix_srcfile_path=$lt_fix_srcfile_path
23951
23952 # Set to "yes" if exported symbols are required.
23953 always_export_symbols=$always_export_symbols
23954
23955 # The commands to list exported symbols.
23956 export_symbols_cmds=$lt_export_symbols_cmds
23957
23958 # Symbols that should not be listed in the preloaded symbols.
23959 exclude_expsyms=$lt_exclude_expsyms
23960
23961 # Symbols that must always be exported.
23962 include_expsyms=$lt_include_expsyms
23963
23964 # Commands necessary for linking programs (against libraries) with templates.
23965 prelink_cmds=$lt_prelink_cmds
23966
23967 # Specify filename containing input files.
23968 file_list_spec=$lt_file_list_spec
23969
23970 # How to hardcode a shared library path into an executable.
23971 hardcode_action=$hardcode_action
23972
23973 # The directories searched by this compiler when creating a shared library.
23974 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23975
23976 # Dependencies to place before and after the objects being linked to
23977 # create a shared library.
23978 predep_objects=$lt_predep_objects
23979 postdep_objects=$lt_postdep_objects
23980 predeps=$lt_predeps
23981 postdeps=$lt_postdeps
23982
23983 # The library search path used internally by the compiler when linking
23984 # a shared library.
23985 compiler_lib_search_path=$lt_compiler_lib_search_path
23986
23987 # ### END LIBTOOL CONFIG
23988
23989 _LT_EOF
23990
23991   case $host_os in
23992   aix3*)
23993     cat <<\_LT_EOF >> "$cfgfile"
23994 # AIX sometimes has problems with the GCC collect2 program.  For some
23995 # reason, if we set the COLLECT_NAMES environment variable, the problems
23996 # vanish in a puff of smoke.
23997 if test "X${COLLECT_NAMES+set}" != Xset; then
23998   COLLECT_NAMES=
23999   export COLLECT_NAMES
24000 fi
24001 _LT_EOF
24002     ;;
24003   esac
24004
24005
24006 ltmain="$ac_aux_dir/ltmain.sh"
24007
24008
24009   # We use sed instead of cat because bash on DJGPP gets confused if
24010   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24011   # text mode, it properly converts lines to CR/LF.  This bash problem
24012   # is reportedly fixed, but why not run on old versions too?
24013   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24014     || (rm -f "$cfgfile"; exit 1)
24015
24016   case $xsi_shell in
24017   yes)
24018     cat << \_LT_EOF >> "$cfgfile"
24019
24020 # func_dirname file append nondir_replacement
24021 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
24022 # otherwise set result to NONDIR_REPLACEMENT.
24023 func_dirname ()
24024 {
24025   case ${1} in
24026     */*) func_dirname_result="${1%/*}${2}" ;;
24027     *  ) func_dirname_result="${3}" ;;
24028   esac
24029 }
24030
24031 # func_basename file
24032 func_basename ()
24033 {
24034   func_basename_result="${1##*/}"
24035 }
24036
24037 # func_dirname_and_basename file append nondir_replacement
24038 # perform func_basename and func_dirname in a single function
24039 # call:
24040 #   dirname:  Compute the dirname of FILE.  If nonempty,
24041 #             add APPEND to the result, otherwise set result
24042 #             to NONDIR_REPLACEMENT.
24043 #             value returned in "$func_dirname_result"
24044 #   basename: Compute filename of FILE.
24045 #             value retuned in "$func_basename_result"
24046 # Implementation must be kept synchronized with func_dirname
24047 # and func_basename. For efficiency, we do not delegate to
24048 # those functions but instead duplicate the functionality here.
24049 func_dirname_and_basename ()
24050 {
24051   case ${1} in
24052     */*) func_dirname_result="${1%/*}${2}" ;;
24053     *  ) func_dirname_result="${3}" ;;
24054   esac
24055   func_basename_result="${1##*/}"
24056 }
24057
24058 # func_stripname prefix suffix name
24059 # strip PREFIX and SUFFIX off of NAME.
24060 # PREFIX and SUFFIX must not contain globbing or regex special
24061 # characters, hashes, percent signs, but SUFFIX may contain a leading
24062 # dot (in which case that matches only a dot).
24063 func_stripname ()
24064 {
24065   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24066   # positional parameters, so assign one to ordinary parameter first.
24067   func_stripname_result=${3}
24068   func_stripname_result=${func_stripname_result#"${1}"}
24069   func_stripname_result=${func_stripname_result%"${2}"}
24070 }
24071
24072 # func_opt_split
24073 func_opt_split ()
24074 {
24075   func_opt_split_opt=${1%%=*}
24076   func_opt_split_arg=${1#*=}
24077 }
24078
24079 # func_lo2o object
24080 func_lo2o ()
24081 {
24082   case ${1} in
24083     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24084     *)    func_lo2o_result=${1} ;;
24085   esac
24086 }
24087
24088 # func_xform libobj-or-source
24089 func_xform ()
24090 {
24091   func_xform_result=${1%.*}.lo
24092 }
24093
24094 # func_arith arithmetic-term...
24095 func_arith ()
24096 {
24097   func_arith_result=$(( $* ))
24098 }
24099
24100 # func_len string
24101 # STRING may not start with a hyphen.
24102 func_len ()
24103 {
24104   func_len_result=${#1}
24105 }
24106
24107 _LT_EOF
24108     ;;
24109   *) # Bourne compatible functions.
24110     cat << \_LT_EOF >> "$cfgfile"
24111
24112 # func_dirname file append nondir_replacement
24113 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
24114 # otherwise set result to NONDIR_REPLACEMENT.
24115 func_dirname ()
24116 {
24117   # Extract subdirectory from the argument.
24118   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24119   if test "X$func_dirname_result" = "X${1}"; then
24120     func_dirname_result="${3}"
24121   else
24122     func_dirname_result="$func_dirname_result${2}"
24123   fi
24124 }
24125
24126 # func_basename file
24127 func_basename ()
24128 {
24129   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24130 }
24131
24132
24133 # func_stripname prefix suffix name
24134 # strip PREFIX and SUFFIX off of NAME.
24135 # PREFIX and SUFFIX must not contain globbing or regex special
24136 # characters, hashes, percent signs, but SUFFIX may contain a leading
24137 # dot (in which case that matches only a dot).
24138 # func_strip_suffix prefix name
24139 func_stripname ()
24140 {
24141   case ${2} in
24142     .*) func_stripname_result=`$ECHO "X${3}" \
24143            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24144     *)  func_stripname_result=`$ECHO "X${3}" \
24145            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24146   esac
24147 }
24148
24149 # sed scripts:
24150 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24151 my_sed_long_arg='1s/^-[^=]*=//'
24152
24153 # func_opt_split
24154 func_opt_split ()
24155 {
24156   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24157   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24158 }
24159
24160 # func_lo2o object
24161 func_lo2o ()
24162 {
24163   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24164 }
24165
24166 # func_xform libobj-or-source
24167 func_xform ()
24168 {
24169   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24170 }
24171
24172 # func_arith arithmetic-term...
24173 func_arith ()
24174 {
24175   func_arith_result=`expr "$@"`
24176 }
24177
24178 # func_len string
24179 # STRING may not start with a hyphen.
24180 func_len ()
24181 {
24182   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24183 }
24184
24185 _LT_EOF
24186 esac
24187
24188 case $lt_shell_append in
24189   yes)
24190     cat << \_LT_EOF >> "$cfgfile"
24191
24192 # func_append var value
24193 # Append VALUE to the end of shell variable VAR.
24194 func_append ()
24195 {
24196   eval "$1+=\$2"
24197 }
24198 _LT_EOF
24199     ;;
24200   *)
24201     cat << \_LT_EOF >> "$cfgfile"
24202
24203 # func_append var value
24204 # Append VALUE to the end of shell variable VAR.
24205 func_append ()
24206 {
24207   eval "$1=\$$1\$2"
24208 }
24209
24210 _LT_EOF
24211     ;;
24212   esac
24213
24214
24215   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24216     || (rm -f "$cfgfile"; exit 1)
24217
24218   mv -f "$cfgfile" "$ofile" ||
24219     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24220   chmod +x "$ofile"
24221
24222
24223     cat <<_LT_EOF >> "$ofile"
24224
24225 # ### BEGIN LIBTOOL TAG CONFIG: FC
24226
24227 # The linker used to build libraries.
24228 LD=$lt_LD_FC
24229
24230 # Commands used to build an old-style archive.
24231 old_archive_cmds=$lt_old_archive_cmds_FC
24232
24233 # A language specific compiler.
24234 CC=$lt_compiler_FC
24235
24236 # Is the compiler the GNU compiler?
24237 with_gcc=$GCC_FC
24238
24239 # Compiler flag to turn off builtin functions.
24240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
24241
24242 # How to pass a linker flag through the compiler.
24243 wl=$lt_lt_prog_compiler_wl_FC
24244
24245 # Additional compiler flags for building library objects.
24246 pic_flag=$lt_lt_prog_compiler_pic_FC
24247
24248 # Compiler flag to prevent dynamic linking.
24249 link_static_flag=$lt_lt_prog_compiler_static_FC
24250
24251 # Does compiler simultaneously support -c and -o options?
24252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
24253
24254 # Whether or not to add -lc for building shared libraries.
24255 build_libtool_need_lc=$archive_cmds_need_lc_FC
24256
24257 # Whether or not to disallow shared libs when runtime libs are static.
24258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
24259
24260 # Compiler flag to allow reflexive dlopens.
24261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
24262
24263 # Compiler flag to generate shared objects directly from archives.
24264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
24265
24266 # Whether the compiler copes with passing no objects directly.
24267 compiler_needs_object=$lt_compiler_needs_object_FC
24268
24269 # Create an old-style archive from a shared archive.
24270 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
24271
24272 # Create a temporary old-style archive to link instead of a shared archive.
24273 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
24274
24275 # Commands used to build a shared archive.
24276 archive_cmds=$lt_archive_cmds_FC
24277 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
24278
24279 # Commands used to build a loadable module if different from building
24280 # a shared archive.
24281 module_cmds=$lt_module_cmds_FC
24282 module_expsym_cmds=$lt_module_expsym_cmds_FC
24283
24284 # Whether we are building with GNU ld or not.
24285 with_gnu_ld=$lt_with_gnu_ld_FC
24286
24287 # Flag that allows shared libraries with undefined symbols to be built.
24288 allow_undefined_flag=$lt_allow_undefined_flag_FC
24289
24290 # Flag that enforces no undefined symbols.
24291 no_undefined_flag=$lt_no_undefined_flag_FC
24292
24293 # Flag to hardcode \$libdir into a binary during linking.
24294 # This must work even if \$libdir does not exist
24295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
24296
24297 # If ld is used when linking, flag to hardcode \$libdir into a binary
24298 # during linking.  This must work even if \$libdir does not exist.
24299 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
24300
24301 # Whether we need a single "-rpath" flag with a separated argument.
24302 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
24303
24304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24305 # DIR into the resulting binary.
24306 hardcode_direct=$hardcode_direct_FC
24307
24308 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24309 # DIR into the resulting binary and the resulting library dependency is
24310 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24311 # library is relocated.
24312 hardcode_direct_absolute=$hardcode_direct_absolute_FC
24313
24314 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24315 # into the resulting binary.
24316 hardcode_minus_L=$hardcode_minus_L_FC
24317
24318 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24319 # into the resulting binary.
24320 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
24321
24322 # Set to "yes" if building a shared library automatically hardcodes DIR
24323 # into the library and all subsequent libraries and executables linked
24324 # against it.
24325 hardcode_automatic=$hardcode_automatic_FC
24326
24327 # Set to yes if linker adds runtime paths of dependent libraries
24328 # to runtime path list.
24329 inherit_rpath=$inherit_rpath_FC
24330
24331 # Whether libtool must link a program against all its dependency libraries.
24332 link_all_deplibs=$link_all_deplibs_FC
24333
24334 # Fix the shell variable \$srcfile for the compiler.
24335 fix_srcfile_path=$lt_fix_srcfile_path_FC
24336
24337 # Set to "yes" if exported symbols are required.
24338 always_export_symbols=$always_export_symbols_FC
24339
24340 # The commands to list exported symbols.
24341 export_symbols_cmds=$lt_export_symbols_cmds_FC
24342
24343 # Symbols that should not be listed in the preloaded symbols.
24344 exclude_expsyms=$lt_exclude_expsyms_FC
24345
24346 # Symbols that must always be exported.
24347 include_expsyms=$lt_include_expsyms_FC
24348
24349 # Commands necessary for linking programs (against libraries) with templates.
24350 prelink_cmds=$lt_prelink_cmds_FC
24351
24352 # Specify filename containing input files.
24353 file_list_spec=$lt_file_list_spec_FC
24354
24355 # How to hardcode a shared library path into an executable.
24356 hardcode_action=$hardcode_action_FC
24357
24358 # The directories searched by this compiler when creating a shared library.
24359 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
24360
24361 # Dependencies to place before and after the objects being linked to
24362 # create a shared library.
24363 predep_objects=$lt_predep_objects_FC
24364 postdep_objects=$lt_postdep_objects_FC
24365 predeps=$lt_predeps_FC
24366 postdeps=$lt_postdeps_FC
24367
24368 # The library search path used internally by the compiler when linking
24369 # a shared library.
24370 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
24371
24372 # ### END LIBTOOL TAG CONFIG: FC
24373 _LT_EOF
24374
24375  ;;
24376     gstdint.h )
24377 if test "$GCC" = yes; then
24378   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24379 else
24380   echo "/* generated for $CC */" > tmp-stdint.h
24381 fi
24382
24383 sed 's/^ *//' >> tmp-stdint.h <<EOF
24384
24385   #ifndef GCC_GENERATED_STDINT_H
24386   #define GCC_GENERATED_STDINT_H 1
24387
24388   #include <sys/types.h>
24389 EOF
24390
24391 if test "$acx_cv_header_stdint" != stdint.h; then
24392   echo "#include <stddef.h>" >> tmp-stdint.h
24393 fi
24394 if test "$acx_cv_header_stdint" != stddef.h; then
24395   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24396 fi
24397
24398 sed 's/^ *//' >> tmp-stdint.h <<EOF
24399   /* glibc uses these symbols as guards to prevent redefinitions.  */
24400   #ifdef __int8_t_defined
24401   #define _INT8_T
24402   #define _INT16_T
24403   #define _INT32_T
24404   #endif
24405   #ifdef __uint32_t_defined
24406   #define _UINT32_T
24407   #endif
24408
24409 EOF
24410
24411 # ----------------- done header, emit basic int types -------------
24412 if test "$acx_cv_header_stdint" = stddef.h; then
24413   sed 's/^ *//' >> tmp-stdint.h <<EOF
24414
24415     #ifndef _UINT8_T
24416     #define _UINT8_T
24417     #ifndef __uint8_t_defined
24418     #define __uint8_t_defined
24419     typedef unsigned $acx_cv_type_int8_t uint8_t;
24420     #endif
24421     #endif
24422
24423     #ifndef _UINT16_T
24424     #define _UINT16_T
24425     #ifndef __uint16_t_defined
24426     #define __uint16_t_defined
24427     typedef unsigned $acx_cv_type_int16_t uint16_t;
24428     #endif
24429     #endif
24430
24431     #ifndef _UINT32_T
24432     #define _UINT32_T
24433     #ifndef __uint32_t_defined
24434     #define __uint32_t_defined
24435     typedef unsigned $acx_cv_type_int32_t uint32_t;
24436     #endif
24437     #endif
24438
24439     #ifndef _INT8_T
24440     #define _INT8_T
24441     #ifndef __int8_t_defined
24442     #define __int8_t_defined
24443     typedef $acx_cv_type_int8_t int8_t;
24444     #endif
24445     #endif
24446
24447     #ifndef _INT16_T
24448     #define _INT16_T
24449     #ifndef __int16_t_defined
24450     #define __int16_t_defined
24451     typedef $acx_cv_type_int16_t int16_t;
24452     #endif
24453     #endif
24454
24455     #ifndef _INT32_T
24456     #define _INT32_T
24457     #ifndef __int32_t_defined
24458     #define __int32_t_defined
24459     typedef $acx_cv_type_int32_t int32_t;
24460     #endif
24461     #endif
24462 EOF
24463 elif test "$ac_cv_type_u_int32_t" = yes; then
24464   sed 's/^ *//' >> tmp-stdint.h <<EOF
24465
24466     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24467     #ifndef _INT8_T
24468     #define _INT8_T
24469     #endif
24470     #ifndef _INT16_T
24471     #define _INT16_T
24472     #endif
24473     #ifndef _INT32_T
24474     #define _INT32_T
24475     #endif
24476
24477     #ifndef _UINT8_T
24478     #define _UINT8_T
24479     #ifndef __uint8_t_defined
24480     #define __uint8_t_defined
24481     typedef u_int8_t uint8_t;
24482     #endif
24483     #endif
24484
24485     #ifndef _UINT16_T
24486     #define _UINT16_T
24487     #ifndef __uint16_t_defined
24488     #define __uint16_t_defined
24489     typedef u_int16_t uint16_t;
24490     #endif
24491     #endif
24492
24493     #ifndef _UINT32_T
24494     #define _UINT32_T
24495     #ifndef __uint32_t_defined
24496     #define __uint32_t_defined
24497     typedef u_int32_t uint32_t;
24498     #endif
24499     #endif
24500 EOF
24501 else
24502   sed 's/^ *//' >> tmp-stdint.h <<EOF
24503
24504     /* Some systems have guard macros to prevent redefinitions, define them.  */
24505     #ifndef _INT8_T
24506     #define _INT8_T
24507     #endif
24508     #ifndef _INT16_T
24509     #define _INT16_T
24510     #endif
24511     #ifndef _INT32_T
24512     #define _INT32_T
24513     #endif
24514     #ifndef _UINT8_T
24515     #define _UINT8_T
24516     #endif
24517     #ifndef _UINT16_T
24518     #define _UINT16_T
24519     #endif
24520     #ifndef _UINT32_T
24521     #define _UINT32_T
24522     #endif
24523 EOF
24524 fi
24525
24526 # ------------- done basic int types, emit int64_t types ------------
24527 if test "$ac_cv_type_uint64_t" = yes; then
24528   sed 's/^ *//' >> tmp-stdint.h <<EOF
24529
24530     /* system headers have good uint64_t and int64_t */
24531     #ifndef _INT64_T
24532     #define _INT64_T
24533     #endif
24534     #ifndef _UINT64_T
24535     #define _UINT64_T
24536     #endif
24537 EOF
24538 elif test "$ac_cv_type_u_int64_t" = yes; then
24539   sed 's/^ *//' >> tmp-stdint.h <<EOF
24540
24541     /* system headers have an u_int64_t (and int64_t) */
24542     #ifndef _INT64_T
24543     #define _INT64_T
24544     #endif
24545     #ifndef _UINT64_T
24546     #define _UINT64_T
24547     #ifndef __uint64_t_defined
24548     #define __uint64_t_defined
24549     typedef u_int64_t uint64_t;
24550     #endif
24551     #endif
24552 EOF
24553 elif test -n "$acx_cv_type_int64_t"; then
24554   sed 's/^ *//' >> tmp-stdint.h <<EOF
24555
24556     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24557     #ifndef _INT64_T
24558     #define _INT64_T
24559     typedef $acx_cv_type_int64_t int64_t;
24560     #endif
24561     #ifndef _UINT64_T
24562     #define _UINT64_T
24563     #ifndef __uint64_t_defined
24564     #define __uint64_t_defined
24565     typedef unsigned $acx_cv_type_int64_t uint64_t;
24566     #endif
24567     #endif
24568 EOF
24569 else
24570   sed 's/^ *//' >> tmp-stdint.h <<EOF
24571
24572     /* some common heuristics for int64_t, using compiler-specific tests */
24573     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24574     #ifndef _INT64_T
24575     #define _INT64_T
24576     #ifndef __int64_t_defined
24577     typedef long long int64_t;
24578     #endif
24579     #endif
24580     #ifndef _UINT64_T
24581     #define _UINT64_T
24582     typedef unsigned long long uint64_t;
24583     #endif
24584
24585     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24586     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24587        does not implement __extension__.  But that compiler doesn't define
24588        __GNUC_MINOR__.  */
24589     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24590     # define __extension__
24591     # endif
24592
24593     # ifndef _INT64_T
24594     # define _INT64_T
24595     __extension__ typedef long long int64_t;
24596     # endif
24597     # ifndef _UINT64_T
24598     # define _UINT64_T
24599     __extension__ typedef unsigned long long uint64_t;
24600     # endif
24601
24602     #elif !defined __STRICT_ANSI__
24603     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24604
24605     #  ifndef _INT64_T
24606     #  define _INT64_T
24607     typedef __int64 int64_t;
24608     #  endif
24609     #  ifndef _UINT64_T
24610     #  define _UINT64_T
24611     typedef unsigned __int64 uint64_t;
24612     #  endif
24613     # endif /* compiler */
24614
24615     #endif /* ANSI version */
24616 EOF
24617 fi
24618
24619 # ------------- done int64_t types, emit intptr types ------------
24620 if test "$ac_cv_type_uintptr_t" != yes; then
24621   sed 's/^ *//' >> tmp-stdint.h <<EOF
24622
24623     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24624     #ifndef __uintptr_t_defined
24625     typedef u$acx_cv_type_intptr_t uintptr_t;
24626     #endif
24627     #ifndef __intptr_t_defined
24628     typedef $acx_cv_type_intptr_t  intptr_t;
24629     #endif
24630 EOF
24631 fi
24632
24633 # ------------- done intptr types, emit int_least types ------------
24634 if test "$ac_cv_type_int_least32_t" != yes; then
24635   sed 's/^ *//' >> tmp-stdint.h <<EOF
24636
24637     /* Define int_least types */
24638     typedef int8_t     int_least8_t;
24639     typedef int16_t    int_least16_t;
24640     typedef int32_t    int_least32_t;
24641     #ifdef _INT64_T
24642     typedef int64_t    int_least64_t;
24643     #endif
24644
24645     typedef uint8_t    uint_least8_t;
24646     typedef uint16_t   uint_least16_t;
24647     typedef uint32_t   uint_least32_t;
24648     #ifdef _UINT64_T
24649     typedef uint64_t   uint_least64_t;
24650     #endif
24651 EOF
24652 fi
24653
24654 # ------------- done intptr types, emit int_fast types ------------
24655 if test "$ac_cv_type_int_fast32_t" != yes; then
24656       sed 's/^ *//' >> tmp-stdint.h <<EOF
24657
24658     /* Define int_fast types.  short is often slow */
24659     typedef int8_t       int_fast8_t;
24660     typedef int          int_fast16_t;
24661     typedef int32_t      int_fast32_t;
24662     #ifdef _INT64_T
24663     typedef int64_t      int_fast64_t;
24664     #endif
24665
24666     typedef uint8_t      uint_fast8_t;
24667     typedef unsigned int uint_fast16_t;
24668     typedef uint32_t     uint_fast32_t;
24669     #ifdef _UINT64_T
24670     typedef uint64_t     uint_fast64_t;
24671     #endif
24672 EOF
24673 fi
24674
24675 if test "$ac_cv_type_uintmax_t" != yes; then
24676   sed 's/^ *//' >> tmp-stdint.h <<EOF
24677
24678     /* Define intmax based on what we found */
24679     #ifdef _INT64_T
24680     typedef int64_t       intmax_t;
24681     #else
24682     typedef long          intmax_t;
24683     #endif
24684     #ifdef _UINT64_T
24685     typedef uint64_t      uintmax_t;
24686     #else
24687     typedef unsigned long uintmax_t;
24688     #endif
24689 EOF
24690 fi
24691
24692 sed 's/^ *//' >> tmp-stdint.h <<EOF
24693
24694   #endif /* GCC_GENERATED_STDINT_H */
24695 EOF
24696
24697 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
24698   rm -f tmp-stdint.h
24699 else
24700   mv -f tmp-stdint.h gstdint.h
24701 fi
24702
24703  ;;
24704   esac
24705 done
24706 _ACEOF
24707
24708 cat >>$CONFIG_STATUS <<\_ACEOF
24709
24710 { (exit 0); exit 0; }
24711 _ACEOF
24712 chmod +x $CONFIG_STATUS
24713 ac_clean_files=$ac_clean_files_save
24714
24715
24716 # configure is writing to config.log, and then calls config.status.
24717 # config.status does its own redirection, appending to config.log.
24718 # Unfortunately, on DOS this fails, as config.log is still kept open
24719 # by configure, so config.status won't be able to write to it; its
24720 # output is simply discarded.  So we exec the FD to /dev/null,
24721 # effectively closing config.log, so it can be properly (re)opened and
24722 # appended to by config.status.  When coming back to configure, we
24723 # need to make the FD available again.
24724 if test "$no_create" != yes; then
24725   ac_cs_success=:
24726   ac_config_status_args=
24727   test "$silent" = yes &&
24728     ac_config_status_args="$ac_config_status_args --quiet"
24729   exec 5>/dev/null
24730   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24731   exec 5>>config.log
24732   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24733   # would make configure fail if this is the last instruction.
24734   $ac_cs_success || { (exit 1); exit 1; }
24735 fi
24736