OSDN Git Service

2008-07-03 Andrew Haley <aph@redhat.com>
[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 lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND 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
3739
3740 macro_version='2.1a'
3741 macro_revision='1.2435'
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754 ltmain="$ac_aux_dir/ltmain.sh"
3755
3756 # Set options
3757
3758 enable_dlopen=no
3759
3760
3761 enable_win32_dll=no
3762
3763
3764 # Check whether --enable-shared or --disable-shared was given.
3765 if test "${enable_shared+set}" = set; then
3766   enableval="$enable_shared"
3767   p=${PACKAGE-default}
3768     case $enableval in
3769     yes) enable_shared=yes ;;
3770     no) enable_shared=no ;;
3771     *)
3772       enable_shared=no
3773       # Look at the argument we got.  We use all the common list separators.
3774       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3775       for pkg in $enableval; do
3776         IFS="$lt_save_ifs"
3777         if test "X$pkg" = "X$p"; then
3778           enable_shared=yes
3779         fi
3780       done
3781       IFS="$lt_save_ifs"
3782       ;;
3783     esac
3784 else
3785   enable_shared=yes
3786 fi;
3787
3788
3789
3790
3791
3792
3793
3794
3795 # Check whether --enable-static or --disable-static was given.
3796 if test "${enable_static+set}" = set; then
3797   enableval="$enable_static"
3798   p=${PACKAGE-default}
3799     case $enableval in
3800     yes) enable_static=yes ;;
3801     no) enable_static=no ;;
3802     *)
3803      enable_static=no
3804       # Look at the argument we got.  We use all the common list separators.
3805       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806       for pkg in $enableval; do
3807         IFS="$lt_save_ifs"
3808         if test "X$pkg" = "X$p"; then
3809           enable_static=yes
3810         fi
3811       done
3812       IFS="$lt_save_ifs"
3813       ;;
3814     esac
3815 else
3816   enable_static=yes
3817 fi;
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827 # Check whether --with-pic or --without-pic was given.
3828 if test "${with_pic+set}" = set; then
3829   withval="$with_pic"
3830   pic_mode="$withval"
3831 else
3832   pic_mode=default
3833 fi;
3834
3835 test -z "$pic_mode" && pic_mode=default
3836
3837
3838
3839
3840
3841
3842
3843 # Check whether --enable-fast-install or --disable-fast-install was given.
3844 if test "${enable_fast_install+set}" = set; then
3845   enableval="$enable_fast_install"
3846   p=${PACKAGE-default}
3847     case $enableval in
3848     yes) enable_fast_install=yes ;;
3849     no) enable_fast_install=no ;;
3850     *)
3851       enable_fast_install=no
3852       # Look at the argument we got.  We use all the common list separators.
3853       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3854       for pkg in $enableval; do
3855         IFS="$lt_save_ifs"
3856         if test "X$pkg" = "X$p"; then
3857           enable_fast_install=yes
3858         fi
3859       done
3860       IFS="$lt_save_ifs"
3861       ;;
3862     esac
3863 else
3864   enable_fast_install=yes
3865 fi;
3866
3867
3868
3869
3870
3871
3872
3873
3874 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3875 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3876 if test "${lt_cv_path_SED+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   # Loop through the user's path and test for sed and gsed.
3880 # Then use that list of sed's as ones to test for truncation.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for lt_ac_prog in sed gsed; do
3887     for ac_exec_ext in '' $ac_executable_extensions; do
3888       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3889         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3890       fi
3891     done
3892   done
3893 done
3894 IFS=$as_save_IFS
3895 lt_ac_max=0
3896 lt_ac_count=0
3897 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3898 # along with /bin/sed that truncates output.
3899 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3900   test ! -f $lt_ac_sed && continue
3901   cat /dev/null > conftest.in
3902   lt_ac_count=0
3903   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3904   # Check for GNU sed and select it if it is found.
3905   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3906     lt_cv_path_SED=$lt_ac_sed
3907     break
3908   fi
3909   while true; do
3910     cat conftest.in conftest.in >conftest.tmp
3911     mv conftest.tmp conftest.in
3912     cp conftest.in conftest.nl
3913     echo >>conftest.nl
3914     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3915     cmp -s conftest.out conftest.nl || break
3916     # 10000 chars as input seems more than enough
3917     test $lt_ac_count -gt 10 && break
3918     lt_ac_count=`expr $lt_ac_count + 1`
3919     if test $lt_ac_count -gt $lt_ac_max; then
3920       lt_ac_max=$lt_ac_count
3921       lt_cv_path_SED=$lt_ac_sed
3922     fi
3923   done
3924 done
3925
3926 fi
3927
3928 SED=$lt_cv_path_SED
3929
3930 echo "$as_me:$LINENO: result: $SED" >&5
3931 echo "${ECHO_T}$SED" >&6
3932
3933 test -z "$SED" && SED=sed
3934 Xsed="$SED -e 1s/^X//"
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946 echo "$as_me:$LINENO: checking for egrep" >&5
3947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3948 if test "${ac_cv_prog_egrep+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3952     then ac_cv_prog_egrep='grep -E'
3953     else ac_cv_prog_egrep='egrep'
3954     fi
3955 fi
3956 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3957 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3958  EGREP=$ac_cv_prog_egrep
3959
3960
3961 echo "$as_me:$LINENO: checking for fgrep" >&5
3962 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3963 if test "${ac_cv_prog_fgrep+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3967     then ac_cv_prog_fgrep='grep -F'
3968     else ac_cv_prog_fgrep='fgrep'
3969     fi
3970 fi
3971 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3972 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3973  FGREP=$ac_cv_prog_fgrep
3974
3975
3976 test -z "$GREP" && GREP=grep
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3997 if test "${with_gnu_ld+set}" = set; then
3998   withval="$with_gnu_ld"
3999   test "$withval" = no || with_gnu_ld=yes
4000 else
4001   with_gnu_ld=no
4002 fi;
4003 ac_prog=ld
4004 if test "$GCC" = yes; then
4005   # Check if gcc -print-prog-name=ld gives a path.
4006   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4007 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4008   case $host in
4009   *-*-mingw*)
4010     # gcc leaves a trailing carriage return which upsets mingw
4011     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4012   *)
4013     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4014   esac
4015   case $ac_prog in
4016     # Accept absolute paths.
4017     [\\/]* | ?:[\\/]*)
4018       re_direlt='/[^/][^/]*/\.\./'
4019       # Canonicalize the pathname of ld
4020       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4021       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4022         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4023       done
4024       test -z "$LD" && LD="$ac_prog"
4025       ;;
4026   "")
4027     # If it fails, then pretend we aren't using GCC.
4028     ac_prog=ld
4029     ;;
4030   *)
4031     # If it is relative, then search for the first ld in PATH.
4032     with_gnu_ld=unknown
4033     ;;
4034   esac
4035 elif test "$with_gnu_ld" = yes; then
4036   echo "$as_me:$LINENO: checking for GNU ld" >&5
4037 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4038 else
4039   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4040 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4041 fi
4042 if test "${lt_cv_path_LD+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if test -z "$LD"; then
4046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4047   for ac_dir in $PATH; do
4048     IFS="$lt_save_ifs"
4049     test -z "$ac_dir" && ac_dir=.
4050     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4051       lt_cv_path_LD="$ac_dir/$ac_prog"
4052       # Check to see if the program is GNU ld.  I'd rather use --version,
4053       # but apparently some variants of GNU ld only accept -v.
4054       # Break only if it was the GNU/non-GNU ld that we prefer.
4055       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4056       *GNU* | *'with BFD'*)
4057         test "$with_gnu_ld" != no && break
4058         ;;
4059       *)
4060         test "$with_gnu_ld" != yes && break
4061         ;;
4062       esac
4063     fi
4064   done
4065   IFS="$lt_save_ifs"
4066 else
4067   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4068 fi
4069 fi
4070
4071 LD="$lt_cv_path_LD"
4072 if test -n "$LD"; then
4073   echo "$as_me:$LINENO: result: $LD" >&5
4074 echo "${ECHO_T}$LD" >&6
4075 else
4076   echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4080 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4081    { (exit 1); exit 1; }; }
4082 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4083 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4084 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4088 case `$LD -v 2>&1 </dev/null` in
4089 *GNU* | *'with BFD'*)
4090   lt_cv_prog_gnu_ld=yes
4091   ;;
4092 *)
4093   lt_cv_prog_gnu_ld=no
4094   ;;
4095 esac
4096 fi
4097 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4098 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4099 with_gnu_ld=$lt_cv_prog_gnu_ld
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4111 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4112 if test "${lt_cv_path_NM+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   if test -n "$NM"; then
4116   # Let the user override the test.
4117   lt_cv_path_NM="$NM"
4118 else
4119   lt_nm_to_check="${ac_tool_prefix}nm"
4120   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4121     lt_nm_to_check="$lt_nm_to_check nm"
4122   fi
4123   for lt_tmp_nm in $lt_nm_to_check; do
4124     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4125     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4126       IFS="$lt_save_ifs"
4127       test -z "$ac_dir" && ac_dir=.
4128       tmp_nm="$ac_dir/$lt_tmp_nm"
4129       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4130         # Check to see if the nm accepts a BSD-compat flag.
4131         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4132         #   nm: unknown option "B" ignored
4133         # Tru64's nm complains that /dev/null is an invalid object file
4134         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4135         */dev/null* | *'Invalid file or object type'*)
4136           lt_cv_path_NM="$tmp_nm -B"
4137           break
4138           ;;
4139         *)
4140           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4141           */dev/null*)
4142             lt_cv_path_NM="$tmp_nm -p"
4143             break
4144             ;;
4145           *)
4146             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4147             continue # so that we can try to find one that supports BSD flags
4148             ;;
4149           esac
4150           ;;
4151         esac
4152       fi
4153     done
4154     IFS="$lt_save_ifs"
4155   done
4156   : ${lt_cv_path_NM=no}
4157 fi
4158 fi
4159 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4160 echo "${ECHO_T}$lt_cv_path_NM" >&6
4161 if test "$lt_cv_path_NM" != "no"; then
4162   NM="$lt_cv_path_NM"
4163 else
4164   # Didn't find any BSD compatible name lister, look for dumpbin.
4165   if test -n "$ac_tool_prefix"; then
4166   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4167   do
4168     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4170 echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4172 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175   if test -n "$DUMPBIN"; then
4176   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183   for ac_exec_ext in '' $ac_executable_extensions; do
4184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187     break 2
4188   fi
4189 done
4190 done
4191
4192 fi
4193 fi
4194 DUMPBIN=$ac_cv_prog_DUMPBIN
4195 if test -n "$DUMPBIN"; then
4196   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4197 echo "${ECHO_T}$DUMPBIN" >&6
4198 else
4199   echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4201 fi
4202
4203     test -n "$DUMPBIN" && break
4204   done
4205 fi
4206 if test -z "$DUMPBIN"; then
4207   ac_ct_DUMPBIN=$DUMPBIN
4208   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4209 do
4210   # Extract the first word of "$ac_prog", so it can be a program name with args.
4211 set dummy $ac_prog; ac_word=$2
4212 echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   if test -n "$ac_ct_DUMPBIN"; then
4218   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225   for ac_exec_ext in '' $ac_executable_extensions; do
4226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232 done
4233
4234 fi
4235 fi
4236 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4237 if test -n "$ac_ct_DUMPBIN"; then
4238   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4239 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4240 else
4241   echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6
4243 fi
4244
4245   test -n "$ac_ct_DUMPBIN" && break
4246 done
4247 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4248
4249   DUMPBIN=$ac_ct_DUMPBIN
4250 fi
4251
4252
4253   if test "$DUMPBIN" != ":"; then
4254     NM="$DUMPBIN"
4255   fi
4256 fi
4257 test -z "$NM" && NM=nm
4258
4259
4260
4261
4262
4263
4264 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4265 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4266 if test "${lt_cv_nm_interface+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   lt_cv_nm_interface="BSD nm"
4270   echo "int some_variable = 0;" > conftest.$ac_ext
4271   (eval echo "\"\$as_me:4271: $ac_compile\"" >&5)
4272   (eval "$ac_compile" 2>conftest.err)
4273   cat conftest.err >&5
4274   (eval echo "\"\$as_me:4274: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4275   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4276   cat conftest.err >&5
4277   (eval echo "\"\$as_me:4277: output\"" >&5)
4278   cat conftest.out >&5
4279   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4280     lt_cv_nm_interface="MS dumpbin"
4281   fi
4282   rm -f conftest*
4283 fi
4284 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4285 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4286
4287 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4288 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4289 LN_S=$as_ln_s
4290 if test "$LN_S" = "ln -s"; then
4291   echo "$as_me:$LINENO: result: yes" >&5
4292 echo "${ECHO_T}yes" >&6
4293 else
4294   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4295 echo "${ECHO_T}no, using $LN_S" >&6
4296 fi
4297
4298 # find the maximum length of command line arguments
4299 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4300 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4301 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304     i=0
4305   teststring="ABCD"
4306
4307   case $build_os in
4308   msdosdjgpp*)
4309     # On DJGPP, this test can blow up pretty badly due to problems in libc
4310     # (any single argument exceeding 2000 bytes causes a buffer overrun
4311     # during glob expansion).  Even if it were fixed, the result of this
4312     # check would be larger than it should be.
4313     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4314     ;;
4315
4316   gnu*)
4317     # Under GNU Hurd, this test is not required because there is
4318     # no limit to the length of command line arguments.
4319     # Libtool will interpret -1 as no limit whatsoever
4320     lt_cv_sys_max_cmd_len=-1;
4321     ;;
4322
4323   cygwin* | mingw*)
4324     # On Win9x/ME, this test blows up -- it succeeds, but takes
4325     # about 5 minutes as the teststring grows exponentially.
4326     # Worse, since 9x/ME are not pre-emptively multitasking,
4327     # you end up with a "frozen" computer, even though with patience
4328     # the test eventually succeeds (with a max line length of 256k).
4329     # Instead, let's just punt: use the minimum linelength reported by
4330     # all of the supported platforms: 8192 (on NT/2K/XP).
4331     lt_cv_sys_max_cmd_len=8192;
4332     ;;
4333
4334   amigaos*)
4335     # On AmigaOS with pdksh, this test takes hours, literally.
4336     # So we just punt and use a minimum line length of 8192.
4337     lt_cv_sys_max_cmd_len=8192;
4338     ;;
4339
4340   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4341     # This has been around since 386BSD, at least.  Likely further.
4342     if test -x /sbin/sysctl; then
4343       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4344     elif test -x /usr/sbin/sysctl; then
4345       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4346     else
4347       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4348     fi
4349     # And add a safety zone
4350     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4351     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4352     ;;
4353
4354   interix*)
4355     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4356     lt_cv_sys_max_cmd_len=196608
4357     ;;
4358
4359   osf*)
4360     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4361     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4362     # nice to cause kernel panics so lets avoid the loop below.
4363     # First set a reasonable default.
4364     lt_cv_sys_max_cmd_len=16384
4365     #
4366     if test -x /sbin/sysconfig; then
4367       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4368         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4369       esac
4370     fi
4371     ;;
4372   sco3.2v5*)
4373     lt_cv_sys_max_cmd_len=102400
4374     ;;
4375   sysv5* | sco5v6* | sysv4.2uw2*)
4376     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4377     if test -n "$kargmax"; then
4378       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4379     else
4380       lt_cv_sys_max_cmd_len=32768
4381     fi
4382     ;;
4383   *)
4384     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4385     if test -n $lt_cv_sys_max_cmd_len; then
4386       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4387       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4388     else
4389       # Make teststring a little bigger before we do anything with it.
4390       # a 1K string should be a reasonable start.
4391       for i in 1 2 3 4 5 6 7 8 ; do
4392         teststring=$teststring$teststring
4393       done
4394       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4395       # If test is not a shell built-in, we'll probably end up computing a
4396       # maximum length that is only half of the actual maximum length, but
4397       # we can't tell.
4398       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4399                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4400               test $i != 17 # 1/2 MB should be enough
4401       do
4402         i=`expr $i + 1`
4403         teststring=$teststring$teststring
4404       done
4405       # Only check the string length outside the loop.
4406       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4407       teststring=
4408       # Add a significant safety factor because C++ compilers can tack on
4409       # massive amounts of additional arguments before passing them to the
4410       # linker.  It appears as though 1/2 is a usable value.
4411       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4412     fi
4413     ;;
4414   esac
4415
4416 fi
4417
4418 if test -n $lt_cv_sys_max_cmd_len ; then
4419   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4420 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4421 else
4422   echo "$as_me:$LINENO: result: none" >&5
4423 echo "${ECHO_T}none" >&6
4424 fi
4425 max_cmd_len=$lt_cv_sys_max_cmd_len
4426
4427
4428
4429
4430
4431
4432
4433 : ${CP="cp -f"}
4434 : ${MV="mv -f"}
4435 : ${RM="rm -f"}
4436
4437 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4438 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4439 # Try some XSI features
4440 xsi_shell=no
4441 ( _lt_dummy="a/b/c"
4442   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4443       = c,a/b,, ) >/dev/null 2>&1 \
4444   && xsi_shell=yes
4445 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4446 echo "${ECHO_T}$xsi_shell" >&6
4447
4448
4449 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4450 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4451 lt_shell_append=no
4452 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4453     >/dev/null 2>&1 \
4454   && lt_shell_append=yes
4455 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4456 echo "${ECHO_T}$lt_shell_append" >&6
4457
4458
4459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4460   lt_unset=unset
4461 else
4462   lt_unset=false
4463 fi
4464
4465
4466
4467
4468
4469 # test EBCDIC or ASCII
4470 case `echo X|tr X '\101'` in
4471  A) # ASCII based system
4472     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4473   lt_SP2NL='tr \040 \012'
4474   lt_NL2SP='tr \015\012 \040\040'
4475   ;;
4476  *) # EBCDIC based system
4477   lt_SP2NL='tr \100 \n'
4478   lt_NL2SP='tr \r\n \100\100'
4479   ;;
4480 esac
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4491 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4492 if test "${lt_cv_ld_reload_flag+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   lt_cv_ld_reload_flag='-r'
4496 fi
4497 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4498 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4499 reload_flag=$lt_cv_ld_reload_flag
4500 case $reload_flag in
4501 "" | " "*) ;;
4502 *) reload_flag=" $reload_flag" ;;
4503 esac
4504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4505 case $host_os in
4506   darwin*)
4507     if test "$GCC" = yes; then
4508       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4509     else
4510       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4511     fi
4512     ;;
4513 esac
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4525 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4526 if test "${lt_cv_deplibs_check_method+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   lt_cv_file_magic_cmd='$MAGIC_CMD'
4530 lt_cv_file_magic_test_file=
4531 lt_cv_deplibs_check_method='unknown'
4532 # Need to set the preceding variable on all platforms that support
4533 # interlibrary dependencies.
4534 # 'none' -- dependencies not supported.
4535 # `unknown' -- same as none, but documents that we really don't know.
4536 # 'pass_all' -- all dependencies passed with no checks.
4537 # 'test_compile' -- check by making test program.
4538 # 'file_magic [[regex]]' -- check by looking for files in library path
4539 # which responds to the $file_magic_cmd with a given extended regex.
4540 # If you have `file' or equivalent on your system and you're not sure
4541 # whether `pass_all' will *always* work, you probably want this one.
4542
4543 case $host_os in
4544 aix[4-9]*)
4545   lt_cv_deplibs_check_method=pass_all
4546   ;;
4547
4548 beos*)
4549   lt_cv_deplibs_check_method=pass_all
4550   ;;
4551
4552 bsdi[45]*)
4553   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4554   lt_cv_file_magic_cmd='/usr/bin/file -L'
4555   lt_cv_file_magic_test_file=/shlib/libc.so
4556   ;;
4557
4558 cygwin*)
4559   # func_win32_libid is a shell function defined in ltmain.sh
4560   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4561   lt_cv_file_magic_cmd='func_win32_libid'
4562   ;;
4563
4564 mingw* | pw32*)
4565   # Base MSYS/MinGW do not provide the 'file' command needed by
4566   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4567   # unless we find 'file', for example because we are cross-compiling.
4568   if ( file / ) >/dev/null 2>&1; then
4569     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4570     lt_cv_file_magic_cmd='func_win32_libid'
4571   else
4572     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4573     lt_cv_file_magic_cmd='$OBJDUMP -f'
4574   fi
4575   ;;
4576
4577 darwin* | rhapsody*)
4578   lt_cv_deplibs_check_method=pass_all
4579   ;;
4580
4581 freebsd* | dragonfly*)
4582   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4583     case $host_cpu in
4584     i*86 )
4585       # Not sure whether the presence of OpenBSD here was a mistake.
4586       # Let's accept both of them until this is cleared up.
4587       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4588       lt_cv_file_magic_cmd=/usr/bin/file
4589       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4590       ;;
4591     esac
4592   else
4593     lt_cv_deplibs_check_method=pass_all
4594   fi
4595   ;;
4596
4597 gnu*)
4598   lt_cv_deplibs_check_method=pass_all
4599   ;;
4600
4601 hpux10.20* | hpux11*)
4602   lt_cv_file_magic_cmd=/usr/bin/file
4603   case $host_cpu in
4604   ia64*)
4605     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4606     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4607     ;;
4608   hppa*64*)
4609     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]'
4610     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4611     ;;
4612   *)
4613     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4614     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4615     ;;
4616   esac
4617   ;;
4618
4619 interix[3-9]*)
4620   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4621   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4622   ;;
4623
4624 irix5* | irix6* | nonstopux*)
4625   case $LD in
4626   *-32|*"-32 ") libmagic=32-bit;;
4627   *-n32|*"-n32 ") libmagic=N32;;
4628   *-64|*"-64 ") libmagic=64-bit;;
4629   *) libmagic=never-match;;
4630   esac
4631   lt_cv_deplibs_check_method=pass_all
4632   ;;
4633
4634 # This must be Linux ELF.
4635 linux* | k*bsd*-gnu)
4636   lt_cv_deplibs_check_method=pass_all
4637   ;;
4638
4639 netbsd*)
4640   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4641     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4642   else
4643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4644   fi
4645   ;;
4646
4647 newos6*)
4648   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4649   lt_cv_file_magic_cmd=/usr/bin/file
4650   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4651   ;;
4652
4653 *nto* | *qnx*)
4654   lt_cv_deplibs_check_method=pass_all
4655   ;;
4656
4657 openbsd*)
4658   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4659     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4660   else
4661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4662   fi
4663   ;;
4664
4665 osf3* | osf4* | osf5*)
4666   lt_cv_deplibs_check_method=pass_all
4667   ;;
4668
4669 rdos*)
4670   lt_cv_deplibs_check_method=pass_all
4671   ;;
4672
4673 solaris*)
4674   lt_cv_deplibs_check_method=pass_all
4675   ;;
4676
4677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4678   lt_cv_deplibs_check_method=pass_all
4679   ;;
4680
4681 sysv4 | sysv4.3*)
4682   case $host_vendor in
4683   motorola)
4684     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]'
4685     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4686     ;;
4687   ncr)
4688     lt_cv_deplibs_check_method=pass_all
4689     ;;
4690   sequent)
4691     lt_cv_file_magic_cmd='/bin/file'
4692     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4693     ;;
4694   sni)
4695     lt_cv_file_magic_cmd='/bin/file'
4696     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4697     lt_cv_file_magic_test_file=/lib/libc.so
4698     ;;
4699   siemens)
4700     lt_cv_deplibs_check_method=pass_all
4701     ;;
4702   pc)
4703     lt_cv_deplibs_check_method=pass_all
4704     ;;
4705   esac
4706   ;;
4707
4708 tpf*)
4709   lt_cv_deplibs_check_method=pass_all
4710   ;;
4711 esac
4712
4713 fi
4714 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4715 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4716 file_magic_cmd=$lt_cv_file_magic_cmd
4717 deplibs_check_method=$lt_cv_deplibs_check_method
4718 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731 if test -n "$ac_tool_prefix"; then
4732   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4733 set dummy ${ac_tool_prefix}ar; ac_word=$2
4734 echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4736 if test "${ac_cv_prog_AR+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   if test -n "$AR"; then
4740   ac_cv_prog_AR="$AR" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747   for ac_exec_ext in '' $ac_executable_extensions; do
4748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749     ac_cv_prog_AR="${ac_tool_prefix}ar"
4750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752   fi
4753 done
4754 done
4755
4756 fi
4757 fi
4758 AR=$ac_cv_prog_AR
4759 if test -n "$AR"; then
4760   echo "$as_me:$LINENO: result: $AR" >&5
4761 echo "${ECHO_T}$AR" >&6
4762 else
4763   echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6
4765 fi
4766
4767 fi
4768 if test -z "$ac_cv_prog_AR"; then
4769   ac_ct_AR=$AR
4770   # Extract the first word of "ar", so it can be a program name with args.
4771 set dummy ar; ac_word=$2
4772 echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   if test -n "$ac_ct_AR"; then
4778   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785   for ac_exec_ext in '' $ac_executable_extensions; do
4786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787     ac_cv_prog_ac_ct_AR="ar"
4788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792 done
4793
4794   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4795 fi
4796 fi
4797 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4798 if test -n "$ac_ct_AR"; then
4799   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4800 echo "${ECHO_T}$ac_ct_AR" >&6
4801 else
4802   echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4804 fi
4805
4806   AR=$ac_ct_AR
4807 else
4808   AR="$ac_cv_prog_AR"
4809 fi
4810
4811 test -z "$AR" && AR=ar
4812 test -z "$AR_FLAGS" && AR_FLAGS=cru
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824 if test -n "$ac_tool_prefix"; then
4825   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4826 set dummy ${ac_tool_prefix}strip; ac_word=$2
4827 echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829 if test "${ac_cv_prog_STRIP+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   if test -n "$STRIP"; then
4833   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840   for ac_exec_ext in '' $ac_executable_extensions; do
4841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844     break 2
4845   fi
4846 done
4847 done
4848
4849 fi
4850 fi
4851 STRIP=$ac_cv_prog_STRIP
4852 if test -n "$STRIP"; then
4853   echo "$as_me:$LINENO: result: $STRIP" >&5
4854 echo "${ECHO_T}$STRIP" >&6
4855 else
4856   echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4858 fi
4859
4860 fi
4861 if test -z "$ac_cv_prog_STRIP"; then
4862   ac_ct_STRIP=$STRIP
4863   # Extract the first word of "strip", so it can be a program name with args.
4864 set dummy strip; ac_word=$2
4865 echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   if test -n "$ac_ct_STRIP"; then
4871   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880     ac_cv_prog_ac_ct_STRIP="strip"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886
4887   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4888 fi
4889 fi
4890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4891 if test -n "$ac_ct_STRIP"; then
4892   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4893 echo "${ECHO_T}$ac_ct_STRIP" >&6
4894 else
4895   echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4897 fi
4898
4899   STRIP=$ac_ct_STRIP
4900 else
4901   STRIP="$ac_cv_prog_STRIP"
4902 fi
4903
4904 test -z "$STRIP" && STRIP=:
4905
4906
4907
4908
4909
4910
4911 if test -n "$ac_tool_prefix"; then
4912   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4914 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916 if test "${ac_cv_prog_RANLIB+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919   if test -n "$RANLIB"; then
4920   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927   for ac_exec_ext in '' $ac_executable_extensions; do
4928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934 done
4935
4936 fi
4937 fi
4938 RANLIB=$ac_cv_prog_RANLIB
4939 if test -n "$RANLIB"; then
4940   echo "$as_me:$LINENO: result: $RANLIB" >&5
4941 echo "${ECHO_T}$RANLIB" >&6
4942 else
4943   echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6
4945 fi
4946
4947 fi
4948 if test -z "$ac_cv_prog_RANLIB"; then
4949   ac_ct_RANLIB=$RANLIB
4950   # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib; ac_word=$2
4952 echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   if test -n "$ac_ct_RANLIB"; then
4958   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965   for ac_exec_ext in '' $ac_executable_extensions; do
4966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967     ac_cv_prog_ac_ct_RANLIB="ranlib"
4968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972 done
4973
4974   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4975 fi
4976 fi
4977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978 if test -n "$ac_ct_RANLIB"; then
4979   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4980 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4981 else
4982   echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4984 fi
4985
4986   RANLIB=$ac_ct_RANLIB
4987 else
4988   RANLIB="$ac_cv_prog_RANLIB"
4989 fi
4990
4991 test -z "$RANLIB" && RANLIB=:
4992
4993
4994
4995
4996
4997
4998 # Determine commands to create old-style static archives.
4999 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5000 old_postinstall_cmds='chmod 644 $oldlib'
5001 old_postuninstall_cmds=
5002
5003 if test -n "$RANLIB"; then
5004   case $host_os in
5005   openbsd*)
5006     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5007     ;;
5008   *)
5009     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5010     ;;
5011   esac
5012   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5013 fi
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 # If no C compiler was specified, use CC.
5049 LTCC=${LTCC-"$CC"}
5050
5051 # If no C compiler flags were specified, use CFLAGS.
5052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5053
5054 # Allow CC to be a program name with arguments.
5055 compiler=$CC
5056
5057
5058 # Check for command to grab the raw symbol name followed by C symbol from nm.
5059 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5060 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5061 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064
5065 # These are sane defaults that work on at least a few old systems.
5066 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5067
5068 # Character class describing NM global symbol codes.
5069 symcode='[BCDEGRST]'
5070
5071 # Regexp to match symbols that can be accessed directly from C.
5072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5073
5074 # Define system-specific variables.
5075 case $host_os in
5076 aix*)
5077   symcode='[BCDT]'
5078   ;;
5079 cygwin* | mingw* | pw32*)
5080   symcode='[ABCDGISTW]'
5081   ;;
5082 hpux*)
5083   if test "$host_cpu" = ia64; then
5084     symcode='[ABCDEGRST]'
5085   fi
5086   ;;
5087 irix* | nonstopux*)
5088   symcode='[BCDEGRST]'
5089   ;;
5090 osf*)
5091   symcode='[BCDEGQRST]'
5092   ;;
5093 solaris*)
5094   symcode='[BDRT]'
5095   ;;
5096 sco3.2v5*)
5097   symcode='[DT]'
5098   ;;
5099 sysv4.2uw2*)
5100   symcode='[DT]'
5101   ;;
5102 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5103   symcode='[ABDT]'
5104   ;;
5105 sysv4)
5106   symcode='[DFNSTU]'
5107   ;;
5108 esac
5109
5110 # If we're using GNU nm, then use its standard symbol codes.
5111 case `$NM -V 2>&1` in
5112 *GNU* | *'with BFD'*)
5113   symcode='[ABCDGIRSTW]' ;;
5114 esac
5115
5116 # Transform an extracted symbol line into a proper C declaration.
5117 # Some systems (esp. on ia64) link data and code symbols differently,
5118 # so use this general approach.
5119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5120
5121 # Transform an extracted symbol line into symbol name and symbol address
5122 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5123
5124 # Handle CRLF in mingw tool chain
5125 opt_cr=
5126 case $build_os in
5127 mingw*)
5128   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5129   ;;
5130 esac
5131
5132 # Try without a prefix underscore, then with it.
5133 for ac_symprfx in "" "_"; do
5134
5135   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5136   symxfrm="\\1 $ac_symprfx\\2 \\2"
5137
5138   # Write the raw and C identifiers.
5139   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5140     # Fake it for dumpbin and say T for any non-static function
5141     # and D for any global variable.
5142     # Also find C++ and __fastcall symbols from MSVC++,
5143     # which start with @ or ?.
5144     lt_cv_sys_global_symbol_pipe="$AWK '"\
5145 "     {last_section=section; section=\$ 3};"\
5146 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5147 "     \$ 0!~/External *\|/{next};"\
5148 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5149 "     {if(hide[section]) next};"\
5150 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5151 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5152 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5153 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5154 "     ' prfx=^$ac_symprfx"
5155   else
5156     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5157   fi
5158
5159   # Check to see that the pipe works correctly.
5160   pipe_works=no
5161
5162   rm -f conftest*
5163   cat > conftest.$ac_ext <<_LT_EOF
5164 #ifdef __cplusplus
5165 extern "C" {
5166 #endif
5167 char nm_test_var;
5168 void nm_test_func(void);
5169 void nm_test_func(void){}
5170 #ifdef __cplusplus
5171 }
5172 #endif
5173 int main(){nm_test_var='a';nm_test_func();return(0);}
5174 _LT_EOF
5175
5176   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177   (eval $ac_compile) 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }; then
5181     # Now try to grab the symbols.
5182     nlist=conftest.nm
5183     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5184   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } && test -s "$nlist"; then
5188       # Try sorting and uniquifying the output.
5189       if sort "$nlist" | uniq > "$nlist"T; then
5190         mv -f "$nlist"T "$nlist"
5191       else
5192         rm -f "$nlist"T
5193       fi
5194
5195       # Make sure that we snagged all the symbols we need.
5196       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5197         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5198           cat <<_LT_EOF > conftest.$ac_ext
5199 #ifdef __cplusplus
5200 extern "C" {
5201 #endif
5202
5203 _LT_EOF
5204           # Now generate the symbol file.
5205           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5206
5207           cat <<_LT_EOF >> conftest.$ac_ext
5208
5209 /* The mapping between symbol names and symbols.  */
5210 const struct {
5211   const char *name;
5212   void       *address;
5213 }
5214 lt__PROGRAM__LTX_preloaded_symbols[] =
5215 {
5216   { "@PROGRAM@", (void *) 0 },
5217 _LT_EOF
5218           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5219           cat <<\_LT_EOF >> conftest.$ac_ext
5220   {0, (void *) 0}
5221 };
5222
5223 /* This works around a problem in FreeBSD linker */
5224 #ifdef FREEBSD_WORKAROUND
5225 static const void *lt_preloaded_setup() {
5226   return lt__PROGRAM__LTX_preloaded_symbols;
5227 }
5228 #endif
5229
5230 #ifdef __cplusplus
5231 }
5232 #endif
5233 _LT_EOF
5234           # Now try linking the two files.
5235           mv conftest.$ac_objext conftstm.$ac_objext
5236           lt_save_LIBS="$LIBS"
5237           lt_save_CFLAGS="$CFLAGS"
5238           LIBS="conftstm.$ac_objext"
5239           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5240           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5241   (eval $ac_link) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5245             pipe_works=yes
5246           fi
5247           LIBS="$lt_save_LIBS"
5248           CFLAGS="$lt_save_CFLAGS"
5249         else
5250           echo "cannot find nm_test_func in $nlist" >&5
5251         fi
5252       else
5253         echo "cannot find nm_test_var in $nlist" >&5
5254       fi
5255     else
5256       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5257     fi
5258   else
5259     echo "$progname: failed program was:" >&5
5260     cat conftest.$ac_ext >&5
5261   fi
5262   rm -f conftest* conftst*
5263
5264   # Do not use the global_symbol_pipe unless it works.
5265   if test "$pipe_works" = yes; then
5266     break
5267   else
5268     lt_cv_sys_global_symbol_pipe=
5269   fi
5270 done
5271
5272 fi
5273
5274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5275   lt_cv_sys_global_symbol_to_cdecl=
5276 fi
5277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5278   echo "$as_me:$LINENO: result: failed" >&5
5279 echo "${ECHO_T}failed" >&6
5280 else
5281   echo "$as_me:$LINENO: result: ok" >&5
5282 echo "${ECHO_T}ok" >&6
5283 fi
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5303 if test "${enable_libtool_lock+set}" = set; then
5304   enableval="$enable_libtool_lock"
5305
5306 fi;
5307 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5308
5309 # Some flags need to be propagated to the compiler or linker for good
5310 # libtool support.
5311 case $host in
5312 ia64-*-hpux*)
5313   # Find out which ABI we are using.
5314   echo 'int i;' > conftest.$ac_ext
5315   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316   (eval $ac_compile) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; then
5320     case `/usr/bin/file conftest.$ac_objext` in
5321       *ELF-32*)
5322         HPUX_IA64_MODE="32"
5323         ;;
5324       *ELF-64*)
5325         HPUX_IA64_MODE="64"
5326         ;;
5327     esac
5328   fi
5329   rm -rf conftest*
5330   ;;
5331 *-*-irix6*)
5332   # Find out which ABI we are using.
5333   echo '#line 5333 "configure"' > conftest.$ac_ext
5334   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335   (eval $ac_compile) 2>&5
5336   ac_status=$?
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); }; then
5339     if test "$lt_cv_prog_gnu_ld" = yes; then
5340       case `/usr/bin/file conftest.$ac_objext` in
5341         *32-bit*)
5342           LD="${LD-ld} -melf32bsmip"
5343           ;;
5344         *N32*)
5345           LD="${LD-ld} -melf32bmipn32"
5346           ;;
5347         *64-bit*)
5348           LD="${LD-ld} -melf64bmip"
5349         ;;
5350       esac
5351     else
5352       case `/usr/bin/file conftest.$ac_objext` in
5353         *32-bit*)
5354           LD="${LD-ld} -32"
5355           ;;
5356         *N32*)
5357           LD="${LD-ld} -n32"
5358           ;;
5359         *64-bit*)
5360           LD="${LD-ld} -64"
5361           ;;
5362       esac
5363     fi
5364   fi
5365   rm -rf conftest*
5366   ;;
5367
5368 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5369 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5370   # Find out which ABI we are using.
5371   echo 'int i;' > conftest.$ac_ext
5372   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373   (eval $ac_compile) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; then
5377     case `/usr/bin/file conftest.o` in
5378       *32-bit*)
5379         case $host in
5380           x86_64-*kfreebsd*-gnu)
5381             LD="${LD-ld} -m elf_i386_fbsd"
5382             ;;
5383           x86_64-*linux*)
5384             LD="${LD-ld} -m elf_i386"
5385             ;;
5386           ppc64-*linux*|powerpc64-*linux*)
5387             LD="${LD-ld} -m elf32ppclinux"
5388             ;;
5389           s390x-*linux*)
5390             LD="${LD-ld} -m elf_s390"
5391             ;;
5392           sparc64-*linux*)
5393             LD="${LD-ld} -m elf32_sparc"
5394             ;;
5395         esac
5396         ;;
5397       *64-bit*)
5398         case $host in
5399           x86_64-*kfreebsd*-gnu)
5400             LD="${LD-ld} -m elf_x86_64_fbsd"
5401             ;;
5402           x86_64-*linux*)
5403             LD="${LD-ld} -m elf_x86_64"
5404             ;;
5405           ppc*-*linux*|powerpc*-*linux*)
5406             LD="${LD-ld} -m elf64ppc"
5407             ;;
5408           s390*-*linux*|s390*-*tpf*)
5409             LD="${LD-ld} -m elf64_s390"
5410             ;;
5411           sparc*-*linux*)
5412             LD="${LD-ld} -m elf64_sparc"
5413             ;;
5414         esac
5415         ;;
5416     esac
5417   fi
5418   rm -rf conftest*
5419   ;;
5420
5421 *-*-sco3.2v5*)
5422   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5423   SAVE_CFLAGS="$CFLAGS"
5424   CFLAGS="$CFLAGS -belf"
5425   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5426 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5427 if test "${lt_cv_cc_needs_belf+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435
5436      cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h.  */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h.  */
5442
5443 int
5444 main ()
5445 {
5446
5447   ;
5448   return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext conftest$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453   (eval $ac_link) 2>conftest.er1
5454   ac_status=$?
5455   grep -v '^ *+' conftest.er1 >conftest.err
5456   rm -f conftest.er1
5457   cat conftest.err >&5
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } &&
5460          { ac_try='test -z "$ac_c_werror_flag"
5461                          || test ! -s conftest.err'
5462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463   (eval $ac_try) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }; } &&
5467          { ac_try='test -s conftest$ac_exeext'
5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469   (eval $ac_try) 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); }; }; then
5473   lt_cv_cc_needs_belf=yes
5474 else
5475   echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 lt_cv_cc_needs_belf=no
5479 fi
5480 rm -f conftest.err conftest.$ac_objext \
5481       conftest$ac_exeext conftest.$ac_ext
5482      ac_ext=c
5483 ac_cpp='$CPP $CPPFLAGS'
5484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487
5488 fi
5489 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5490 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5491   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5492     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5493     CFLAGS="$SAVE_CFLAGS"
5494   fi
5495   ;;
5496 sparc*-*solaris*)
5497   # Find out which ABI we are using.
5498   echo 'int i;' > conftest.$ac_ext
5499   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500   (eval $ac_compile) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); }; then
5504     case `/usr/bin/file conftest.o` in
5505     *64-bit*)
5506       case $lt_cv_prog_gnu_ld in
5507       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5508       *)    LD="${LD-ld} -64" ;;
5509       esac
5510       ;;
5511     esac
5512   fi
5513   rm -rf conftest*
5514   ;;
5515 esac
5516
5517 need_locks="$enable_libtool_lock"
5518
5519 ac_ext=c
5520 ac_cpp='$CPP $CPPFLAGS'
5521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5526 # On Suns, sometimes $CPP names a directory.
5527 if test -n "$CPP" && test -d "$CPP"; then
5528   CPP=
5529 fi
5530 if test -z "$CPP"; then
5531   if test "${ac_cv_prog_CPP+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534       # Double quotes because CPP needs to be expanded
5535     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5536     do
5537       ac_preproc_ok=false
5538 for ac_c_preproc_warn_flag in '' yes
5539 do
5540   # Use a header file that comes with gcc, so configuring glibc
5541   # with a fresh cross-compiler works.
5542   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543   # <limits.h> exists even on freestanding compilers.
5544   # On the NeXT, cc -E runs the code through the compiler's parser,
5545   # not just through cpp. "Syntax error" is here to catch this case.
5546   cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552 #ifdef __STDC__
5553 # include <limits.h>
5554 #else
5555 # include <assert.h>
5556 #endif
5557                      Syntax error
5558 _ACEOF
5559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5560   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5561   ac_status=$?
5562   grep -v '^ *+' conftest.er1 >conftest.err
5563   rm -f conftest.er1
5564   cat conftest.err >&5
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); } >/dev/null; then
5567   if test -s conftest.err; then
5568     ac_cpp_err=$ac_c_preproc_warn_flag
5569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5570   else
5571     ac_cpp_err=
5572   fi
5573 else
5574   ac_cpp_err=yes
5575 fi
5576 if test -z "$ac_cpp_err"; then
5577   :
5578 else
5579   echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582   # Broken: fails on valid input.
5583 continue
5584 fi
5585 rm -f conftest.err conftest.$ac_ext
5586
5587   # OK, works on sane cases.  Now check whether non-existent headers
5588   # can be detected and how.
5589   cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h.  */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h.  */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } >/dev/null; then
5605   if test -s conftest.err; then
5606     ac_cpp_err=$ac_c_preproc_warn_flag
5607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5608   else
5609     ac_cpp_err=
5610   fi
5611 else
5612   ac_cpp_err=yes
5613 fi
5614 if test -z "$ac_cpp_err"; then
5615   # Broken: success on invalid input.
5616 continue
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621   # Passes both tests.
5622 ac_preproc_ok=:
5623 break
5624 fi
5625 rm -f conftest.err conftest.$ac_ext
5626
5627 done
5628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629 rm -f conftest.err conftest.$ac_ext
5630 if $ac_preproc_ok; then
5631   break
5632 fi
5633
5634     done
5635     ac_cv_prog_CPP=$CPP
5636
5637 fi
5638   CPP=$ac_cv_prog_CPP
5639 else
5640   ac_cv_prog_CPP=$CPP
5641 fi
5642 echo "$as_me:$LINENO: result: $CPP" >&5
5643 echo "${ECHO_T}$CPP" >&6
5644 ac_preproc_ok=false
5645 for ac_c_preproc_warn_flag in '' yes
5646 do
5647   # Use a header file that comes with gcc, so configuring glibc
5648   # with a fresh cross-compiler works.
5649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650   # <limits.h> exists even on freestanding compilers.
5651   # On the NeXT, cc -E runs the code through the compiler's parser,
5652   # not just through cpp. "Syntax error" is here to catch this case.
5653   cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 #ifdef __STDC__
5660 # include <limits.h>
5661 #else
5662 # include <assert.h>
5663 #endif
5664                      Syntax error
5665 _ACEOF
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } >/dev/null; then
5674   if test -s conftest.err; then
5675     ac_cpp_err=$ac_c_preproc_warn_flag
5676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5677   else
5678     ac_cpp_err=
5679   fi
5680 else
5681   ac_cpp_err=yes
5682 fi
5683 if test -z "$ac_cpp_err"; then
5684   :
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689   # Broken: fails on valid input.
5690 continue
5691 fi
5692 rm -f conftest.err conftest.$ac_ext
5693
5694   # OK, works on sane cases.  Now check whether non-existent headers
5695   # can be detected and how.
5696   cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702 #include <ac_nonexistent.h>
5703 _ACEOF
5704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5706   ac_status=$?
5707   grep -v '^ *+' conftest.er1 >conftest.err
5708   rm -f conftest.er1
5709   cat conftest.err >&5
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); } >/dev/null; then
5712   if test -s conftest.err; then
5713     ac_cpp_err=$ac_c_preproc_warn_flag
5714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5715   else
5716     ac_cpp_err=
5717   fi
5718 else
5719   ac_cpp_err=yes
5720 fi
5721 if test -z "$ac_cpp_err"; then
5722   # Broken: success on invalid input.
5723 continue
5724 else
5725   echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728   # Passes both tests.
5729 ac_preproc_ok=:
5730 break
5731 fi
5732 rm -f conftest.err conftest.$ac_ext
5733
5734 done
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.err conftest.$ac_ext
5737 if $ac_preproc_ok; then
5738   :
5739 else
5740   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5741 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5743 See \`config.log' for more details." >&5
5744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5745 See \`config.log' for more details." >&2;}
5746    { (exit 1); exit 1; }; }; }
5747 fi
5748
5749 ac_ext=c
5750 ac_cpp='$CPP $CPPFLAGS'
5751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754
5755
5756 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5757 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5758 if test "${ac_cv_header_stdc+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 #include <stdlib.h>
5768 #include <stdarg.h>
5769 #include <string.h>
5770 #include <float.h>
5771
5772 int
5773 main ()
5774 {
5775
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782   (eval $ac_compile) 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } &&
5789          { ac_try='test -z "$ac_c_werror_flag"
5790                          || test ! -s conftest.err'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; } &&
5796          { ac_try='test -s conftest.$ac_objext'
5797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798   (eval $ac_try) 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); }; }; then
5802   ac_cv_header_stdc=yes
5803 else
5804   echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5806
5807 ac_cv_header_stdc=no
5808 fi
5809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5810
5811 if test $ac_cv_header_stdc = yes; then
5812   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5813   cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h.  */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h.  */
5819 #include <string.h>
5820
5821 _ACEOF
5822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5823   $EGREP "memchr" >/dev/null 2>&1; then
5824   :
5825 else
5826   ac_cv_header_stdc=no
5827 fi
5828 rm -f conftest*
5829
5830 fi
5831
5832 if test $ac_cv_header_stdc = yes; then
5833   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5834   cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840 #include <stdlib.h>
5841
5842 _ACEOF
5843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844   $EGREP "free" >/dev/null 2>&1; then
5845   :
5846 else
5847   ac_cv_header_stdc=no
5848 fi
5849 rm -f conftest*
5850
5851 fi
5852
5853 if test $ac_cv_header_stdc = yes; then
5854   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5855   if test "$cross_compiling" = yes; then
5856   :
5857 else
5858   cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864 #include <ctype.h>
5865 #if ((' ' & 0x0FF) == 0x020)
5866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5868 #else
5869 # define ISLOWER(c) \
5870                    (('a' <= (c) && (c) <= 'i') \
5871                      || ('j' <= (c) && (c) <= 'r') \
5872                      || ('s' <= (c) && (c) <= 'z'))
5873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5874 #endif
5875
5876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5877 int
5878 main ()
5879 {
5880   int i;
5881   for (i = 0; i < 256; i++)
5882     if (XOR (islower (i), ISLOWER (i))
5883         || toupper (i) != TOUPPER (i))
5884       exit(2);
5885   exit (0);
5886 }
5887 _ACEOF
5888 rm -f conftest$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890   (eval $ac_link) 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895   (eval $ac_try) 2>&5
5896   ac_status=$?
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); }; }; then
5899   :
5900 else
5901   echo "$as_me: program exited with status $ac_status" >&5
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5904
5905 ( exit $ac_status )
5906 ac_cv_header_stdc=no
5907 fi
5908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 fi
5911 fi
5912 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5913 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5914 if test $ac_cv_header_stdc = yes; then
5915
5916 cat >>confdefs.h <<\_ACEOF
5917 #define STDC_HEADERS 1
5918 _ACEOF
5919
5920 fi
5921
5922 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5933                   inttypes.h stdint.h unistd.h
5934 do
5935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936 echo "$as_me:$LINENO: checking for $ac_header" >&5
5937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 $ac_includes_default
5948
5949 #include <$ac_header>
5950 _ACEOF
5951 rm -f conftest.$ac_objext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5953   (eval $ac_compile) 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } &&
5960          { ac_try='test -z "$ac_c_werror_flag"
5961                          || test ! -s conftest.err'
5962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963   (eval $ac_try) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; } &&
5967          { ac_try='test -s conftest.$ac_objext'
5968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969   (eval $ac_try) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); }; }; then
5973   eval "$as_ac_Header=yes"
5974 else
5975   echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 eval "$as_ac_Header=no"
5979 fi
5980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5981 fi
5982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5985   cat >>confdefs.h <<_ACEOF
5986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5987 _ACEOF
5988
5989 fi
5990
5991 done
5992
5993
5994
5995 for ac_header in dlfcn.h
5996 do
5997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998 echo "$as_me:$LINENO: checking for $ac_header" >&5
5999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 $ac_includes_default
6010
6011 #include <$ac_header>
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015   (eval $ac_compile) 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -z "$ac_c_werror_flag"
6023                          || test ! -s conftest.err'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; } &&
6029          { ac_try='test -s conftest.$ac_objext'
6030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031   (eval $ac_try) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; }; then
6035   eval "$as_ac_Header=yes"
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 eval "$as_ac_Header=no"
6041 fi
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043 fi
6044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6047   cat >>confdefs.h <<_ACEOF
6048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6049 _ACEOF
6050
6051 fi
6052
6053 done
6054
6055
6056
6057 # This can be used to rebuild libtool when needed
6058 LIBTOOL_DEPS="$ltmain"
6059
6060 # Always use our own libtool.
6061 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 test -z "$LN_S" && LN_S="ln -s"
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102 if test -n "${ZSH_VERSION+set}" ; then
6103    setopt NO_GLOB_SUBST
6104 fi
6105
6106 echo "$as_me:$LINENO: checking for objdir" >&5
6107 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6108 if test "${lt_cv_objdir+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   rm -f .libs 2>/dev/null
6112 mkdir .libs 2>/dev/null
6113 if test -d .libs; then
6114   lt_cv_objdir=.libs
6115 else
6116   # MS-DOS does not allow filenames that begin with a dot.
6117   lt_cv_objdir=_libs
6118 fi
6119 rmdir .libs 2>/dev/null
6120 fi
6121 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6122 echo "${ECHO_T}$lt_cv_objdir" >&6
6123 objdir=$lt_cv_objdir
6124
6125
6126
6127
6128
6129 cat >>confdefs.h <<_ACEOF
6130 #define LT_OBJDIR "$lt_cv_objdir/"
6131 _ACEOF
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149 case $host_os in
6150 aix3*)
6151   # AIX sometimes has problems with the GCC collect2 program.  For some
6152   # reason, if we set the COLLECT_NAMES environment variable, the problems
6153   # vanish in a puff of smoke.
6154   if test "X${COLLECT_NAMES+set}" != Xset; then
6155     COLLECT_NAMES=
6156     export COLLECT_NAMES
6157   fi
6158   ;;
6159 esac
6160
6161 # Sed substitution that helps us do robust quoting.  It backslashifies
6162 # metacharacters that are still active within double-quoted strings.
6163 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6164
6165 # Same as above, but do not quote variable references.
6166 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6167
6168 # Sed substitution to delay expansion of an escaped shell variable in a
6169 # double_quote_subst'ed string.
6170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6171
6172 # Sed substitution to delay expansion of an escaped single quote.
6173 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6174
6175 # Sed substitution to avoid accidental globbing in evaled expressions
6176 no_glob_subst='s/\*/\\\*/g'
6177
6178 # Global variables:
6179 ofile=libtool
6180 can_build_shared=yes
6181
6182 # All known linkers require a `.a' archive for static linking (except MSVC,
6183 # which needs '.lib').
6184 libext=a
6185
6186 with_gnu_ld="$lt_cv_prog_gnu_ld"
6187
6188 old_CC="$CC"
6189 old_CFLAGS="$CFLAGS"
6190
6191 # Set sane defaults for various variables
6192 test -z "$CC" && CC=cc
6193 test -z "$LTCC" && LTCC=$CC
6194 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6195 test -z "$LD" && LD=ld
6196 test -z "$ac_objext" && ac_objext=o
6197
6198 for cc_temp in $compiler""; do
6199   case $cc_temp in
6200     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6201     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6202     \-*) ;;
6203     *) break;;
6204   esac
6205 done
6206 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6207
6208
6209 # Only perform the check for file, if the check method requires it
6210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6211 case $deplibs_check_method in
6212 file_magic*)
6213   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6214     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6215 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6216 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   case $MAGIC_CMD in
6220 [\\/*] |  ?:[\\/]*)
6221   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6222   ;;
6223 *)
6224   lt_save_MAGIC_CMD="$MAGIC_CMD"
6225   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6226   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6227   for ac_dir in $ac_dummy; do
6228     IFS="$lt_save_ifs"
6229     test -z "$ac_dir" && ac_dir=.
6230     if test -f $ac_dir/${ac_tool_prefix}file; then
6231       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6232       if test -n "$file_magic_test_file"; then
6233         case $deplibs_check_method in
6234         "file_magic "*)
6235           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6236           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6237           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6238             $EGREP "$file_magic_regex" > /dev/null; then
6239             :
6240           else
6241             cat <<_LT_EOF 1>&2
6242
6243 *** Warning: the command libtool uses to detect shared libraries,
6244 *** $file_magic_cmd, produces output that libtool cannot recognize.
6245 *** The result is that libtool may fail to recognize shared libraries
6246 *** as such.  This will affect the creation of libtool libraries that
6247 *** depend on shared libraries, but programs linked with such libtool
6248 *** libraries will work regardless of this problem.  Nevertheless, you
6249 *** may want to report the problem to your system manager and/or to
6250 *** bug-libtool@gnu.org
6251
6252 _LT_EOF
6253           fi ;;
6254         esac
6255       fi
6256       break
6257     fi
6258   done
6259   IFS="$lt_save_ifs"
6260   MAGIC_CMD="$lt_save_MAGIC_CMD"
6261   ;;
6262 esac
6263 fi
6264
6265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6266 if test -n "$MAGIC_CMD"; then
6267   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6268 echo "${ECHO_T}$MAGIC_CMD" >&6
6269 else
6270   echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6272 fi
6273
6274
6275
6276
6277
6278 if test -z "$lt_cv_path_MAGIC_CMD"; then
6279   if test -n "$ac_tool_prefix"; then
6280     echo "$as_me:$LINENO: checking for file" >&5
6281 echo $ECHO_N "checking for file... $ECHO_C" >&6
6282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   case $MAGIC_CMD in
6286 [\\/*] |  ?:[\\/]*)
6287   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6288   ;;
6289 *)
6290   lt_save_MAGIC_CMD="$MAGIC_CMD"
6291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6292   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6293   for ac_dir in $ac_dummy; do
6294     IFS="$lt_save_ifs"
6295     test -z "$ac_dir" && ac_dir=.
6296     if test -f $ac_dir/file; then
6297       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6298       if test -n "$file_magic_test_file"; then
6299         case $deplibs_check_method in
6300         "file_magic "*)
6301           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6302           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6303           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6304             $EGREP "$file_magic_regex" > /dev/null; then
6305             :
6306           else
6307             cat <<_LT_EOF 1>&2
6308
6309 *** Warning: the command libtool uses to detect shared libraries,
6310 *** $file_magic_cmd, produces output that libtool cannot recognize.
6311 *** The result is that libtool may fail to recognize shared libraries
6312 *** as such.  This will affect the creation of libtool libraries that
6313 *** depend on shared libraries, but programs linked with such libtool
6314 *** libraries will work regardless of this problem.  Nevertheless, you
6315 *** may want to report the problem to your system manager and/or to
6316 *** bug-libtool@gnu.org
6317
6318 _LT_EOF
6319           fi ;;
6320         esac
6321       fi
6322       break
6323     fi
6324   done
6325   IFS="$lt_save_ifs"
6326   MAGIC_CMD="$lt_save_MAGIC_CMD"
6327   ;;
6328 esac
6329 fi
6330
6331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6332 if test -n "$MAGIC_CMD"; then
6333   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6334 echo "${ECHO_T}$MAGIC_CMD" >&6
6335 else
6336   echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6338 fi
6339
6340
6341   else
6342     MAGIC_CMD=:
6343   fi
6344 fi
6345
6346   fi
6347   ;;
6348 esac
6349
6350 # Use C for the default configuration in the libtool script
6351
6352 lt_save_CC="$CC"
6353 ac_ext=c
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
6359
6360 # Source file extension for C test sources.
6361 ac_ext=c
6362
6363 # Object file extension for compiled C test sources.
6364 objext=o
6365 objext=$objext
6366
6367 # Code to be used in simple compile tests
6368 lt_simple_compile_test_code="int some_variable = 0;"
6369
6370 # Code to be used in simple link tests
6371 lt_simple_link_test_code='int main(){return(0);}'
6372
6373
6374
6375
6376
6377
6378
6379 # If no C compiler was specified, use CC.
6380 LTCC=${LTCC-"$CC"}
6381
6382 # If no C compiler flags were specified, use CFLAGS.
6383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6384
6385 # Allow CC to be a program name with arguments.
6386 compiler=$CC
6387
6388 # Save the default compiler, since it gets overwritten when the other
6389 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6390 compiler_DEFAULT=$CC
6391
6392 # save warnings/boilerplate of simple test code
6393 ac_outfile=conftest.$ac_objext
6394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6396 _lt_compiler_boilerplate=`cat conftest.err`
6397 $RM conftest*
6398
6399 ac_outfile=conftest.$ac_objext
6400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6402 _lt_linker_boilerplate=`cat conftest.err`
6403 $RM conftest*
6404
6405
6406 ## CAVEAT EMPTOR:
6407 ## There is no encapsulation within the following macros, do not change
6408 ## the running order or otherwise move them around unless you know exactly
6409 ## what you are doing...
6410 if test -n "$compiler"; then
6411
6412 lt_prog_compiler_no_builtin_flag=
6413
6414 if test "$GCC" = yes; then
6415   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6416
6417   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6418 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6419 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   lt_cv_prog_compiler_rtti_exceptions=no
6423    ac_outfile=conftest.$ac_objext
6424    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6425    lt_compiler_flag="-fno-rtti -fno-exceptions"
6426    # Insert the option either (1) after the last *FLAGS variable, or
6427    # (2) before a word containing "conftest.", or (3) at the end.
6428    # Note that $ac_compile itself does not contain backslashes and begins
6429    # with a dollar sign (not a hyphen), so the echo should work correctly.
6430    # The option is referenced via a variable to avoid confusing sed.
6431    lt_compile=`echo "$ac_compile" | $SED \
6432    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6433    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6434    -e 's:$: $lt_compiler_flag:'`
6435    (eval echo "\"\$as_me:6435: $lt_compile\"" >&5)
6436    (eval "$lt_compile" 2>conftest.err)
6437    ac_status=$?
6438    cat conftest.err >&5
6439    echo "$as_me:6439: \$? = $ac_status" >&5
6440    if (exit $ac_status) && test -s "$ac_outfile"; then
6441      # The compiler can only warn and ignore the option if not recognized
6442      # So say no if there are warnings other than the usual output.
6443      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6444      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6445      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6446        lt_cv_prog_compiler_rtti_exceptions=yes
6447      fi
6448    fi
6449    $RM conftest*
6450
6451 fi
6452 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6453 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6454
6455 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6456     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6457 else
6458     :
6459 fi
6460
6461 fi
6462
6463
6464
6465
6466
6467
6468   lt_prog_compiler_wl=
6469 lt_prog_compiler_pic=
6470 lt_prog_compiler_static=
6471
6472 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6474
6475   if test "$GCC" = yes; then
6476     lt_prog_compiler_wl='-Wl,'
6477     lt_prog_compiler_static='-static'
6478
6479     case $host_os in
6480       aix*)
6481       # All AIX code is PIC.
6482       if test "$host_cpu" = ia64; then
6483         # AIX 5 now supports IA64 processor
6484         lt_prog_compiler_static='-Bstatic'
6485       fi
6486       ;;
6487
6488     amigaos*)
6489       if test "$host_cpu" = m68k; then
6490         # FIXME: we need at least 68020 code to build shared libraries, but
6491         # adding the `-m68020' flag to GCC prevents building anything better,
6492         # like `-m68040'.
6493         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6494       fi
6495       ;;
6496
6497     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6498       # PIC is the default for these OSes.
6499       ;;
6500
6501     mingw* | cygwin* | pw32* | os2*)
6502       # This hack is so that the source file can tell whether it is being
6503       # built for inclusion in a dll (and should export symbols for example).
6504       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6505       # (--disable-auto-import) libraries
6506       lt_prog_compiler_pic='-DDLL_EXPORT'
6507       ;;
6508
6509     darwin* | rhapsody*)
6510       # PIC is the default on this platform
6511       # Common symbols not allowed in MH_DYLIB files
6512       lt_prog_compiler_pic='-fno-common'
6513       ;;
6514
6515     hpux*)
6516       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6517       # not for PA HP-UX.
6518       case $host_cpu in
6519       hppa*64*|ia64*)
6520         # +Z the default
6521         ;;
6522       *)
6523         lt_prog_compiler_pic='-fPIC'
6524         ;;
6525       esac
6526       ;;
6527
6528     interix[3-9]*)
6529       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6530       # Instead, we relocate shared libraries at runtime.
6531       ;;
6532
6533     msdosdjgpp*)
6534       # Just because we use GCC doesn't mean we suddenly get shared libraries
6535       # on systems that don't support them.
6536       lt_prog_compiler_can_build_shared=no
6537       enable_shared=no
6538       ;;
6539
6540     *nto* | *qnx*)
6541       # QNX uses GNU C++, but need to define -shared option too, otherwise
6542       # it will coredump.
6543       lt_prog_compiler_pic='-fPIC -shared'
6544       ;;
6545
6546     sysv4*MP*)
6547       if test -d /usr/nec; then
6548         lt_prog_compiler_pic=-Kconform_pic
6549       fi
6550       ;;
6551
6552     *)
6553       lt_prog_compiler_pic='-fPIC'
6554       ;;
6555     esac
6556   else
6557     # PORTME Check for flag to pass linker flags through the system compiler.
6558     case $host_os in
6559     aix*)
6560       lt_prog_compiler_wl='-Wl,'
6561       if test "$host_cpu" = ia64; then
6562         # AIX 5 now supports IA64 processor
6563         lt_prog_compiler_static='-Bstatic'
6564       else
6565         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6566       fi
6567       ;;
6568     darwin*)
6569       # PIC is the default on this platform
6570       # Common symbols not allowed in MH_DYLIB files
6571       case $cc_basename in
6572       xlc*)
6573         lt_prog_compiler_pic='-qnocommon'
6574         lt_prog_compiler_wl='-Wl,'
6575         ;;
6576       esac
6577       ;;
6578
6579     mingw* | cygwin* | pw32* | os2*)
6580       # This hack is so that the source file can tell whether it is being
6581       # built for inclusion in a dll (and should export symbols for example).
6582       lt_prog_compiler_pic='-DDLL_EXPORT'
6583       ;;
6584
6585     hpux9* | hpux10* | hpux11*)
6586       lt_prog_compiler_wl='-Wl,'
6587       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6588       # not for PA HP-UX.
6589       case $host_cpu in
6590       hppa*64*|ia64*)
6591         # +Z the default
6592         ;;
6593       *)
6594         lt_prog_compiler_pic='+Z'
6595         ;;
6596       esac
6597       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6598       lt_prog_compiler_static='${wl}-a ${wl}archive'
6599       ;;
6600
6601     irix5* | irix6* | nonstopux*)
6602       lt_prog_compiler_wl='-Wl,'
6603       # PIC (with -KPIC) is the default.
6604       lt_prog_compiler_static='-non_shared'
6605       ;;
6606
6607     linux* | k*bsd*-gnu)
6608       case $cc_basename in
6609       icc* | ecc*)
6610         lt_prog_compiler_wl='-Wl,'
6611         lt_prog_compiler_pic='-KPIC'
6612         lt_prog_compiler_static='-static'
6613         ;;
6614       pgcc* | pgf77* | pgf90* | pgf95*)
6615         # Portland Group compilers (*not* the Pentium gcc compiler,
6616         # which looks to be a dead project)
6617         lt_prog_compiler_wl='-Wl,'
6618         lt_prog_compiler_pic='-fpic'
6619         lt_prog_compiler_static='-Bstatic'
6620         ;;
6621       ccc*)
6622         lt_prog_compiler_wl='-Wl,'
6623         # All Alpha code is PIC.
6624         lt_prog_compiler_static='-non_shared'
6625         ;;
6626       *)
6627         case `$CC -V 2>&1 | sed 5q` in
6628         *Sun\ C*)
6629           # Sun C 5.9
6630           lt_prog_compiler_pic='-KPIC'
6631           lt_prog_compiler_static='-Bstatic'
6632           lt_prog_compiler_wl='-Wl,'
6633           ;;
6634         *Sun\ F*)
6635           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6636           lt_prog_compiler_pic='-KPIC'
6637           lt_prog_compiler_static='-Bstatic'
6638           lt_prog_compiler_wl=''
6639           ;;
6640         esac
6641         ;;
6642       esac
6643       ;;
6644
6645     newsos6)
6646       lt_prog_compiler_pic='-KPIC'
6647       lt_prog_compiler_static='-Bstatic'
6648       ;;
6649
6650     *nto* | *qnx*)
6651       # QNX uses GNU C++, but need to define -shared option too, otherwise
6652       # it will coredump.
6653       lt_prog_compiler_pic='-fPIC -shared'
6654       ;;
6655
6656     osf3* | osf4* | osf5*)
6657       lt_prog_compiler_wl='-Wl,'
6658       # All OSF/1 code is PIC.
6659       lt_prog_compiler_static='-non_shared'
6660       ;;
6661
6662     rdos*)
6663       lt_prog_compiler_static='-non_shared'
6664       ;;
6665
6666     solaris*)
6667       lt_prog_compiler_pic='-KPIC'
6668       lt_prog_compiler_static='-Bstatic'
6669       case $cc_basename in
6670       f77* | f90* | f95*)
6671         lt_prog_compiler_wl='-Qoption ld ';;
6672       *)
6673         lt_prog_compiler_wl='-Wl,';;
6674       esac
6675       ;;
6676
6677     sunos4*)
6678       lt_prog_compiler_wl='-Qoption ld '
6679       lt_prog_compiler_pic='-PIC'
6680       lt_prog_compiler_static='-Bstatic'
6681       ;;
6682
6683     sysv4 | sysv4.2uw2* | sysv4.3*)
6684       lt_prog_compiler_wl='-Wl,'
6685       lt_prog_compiler_pic='-KPIC'
6686       lt_prog_compiler_static='-Bstatic'
6687       ;;
6688
6689     sysv4*MP*)
6690       if test -d /usr/nec ;then
6691         lt_prog_compiler_pic='-Kconform_pic'
6692         lt_prog_compiler_static='-Bstatic'
6693       fi
6694       ;;
6695
6696     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6697       lt_prog_compiler_wl='-Wl,'
6698       lt_prog_compiler_pic='-KPIC'
6699       lt_prog_compiler_static='-Bstatic'
6700       ;;
6701
6702     unicos*)
6703       lt_prog_compiler_wl='-Wl,'
6704       lt_prog_compiler_can_build_shared=no
6705       ;;
6706
6707     uts4*)
6708       lt_prog_compiler_pic='-pic'
6709       lt_prog_compiler_static='-Bstatic'
6710       ;;
6711
6712     *)
6713       lt_prog_compiler_can_build_shared=no
6714       ;;
6715     esac
6716   fi
6717
6718 case $host_os in
6719   # For platforms which do not support PIC, -DPIC is meaningless:
6720   *djgpp*)
6721     lt_prog_compiler_pic=
6722     ;;
6723   *)
6724     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6725     ;;
6726 esac
6727 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6728 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6729
6730
6731
6732
6733
6734
6735 #
6736 # Check to make sure the PIC flag actually works.
6737 #
6738 if test -n "$lt_prog_compiler_pic"; then
6739   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6740 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6741 if test "${lt_prog_compiler_pic_works+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   lt_prog_compiler_pic_works=no
6745    ac_outfile=conftest.$ac_objext
6746    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6747    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6748    # Insert the option either (1) after the last *FLAGS variable, or
6749    # (2) before a word containing "conftest.", or (3) at the end.
6750    # Note that $ac_compile itself does not contain backslashes and begins
6751    # with a dollar sign (not a hyphen), so the echo should work correctly.
6752    # The option is referenced via a variable to avoid confusing sed.
6753    lt_compile=`echo "$ac_compile" | $SED \
6754    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6755    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6756    -e 's:$: $lt_compiler_flag:'`
6757    (eval echo "\"\$as_me:6757: $lt_compile\"" >&5)
6758    (eval "$lt_compile" 2>conftest.err)
6759    ac_status=$?
6760    cat conftest.err >&5
6761    echo "$as_me:6761: \$? = $ac_status" >&5
6762    if (exit $ac_status) && test -s "$ac_outfile"; then
6763      # The compiler can only warn and ignore the option if not recognized
6764      # So say no if there are warnings other than the usual output.
6765      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6766      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6767      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6768        lt_prog_compiler_pic_works=yes
6769      fi
6770    fi
6771    $RM conftest*
6772
6773 fi
6774 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6775 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6776
6777 if test x"$lt_prog_compiler_pic_works" = xyes; then
6778     case $lt_prog_compiler_pic in
6779      "" | " "*) ;;
6780      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6781      esac
6782 else
6783     lt_prog_compiler_pic=
6784      lt_prog_compiler_can_build_shared=no
6785 fi
6786
6787 fi
6788
6789
6790
6791
6792
6793
6794 #
6795 # Check to make sure the static flag actually works.
6796 #
6797 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6798 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6799 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6800 if test "${lt_prog_compiler_static_works+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   lt_prog_compiler_static_works=no
6804    save_LDFLAGS="$LDFLAGS"
6805    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6806    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6807    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6808      # The linker can only warn and ignore the option if not recognized
6809      # So say no if there are warnings
6810      if test -s conftest.err; then
6811        # Append any errors to the config.log.
6812        cat conftest.err 1>&5
6813        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6814        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6815        if diff conftest.exp conftest.er2 >/dev/null; then
6816          lt_prog_compiler_static_works=yes
6817        fi
6818      else
6819        lt_prog_compiler_static_works=yes
6820      fi
6821    fi
6822    $RM conftest*
6823    LDFLAGS="$save_LDFLAGS"
6824
6825 fi
6826 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6827 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6828
6829 if test x"$lt_prog_compiler_static_works" = xyes; then
6830     :
6831 else
6832     lt_prog_compiler_static=
6833 fi
6834
6835
6836
6837
6838
6839
6840
6841   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   lt_cv_prog_compiler_c_o=no
6847    $RM -r conftest 2>/dev/null
6848    mkdir conftest
6849    cd conftest
6850    mkdir out
6851    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6852
6853    lt_compiler_flag="-o out/conftest2.$ac_objext"
6854    # Insert the option either (1) after the last *FLAGS variable, or
6855    # (2) before a word containing "conftest.", or (3) at the end.
6856    # Note that $ac_compile itself does not contain backslashes and begins
6857    # with a dollar sign (not a hyphen), so the echo should work correctly.
6858    lt_compile=`echo "$ac_compile" | $SED \
6859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6861    -e 's:$: $lt_compiler_flag:'`
6862    (eval echo "\"\$as_me:6862: $lt_compile\"" >&5)
6863    (eval "$lt_compile" 2>out/conftest.err)
6864    ac_status=$?
6865    cat out/conftest.err >&5
6866    echo "$as_me:6866: \$? = $ac_status" >&5
6867    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6868    then
6869      # The compiler can only warn and ignore the option if not recognized
6870      # So say no if there are warnings
6871      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6872      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6873      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6874        lt_cv_prog_compiler_c_o=yes
6875      fi
6876    fi
6877    chmod u+w . 2>&5
6878    $RM conftest*
6879    # SGI C++ compiler will create directory out/ii_files/ for
6880    # template instantiation
6881    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6882    $RM out/* && rmdir out
6883    cd ..
6884    $RM -r conftest
6885    $RM conftest*
6886
6887 fi
6888 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6889 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6890
6891
6892
6893
6894
6895
6896   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6897 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6898 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   lt_cv_prog_compiler_c_o=no
6902    $RM -r conftest 2>/dev/null
6903    mkdir conftest
6904    cd conftest
6905    mkdir out
6906    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6907
6908    lt_compiler_flag="-o out/conftest2.$ac_objext"
6909    # Insert the option either (1) after the last *FLAGS variable, or
6910    # (2) before a word containing "conftest.", or (3) at the end.
6911    # Note that $ac_compile itself does not contain backslashes and begins
6912    # with a dollar sign (not a hyphen), so the echo should work correctly.
6913    lt_compile=`echo "$ac_compile" | $SED \
6914    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6916    -e 's:$: $lt_compiler_flag:'`
6917    (eval echo "\"\$as_me:6917: $lt_compile\"" >&5)
6918    (eval "$lt_compile" 2>out/conftest.err)
6919    ac_status=$?
6920    cat out/conftest.err >&5
6921    echo "$as_me:6921: \$? = $ac_status" >&5
6922    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6923    then
6924      # The compiler can only warn and ignore the option if not recognized
6925      # So say no if there are warnings
6926      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6927      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6928      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6929        lt_cv_prog_compiler_c_o=yes
6930      fi
6931    fi
6932    chmod u+w . 2>&5
6933    $RM conftest*
6934    # SGI C++ compiler will create directory out/ii_files/ for
6935    # template instantiation
6936    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6937    $RM out/* && rmdir out
6938    cd ..
6939    $RM -r conftest
6940    $RM conftest*
6941
6942 fi
6943 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6944 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6945
6946
6947
6948
6949 hard_links="nottested"
6950 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6951   # do not overwrite the value of need_locks provided by the user
6952   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6953 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6954   hard_links=yes
6955   $RM conftest*
6956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6957   touch conftest.a
6958   ln conftest.a conftest.b 2>&5 || hard_links=no
6959   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6960   echo "$as_me:$LINENO: result: $hard_links" >&5
6961 echo "${ECHO_T}$hard_links" >&6
6962   if test "$hard_links" = no; then
6963     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6964 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6965     need_locks=warn
6966   fi
6967 else
6968   need_locks=no
6969 fi
6970
6971
6972
6973
6974
6975
6976   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6977 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6978
6979   runpath_var=
6980   allow_undefined_flag=
6981   always_export_symbols=no
6982   archive_cmds=
6983   archive_expsym_cmds=
6984   compiler_needs_object=no
6985   enable_shared_with_static_runtimes=no
6986   export_dynamic_flag_spec=
6987   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6988   hardcode_automatic=no
6989   hardcode_direct=no
6990   hardcode_direct_absolute=no
6991   hardcode_libdir_flag_spec=
6992   hardcode_libdir_flag_spec_ld=
6993   hardcode_libdir_separator=
6994   hardcode_minus_L=no
6995   hardcode_shlibpath_var=unsupported
6996   inherit_rpath=no
6997   link_all_deplibs=unknown
6998   module_cmds=
6999   module_expsym_cmds=
7000   old_archive_from_new_cmds=
7001   old_archive_from_expsyms_cmds=
7002   thread_safe_flag_spec=
7003   whole_archive_flag_spec=
7004   # include_expsyms should be a list of space-separated symbols to be *always*
7005   # included in the symbol list
7006   include_expsyms=
7007   # exclude_expsyms can be an extended regexp of symbols to exclude
7008   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7009   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7010   # as well as any symbol that contains `d'.
7011   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7012   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7013   # platforms (ab)use it in PIC code, but their linkers get confused if
7014   # the symbol is explicitly referenced.  Since portable code cannot
7015   # rely on this symbol name, it's probably fine to never include it in
7016   # preloaded symbol tables.
7017   extract_expsyms_cmds=
7018
7019   case $host_os in
7020   cygwin* | mingw* | pw32*)
7021     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7022     # When not using gcc, we currently assume that we are using
7023     # Microsoft Visual C++.
7024     if test "$GCC" != yes; then
7025       with_gnu_ld=no
7026     fi
7027     ;;
7028   interix*)
7029     # we just hope/assume this is gcc and not c89 (= MSVC++)
7030     with_gnu_ld=yes
7031     ;;
7032   openbsd*)
7033     with_gnu_ld=no
7034     ;;
7035   esac
7036
7037   ld_shlibs=yes
7038   if test "$with_gnu_ld" = yes; then
7039     # If archive_cmds runs LD, not CC, wlarc should be empty
7040     wlarc='${wl}'
7041
7042     # Set some defaults for GNU ld with shared library support. These
7043     # are reset later if shared libraries are not supported. Putting them
7044     # here allows them to be overridden if necessary.
7045     runpath_var=LD_RUN_PATH
7046     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7047     export_dynamic_flag_spec='${wl}--export-dynamic'
7048     # ancient GNU ld didn't support --whole-archive et. al.
7049     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7050       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7051     else
7052       whole_archive_flag_spec=
7053     fi
7054     supports_anon_versioning=no
7055     case `$LD -v 2>&1` in
7056       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7057       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7058       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7059       *\ 2.11.*) ;; # other 2.11 versions
7060       *) supports_anon_versioning=yes ;;
7061     esac
7062
7063     # See if GNU ld supports shared libraries.
7064     case $host_os in
7065     aix[3-9]*)
7066       # On AIX/PPC, the GNU linker is very broken
7067       if test "$host_cpu" != ia64; then
7068         ld_shlibs=no
7069         cat <<_LT_EOF 1>&2
7070
7071 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7072 *** to be unable to reliably create shared libraries on AIX.
7073 *** Therefore, libtool is disabling shared libraries support.  If you
7074 *** really care for shared libraries, you may want to modify your PATH
7075 *** so that a non-GNU linker is found, and then restart.
7076
7077 _LT_EOF
7078       fi
7079       ;;
7080
7081     amigaos*)
7082       if test "$host_cpu" = m68k; then
7083         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)'
7084         hardcode_libdir_flag_spec='-L$libdir'
7085         hardcode_minus_L=yes
7086       fi
7087
7088       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7089       # that the semantics of dynamic libraries on AmigaOS, at least up
7090       # to version 4, is to share data among multiple programs linked
7091       # with the same dynamic library.  Since this doesn't match the
7092       # behavior of shared libraries on other platforms, we can't use
7093       # them.
7094       ld_shlibs=no
7095       ;;
7096
7097     beos*)
7098       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7099         allow_undefined_flag=unsupported
7100         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7101         # support --undefined.  This deserves some investigation.  FIXME
7102         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7103       else
7104         ld_shlibs=no
7105       fi
7106       ;;
7107
7108     cygwin* | mingw* | pw32*)
7109       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7110       # as there is no search path for DLLs.
7111       hardcode_libdir_flag_spec='-L$libdir'
7112       allow_undefined_flag=unsupported
7113       always_export_symbols=no
7114       enable_shared_with_static_runtimes=yes
7115       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7116
7117       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7118         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7119         # If the export-symbols file already is a .def file (1st line
7120         # is EXPORTS), use it as is; otherwise, prepend...
7121         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7122           cp $export_symbols $output_objdir/$soname.def;
7123         else
7124           echo EXPORTS > $output_objdir/$soname.def;
7125           cat $export_symbols >> $output_objdir/$soname.def;
7126         fi~
7127         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7128       else
7129         ld_shlibs=no
7130       fi
7131       ;;
7132
7133     interix[3-9]*)
7134       hardcode_direct=no
7135       hardcode_shlibpath_var=no
7136       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7137       export_dynamic_flag_spec='${wl}-E'
7138       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7139       # Instead, shared libraries are loaded at an image base (0x10000000 by
7140       # default) and relocated if they conflict, which is a slow very memory
7141       # consuming and fragmenting process.  To avoid this, we pick a random,
7142       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7143       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7144       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7145       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'
7146       ;;
7147
7148     gnu* | linux* | tpf* | k*bsd*-gnu)
7149       tmp_diet=no
7150       if test "$host_os" = linux-dietlibc; then
7151         case $cc_basename in
7152           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7153         esac
7154       fi
7155       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7156          && test "$tmp_diet" = no
7157       then
7158         tmp_addflag=
7159         case $cc_basename,$host_cpu in
7160         pgcc*)                          # Portland Group C compiler
7161           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'
7162           tmp_addflag=' $pic_flag'
7163           ;;
7164         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7165           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'
7166           tmp_addflag=' $pic_flag -Mnomain' ;;
7167         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7168           tmp_addflag=' -i_dynamic' ;;
7169         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7170           tmp_addflag=' -i_dynamic -nofor_main' ;;
7171         ifc* | ifort*)                  # Intel Fortran compiler
7172           tmp_addflag=' -nofor_main' ;;
7173         esac
7174         case `$CC -V 2>&1 | sed 5q` in
7175         *Sun\ C*)                       # Sun C 5.9
7176           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'
7177           compiler_needs_object=yes
7178           tmp_sharedflag='-G' ;;
7179         *Sun\ F*)                       # Sun Fortran 8.3
7180           tmp_sharedflag='-G' ;;
7181         *)
7182           tmp_sharedflag='-shared' ;;
7183         esac
7184         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7185
7186         if test "x$supports_anon_versioning" = xyes; then
7187           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7188             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7189             echo "local: *; };" >> $output_objdir/$libname.ver~
7190             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7191         fi
7192       else
7193         ld_shlibs=no
7194       fi
7195       ;;
7196
7197     netbsd*)
7198       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7199         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7200         wlarc=
7201       else
7202         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7203         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7204       fi
7205       ;;
7206
7207     solaris*)
7208       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7209         ld_shlibs=no
7210         cat <<_LT_EOF 1>&2
7211
7212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7213 *** create shared libraries on Solaris systems.  Therefore, libtool
7214 *** is disabling shared libraries support.  We urge you to upgrade GNU
7215 *** binutils to release 2.9.1 or newer.  Another option is to modify
7216 *** your PATH or compiler configuration so that the native linker is
7217 *** used, and then restart.
7218
7219 _LT_EOF
7220       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7221         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7222         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7223       else
7224         ld_shlibs=no
7225       fi
7226       ;;
7227
7228     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7229       case `$LD -v 2>&1` in
7230         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7231         ld_shlibs=no
7232         cat <<_LT_EOF 1>&2
7233
7234 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7235 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7236 *** is disabling shared libraries support.  We urge you to upgrade GNU
7237 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7238 *** your PATH or compiler configuration so that the native linker is
7239 *** used, and then restart.
7240
7241 _LT_EOF
7242         ;;
7243         *)
7244           # For security reasons, it is highly recommended that you always
7245           # use absolute paths for naming shared libraries, and exclude the
7246           # DT_RUNPATH tag from executables and libraries.  But doing so
7247           # requires that you compile everything twice, which is a pain.
7248           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7249             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7250             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7252           else
7253             ld_shlibs=no
7254           fi
7255         ;;
7256       esac
7257       ;;
7258
7259     sunos4*)
7260       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7261       wlarc=
7262       hardcode_direct=yes
7263       hardcode_shlibpath_var=no
7264       ;;
7265
7266     *)
7267       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7268         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7269         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7270       else
7271         ld_shlibs=no
7272       fi
7273       ;;
7274     esac
7275
7276     if test "$ld_shlibs" = no; then
7277       runpath_var=
7278       hardcode_libdir_flag_spec=
7279       export_dynamic_flag_spec=
7280       whole_archive_flag_spec=
7281     fi
7282   else
7283     # PORTME fill in a description of your system's linker (not GNU ld)
7284     case $host_os in
7285     aix3*)
7286       allow_undefined_flag=unsupported
7287       always_export_symbols=yes
7288       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'
7289       # Note: this linker hardcodes the directories in LIBPATH if there
7290       # are no directories specified by -L.
7291       hardcode_minus_L=yes
7292       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7293         # Neither direct hardcoding nor static linking is supported with a
7294         # broken collect2.
7295         hardcode_direct=unsupported
7296       fi
7297       ;;
7298
7299     aix[4-9]*)
7300       if test "$host_cpu" = ia64; then
7301         # On IA64, the linker does run time linking by default, so we don't
7302         # have to do anything special.
7303         aix_use_runtimelinking=no
7304         exp_sym_flag='-Bexport'
7305         no_entry_flag=""
7306       else
7307         # If we're using GNU nm, then we don't want the "-C" option.
7308         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7309         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7310           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'
7311         else
7312           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'
7313         fi
7314         aix_use_runtimelinking=no
7315
7316         # Test if we are trying to use run time linking or normal
7317         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7318         # need to do runtime linking.
7319         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7320           for ld_flag in $LDFLAGS; do
7321           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7322             aix_use_runtimelinking=yes
7323             break
7324           fi
7325           done
7326           ;;
7327         esac
7328
7329         exp_sym_flag='-bexport'
7330         no_entry_flag='-bnoentry'
7331       fi
7332
7333       # When large executables or shared objects are built, AIX ld can
7334       # have problems creating the table of contents.  If linking a library
7335       # or program results in "error TOC overflow" add -mminimal-toc to
7336       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7337       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7338
7339       archive_cmds=''
7340       hardcode_direct=yes
7341       hardcode_direct_absolute=yes
7342       hardcode_libdir_separator=':'
7343       link_all_deplibs=yes
7344       file_list_spec='${wl}-f,'
7345
7346       if test "$GCC" = yes; then
7347         case $host_os in aix4.[012]|aix4.[012].*)
7348         # We only want to do this on AIX 4.2 and lower, the check
7349         # below for broken collect2 doesn't work under 4.3+
7350           collect2name=`${CC} -print-prog-name=collect2`
7351           if test -f "$collect2name" &&
7352            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7353           then
7354           # We have reworked collect2
7355           :
7356           else
7357           # We have old collect2
7358           hardcode_direct=unsupported
7359           # It fails to find uninstalled libraries when the uninstalled
7360           # path is not listed in the libpath.  Setting hardcode_minus_L
7361           # to unsupported forces relinking
7362           hardcode_minus_L=yes
7363           hardcode_libdir_flag_spec='-L$libdir'
7364           hardcode_libdir_separator=
7365           fi
7366           ;;
7367         esac
7368         shared_flag='-shared'
7369         if test "$aix_use_runtimelinking" = yes; then
7370           shared_flag="$shared_flag "'${wl}-G'
7371         fi
7372       else
7373         # not using gcc
7374         if test "$host_cpu" = ia64; then
7375         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7376         # chokes on -Wl,-G. The following line is correct:
7377           shared_flag='-G'
7378         else
7379           if test "$aix_use_runtimelinking" = yes; then
7380             shared_flag='${wl}-G'
7381           else
7382             shared_flag='${wl}-bM:SRE'
7383           fi
7384         fi
7385       fi
7386
7387       # It seems that -bexpall does not export symbols beginning with
7388       # underscore (_), so it is better to generate a list of symbols to export.
7389       always_export_symbols=yes
7390       if test "$aix_use_runtimelinking" = yes; then
7391         # Warning - without using the other runtime loading flags (-brtl),
7392         # -berok will link without error, but may produce a broken library.
7393         allow_undefined_flag='-berok'
7394         # Determine the default libpath from the value encoded in an
7395         # empty executable.
7396         cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402
7403 int
7404 main ()
7405 {
7406
7407   ;
7408   return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext conftest$ac_exeext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413   (eval $ac_link) 2>conftest.er1
7414   ac_status=$?
7415   grep -v '^ *+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } &&
7420          { ac_try='test -z "$ac_c_werror_flag"
7421                          || test ! -s conftest.err'
7422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423   (eval $ac_try) 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); }; } &&
7427          { ac_try='test -s conftest$ac_exeext'
7428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429   (eval $ac_try) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }; }; then
7433
7434 lt_aix_libpath_sed='
7435     /Import File Strings/,/^$/ {
7436         /^0/ {
7437             s/^0  *\(.*\)$/\1/
7438             p
7439         }
7440     }'
7441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7442 # Check for a 64-bit object if we didn't find anything.
7443 if test -z "$aix_libpath"; then
7444   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7445 fi
7446 else
7447   echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450 fi
7451 rm -f conftest.err conftest.$ac_objext \
7452       conftest$ac_exeext conftest.$ac_ext
7453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7454
7455         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7456         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"
7457       else
7458         if test "$host_cpu" = ia64; then
7459           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7460           allow_undefined_flag="-z nodefs"
7461           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"
7462         else
7463          # Determine the default libpath from the value encoded in an
7464          # empty executable.
7465          cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471
7472 int
7473 main ()
7474 {
7475
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482   (eval $ac_link) 2>conftest.er1
7483   ac_status=$?
7484   grep -v '^ *+' conftest.er1 >conftest.err
7485   rm -f conftest.er1
7486   cat conftest.err >&5
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); } &&
7489          { ac_try='test -z "$ac_c_werror_flag"
7490                          || test ! -s conftest.err'
7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }; } &&
7496          { ac_try='test -s conftest$ac_exeext'
7497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498   (eval $ac_try) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); }; }; then
7502
7503 lt_aix_libpath_sed='
7504     /Import File Strings/,/^$/ {
7505         /^0/ {
7506             s/^0  *\(.*\)$/\1/
7507             p
7508         }
7509     }'
7510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7511 # Check for a 64-bit object if we didn't find anything.
7512 if test -z "$aix_libpath"; then
7513   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7514 fi
7515 else
7516   echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519 fi
7520 rm -f conftest.err conftest.$ac_objext \
7521       conftest$ac_exeext conftest.$ac_ext
7522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7523
7524          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7525           # Warning - without using the other run time loading flags,
7526           # -berok will link without error, but may produce a broken library.
7527           no_undefined_flag=' ${wl}-bernotok'
7528           allow_undefined_flag=' ${wl}-berok'
7529           # Exported symbols can be pulled into shared objects from archives
7530           whole_archive_flag_spec='$convenience'
7531           archive_cmds_need_lc=yes
7532           # This is similar to how AIX traditionally builds its shared libraries.
7533           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'
7534         fi
7535       fi
7536       ;;
7537
7538     amigaos*)
7539       if test "$host_cpu" = m68k; then
7540         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)'
7541         hardcode_libdir_flag_spec='-L$libdir'
7542         hardcode_minus_L=yes
7543       fi
7544       # see comment about different semantics on the GNU ld section
7545       ld_shlibs=no
7546       ;;
7547
7548     bsdi[45]*)
7549       export_dynamic_flag_spec=-rdynamic
7550       ;;
7551
7552     cygwin* | mingw* | pw32*)
7553       # When not using gcc, we currently assume that we are using
7554       # Microsoft Visual C++.
7555       # hardcode_libdir_flag_spec is actually meaningless, as there is
7556       # no search path for DLLs.
7557       hardcode_libdir_flag_spec=' '
7558       allow_undefined_flag=unsupported
7559       # Tell ltmain to make .lib files, not .a files.
7560       libext=lib
7561       # Tell ltmain to make .dll files, not .so files.
7562       shrext_cmds=".dll"
7563       # FIXME: Setting linknames here is a bad hack.
7564       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7565       # The linker will automatically build a .lib file if we build a DLL.
7566       old_archive_from_new_cmds='true'
7567       # FIXME: Should let the user specify the lib program.
7568       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7569       fix_srcfile_path='`cygpath -w "$srcfile"`'
7570       enable_shared_with_static_runtimes=yes
7571       ;;
7572
7573     darwin* | rhapsody*)
7574       case $host_os in
7575       rhapsody* | darwin1.[012])
7576         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7577         ;;
7578       *) # Darwin 1.3 on
7579         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7580         10.[012])
7581           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7582           ;;
7583         10.*)
7584           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7585           ;;
7586         esac
7587         ;;
7588       esac
7589       archive_cmds_need_lc=no
7590       hardcode_direct=no
7591       hardcode_automatic=yes
7592       hardcode_shlibpath_var=unsupported
7593       whole_archive_flag_spec=''
7594       link_all_deplibs=yes
7595       if test "$GCC" = yes ; then
7596         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   lt_cv_apple_cc_single_mod=no
7600         if test -z "${LT_MULTI_MODULE}"; then
7601           # By default we will add the -single_module flag. You can override
7602           # by either setting the environment variable LT_MULTI_MODULE
7603           # non-empty at configure time, or by adding -multi-module to the
7604           # link flags.
7605           echo "int foo(void){return 1;}" > conftest.c
7606           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7607               -dynamiclib ${wl}-single_module conftest.c
7608           if test -f libconftest.dylib; then
7609               lt_cv_apple_cc_single_mod=yes
7610               rm libconftest.dylib
7611           fi
7612           rm conftest.$ac_ext
7613         fi
7614 fi
7615
7616         output_verbose_link_cmd=echo
7617         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7618           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7619           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7620         else
7621           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7622           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7623         fi
7624         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7625         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7626       else
7627         case $cc_basename in
7628         xlc*)
7629           output_verbose_link_cmd=echo
7630           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7631           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7632           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7633           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7634           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7635           ;;
7636         *)
7637           ld_shlibs=no
7638           ;;
7639         esac
7640       fi
7641       ;;
7642
7643     dgux*)
7644       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7645       hardcode_libdir_flag_spec='-L$libdir'
7646       hardcode_shlibpath_var=no
7647       ;;
7648
7649     freebsd1*)
7650       ld_shlibs=no
7651       ;;
7652
7653     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7654     # support.  Future versions do this automatically, but an explicit c++rt0.o
7655     # does not break anything, and helps significantly (at the cost of a little
7656     # extra space).
7657     freebsd2.2*)
7658       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7659       hardcode_libdir_flag_spec='-R$libdir'
7660       hardcode_direct=yes
7661       hardcode_shlibpath_var=no
7662       ;;
7663
7664     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7665     freebsd2*)
7666       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7667       hardcode_direct=yes
7668       hardcode_minus_L=yes
7669       hardcode_shlibpath_var=no
7670       ;;
7671
7672     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7673     freebsd* | dragonfly*)
7674       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7675       hardcode_libdir_flag_spec='-R$libdir'
7676       hardcode_direct=yes
7677       hardcode_shlibpath_var=no
7678       ;;
7679
7680     hpux9*)
7681       if test "$GCC" = yes; then
7682         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'
7683       else
7684         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'
7685       fi
7686       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7687       hardcode_libdir_separator=:
7688       hardcode_direct=yes
7689
7690       # hardcode_minus_L: Not really in the search PATH,
7691       # but as the default location of the library.
7692       hardcode_minus_L=yes
7693       export_dynamic_flag_spec='${wl}-E'
7694       ;;
7695
7696     hpux10*)
7697       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7698         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7699       else
7700         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7701       fi
7702       if test "$with_gnu_ld" = no; then
7703         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7704         hardcode_libdir_flag_spec_ld='+b $libdir'
7705         hardcode_libdir_separator=:
7706         hardcode_direct=yes
7707         hardcode_direct_absolute=yes
7708         export_dynamic_flag_spec='${wl}-E'
7709         # hardcode_minus_L: Not really in the search PATH,
7710         # but as the default location of the library.
7711         hardcode_minus_L=yes
7712       fi
7713       ;;
7714
7715     hpux11*)
7716       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7717         case $host_cpu in
7718         hppa*64*)
7719           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7720           ;;
7721         ia64*)
7722           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7723           ;;
7724         *)
7725           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7726           ;;
7727         esac
7728       else
7729         case $host_cpu in
7730         hppa*64*)
7731           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7732           ;;
7733         ia64*)
7734           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7735           ;;
7736         *)
7737           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7738           ;;
7739         esac
7740       fi
7741       if test "$with_gnu_ld" = no; then
7742         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7743         hardcode_libdir_separator=:
7744
7745         case $host_cpu in
7746         hppa*64*|ia64*)
7747           hardcode_direct=no
7748           hardcode_shlibpath_var=no
7749           ;;
7750         *)
7751           hardcode_direct=yes
7752           hardcode_direct_absolute=yes
7753           export_dynamic_flag_spec='${wl}-E'
7754
7755           # hardcode_minus_L: Not really in the search PATH,
7756           # but as the default location of the library.
7757           hardcode_minus_L=yes
7758           ;;
7759         esac
7760       fi
7761       ;;
7762
7763     irix5* | irix6* | nonstopux*)
7764       if test "$GCC" = yes; then
7765         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'
7766         # Try to use the -exported_symbol ld option, if it does not
7767         # work, assume that -exports_file does not work either and
7768         # implicitly export all symbols.
7769         save_LDFLAGS="$LDFLAGS"
7770         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7771         cat >conftest.$ac_ext <<_ACEOF
7772 int foo(void) {}
7773 _ACEOF
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776   (eval $ac_link) 2>conftest.er1
7777   ac_status=$?
7778   grep -v '^ *+' conftest.er1 >conftest.err
7779   rm -f conftest.er1
7780   cat conftest.err >&5
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); } &&
7783          { ac_try='test -z "$ac_c_werror_flag"
7784                          || test ! -s conftest.err'
7785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786   (eval $ac_try) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; } &&
7790          { ac_try='test -s conftest$ac_exeext'
7791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792   (eval $ac_try) 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); }; }; then
7796   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'
7797
7798 else
7799   echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7801
7802 fi
7803 rm -f conftest.err conftest.$ac_objext \
7804       conftest$ac_exeext conftest.$ac_ext
7805         LDFLAGS="$save_LDFLAGS"
7806       else
7807         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'
7808         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'
7809       fi
7810       archive_cmds_need_lc='no'
7811       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7812       hardcode_libdir_separator=:
7813       inherit_rpath=yes
7814       link_all_deplibs=yes
7815       ;;
7816
7817     netbsd*)
7818       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7819         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7820       else
7821         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7822       fi
7823       hardcode_libdir_flag_spec='-R$libdir'
7824       hardcode_direct=yes
7825       hardcode_shlibpath_var=no
7826       ;;
7827
7828     newsos6)
7829       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830       hardcode_direct=yes
7831       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7832       hardcode_libdir_separator=:
7833       hardcode_shlibpath_var=no
7834       ;;
7835
7836     *nto* | *qnx*)
7837       ;;
7838
7839     openbsd*)
7840       hardcode_direct=yes
7841       hardcode_shlibpath_var=no
7842       hardcode_direct_absolute=yes
7843       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7844         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7845         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7846         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7847         export_dynamic_flag_spec='${wl}-E'
7848       else
7849         case $host_os in
7850         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7851           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7852           hardcode_libdir_flag_spec='-R$libdir'
7853           ;;
7854         *)
7855           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7856           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7857           ;;
7858         esac
7859       fi
7860       ;;
7861
7862     os2*)
7863       hardcode_libdir_flag_spec='-L$libdir'
7864       hardcode_minus_L=yes
7865       allow_undefined_flag=unsupported
7866       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'
7867       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7868       ;;
7869
7870     osf3*)
7871       if test "$GCC" = yes; then
7872         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7873         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'
7874       else
7875         allow_undefined_flag=' -expect_unresolved \*'
7876         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'
7877       fi
7878       archive_cmds_need_lc='no'
7879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7880       hardcode_libdir_separator=:
7881       ;;
7882
7883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7884       if test "$GCC" = yes; then
7885         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7886         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'
7887         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7888       else
7889         allow_undefined_flag=' -expect_unresolved \*'
7890         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'
7891         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~
7892         $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'
7893
7894         # Both c and cxx compiler support -rpath directly
7895         hardcode_libdir_flag_spec='-rpath $libdir'
7896       fi
7897       archive_cmds_need_lc='no'
7898       hardcode_libdir_separator=:
7899       ;;
7900
7901     solaris*)
7902       no_undefined_flag=' -z defs'
7903       if test "$GCC" = yes; then
7904         wlarc='${wl}'
7905         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7906         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7907           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7908       else
7909         case `$CC -V 2>&1` in
7910         *"Compilers 5.0"*)
7911           wlarc=''
7912           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7913           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7914           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7915           ;;
7916         *)
7917           wlarc='${wl}'
7918           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7919           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7920           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7921           ;;
7922         esac
7923       fi
7924       hardcode_libdir_flag_spec='-R$libdir'
7925       hardcode_shlibpath_var=no
7926       case $host_os in
7927       solaris2.[0-5] | solaris2.[0-5].*) ;;
7928       *)
7929         # The compiler driver will combine and reorder linker options,
7930         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7931         # but is careful enough not to reorder.
7932         # Supported since Solaris 2.6 (maybe 2.5.1?)
7933         if test "$GCC" = yes; then
7934           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7935         else
7936           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7937         fi
7938         ;;
7939       esac
7940       link_all_deplibs=yes
7941       ;;
7942
7943     sunos4*)
7944       if test "x$host_vendor" = xsequent; then
7945         # Use $CC to link under sequent, because it throws in some extra .o
7946         # files that make .init and .fini sections work.
7947         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7948       else
7949         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7950       fi
7951       hardcode_libdir_flag_spec='-L$libdir'
7952       hardcode_direct=yes
7953       hardcode_minus_L=yes
7954       hardcode_shlibpath_var=no
7955       ;;
7956
7957     sysv4)
7958       case $host_vendor in
7959         sni)
7960           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7961           hardcode_direct=yes # is this really true???
7962         ;;
7963         siemens)
7964           ## LD is ld it makes a PLAMLIB
7965           ## CC just makes a GrossModule.
7966           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7967           reload_cmds='$CC -r -o $output$reload_objs'
7968           hardcode_direct=no
7969         ;;
7970         motorola)
7971           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7972           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7973         ;;
7974       esac
7975       runpath_var='LD_RUN_PATH'
7976       hardcode_shlibpath_var=no
7977       ;;
7978
7979     sysv4.3*)
7980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981       hardcode_shlibpath_var=no
7982       export_dynamic_flag_spec='-Bexport'
7983       ;;
7984
7985     sysv4*MP*)
7986       if test -d /usr/nec; then
7987         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7988         hardcode_shlibpath_var=no
7989         runpath_var=LD_RUN_PATH
7990         hardcode_runpath_var=yes
7991         ld_shlibs=yes
7992       fi
7993       ;;
7994
7995     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7996       no_undefined_flag='${wl}-z,text'
7997       archive_cmds_need_lc=no
7998       hardcode_shlibpath_var=no
7999       runpath_var='LD_RUN_PATH'
8000
8001       if test "$GCC" = yes; then
8002         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8003         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8004       else
8005         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8006         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8007       fi
8008       ;;
8009
8010     sysv5* | sco3.2v5* | sco5v6*)
8011       # Note: We can NOT use -z defs as we might desire, because we do not
8012       # link with -lc, and that would cause any symbols used from libc to
8013       # always be unresolved, which means just about no library would
8014       # ever link correctly.  If we're not using GNU ld we use -z text
8015       # though, which does catch some bad symbols but isn't as heavy-handed
8016       # as -z defs.
8017       no_undefined_flag='${wl}-z,text'
8018       allow_undefined_flag='${wl}-z,nodefs'
8019       archive_cmds_need_lc=no
8020       hardcode_shlibpath_var=no
8021       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8022       hardcode_libdir_separator=':'
8023       link_all_deplibs=yes
8024       export_dynamic_flag_spec='${wl}-Bexport'
8025       runpath_var='LD_RUN_PATH'
8026
8027       if test "$GCC" = yes; then
8028         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8029         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8030       else
8031         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8032         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8033       fi
8034       ;;
8035
8036     uts4*)
8037       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8038       hardcode_libdir_flag_spec='-L$libdir'
8039       hardcode_shlibpath_var=no
8040       ;;
8041
8042     *)
8043       ld_shlibs=no
8044       ;;
8045     esac
8046
8047     if test x$host_vendor = xsni; then
8048       case $host in
8049       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8050         export_dynamic_flag_spec='${wl}-Blargedynsym'
8051         ;;
8052       esac
8053     fi
8054   fi
8055
8056 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8057 echo "${ECHO_T}$ld_shlibs" >&6
8058 test "$ld_shlibs" = no && can_build_shared=no
8059
8060 with_gnu_ld=$with_gnu_ld
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076 #
8077 # Do we need to explicitly link libc?
8078 #
8079 case "x$archive_cmds_need_lc" in
8080 x|xyes)
8081   # Assume -lc should be added
8082   archive_cmds_need_lc=yes
8083
8084   if test "$enable_shared" = yes && test "$GCC" = yes; then
8085     case $archive_cmds in
8086     *'~'*)
8087       # FIXME: we may have to deal with multi-command sequences.
8088       ;;
8089     '$CC '*)
8090       # Test whether the compiler implicitly links with -lc since on some
8091       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8092       # to ld, don't add -lc before -lgcc.
8093       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8095       $RM conftest*
8096       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097
8098       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099   (eval $ac_compile) 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } 2>conftest.err; then
8103         soname=conftest
8104         lib=conftest
8105         libobjs=conftest.$ac_objext
8106         deplibs=
8107         wl=$lt_prog_compiler_wl
8108         pic_flag=$lt_prog_compiler_pic
8109         compiler_flags=-v
8110         linker_flags=-v
8111         verstring=
8112         output_objdir=.
8113         libname=conftest
8114         lt_save_allow_undefined_flag=$allow_undefined_flag
8115         allow_undefined_flag=
8116         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8117   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }
8121         then
8122           archive_cmds_need_lc=no
8123         else
8124           archive_cmds_need_lc=yes
8125         fi
8126         allow_undefined_flag=$lt_save_allow_undefined_flag
8127       else
8128         cat conftest.err 1>&5
8129       fi
8130       $RM conftest*
8131       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8132 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8133       ;;
8134     esac
8135   fi
8136   ;;
8137 esac
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8297 withGCC=$GCC
8298 if test "$withGCC" = yes; then
8299   case $host_os in
8300     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8301     *) lt_awk_arg="/^libraries:/" ;;
8302   esac
8303   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8304   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8305     # if the path contains ";" then we assume it to be the separator
8306     # otherwise default to the standard path separator (i.e. ":") - it is
8307     # assumed that no part of a normal pathname contains ";" but that should
8308     # okay in the real world where ";" in dirpaths is itself problematic.
8309     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8310   else
8311     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8312   fi
8313   # Ok, now we have the path, separated by spaces, we can step through it
8314   # and add multilib dir if necessary.
8315   lt_tmp_lt_search_path_spec=
8316   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8317   for lt_sys_path in $lt_search_path_spec; do
8318     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8319       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8320     else
8321       test -d "$lt_sys_path" && \
8322         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8323     fi
8324   done
8325   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8326 BEGIN {RS=" "; FS="/|\n";} {
8327   lt_foo="";
8328   lt_count=0;
8329   for (lt_i = NF; lt_i > 0; lt_i--) {
8330     if ($lt_i != "" && $lt_i != ".") {
8331       if ($lt_i == "..") {
8332         lt_count++;
8333       } else {
8334         if (lt_count == 0) {
8335           lt_foo="/" $lt_i lt_foo;
8336         } else {
8337           lt_count--;
8338         }
8339       }
8340     }
8341   }
8342   if (lt_foo != "") { lt_freq[lt_foo]++; }
8343   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8344 }'`
8345   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8346 else
8347   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8348 fi
8349 library_names_spec=
8350 libname_spec='lib$name'
8351 soname_spec=
8352 shrext_cmds=".so"
8353 postinstall_cmds=
8354 postuninstall_cmds=
8355 finish_cmds=
8356 finish_eval=
8357 shlibpath_var=
8358 shlibpath_overrides_runpath=unknown
8359 version_type=none
8360 dynamic_linker="$host_os ld.so"
8361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8362 need_lib_prefix=unknown
8363 hardcode_into_libs=no
8364
8365 # when you set need_version to no, make sure it does not cause -set_version
8366 # flags to be left without arguments
8367 need_version=unknown
8368
8369 case $host_os in
8370 aix3*)
8371   version_type=linux
8372   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8373   shlibpath_var=LIBPATH
8374
8375   # AIX 3 has no versioning support, so we append a major version to the name.
8376   soname_spec='${libname}${release}${shared_ext}$major'
8377   ;;
8378
8379 aix[4-9]*)
8380   version_type=linux
8381   need_lib_prefix=no
8382   need_version=no
8383   hardcode_into_libs=yes
8384   if test "$host_cpu" = ia64; then
8385     # AIX 5 supports IA64
8386     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8387     shlibpath_var=LD_LIBRARY_PATH
8388   else
8389     # With GCC up to 2.95.x, collect2 would create an import file
8390     # for dependence libraries.  The import file would start with
8391     # the line `#! .'.  This would cause the generated library to
8392     # depend on `.', always an invalid library.  This was fixed in
8393     # development snapshots of GCC prior to 3.0.
8394     case $host_os in
8395       aix4 | aix4.[01] | aix4.[01].*)
8396       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8397            echo ' yes '
8398            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8399         :
8400       else
8401         can_build_shared=no
8402       fi
8403       ;;
8404     esac
8405     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8406     # soname into executable. Probably we can add versioning support to
8407     # collect2, so additional links can be useful in future.
8408     if test "$aix_use_runtimelinking" = yes; then
8409       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8410       # instead of lib<name>.a to let people know that these are not
8411       # typical AIX shared libraries.
8412       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8413     else
8414       # We preserve .a as extension for shared libraries through AIX4.2
8415       # and later when we are not doing run time linking.
8416       library_names_spec='${libname}${release}.a $libname.a'
8417       soname_spec='${libname}${release}${shared_ext}$major'
8418     fi
8419     shlibpath_var=LIBPATH
8420   fi
8421   ;;
8422
8423 amigaos*)
8424   if test "$host_cpu" = m68k; then
8425     library_names_spec='$libname.ixlibrary $libname.a'
8426     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8427     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'
8428   else
8429     dynamic_linker=no
8430   fi
8431   ;;
8432
8433 beos*)
8434   library_names_spec='${libname}${shared_ext}'
8435   dynamic_linker="$host_os ld.so"
8436   shlibpath_var=LIBRARY_PATH
8437   ;;
8438
8439 bsdi[45]*)
8440   version_type=linux
8441   need_version=no
8442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8443   soname_spec='${libname}${release}${shared_ext}$major'
8444   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8445   shlibpath_var=LD_LIBRARY_PATH
8446   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8447   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8448   # the default ld.so.conf also contains /usr/contrib/lib and
8449   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8450   # libtool to hard-code these into programs
8451   ;;
8452
8453 cygwin* | mingw* | pw32*)
8454   version_type=windows
8455   shrext_cmds=".dll"
8456   need_version=no
8457   need_lib_prefix=no
8458
8459   case $withGCC,$host_os in
8460   yes,cygwin* | yes,mingw* | yes,pw32*)
8461     library_names_spec='$libname.dll.a'
8462     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8463     postinstall_cmds='base_file=`basename \${file}`~
8464       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8465       dldir=$destdir/`dirname \$dlpath`~
8466       test -d \$dldir || mkdir -p \$dldir~
8467       $install_prog $dir/$dlname \$dldir/$dlname~
8468       chmod a+x \$dldir/$dlname~
8469       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8470         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8471       fi'
8472     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8473       dlpath=$dir/\$dldll~
8474        $RM \$dlpath'
8475     shlibpath_overrides_runpath=yes
8476
8477     case $host_os in
8478     cygwin*)
8479       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8480       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8481       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8482       ;;
8483     mingw*)
8484       # MinGW DLLs use traditional 'lib' prefix
8485       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8486       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8487       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8488         # It is most probably a Windows format PATH printed by
8489         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8490         # path with ; separators, and with drive letters. We can handle the
8491         # drive letters (cygwin fileutils understands them), so leave them,
8492         # especially as we might pass files found there to a mingw objdump,
8493         # which wouldn't understand a cygwinified path. Ahh.
8494         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8495       else
8496         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8497       fi
8498       ;;
8499     pw32*)
8500       # pw32 DLLs use 'pw' prefix rather than 'lib'
8501       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8502       ;;
8503     esac
8504     ;;
8505
8506   *)
8507     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8508     ;;
8509   esac
8510   dynamic_linker='Win32 ld.exe'
8511   # FIXME: first we should search . and the directory the executable is in
8512   shlibpath_var=PATH
8513   ;;
8514
8515 darwin* | rhapsody*)
8516   dynamic_linker="$host_os dyld"
8517   version_type=darwin
8518   need_lib_prefix=no
8519   need_version=no
8520   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8521   soname_spec='${libname}${release}${major}$shared_ext'
8522   shlibpath_overrides_runpath=yes
8523   shlibpath_var=DYLD_LIBRARY_PATH
8524   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8525
8526   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8527   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8528   ;;
8529
8530 dgux*)
8531   version_type=linux
8532   need_lib_prefix=no
8533   need_version=no
8534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8535   soname_spec='${libname}${release}${shared_ext}$major'
8536   shlibpath_var=LD_LIBRARY_PATH
8537   ;;
8538
8539 freebsd1*)
8540   dynamic_linker=no
8541   ;;
8542
8543 freebsd* | dragonfly*)
8544   # DragonFly does not have aout.  When/if they implement a new
8545   # versioning mechanism, adjust this.
8546   if test -x /usr/bin/objformat; then
8547     objformat=`/usr/bin/objformat`
8548   else
8549     case $host_os in
8550     freebsd[123]*) objformat=aout ;;
8551     *) objformat=elf ;;
8552     esac
8553   fi
8554   version_type=freebsd-$objformat
8555   case $version_type in
8556     freebsd-elf*)
8557       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8558       need_version=no
8559       need_lib_prefix=no
8560       ;;
8561     freebsd-*)
8562       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8563       need_version=yes
8564       ;;
8565   esac
8566   shlibpath_var=LD_LIBRARY_PATH
8567   case $host_os in
8568   freebsd2*)
8569     shlibpath_overrides_runpath=yes
8570     ;;
8571   freebsd3.[01]* | freebsdelf3.[01]*)
8572     shlibpath_overrides_runpath=yes
8573     hardcode_into_libs=yes
8574     ;;
8575   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8576   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8577     shlibpath_overrides_runpath=no
8578     hardcode_into_libs=yes
8579     ;;
8580   *) # from 4.6 on, and DragonFly
8581     shlibpath_overrides_runpath=yes
8582     hardcode_into_libs=yes
8583     ;;
8584   esac
8585   ;;
8586
8587 gnu*)
8588   version_type=linux
8589   need_lib_prefix=no
8590   need_version=no
8591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8592   soname_spec='${libname}${release}${shared_ext}$major'
8593   shlibpath_var=LD_LIBRARY_PATH
8594   hardcode_into_libs=yes
8595   ;;
8596
8597 hpux9* | hpux10* | hpux11*)
8598   # Give a soname corresponding to the major version so that dld.sl refuses to
8599   # link against other versions.
8600   version_type=sunos
8601   need_lib_prefix=no
8602   need_version=no
8603   case $host_cpu in
8604   ia64*)
8605     shrext_cmds='.so'
8606     hardcode_into_libs=yes
8607     dynamic_linker="$host_os dld.so"
8608     shlibpath_var=LD_LIBRARY_PATH
8609     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611     soname_spec='${libname}${release}${shared_ext}$major'
8612     if test "X$HPUX_IA64_MODE" = X32; then
8613       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8614     else
8615       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8616     fi
8617     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8618     ;;
8619   hppa*64*)
8620     shrext_cmds='.sl'
8621     hardcode_into_libs=yes
8622     dynamic_linker="$host_os dld.sl"
8623     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8624     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8626     soname_spec='${libname}${release}${shared_ext}$major'
8627     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8628     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8629     ;;
8630   *)
8631     shrext_cmds='.sl'
8632     dynamic_linker="$host_os dld.sl"
8633     shlibpath_var=SHLIB_PATH
8634     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636     soname_spec='${libname}${release}${shared_ext}$major'
8637     ;;
8638   esac
8639   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8640   postinstall_cmds='chmod 555 $lib'
8641   ;;
8642
8643 interix[3-9]*)
8644   version_type=linux
8645   need_lib_prefix=no
8646   need_version=no
8647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8648   soname_spec='${libname}${release}${shared_ext}$major'
8649   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8650   shlibpath_var=LD_LIBRARY_PATH
8651   shlibpath_overrides_runpath=no
8652   hardcode_into_libs=yes
8653   ;;
8654
8655 irix5* | irix6* | nonstopux*)
8656   case $host_os in
8657     nonstopux*) version_type=nonstopux ;;
8658     *)
8659         if test "$lt_cv_prog_gnu_ld" = yes; then
8660                 version_type=linux
8661         else
8662                 version_type=irix
8663         fi ;;
8664   esac
8665   need_lib_prefix=no
8666   need_version=no
8667   soname_spec='${libname}${release}${shared_ext}$major'
8668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8669   case $host_os in
8670   irix5* | nonstopux*)
8671     libsuff= shlibsuff=
8672     ;;
8673   *)
8674     case $LD in # libtool.m4 will add one of these switches to LD
8675     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8676       libsuff= shlibsuff= libmagic=32-bit;;
8677     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8678       libsuff=32 shlibsuff=N32 libmagic=N32;;
8679     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8680       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8681     *) libsuff= shlibsuff= libmagic=never-match;;
8682     esac
8683     ;;
8684   esac
8685   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8686   shlibpath_overrides_runpath=no
8687   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8688   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8689   hardcode_into_libs=yes
8690   ;;
8691
8692 # No shared lib support for Linux oldld, aout, or coff.
8693 linux*oldld* | linux*aout* | linux*coff*)
8694   dynamic_linker=no
8695   ;;
8696
8697 # This must be Linux ELF.
8698 linux* | k*bsd*-gnu)
8699   version_type=linux
8700   need_lib_prefix=no
8701   need_version=no
8702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703   soname_spec='${libname}${release}${shared_ext}$major'
8704   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8705   shlibpath_var=LD_LIBRARY_PATH
8706   shlibpath_overrides_runpath=no
8707   # Some binutils ld are patched to set DT_RUNPATH
8708   save_LDFLAGS=$LDFLAGS
8709   save_libdir=$libdir
8710   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8711        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8712   cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h.  */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h.  */
8718
8719 int
8720 main ()
8721 {
8722
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729   (eval $ac_link) 2>conftest.er1
8730   ac_status=$?
8731   grep -v '^ *+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } &&
8736          { ac_try='test -z "$ac_c_werror_flag"
8737                          || test ! -s conftest.err'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; } &&
8743          { ac_try='test -s conftest$ac_exeext'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; }; then
8749   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8750   shlibpath_overrides_runpath=yes
8751 fi
8752
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757 fi
8758 rm -f conftest.err conftest.$ac_objext \
8759       conftest$ac_exeext conftest.$ac_ext
8760   LDFLAGS=$save_LDFLAGS
8761   libdir=$save_libdir
8762
8763   # This implies no fast_install, which is unacceptable.
8764   # Some rework will be needed to allow for fast_install
8765   # before this can be enabled.
8766   hardcode_into_libs=yes
8767
8768   # Append ld.so.conf contents to the search path
8769   if test -f /etc/ld.so.conf; then
8770     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8771     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8772   fi
8773
8774   # We used to test for /lib/ld.so.1 and disable shared libraries on
8775   # powerpc, because MkLinux only supported shared libraries with the
8776   # GNU dynamic linker.  Since this was broken with cross compilers,
8777   # most powerpc-linux boxes support dynamic linking these days and
8778   # people can always --disable-shared, the test was removed, and we
8779   # assume the GNU/Linux dynamic linker is in use.
8780   dynamic_linker='GNU/Linux ld.so'
8781   ;;
8782
8783 netbsd*)
8784   version_type=sunos
8785   need_lib_prefix=no
8786   need_version=no
8787   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8789     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8790     dynamic_linker='NetBSD (a.out) ld.so'
8791   else
8792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8793     soname_spec='${libname}${release}${shared_ext}$major'
8794     dynamic_linker='NetBSD ld.elf_so'
8795   fi
8796   shlibpath_var=LD_LIBRARY_PATH
8797   shlibpath_overrides_runpath=yes
8798   hardcode_into_libs=yes
8799   ;;
8800
8801 newsos6)
8802   version_type=linux
8803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804   shlibpath_var=LD_LIBRARY_PATH
8805   shlibpath_overrides_runpath=yes
8806   ;;
8807
8808 *nto* | *qnx*)
8809   version_type=qnx
8810   need_lib_prefix=no
8811   need_version=no
8812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813   soname_spec='${libname}${release}${shared_ext}$major'
8814   shlibpath_var=LD_LIBRARY_PATH
8815   shlibpath_overrides_runpath=no
8816   hardcode_into_libs=yes
8817   dynamic_linker='ldqnx.so'
8818   ;;
8819
8820 openbsd*)
8821   version_type=sunos
8822   sys_lib_dlsearch_path_spec="/usr/lib"
8823   need_lib_prefix=no
8824   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8825   case $host_os in
8826     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8827     *)                          need_version=no  ;;
8828   esac
8829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8830   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8831   shlibpath_var=LD_LIBRARY_PATH
8832   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8833     case $host_os in
8834       openbsd2.[89] | openbsd2.[89].*)
8835         shlibpath_overrides_runpath=no
8836         ;;
8837       *)
8838         shlibpath_overrides_runpath=yes
8839         ;;
8840       esac
8841   else
8842     shlibpath_overrides_runpath=yes
8843   fi
8844   ;;
8845
8846 os2*)
8847   libname_spec='$name'
8848   shrext_cmds=".dll"
8849   need_lib_prefix=no
8850   library_names_spec='$libname${shared_ext} $libname.a'
8851   dynamic_linker='OS/2 ld.exe'
8852   shlibpath_var=LIBPATH
8853   ;;
8854
8855 osf3* | osf4* | osf5*)
8856   version_type=osf
8857   need_lib_prefix=no
8858   need_version=no
8859   soname_spec='${libname}${release}${shared_ext}$major'
8860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861   shlibpath_var=LD_LIBRARY_PATH
8862   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8863   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8864   ;;
8865
8866 rdos*)
8867   dynamic_linker=no
8868   ;;
8869
8870 solaris*)
8871   version_type=linux
8872   need_lib_prefix=no
8873   need_version=no
8874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875   soname_spec='${libname}${release}${shared_ext}$major'
8876   shlibpath_var=LD_LIBRARY_PATH
8877   shlibpath_overrides_runpath=yes
8878   hardcode_into_libs=yes
8879   # ldd complains unless libraries are executable
8880   postinstall_cmds='chmod +x $lib'
8881   ;;
8882
8883 sunos4*)
8884   version_type=sunos
8885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8886   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8887   shlibpath_var=LD_LIBRARY_PATH
8888   shlibpath_overrides_runpath=yes
8889   if test "$with_gnu_ld" = yes; then
8890     need_lib_prefix=no
8891   fi
8892   need_version=yes
8893   ;;
8894
8895 sysv4 | sysv4.3*)
8896   version_type=linux
8897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898   soname_spec='${libname}${release}${shared_ext}$major'
8899   shlibpath_var=LD_LIBRARY_PATH
8900   case $host_vendor in
8901     sni)
8902       shlibpath_overrides_runpath=no
8903       need_lib_prefix=no
8904       runpath_var=LD_RUN_PATH
8905       ;;
8906     siemens)
8907       need_lib_prefix=no
8908       ;;
8909     motorola)
8910       need_lib_prefix=no
8911       need_version=no
8912       shlibpath_overrides_runpath=no
8913       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8914       ;;
8915   esac
8916   ;;
8917
8918 sysv4*MP*)
8919   if test -d /usr/nec ;then
8920     version_type=linux
8921     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8922     soname_spec='$libname${shared_ext}.$major'
8923     shlibpath_var=LD_LIBRARY_PATH
8924   fi
8925   ;;
8926
8927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8928   version_type=freebsd-elf
8929   need_lib_prefix=no
8930   need_version=no
8931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8932   soname_spec='${libname}${release}${shared_ext}$major'
8933   shlibpath_var=LD_LIBRARY_PATH
8934   shlibpath_overrides_runpath=yes
8935   hardcode_into_libs=yes
8936   if test "$with_gnu_ld" = yes; then
8937     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8938   else
8939     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8940     case $host_os in
8941       sco3.2v5*)
8942         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8943         ;;
8944     esac
8945   fi
8946   sys_lib_dlsearch_path_spec='/usr/lib'
8947   ;;
8948
8949 tpf*)
8950   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8951   version_type=linux
8952   need_lib_prefix=no
8953   need_version=no
8954   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955   shlibpath_var=LD_LIBRARY_PATH
8956   shlibpath_overrides_runpath=no
8957   hardcode_into_libs=yes
8958   ;;
8959
8960 uts4*)
8961   version_type=linux
8962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963   soname_spec='${libname}${release}${shared_ext}$major'
8964   shlibpath_var=LD_LIBRARY_PATH
8965   ;;
8966
8967 *)
8968   dynamic_linker=no
8969   ;;
8970 esac
8971 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8972 echo "${ECHO_T}$dynamic_linker" >&6
8973 test "$dynamic_linker" = no && can_build_shared=no
8974
8975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8976 if test "$GCC" = yes; then
8977   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9068 hardcode_action=
9069 if test -n "$hardcode_libdir_flag_spec" ||
9070    test -n "$runpath_var" ||
9071    test "X$hardcode_automatic" = "Xyes" ; then
9072
9073   # We can hardcode non-existent directories.
9074   if test "$hardcode_direct" != no &&
9075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9076      # have to relink, otherwise we might link with an installed library
9077      # when we should be linking with a yet-to-be-installed one
9078      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9079      test "$hardcode_minus_L" != no; then
9080     # Linking always hardcodes the temporary library directory.
9081     hardcode_action=relink
9082   else
9083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9084     hardcode_action=immediate
9085   fi
9086 else
9087   # We cannot hardcode anything, or else we can only hardcode existing
9088   # directories.
9089   hardcode_action=unsupported
9090 fi
9091 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9092 echo "${ECHO_T}$hardcode_action" >&6
9093
9094 if test "$hardcode_action" = relink ||
9095    test "$inherit_rpath" = yes; then
9096   # Fast installation is not supported
9097   enable_fast_install=no
9098 elif test "$shlibpath_overrides_runpath" = yes ||
9099      test "$enable_shared" = no; then
9100   # Fast installation is not necessary
9101   enable_fast_install=needless
9102 fi
9103
9104
9105
9106
9107
9108
9109   if test "x$enable_dlopen" != xyes; then
9110   enable_dlopen=unknown
9111   enable_dlopen_self=unknown
9112   enable_dlopen_self_static=unknown
9113 else
9114   lt_cv_dlopen=no
9115   lt_cv_dlopen_libs=
9116
9117   case $host_os in
9118   beos*)
9119     lt_cv_dlopen="load_add_on"
9120     lt_cv_dlopen_libs=
9121     lt_cv_dlopen_self=yes
9122     ;;
9123
9124   mingw* | pw32*)
9125     lt_cv_dlopen="LoadLibrary"
9126     lt_cv_dlopen_libs=
9127     ;;
9128
9129   cygwin*)
9130     lt_cv_dlopen="dlopen"
9131     lt_cv_dlopen_libs=
9132     ;;
9133
9134   darwin*)
9135   # if libdl is installed we need to link against it
9136     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9137 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9139   echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141   ac_check_lib_save_LIBS=$LIBS
9142 LIBS="-ldl  $LIBS"
9143 cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h.  */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h.  */
9149
9150 /* Override any gcc2 internal prototype to avoid an error.  */
9151 #ifdef __cplusplus
9152 extern "C"
9153 #endif
9154 /* We use char because int might match the return type of a gcc2
9155    builtin and then its argument prototype would still apply.  */
9156 char dlopen ();
9157 int
9158 main ()
9159 {
9160 dlopen ();
9161   ;
9162   return 0;
9163 }
9164 _ACEOF
9165 rm -f conftest.$ac_objext conftest$ac_exeext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167   (eval $ac_link) 2>conftest.er1
9168   ac_status=$?
9169   grep -v '^ *+' conftest.er1 >conftest.err
9170   rm -f conftest.er1
9171   cat conftest.err >&5
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); } &&
9174          { ac_try='test -z "$ac_c_werror_flag"
9175                          || test ! -s conftest.err'
9176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177   (eval $ac_try) 2>&5
9178   ac_status=$?
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); }; } &&
9181          { ac_try='test -s conftest$ac_exeext'
9182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183   (eval $ac_try) 2>&5
9184   ac_status=$?
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); }; }; then
9187   ac_cv_lib_dl_dlopen=yes
9188 else
9189   echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9191
9192 ac_cv_lib_dl_dlopen=no
9193 fi
9194 rm -f conftest.err conftest.$ac_objext \
9195       conftest$ac_exeext conftest.$ac_ext
9196 LIBS=$ac_check_lib_save_LIBS
9197 fi
9198 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9199 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9200 if test $ac_cv_lib_dl_dlopen = yes; then
9201   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9202 else
9203
9204     lt_cv_dlopen="dyld"
9205     lt_cv_dlopen_libs=
9206     lt_cv_dlopen_self=yes
9207
9208 fi
9209
9210     ;;
9211
9212   *)
9213     echo "$as_me:$LINENO: checking for shl_load" >&5
9214 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9215 if test "${ac_cv_func_shl_load+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9226 #define shl_load innocuous_shl_load
9227
9228 /* System header to define __stub macros and hopefully few prototypes,
9229     which can conflict with char shl_load (); below.
9230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9231     <limits.h> exists even on freestanding compilers.  */
9232
9233 #ifdef __STDC__
9234 # include <limits.h>
9235 #else
9236 # include <assert.h>
9237 #endif
9238
9239 #undef shl_load
9240
9241 /* Override any gcc2 internal prototype to avoid an error.  */
9242 #ifdef __cplusplus
9243 extern "C"
9244 {
9245 #endif
9246 /* We use char because int might match the return type of a gcc2
9247    builtin and then its argument prototype would still apply.  */
9248 char shl_load ();
9249 /* The GNU C library defines this for functions which it implements
9250     to always fail with ENOSYS.  Some functions are actually named
9251     something starting with __ and the normal name is an alias.  */
9252 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9253 choke me
9254 #else
9255 char (*f) () = shl_load;
9256 #endif
9257 #ifdef __cplusplus
9258 }
9259 #endif
9260
9261 int
9262 main ()
9263 {
9264 return f != shl_load;
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271   (eval $ac_link) 2>conftest.er1
9272   ac_status=$?
9273   grep -v '^ *+' conftest.er1 >conftest.err
9274   rm -f conftest.er1
9275   cat conftest.err >&5
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); } &&
9278          { ac_try='test -z "$ac_c_werror_flag"
9279                          || test ! -s conftest.err'
9280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281   (eval $ac_try) 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; } &&
9285          { ac_try='test -s conftest$ac_exeext'
9286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; }; then
9291   ac_cv_func_shl_load=yes
9292 else
9293   echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296 ac_cv_func_shl_load=no
9297 fi
9298 rm -f conftest.err conftest.$ac_objext \
9299       conftest$ac_exeext conftest.$ac_ext
9300 fi
9301 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9302 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9303 if test $ac_cv_func_shl_load = yes; then
9304   lt_cv_dlopen="shl_load"
9305 else
9306   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9307 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9308 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311   ac_check_lib_save_LIBS=$LIBS
9312 LIBS="-ldld  $LIBS"
9313 cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h.  */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h.  */
9319
9320 /* Override any gcc2 internal prototype to avoid an error.  */
9321 #ifdef __cplusplus
9322 extern "C"
9323 #endif
9324 /* We use char because int might match the return type of a gcc2
9325    builtin and then its argument prototype would still apply.  */
9326 char shl_load ();
9327 int
9328 main ()
9329 {
9330 shl_load ();
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9337   (eval $ac_link) 2>conftest.er1
9338   ac_status=$?
9339   grep -v '^ *+' conftest.er1 >conftest.err
9340   rm -f conftest.er1
9341   cat conftest.err >&5
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } &&
9344          { ac_try='test -z "$ac_c_werror_flag"
9345                          || test ! -s conftest.err'
9346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; } &&
9351          { ac_try='test -s conftest$ac_exeext'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357   ac_cv_lib_dld_shl_load=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362 ac_cv_lib_dld_shl_load=no
9363 fi
9364 rm -f conftest.err conftest.$ac_objext \
9365       conftest$ac_exeext conftest.$ac_ext
9366 LIBS=$ac_check_lib_save_LIBS
9367 fi
9368 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9369 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9370 if test $ac_cv_lib_dld_shl_load = yes; then
9371   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9372 else
9373   echo "$as_me:$LINENO: checking for dlopen" >&5
9374 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9375 if test "${ac_cv_func_dlopen+set}" = set; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h.  */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h.  */
9384 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9386 #define dlopen innocuous_dlopen
9387
9388 /* System header to define __stub macros and hopefully few prototypes,
9389     which can conflict with char dlopen (); below.
9390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9391     <limits.h> exists even on freestanding compilers.  */
9392
9393 #ifdef __STDC__
9394 # include <limits.h>
9395 #else
9396 # include <assert.h>
9397 #endif
9398
9399 #undef dlopen
9400
9401 /* Override any gcc2 internal prototype to avoid an error.  */
9402 #ifdef __cplusplus
9403 extern "C"
9404 {
9405 #endif
9406 /* We use char because int might match the return type of a gcc2
9407    builtin and then its argument prototype would still apply.  */
9408 char dlopen ();
9409 /* The GNU C library defines this for functions which it implements
9410     to always fail with ENOSYS.  Some functions are actually named
9411     something starting with __ and the normal name is an alias.  */
9412 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9413 choke me
9414 #else
9415 char (*f) () = dlopen;
9416 #endif
9417 #ifdef __cplusplus
9418 }
9419 #endif
9420
9421 int
9422 main ()
9423 {
9424 return f != dlopen;
9425   ;
9426   return 0;
9427 }
9428 _ACEOF
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431   (eval $ac_link) 2>conftest.er1
9432   ac_status=$?
9433   grep -v '^ *+' conftest.er1 >conftest.err
9434   rm -f conftest.er1
9435   cat conftest.err >&5
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); } &&
9438          { ac_try='test -z "$ac_c_werror_flag"
9439                          || test ! -s conftest.err'
9440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441   (eval $ac_try) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; } &&
9445          { ac_try='test -s conftest$ac_exeext'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; }; then
9451   ac_cv_func_dlopen=yes
9452 else
9453   echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9455
9456 ac_cv_func_dlopen=no
9457 fi
9458 rm -f conftest.err conftest.$ac_objext \
9459       conftest$ac_exeext conftest.$ac_ext
9460 fi
9461 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9462 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9463 if test $ac_cv_func_dlopen = yes; then
9464   lt_cv_dlopen="dlopen"
9465 else
9466   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9467 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9468 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   ac_check_lib_save_LIBS=$LIBS
9472 LIBS="-ldl  $LIBS"
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h.  */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h.  */
9479
9480 /* Override any gcc2 internal prototype to avoid an error.  */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 /* We use char because int might match the return type of a gcc2
9485    builtin and then its argument prototype would still apply.  */
9486 char dlopen ();
9487 int
9488 main ()
9489 {
9490 dlopen ();
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497   (eval $ac_link) 2>conftest.er1
9498   ac_status=$?
9499   grep -v '^ *+' conftest.er1 >conftest.err
9500   rm -f conftest.er1
9501   cat conftest.err >&5
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); } &&
9504          { ac_try='test -z "$ac_c_werror_flag"
9505                          || test ! -s conftest.err'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; } &&
9511          { ac_try='test -s conftest$ac_exeext'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; }; then
9517   ac_cv_lib_dl_dlopen=yes
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 ac_cv_lib_dl_dlopen=no
9523 fi
9524 rm -f conftest.err conftest.$ac_objext \
9525       conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9527 fi
9528 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9529 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9530 if test $ac_cv_lib_dl_dlopen = yes; then
9531   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9532 else
9533   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9534 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9535 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-lsvld  $LIBS"
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546
9547 /* Override any gcc2 internal prototype to avoid an error.  */
9548 #ifdef __cplusplus
9549 extern "C"
9550 #endif
9551 /* We use char because int might match the return type of a gcc2
9552    builtin and then its argument prototype would still apply.  */
9553 char dlopen ();
9554 int
9555 main ()
9556 {
9557 dlopen ();
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564   (eval $ac_link) 2>conftest.er1
9565   ac_status=$?
9566   grep -v '^ *+' conftest.er1 >conftest.err
9567   rm -f conftest.er1
9568   cat conftest.err >&5
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); } &&
9571          { ac_try='test -z "$ac_c_werror_flag"
9572                          || test ! -s conftest.err'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; } &&
9578          { ac_try='test -s conftest$ac_exeext'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_cv_lib_svld_dlopen=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_cv_lib_svld_dlopen=no
9590 fi
9591 rm -f conftest.err conftest.$ac_objext \
9592       conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9594 fi
9595 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9596 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9597 if test $ac_cv_lib_svld_dlopen = yes; then
9598   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9599 else
9600   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9601 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9602 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-ldld  $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h.  */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h.  */
9613
9614 /* Override any gcc2 internal prototype to avoid an error.  */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 /* We use char because int might match the return type of a gcc2
9619    builtin and then its argument prototype would still apply.  */
9620 char dld_link ();
9621 int
9622 main ()
9623 {
9624 dld_link ();
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631   (eval $ac_link) 2>conftest.er1
9632   ac_status=$?
9633   grep -v '^ *+' conftest.er1 >conftest.err
9634   rm -f conftest.er1
9635   cat conftest.err >&5
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); } &&
9638          { ac_try='test -z "$ac_c_werror_flag"
9639                          || test ! -s conftest.err'
9640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641   (eval $ac_try) 2>&5
9642   ac_status=$?
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); }; } &&
9645          { ac_try='test -s conftest$ac_exeext'
9646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647   (eval $ac_try) 2>&5
9648   ac_status=$?
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); }; }; then
9651   ac_cv_lib_dld_dld_link=yes
9652 else
9653   echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656 ac_cv_lib_dld_dld_link=no
9657 fi
9658 rm -f conftest.err conftest.$ac_objext \
9659       conftest$ac_exeext conftest.$ac_ext
9660 LIBS=$ac_check_lib_save_LIBS
9661 fi
9662 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9663 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9664 if test $ac_cv_lib_dld_dld_link = yes; then
9665   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9666 fi
9667
9668
9669 fi
9670
9671
9672 fi
9673
9674
9675 fi
9676
9677
9678 fi
9679
9680
9681 fi
9682
9683     ;;
9684   esac
9685
9686   if test "x$lt_cv_dlopen" != xno; then
9687     enable_dlopen=yes
9688   else
9689     enable_dlopen=no
9690   fi
9691
9692   case $lt_cv_dlopen in
9693   dlopen)
9694     save_CPPFLAGS="$CPPFLAGS"
9695     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9696
9697     save_LDFLAGS="$LDFLAGS"
9698     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9699
9700     save_LIBS="$LIBS"
9701     LIBS="$lt_cv_dlopen_libs $LIBS"
9702
9703     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9704 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9705 if test "${lt_cv_dlopen_self+set}" = set; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708           if test "$cross_compiling" = yes; then :
9709   lt_cv_dlopen_self=cross
9710 else
9711   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9712   lt_status=$lt_dlunknown
9713   cat > conftest.$ac_ext <<_LT_EOF
9714 #line 9714 "configure"
9715 #include "confdefs.h"
9716
9717 #if HAVE_DLFCN_H
9718 #include <dlfcn.h>
9719 #endif
9720
9721 #include <stdio.h>
9722
9723 #ifdef RTLD_GLOBAL
9724 #  define LT_DLGLOBAL           RTLD_GLOBAL
9725 #else
9726 #  ifdef DL_GLOBAL
9727 #    define LT_DLGLOBAL         DL_GLOBAL
9728 #  else
9729 #    define LT_DLGLOBAL         0
9730 #  endif
9731 #endif
9732
9733 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9734    find out it does not work in some platform. */
9735 #ifndef LT_DLLAZY_OR_NOW
9736 #  ifdef RTLD_LAZY
9737 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9738 #  else
9739 #    ifdef DL_LAZY
9740 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9741 #    else
9742 #      ifdef RTLD_NOW
9743 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9744 #      else
9745 #        ifdef DL_NOW
9746 #          define LT_DLLAZY_OR_NOW      DL_NOW
9747 #        else
9748 #          define LT_DLLAZY_OR_NOW      0
9749 #        endif
9750 #      endif
9751 #    endif
9752 #  endif
9753 #endif
9754
9755 #ifdef __cplusplus
9756 extern "C" void exit (int);
9757 #endif
9758
9759 void fnord() { int i=42;}
9760 int main ()
9761 {
9762   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9763   int status = $lt_dlunknown;
9764
9765   if (self)
9766     {
9767       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9768       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9769       /* dlclose (self); */
9770     }
9771   else
9772     puts (dlerror ());
9773
9774     exit (status);
9775 }
9776 _LT_EOF
9777   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778   (eval $ac_link) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9782     (./conftest; exit; ) >&5 2>/dev/null
9783     lt_status=$?
9784     case x$lt_status in
9785       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9786       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9787       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9788     esac
9789   else :
9790     # compilation failed
9791     lt_cv_dlopen_self=no
9792   fi
9793 fi
9794 rm -fr conftest*
9795
9796
9797 fi
9798 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9799 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9800
9801     if test "x$lt_cv_dlopen_self" = xyes; then
9802       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9803       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9804 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9805 if test "${lt_cv_dlopen_self_static+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808           if test "$cross_compiling" = yes; then :
9809   lt_cv_dlopen_self_static=cross
9810 else
9811   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9812   lt_status=$lt_dlunknown
9813   cat > conftest.$ac_ext <<_LT_EOF
9814 #line 9814 "configure"
9815 #include "confdefs.h"
9816
9817 #if HAVE_DLFCN_H
9818 #include <dlfcn.h>
9819 #endif
9820
9821 #include <stdio.h>
9822
9823 #ifdef RTLD_GLOBAL
9824 #  define LT_DLGLOBAL           RTLD_GLOBAL
9825 #else
9826 #  ifdef DL_GLOBAL
9827 #    define LT_DLGLOBAL         DL_GLOBAL
9828 #  else
9829 #    define LT_DLGLOBAL         0
9830 #  endif
9831 #endif
9832
9833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9834    find out it does not work in some platform. */
9835 #ifndef LT_DLLAZY_OR_NOW
9836 #  ifdef RTLD_LAZY
9837 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9838 #  else
9839 #    ifdef DL_LAZY
9840 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9841 #    else
9842 #      ifdef RTLD_NOW
9843 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9844 #      else
9845 #        ifdef DL_NOW
9846 #          define LT_DLLAZY_OR_NOW      DL_NOW
9847 #        else
9848 #          define LT_DLLAZY_OR_NOW      0
9849 #        endif
9850 #      endif
9851 #    endif
9852 #  endif
9853 #endif
9854
9855 #ifdef __cplusplus
9856 extern "C" void exit (int);
9857 #endif
9858
9859 void fnord() { int i=42;}
9860 int main ()
9861 {
9862   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9863   int status = $lt_dlunknown;
9864
9865   if (self)
9866     {
9867       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9868       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9869       /* dlclose (self); */
9870     }
9871   else
9872     puts (dlerror ());
9873
9874     exit (status);
9875 }
9876 _LT_EOF
9877   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878   (eval $ac_link) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9882     (./conftest; exit; ) >&5 2>/dev/null
9883     lt_status=$?
9884     case x$lt_status in
9885       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9886       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9887       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9888     esac
9889   else :
9890     # compilation failed
9891     lt_cv_dlopen_self_static=no
9892   fi
9893 fi
9894 rm -fr conftest*
9895
9896
9897 fi
9898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9899 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9900     fi
9901
9902     CPPFLAGS="$save_CPPFLAGS"
9903     LDFLAGS="$save_LDFLAGS"
9904     LIBS="$save_LIBS"
9905     ;;
9906   esac
9907
9908   case $lt_cv_dlopen_self in
9909   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9910   *) enable_dlopen_self=unknown ;;
9911   esac
9912
9913   case $lt_cv_dlopen_self_static in
9914   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9915   *) enable_dlopen_self_static=unknown ;;
9916   esac
9917 fi
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935 striplib=
9936 old_striplib=
9937 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9938 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9939 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9940   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9941   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9942   echo "$as_me:$LINENO: result: yes" >&5
9943 echo "${ECHO_T}yes" >&6
9944 else
9945 # FIXME - insert some real tests, host_os isn't really good enough
9946   case $host_os in
9947   darwin*)
9948     if test -n "$STRIP" ; then
9949       striplib="$STRIP -x"
9950       old_striplib="$STRIP -S"
9951       echo "$as_me:$LINENO: result: yes" >&5
9952 echo "${ECHO_T}yes" >&6
9953     else
9954       echo "$as_me:$LINENO: result: no" >&5
9955 echo "${ECHO_T}no" >&6
9956     fi
9957     ;;
9958   *)
9959     echo "$as_me:$LINENO: result: no" >&5
9960 echo "${ECHO_T}no" >&6
9961     ;;
9962   esac
9963 fi
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976   # Report which library types will actually be built
9977   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9978 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9979   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9980 echo "${ECHO_T}$can_build_shared" >&6
9981
9982   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9983 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9984   test "$can_build_shared" = "no" && enable_shared=no
9985
9986   # On AIX, shared libraries and static libraries use the same namespace, and
9987   # are all built from PIC.
9988   case $host_os in
9989   aix3*)
9990     test "$enable_shared" = yes && enable_static=no
9991     if test -n "$RANLIB"; then
9992       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9993       postinstall_cmds='$RANLIB $lib'
9994     fi
9995     ;;
9996
9997   aix[4-9]*)
9998     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9999       test "$enable_shared" = yes && enable_static=no
10000     fi
10001     ;;
10002   esac
10003   echo "$as_me:$LINENO: result: $enable_shared" >&5
10004 echo "${ECHO_T}$enable_shared" >&6
10005
10006   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10007 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10008   # Make sure either enable_shared or enable_static is yes.
10009   test "$enable_shared" = yes || enable_static=yes
10010   echo "$as_me:$LINENO: result: $enable_static" >&5
10011 echo "${ECHO_T}$enable_static" >&6
10012
10013
10014
10015
10016 fi
10017 ac_ext=c
10018 ac_cpp='$CPP $CPPFLAGS'
10019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10022
10023 CC="$lt_save_CC"
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037                   ac_config_commands="$ac_config_commands libtool"
10038
10039
10040
10041
10042 # Only expand once:
10043
10044
10045
10046
10047
10048 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10049 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10050     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10051 if test "${enable_maintainer_mode+set}" = set; then
10052   enableval="$enable_maintainer_mode"
10053   USE_MAINTAINER_MODE=$enableval
10054 else
10055   USE_MAINTAINER_MODE=no
10056 fi;
10057   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10058 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10059
10060
10061 if test $USE_MAINTAINER_MODE = yes; then
10062   MAINTAINER_MODE_TRUE=
10063   MAINTAINER_MODE_FALSE='#'
10064 else
10065   MAINTAINER_MODE_TRUE='#'
10066   MAINTAINER_MODE_FALSE=
10067 fi
10068
10069   MAINT=$MAINTAINER_MODE_TRUE
10070
10071
10072
10073 # We need gfortran to compile parts of the library
10074 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10075 #AC_PROG_FC(gfortran)
10076 FC="$GFORTRAN"
10077 ac_ext=${FC_SRCEXT-f}
10078 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10079 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10080 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10081 if test -n "$ac_tool_prefix"; then
10082   for ac_prog in gfortran
10083   do
10084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10086 echo "$as_me:$LINENO: checking for $ac_word" >&5
10087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10088 if test "${ac_cv_prog_FC+set}" = set; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   if test -n "$FC"; then
10092   ac_cv_prog_FC="$FC" # Let the user override the test.
10093 else
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10096 do
10097   IFS=$as_save_IFS
10098   test -z "$as_dir" && as_dir=.
10099   for ac_exec_ext in '' $ac_executable_extensions; do
10100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103     break 2
10104   fi
10105 done
10106 done
10107
10108 fi
10109 fi
10110 FC=$ac_cv_prog_FC
10111 if test -n "$FC"; then
10112   echo "$as_me:$LINENO: result: $FC" >&5
10113 echo "${ECHO_T}$FC" >&6
10114 else
10115   echo "$as_me:$LINENO: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10117 fi
10118
10119     test -n "$FC" && break
10120   done
10121 fi
10122 if test -z "$FC"; then
10123   ac_ct_FC=$FC
10124   for ac_prog in gfortran
10125 do
10126   # Extract the first word of "$ac_prog", so it can be a program name with args.
10127 set dummy $ac_prog; ac_word=$2
10128 echo "$as_me:$LINENO: checking for $ac_word" >&5
10129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133   if test -n "$ac_ct_FC"; then
10134   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10135 else
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in $PATH
10138 do
10139   IFS=$as_save_IFS
10140   test -z "$as_dir" && as_dir=.
10141   for ac_exec_ext in '' $ac_executable_extensions; do
10142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143     ac_cv_prog_ac_ct_FC="$ac_prog"
10144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10145     break 2
10146   fi
10147 done
10148 done
10149
10150 fi
10151 fi
10152 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10153 if test -n "$ac_ct_FC"; then
10154   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10155 echo "${ECHO_T}$ac_ct_FC" >&6
10156 else
10157   echo "$as_me:$LINENO: result: no" >&5
10158 echo "${ECHO_T}no" >&6
10159 fi
10160
10161   test -n "$ac_ct_FC" && break
10162 done
10163
10164   FC=$ac_ct_FC
10165 fi
10166
10167
10168 # Provide some information about the compiler.
10169 echo "$as_me:10169:" \
10170      "checking for Fortran compiler version" >&5
10171 ac_compiler=`set X $ac_compile; echo $2`
10172 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10173   (eval $ac_compiler --version </dev/null >&5) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }
10177 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10178   (eval $ac_compiler -v </dev/null >&5) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }
10182 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10183   (eval $ac_compiler -V </dev/null >&5) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }
10187 rm -f a.out
10188
10189 # If we don't use `.F' as extension, the preprocessor is not run on the
10190 # input file.  (Note that this only needs to work for GNU compilers.)
10191 ac_save_ext=$ac_ext
10192 ac_ext=F
10193 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10194 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10195 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198   cat >conftest.$ac_ext <<_ACEOF
10199       program main
10200 #ifndef __GNUC__
10201        choke me
10202 #endif
10203
10204       end
10205 _ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208   (eval $ac_compile) 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } &&
10215          { ac_try='test -z "$ac_fc_werror_flag"
10216                          || test ! -s conftest.err'
10217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218   (eval $ac_try) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; } &&
10222          { ac_try='test -s conftest.$ac_objext'
10223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224   (eval $ac_try) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   ac_compiler_gnu=yes
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233 ac_compiler_gnu=no
10234 fi
10235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10237
10238 fi
10239 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10240 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10241 ac_ext=$ac_save_ext
10242 ac_test_FFLAGS=${FCFLAGS+set}
10243 ac_save_FFLAGS=$FCFLAGS
10244 FCFLAGS=
10245 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10246 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10247 if test "${ac_cv_prog_fc_g+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   FCFLAGS=-g
10251 cat >conftest.$ac_ext <<_ACEOF
10252       program main
10253
10254       end
10255 _ACEOF
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258   (eval $ac_compile) 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } &&
10265          { ac_try='test -z "$ac_fc_werror_flag"
10266                          || test ! -s conftest.err'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; } &&
10272          { ac_try='test -s conftest.$ac_objext'
10273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }; then
10278   ac_cv_prog_fc_g=yes
10279 else
10280   echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 ac_cv_prog_fc_g=no
10284 fi
10285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10286
10287 fi
10288 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10289 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10290 if test "$ac_test_FFLAGS" = set; then
10291   FCFLAGS=$ac_save_FFLAGS
10292 elif test $ac_cv_prog_fc_g = yes; then
10293   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10294     FCFLAGS="-g -O2"
10295   else
10296     FCFLAGS="-g"
10297   fi
10298 else
10299   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10300     FCFLAGS="-O2"
10301   else
10302     FCFLAGS=
10303   fi
10304 fi
10305
10306 ac_ext=c
10307 ac_cpp='$CPP $CPPFLAGS'
10308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10311
10312
10313 ac_ext=${FC_SRCEXT-f}
10314 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10315 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10316 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10317 if test -n "$ac_tool_prefix"; then
10318   for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10319   do
10320     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10322 echo "$as_me:$LINENO: checking for $ac_word" >&5
10323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10324 if test "${ac_cv_prog_FC+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   if test -n "$FC"; then
10328   ac_cv_prog_FC="$FC" # Let the user override the test.
10329 else
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10332 do
10333   IFS=$as_save_IFS
10334   test -z "$as_dir" && as_dir=.
10335   for ac_exec_ext in '' $ac_executable_extensions; do
10336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10339     break 2
10340   fi
10341 done
10342 done
10343
10344 fi
10345 fi
10346 FC=$ac_cv_prog_FC
10347 if test -n "$FC"; then
10348   echo "$as_me:$LINENO: result: $FC" >&5
10349 echo "${ECHO_T}$FC" >&6
10350 else
10351   echo "$as_me:$LINENO: result: no" >&5
10352 echo "${ECHO_T}no" >&6
10353 fi
10354
10355     test -n "$FC" && break
10356   done
10357 fi
10358 if test -z "$FC"; then
10359   ac_ct_FC=$FC
10360   for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10361 do
10362   # Extract the first word of "$ac_prog", so it can be a program name with args.
10363 set dummy $ac_prog; ac_word=$2
10364 echo "$as_me:$LINENO: checking for $ac_word" >&5
10365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10366 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10367   echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369   if test -n "$ac_ct_FC"; then
10370   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10371 else
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10374 do
10375   IFS=$as_save_IFS
10376   test -z "$as_dir" && as_dir=.
10377   for ac_exec_ext in '' $ac_executable_extensions; do
10378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379     ac_cv_prog_ac_ct_FC="$ac_prog"
10380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10381     break 2
10382   fi
10383 done
10384 done
10385
10386 fi
10387 fi
10388 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10389 if test -n "$ac_ct_FC"; then
10390   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10391 echo "${ECHO_T}$ac_ct_FC" >&6
10392 else
10393   echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6
10395 fi
10396
10397   test -n "$ac_ct_FC" && break
10398 done
10399
10400   FC=$ac_ct_FC
10401 fi
10402
10403
10404 # Provide some information about the compiler.
10405 echo "$as_me:10405:" \
10406      "checking for Fortran compiler version" >&5
10407 ac_compiler=`set X $ac_compile; echo $2`
10408 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10409   (eval $ac_compiler --version </dev/null >&5) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }
10413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10414   (eval $ac_compiler -v </dev/null >&5) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }
10418 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10419   (eval $ac_compiler -V </dev/null >&5) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); }
10423 rm -f a.out
10424
10425 # If we don't use `.F' as extension, the preprocessor is not run on the
10426 # input file.  (Note that this only needs to work for GNU compilers.)
10427 ac_save_ext=$ac_ext
10428 ac_ext=F
10429 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10430 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10431 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   cat >conftest.$ac_ext <<_ACEOF
10435       program main
10436 #ifndef __GNUC__
10437        choke me
10438 #endif
10439
10440       end
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444   (eval $ac_compile) 2>conftest.er1
10445   ac_status=$?
10446   grep -v '^ *+' conftest.er1 >conftest.err
10447   rm -f conftest.er1
10448   cat conftest.err >&5
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -z "$ac_fc_werror_flag"
10452                          || test ! -s conftest.err'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; } &&
10458          { ac_try='test -s conftest.$ac_objext'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_compiler_gnu=yes
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 ac_compiler_gnu=no
10470 fi
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10473
10474 fi
10475 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10476 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10477 ac_ext=$ac_save_ext
10478 ac_test_FFLAGS=${FCFLAGS+set}
10479 ac_save_FFLAGS=$FCFLAGS
10480 FCFLAGS=
10481 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10482 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10483 if test "${ac_cv_prog_fc_g+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   FCFLAGS=-g
10487 cat >conftest.$ac_ext <<_ACEOF
10488       program main
10489
10490       end
10491 _ACEOF
10492 rm -f conftest.$ac_objext
10493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10494   (eval $ac_compile) 2>conftest.er1
10495   ac_status=$?
10496   grep -v '^ *+' conftest.er1 >conftest.err
10497   rm -f conftest.er1
10498   cat conftest.err >&5
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } &&
10501          { ac_try='test -z "$ac_fc_werror_flag"
10502                          || test ! -s conftest.err'
10503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504   (eval $ac_try) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); }; } &&
10508          { ac_try='test -s conftest.$ac_objext'
10509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510   (eval $ac_try) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; }; then
10514   ac_cv_prog_fc_g=yes
10515 else
10516   echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10518
10519 ac_cv_prog_fc_g=no
10520 fi
10521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10522
10523 fi
10524 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10525 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10526 if test "$ac_test_FFLAGS" = set; then
10527   FCFLAGS=$ac_save_FFLAGS
10528 elif test $ac_cv_prog_fc_g = yes; then
10529   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10530     FCFLAGS="-g -O2"
10531   else
10532     FCFLAGS="-g"
10533   fi
10534 else
10535   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10536     FCFLAGS="-O2"
10537   else
10538     FCFLAGS=
10539   fi
10540 fi
10541
10542 ac_ext=c
10543 ac_cpp='$CPP $CPPFLAGS'
10544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10547
10548 if test -z "$FC" || test "X$FC" = "Xno"; then
10549   _lt_disable_FC=yes
10550 fi
10551
10552
10553
10554       ac_ext=${FC_SRCEXT-f}
10555 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10556 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10557 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10558
10559
10560 archive_cmds_need_lc_FC=no
10561 allow_undefined_flag_FC=
10562 always_export_symbols_FC=no
10563 archive_expsym_cmds_FC=
10564 export_dynamic_flag_spec_FC=
10565 hardcode_direct_FC=no
10566 hardcode_direct_absolute_FC=no
10567 hardcode_libdir_flag_spec_FC=
10568 hardcode_libdir_flag_spec_ld_FC=
10569 hardcode_libdir_separator_FC=
10570 hardcode_minus_L_FC=no
10571 hardcode_automatic_FC=no
10572 inherit_rpath_FC=no
10573 module_cmds_FC=
10574 module_expsym_cmds_FC=
10575 link_all_deplibs_FC=unknown
10576 old_archive_cmds_FC=$old_archive_cmds
10577 no_undefined_flag_FC=
10578 whole_archive_flag_spec_FC=
10579 enable_shared_with_static_runtimes_FC=no
10580
10581 # Source file extension for fc test sources.
10582 ac_ext=${ac_fc_srcext-f}
10583
10584 # Object file extension for compiled fc test sources.
10585 objext=o
10586 objext_FC=$objext
10587
10588 # No sense in running all these tests if we already determined that
10589 # the FC compiler isn't working.  Some variables (like enable_shared)
10590 # are currently assumed to apply to all compilers on this platform,
10591 # and will be corrupted by setting them based on a non-working compiler.
10592 if test "$_lt_disable_FC" != yes; then
10593   # Code to be used in simple compile tests
10594   lt_simple_compile_test_code="\
10595       subroutine t
10596       return
10597       end
10598 "
10599
10600   # Code to be used in simple link tests
10601   lt_simple_link_test_code="\
10602       program t
10603       end
10604 "
10605
10606   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10607
10608
10609
10610
10611
10612
10613 # If no C compiler was specified, use CC.
10614 LTCC=${LTCC-"$CC"}
10615
10616 # If no C compiler flags were specified, use CFLAGS.
10617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10618
10619 # Allow CC to be a program name with arguments.
10620 compiler=$CC
10621
10622
10623   # save warnings/boilerplate of simple test code
10624   ac_outfile=conftest.$ac_objext
10625 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10627 _lt_compiler_boilerplate=`cat conftest.err`
10628 $RM conftest*
10629
10630   ac_outfile=conftest.$ac_objext
10631 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10633 _lt_linker_boilerplate=`cat conftest.err`
10634 $RM conftest*
10635
10636
10637   # Allow CC to be a program name with arguments.
10638   lt_save_CC="$CC"
10639   CC=${FC-"f95"}
10640   compiler=$CC
10641   compiler_FC=$CC
10642   for cc_temp in $compiler""; do
10643   case $cc_temp in
10644     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10645     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10646     \-*) ;;
10647     *) break;;
10648   esac
10649 done
10650 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10651
10652
10653   if test -n "$compiler"; then
10654     echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10655 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10656     echo "$as_me:$LINENO: result: $can_build_shared" >&5
10657 echo "${ECHO_T}$can_build_shared" >&6
10658
10659     echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10660 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10661     test "$can_build_shared" = "no" && enable_shared=no
10662
10663     # On AIX, shared libraries and static libraries use the same namespace, and
10664     # are all built from PIC.
10665     case $host_os in
10666       aix3*)
10667         test "$enable_shared" = yes && enable_static=no
10668         if test -n "$RANLIB"; then
10669           archive_cmds="$archive_cmds~\$RANLIB \$lib"
10670           postinstall_cmds='$RANLIB $lib'
10671         fi
10672         ;;
10673       aix[4-9]*)
10674         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10675           test "$enable_shared" = yes && enable_static=no
10676         fi
10677         ;;
10678     esac
10679     echo "$as_me:$LINENO: result: $enable_shared" >&5
10680 echo "${ECHO_T}$enable_shared" >&6
10681
10682     echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10683 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10684     # Make sure either enable_shared or enable_static is yes.
10685     test "$enable_shared" = yes || enable_static=yes
10686     echo "$as_me:$LINENO: result: $enable_static" >&5
10687 echo "${ECHO_T}$enable_static" >&6
10688
10689     GCC_FC="$ac_cv_fc_compiler_gnu"
10690     LD_FC="$LD"
10691
10692     ## CAVEAT EMPTOR:
10693     ## There is no encapsulation within the following macros, do not change
10694     ## the running order or otherwise move them around unless you know exactly
10695     ## what you are doing...
10696     # Dependencies to place before and after the object being linked:
10697 predep_objects_FC=
10698 postdep_objects_FC=
10699 predeps_FC=
10700 postdeps_FC=
10701 compiler_lib_search_path_FC=
10702
10703 cat > conftest.$ac_ext <<_LT_EOF
10704       subroutine foo
10705       implicit none
10706       integer a
10707       a=0
10708       return
10709       end
10710 _LT_EOF
10711
10712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10713   (eval $ac_compile) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; then
10717   # Parse the compiler output and extract the necessary
10718   # objects, libraries and library flags.
10719
10720   # Sentinel used to keep track of whether or not we are before
10721   # the conftest object file.
10722   pre_test_object_deps_done=no
10723
10724   # The `*' in the case matches for architectures that use `case' in
10725   # $output_verbose_cmd can trigger glob expansion during the loop
10726   # eval without this substitution.
10727   output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10728
10729   for p in `eval $output_verbose_link_cmd`; do
10730     case $p in
10731
10732     -L* | -R* | -l*)
10733        # Some compilers place space between "-{L,R}" and the path.
10734        # Remove the space.
10735        if test $p = "-L" ||
10736           test $p = "-R"; then
10737          prev=$p
10738          continue
10739        else
10740          prev=
10741        fi
10742
10743        if test "$pre_test_object_deps_done" = no; then
10744          case $p in
10745          -L* | -R*)
10746            # Internal compiler library paths should come after those
10747            # provided the user.  The postdeps already come after the
10748            # user supplied libs so there is no need to process them.
10749            if test -z "$compiler_lib_search_path_FC"; then
10750              compiler_lib_search_path_FC="${prev}${p}"
10751            else
10752              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10753            fi
10754            ;;
10755          # The "-l" case would never come before the object being
10756          # linked, so don't bother handling this case.
10757          esac
10758        else
10759          if test -z "$postdeps_FC"; then
10760            postdeps_FC="${prev}${p}"
10761          else
10762            postdeps_FC="${postdeps_FC} ${prev}${p}"
10763          fi
10764        fi
10765        ;;
10766
10767     *.$objext)
10768        # This assumes that the test object file only shows up
10769        # once in the compiler output.
10770        if test "$p" = "conftest.$objext"; then
10771          pre_test_object_deps_done=yes
10772          continue
10773        fi
10774
10775        if test "$pre_test_object_deps_done" = no; then
10776          if test -z "$predep_objects_FC"; then
10777            predep_objects_FC="$p"
10778          else
10779            predep_objects_FC="$predep_objects_FC $p"
10780          fi
10781        else
10782          if test -z "$postdep_objects_FC"; then
10783            postdep_objects_FC="$p"
10784          else
10785            postdep_objects_FC="$postdep_objects_FC $p"
10786          fi
10787        fi
10788        ;;
10789
10790     *) ;; # Ignore the rest.
10791
10792     esac
10793   done
10794
10795   # Clean up.
10796   rm -f a.out a.exe
10797 else
10798   echo "libtool.m4: error: problem compiling FC test program"
10799 fi
10800
10801 $RM -f confest.$objext
10802
10803 # PORTME: override above test on systems where it is broken
10804
10805
10806 case " $postdeps_FC " in
10807 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10808 esac
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835     lt_prog_compiler_wl_FC=
10836 lt_prog_compiler_pic_FC=
10837 lt_prog_compiler_static_FC=
10838
10839 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10840 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10841
10842   if test "$GCC" = yes; then
10843     lt_prog_compiler_wl_FC='-Wl,'
10844     lt_prog_compiler_static_FC='-static'
10845
10846     case $host_os in
10847       aix*)
10848       # All AIX code is PIC.
10849       if test "$host_cpu" = ia64; then
10850         # AIX 5 now supports IA64 processor
10851         lt_prog_compiler_static_FC='-Bstatic'
10852       fi
10853       ;;
10854
10855     amigaos*)
10856       if test "$host_cpu" = m68k; then
10857         # FIXME: we need at least 68020 code to build shared libraries, but
10858         # adding the `-m68020' flag to GCC prevents building anything better,
10859         # like `-m68040'.
10860         lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10861       fi
10862       ;;
10863
10864     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10865       # PIC is the default for these OSes.
10866       ;;
10867
10868     mingw* | cygwin* | pw32* | os2*)
10869       # This hack is so that the source file can tell whether it is being
10870       # built for inclusion in a dll (and should export symbols for example).
10871       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10872       # (--disable-auto-import) libraries
10873       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10874       ;;
10875
10876     darwin* | rhapsody*)
10877       # PIC is the default on this platform
10878       # Common symbols not allowed in MH_DYLIB files
10879       lt_prog_compiler_pic_FC='-fno-common'
10880       ;;
10881
10882     hpux*)
10883       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10884       # not for PA HP-UX.
10885       case $host_cpu in
10886       hppa*64*|ia64*)
10887         # +Z the default
10888         ;;
10889       *)
10890         lt_prog_compiler_pic_FC='-fPIC'
10891         ;;
10892       esac
10893       ;;
10894
10895     interix[3-9]*)
10896       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10897       # Instead, we relocate shared libraries at runtime.
10898       ;;
10899
10900     msdosdjgpp*)
10901       # Just because we use GCC doesn't mean we suddenly get shared libraries
10902       # on systems that don't support them.
10903       lt_prog_compiler_can_build_shared_FC=no
10904       enable_shared=no
10905       ;;
10906
10907     *nto* | *qnx*)
10908       # QNX uses GNU C++, but need to define -shared option too, otherwise
10909       # it will coredump.
10910       lt_prog_compiler_pic_FC='-fPIC -shared'
10911       ;;
10912
10913     sysv4*MP*)
10914       if test -d /usr/nec; then
10915         lt_prog_compiler_pic_FC=-Kconform_pic
10916       fi
10917       ;;
10918
10919     *)
10920       lt_prog_compiler_pic_FC='-fPIC'
10921       ;;
10922     esac
10923   else
10924     # PORTME Check for flag to pass linker flags through the system compiler.
10925     case $host_os in
10926     aix*)
10927       lt_prog_compiler_wl_FC='-Wl,'
10928       if test "$host_cpu" = ia64; then
10929         # AIX 5 now supports IA64 processor
10930         lt_prog_compiler_static_FC='-Bstatic'
10931       else
10932         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10933       fi
10934       ;;
10935     darwin*)
10936       # PIC is the default on this platform
10937       # Common symbols not allowed in MH_DYLIB files
10938       case $cc_basename in
10939       xlc*)
10940         lt_prog_compiler_pic_FC='-qnocommon'
10941         lt_prog_compiler_wl_FC='-Wl,'
10942         ;;
10943       esac
10944       ;;
10945
10946     mingw* | cygwin* | pw32* | os2*)
10947       # This hack is so that the source file can tell whether it is being
10948       # built for inclusion in a dll (and should export symbols for example).
10949       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10950       ;;
10951
10952     hpux9* | hpux10* | hpux11*)
10953       lt_prog_compiler_wl_FC='-Wl,'
10954       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10955       # not for PA HP-UX.
10956       case $host_cpu in
10957       hppa*64*|ia64*)
10958         # +Z the default
10959         ;;
10960       *)
10961         lt_prog_compiler_pic_FC='+Z'
10962         ;;
10963       esac
10964       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10965       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10966       ;;
10967
10968     irix5* | irix6* | nonstopux*)
10969       lt_prog_compiler_wl_FC='-Wl,'
10970       # PIC (with -KPIC) is the default.
10971       lt_prog_compiler_static_FC='-non_shared'
10972       ;;
10973
10974     linux* | k*bsd*-gnu)
10975       case $cc_basename in
10976       icc* | ecc*)
10977         lt_prog_compiler_wl_FC='-Wl,'
10978         lt_prog_compiler_pic_FC='-KPIC'
10979         lt_prog_compiler_static_FC='-static'
10980         ;;
10981       pgcc* | pgf77* | pgf90* | pgf95*)
10982         # Portland Group compilers (*not* the Pentium gcc compiler,
10983         # which looks to be a dead project)
10984         lt_prog_compiler_wl_FC='-Wl,'
10985         lt_prog_compiler_pic_FC='-fpic'
10986         lt_prog_compiler_static_FC='-Bstatic'
10987         ;;
10988       ccc*)
10989         lt_prog_compiler_wl_FC='-Wl,'
10990         # All Alpha code is PIC.
10991         lt_prog_compiler_static_FC='-non_shared'
10992         ;;
10993       *)
10994         case `$CC -V 2>&1 | sed 5q` in
10995         *Sun\ C*)
10996           # Sun C 5.9
10997           lt_prog_compiler_pic_FC='-KPIC'
10998           lt_prog_compiler_static_FC='-Bstatic'
10999           lt_prog_compiler_wl_FC='-Wl,'
11000           ;;
11001         *Sun\ F*)
11002           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11003           lt_prog_compiler_pic_FC='-KPIC'
11004           lt_prog_compiler_static_FC='-Bstatic'
11005           lt_prog_compiler_wl_FC=''
11006           ;;
11007         esac
11008         ;;
11009       esac
11010       ;;
11011
11012     newsos6)
11013       lt_prog_compiler_pic_FC='-KPIC'
11014       lt_prog_compiler_static_FC='-Bstatic'
11015       ;;
11016
11017     *nto* | *qnx*)
11018       # QNX uses GNU C++, but need to define -shared option too, otherwise
11019       # it will coredump.
11020       lt_prog_compiler_pic_FC='-fPIC -shared'
11021       ;;
11022
11023     osf3* | osf4* | osf5*)
11024       lt_prog_compiler_wl_FC='-Wl,'
11025       # All OSF/1 code is PIC.
11026       lt_prog_compiler_static_FC='-non_shared'
11027       ;;
11028
11029     rdos*)
11030       lt_prog_compiler_static_FC='-non_shared'
11031       ;;
11032
11033     solaris*)
11034       lt_prog_compiler_pic_FC='-KPIC'
11035       lt_prog_compiler_static_FC='-Bstatic'
11036       case $cc_basename in
11037       f77* | f90* | f95*)
11038         lt_prog_compiler_wl_FC='-Qoption ld ';;
11039       *)
11040         lt_prog_compiler_wl_FC='-Wl,';;
11041       esac
11042       ;;
11043
11044     sunos4*)
11045       lt_prog_compiler_wl_FC='-Qoption ld '
11046       lt_prog_compiler_pic_FC='-PIC'
11047       lt_prog_compiler_static_FC='-Bstatic'
11048       ;;
11049
11050     sysv4 | sysv4.2uw2* | sysv4.3*)
11051       lt_prog_compiler_wl_FC='-Wl,'
11052       lt_prog_compiler_pic_FC='-KPIC'
11053       lt_prog_compiler_static_FC='-Bstatic'
11054       ;;
11055
11056     sysv4*MP*)
11057       if test -d /usr/nec ;then
11058         lt_prog_compiler_pic_FC='-Kconform_pic'
11059         lt_prog_compiler_static_FC='-Bstatic'
11060       fi
11061       ;;
11062
11063     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11064       lt_prog_compiler_wl_FC='-Wl,'
11065       lt_prog_compiler_pic_FC='-KPIC'
11066       lt_prog_compiler_static_FC='-Bstatic'
11067       ;;
11068
11069     unicos*)
11070       lt_prog_compiler_wl_FC='-Wl,'
11071       lt_prog_compiler_can_build_shared_FC=no
11072       ;;
11073
11074     uts4*)
11075       lt_prog_compiler_pic_FC='-pic'
11076       lt_prog_compiler_static_FC='-Bstatic'
11077       ;;
11078
11079     *)
11080       lt_prog_compiler_can_build_shared_FC=no
11081       ;;
11082     esac
11083   fi
11084
11085 case $host_os in
11086   # For platforms which do not support PIC, -DPIC is meaningless:
11087   *djgpp*)
11088     lt_prog_compiler_pic_FC=
11089     ;;
11090   *)
11091     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11092     ;;
11093 esac
11094 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11095 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11096
11097
11098
11099 #
11100 # Check to make sure the PIC flag actually works.
11101 #
11102 if test -n "$lt_prog_compiler_pic_FC"; then
11103   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11105 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108   lt_prog_compiler_pic_works_FC=no
11109    ac_outfile=conftest.$ac_objext
11110    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11111    lt_compiler_flag="$lt_prog_compiler_pic_FC"
11112    # Insert the option either (1) after the last *FLAGS variable, or
11113    # (2) before a word containing "conftest.", or (3) at the end.
11114    # Note that $ac_compile itself does not contain backslashes and begins
11115    # with a dollar sign (not a hyphen), so the echo should work correctly.
11116    # The option is referenced via a variable to avoid confusing sed.
11117    lt_compile=`echo "$ac_compile" | $SED \
11118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11120    -e 's:$: $lt_compiler_flag:'`
11121    (eval echo "\"\$as_me:11121: $lt_compile\"" >&5)
11122    (eval "$lt_compile" 2>conftest.err)
11123    ac_status=$?
11124    cat conftest.err >&5
11125    echo "$as_me:11125: \$? = $ac_status" >&5
11126    if (exit $ac_status) && test -s "$ac_outfile"; then
11127      # The compiler can only warn and ignore the option if not recognized
11128      # So say no if there are warnings other than the usual output.
11129      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11130      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11131      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11132        lt_prog_compiler_pic_works_FC=yes
11133      fi
11134    fi
11135    $RM conftest*
11136
11137 fi
11138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11139 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11140
11141 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11142     case $lt_prog_compiler_pic_FC in
11143      "" | " "*) ;;
11144      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11145      esac
11146 else
11147     lt_prog_compiler_pic_FC=
11148      lt_prog_compiler_can_build_shared_FC=no
11149 fi
11150
11151 fi
11152
11153
11154
11155 #
11156 # Check to make sure the static flag actually works.
11157 #
11158 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11159 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11160 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11161 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11162   echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164   lt_prog_compiler_static_works_FC=no
11165    save_LDFLAGS="$LDFLAGS"
11166    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11167    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11168    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11169      # The linker can only warn and ignore the option if not recognized
11170      # So say no if there are warnings
11171      if test -s conftest.err; then
11172        # Append any errors to the config.log.
11173        cat conftest.err 1>&5
11174        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11175        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11176        if diff conftest.exp conftest.er2 >/dev/null; then
11177          lt_prog_compiler_static_works_FC=yes
11178        fi
11179      else
11180        lt_prog_compiler_static_works_FC=yes
11181      fi
11182    fi
11183    $RM conftest*
11184    LDFLAGS="$save_LDFLAGS"
11185
11186 fi
11187 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11188 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11189
11190 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11191     :
11192 else
11193     lt_prog_compiler_static_FC=
11194 fi
11195
11196
11197
11198
11199     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11200 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11201 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   lt_cv_prog_compiler_c_o_FC=no
11205    $RM -r conftest 2>/dev/null
11206    mkdir conftest
11207    cd conftest
11208    mkdir out
11209    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11210
11211    lt_compiler_flag="-o out/conftest2.$ac_objext"
11212    # Insert the option either (1) after the last *FLAGS variable, or
11213    # (2) before a word containing "conftest.", or (3) at the end.
11214    # Note that $ac_compile itself does not contain backslashes and begins
11215    # with a dollar sign (not a hyphen), so the echo should work correctly.
11216    lt_compile=`echo "$ac_compile" | $SED \
11217    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11218    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11219    -e 's:$: $lt_compiler_flag:'`
11220    (eval echo "\"\$as_me:11220: $lt_compile\"" >&5)
11221    (eval "$lt_compile" 2>out/conftest.err)
11222    ac_status=$?
11223    cat out/conftest.err >&5
11224    echo "$as_me:11224: \$? = $ac_status" >&5
11225    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11226    then
11227      # The compiler can only warn and ignore the option if not recognized
11228      # So say no if there are warnings
11229      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11230      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11231      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11232        lt_cv_prog_compiler_c_o_FC=yes
11233      fi
11234    fi
11235    chmod u+w . 2>&5
11236    $RM conftest*
11237    # SGI C++ compiler will create directory out/ii_files/ for
11238    # template instantiation
11239    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11240    $RM out/* && rmdir out
11241    cd ..
11242    $RM -r conftest
11243    $RM conftest*
11244
11245 fi
11246 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11247 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11248
11249
11250
11251     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11252 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11253 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256   lt_cv_prog_compiler_c_o_FC=no
11257    $RM -r conftest 2>/dev/null
11258    mkdir conftest
11259    cd conftest
11260    mkdir out
11261    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11262
11263    lt_compiler_flag="-o out/conftest2.$ac_objext"
11264    # Insert the option either (1) after the last *FLAGS variable, or
11265    # (2) before a word containing "conftest.", or (3) at the end.
11266    # Note that $ac_compile itself does not contain backslashes and begins
11267    # with a dollar sign (not a hyphen), so the echo should work correctly.
11268    lt_compile=`echo "$ac_compile" | $SED \
11269    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11270    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11271    -e 's:$: $lt_compiler_flag:'`
11272    (eval echo "\"\$as_me:11272: $lt_compile\"" >&5)
11273    (eval "$lt_compile" 2>out/conftest.err)
11274    ac_status=$?
11275    cat out/conftest.err >&5
11276    echo "$as_me:11276: \$? = $ac_status" >&5
11277    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11278    then
11279      # The compiler can only warn and ignore the option if not recognized
11280      # So say no if there are warnings
11281      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11282      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11283      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11284        lt_cv_prog_compiler_c_o_FC=yes
11285      fi
11286    fi
11287    chmod u+w . 2>&5
11288    $RM conftest*
11289    # SGI C++ compiler will create directory out/ii_files/ for
11290    # template instantiation
11291    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11292    $RM out/* && rmdir out
11293    cd ..
11294    $RM -r conftest
11295    $RM conftest*
11296
11297 fi
11298 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11299 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11300
11301
11302
11303
11304 hard_links="nottested"
11305 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11306   # do not overwrite the value of need_locks provided by the user
11307   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11308 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11309   hard_links=yes
11310   $RM conftest*
11311   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11312   touch conftest.a
11313   ln conftest.a conftest.b 2>&5 || hard_links=no
11314   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11315   echo "$as_me:$LINENO: result: $hard_links" >&5
11316 echo "${ECHO_T}$hard_links" >&6
11317   if test "$hard_links" = no; then
11318     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11319 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11320     need_locks=warn
11321   fi
11322 else
11323   need_locks=no
11324 fi
11325
11326
11327
11328     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11330
11331   runpath_var=
11332   allow_undefined_flag_FC=
11333   always_export_symbols_FC=no
11334   archive_cmds_FC=
11335   archive_expsym_cmds_FC=
11336   compiler_needs_object_FC=no
11337   enable_shared_with_static_runtimes_FC=no
11338   export_dynamic_flag_spec_FC=
11339   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11340   hardcode_automatic_FC=no
11341   hardcode_direct_FC=no
11342   hardcode_direct_absolute_FC=no
11343   hardcode_libdir_flag_spec_FC=
11344   hardcode_libdir_flag_spec_ld_FC=
11345   hardcode_libdir_separator_FC=
11346   hardcode_minus_L_FC=no
11347   hardcode_shlibpath_var_FC=unsupported
11348   inherit_rpath_FC=no
11349   link_all_deplibs_FC=unknown
11350   module_cmds_FC=
11351   module_expsym_cmds_FC=
11352   old_archive_from_new_cmds_FC=
11353   old_archive_from_expsyms_cmds_FC=
11354   thread_safe_flag_spec_FC=
11355   whole_archive_flag_spec_FC=
11356   # include_expsyms should be a list of space-separated symbols to be *always*
11357   # included in the symbol list
11358   include_expsyms_FC=
11359   # exclude_expsyms can be an extended regexp of symbols to exclude
11360   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11361   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11362   # as well as any symbol that contains `d'.
11363   exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11364   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11365   # platforms (ab)use it in PIC code, but their linkers get confused if
11366   # the symbol is explicitly referenced.  Since portable code cannot
11367   # rely on this symbol name, it's probably fine to never include it in
11368   # preloaded symbol tables.
11369   extract_expsyms_cmds=
11370
11371   case $host_os in
11372   cygwin* | mingw* | pw32*)
11373     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11374     # When not using gcc, we currently assume that we are using
11375     # Microsoft Visual C++.
11376     if test "$GCC" != yes; then
11377       with_gnu_ld=no
11378     fi
11379     ;;
11380   interix*)
11381     # we just hope/assume this is gcc and not c89 (= MSVC++)
11382     with_gnu_ld=yes
11383     ;;
11384   openbsd*)
11385     with_gnu_ld=no
11386     ;;
11387   esac
11388
11389   ld_shlibs_FC=yes
11390   if test "$with_gnu_ld" = yes; then
11391     # If archive_cmds runs LD, not CC, wlarc should be empty
11392     wlarc='${wl}'
11393
11394     # Set some defaults for GNU ld with shared library support. These
11395     # are reset later if shared libraries are not supported. Putting them
11396     # here allows them to be overridden if necessary.
11397     runpath_var=LD_RUN_PATH
11398     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11399     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11400     # ancient GNU ld didn't support --whole-archive et. al.
11401     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11402       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11403     else
11404       whole_archive_flag_spec_FC=
11405     fi
11406     supports_anon_versioning=no
11407     case `$LD -v 2>&1` in
11408       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11409       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11410       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11411       *\ 2.11.*) ;; # other 2.11 versions
11412       *) supports_anon_versioning=yes ;;
11413     esac
11414
11415     # See if GNU ld supports shared libraries.
11416     case $host_os in
11417     aix[3-9]*)
11418       # On AIX/PPC, the GNU linker is very broken
11419       if test "$host_cpu" != ia64; then
11420         ld_shlibs_FC=no
11421         cat <<_LT_EOF 1>&2
11422
11423 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11424 *** to be unable to reliably create shared libraries on AIX.
11425 *** Therefore, libtool is disabling shared libraries support.  If you
11426 *** really care for shared libraries, you may want to modify your PATH
11427 *** so that a non-GNU linker is found, and then restart.
11428
11429 _LT_EOF
11430       fi
11431       ;;
11432
11433     amigaos*)
11434       if test "$host_cpu" = m68k; then
11435         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)'
11436         hardcode_libdir_flag_spec_FC='-L$libdir'
11437         hardcode_minus_L_FC=yes
11438       fi
11439
11440       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11441       # that the semantics of dynamic libraries on AmigaOS, at least up
11442       # to version 4, is to share data among multiple programs linked
11443       # with the same dynamic library.  Since this doesn't match the
11444       # behavior of shared libraries on other platforms, we can't use
11445       # them.
11446       ld_shlibs_FC=no
11447       ;;
11448
11449     beos*)
11450       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11451         allow_undefined_flag_FC=unsupported
11452         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11453         # support --undefined.  This deserves some investigation.  FIXME
11454         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455       else
11456         ld_shlibs_FC=no
11457       fi
11458       ;;
11459
11460     cygwin* | mingw* | pw32*)
11461       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11462       # as there is no search path for DLLs.
11463       hardcode_libdir_flag_spec_FC='-L$libdir'
11464       allow_undefined_flag_FC=unsupported
11465       always_export_symbols_FC=no
11466       enable_shared_with_static_runtimes_FC=yes
11467       export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11468
11469       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11470         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11471         # If the export-symbols file already is a .def file (1st line
11472         # is EXPORTS), use it as is; otherwise, prepend...
11473         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11474           cp $export_symbols $output_objdir/$soname.def;
11475         else
11476           echo EXPORTS > $output_objdir/$soname.def;
11477           cat $export_symbols >> $output_objdir/$soname.def;
11478         fi~
11479         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11480       else
11481         ld_shlibs_FC=no
11482       fi
11483       ;;
11484
11485     interix[3-9]*)
11486       hardcode_direct_FC=no
11487       hardcode_shlibpath_var_FC=no
11488       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11489       export_dynamic_flag_spec_FC='${wl}-E'
11490       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11491       # Instead, shared libraries are loaded at an image base (0x10000000 by
11492       # default) and relocated if they conflict, which is a slow very memory
11493       # consuming and fragmenting process.  To avoid this, we pick a random,
11494       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11495       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11496       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'
11497       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'
11498       ;;
11499
11500     gnu* | linux* | tpf* | k*bsd*-gnu)
11501       tmp_diet=no
11502       if test "$host_os" = linux-dietlibc; then
11503         case $cc_basename in
11504           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11505         esac
11506       fi
11507       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11508          && test "$tmp_diet" = no
11509       then
11510         tmp_addflag=
11511         case $cc_basename,$host_cpu in
11512         pgcc*)                          # Portland Group C compiler
11513           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'
11514           tmp_addflag=' $pic_flag'
11515           ;;
11516         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11517           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'
11518           tmp_addflag=' $pic_flag -Mnomain' ;;
11519         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11520           tmp_addflag=' -i_dynamic' ;;
11521         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11522           tmp_addflag=' -i_dynamic -nofor_main' ;;
11523         ifc* | ifort*)                  # Intel Fortran compiler
11524           tmp_addflag=' -nofor_main' ;;
11525         esac
11526         case `$CC -V 2>&1 | sed 5q` in
11527         *Sun\ C*)                       # Sun C 5.9
11528           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'
11529           compiler_needs_object_FC=yes
11530           tmp_sharedflag='-G' ;;
11531         *Sun\ F*)                       # Sun Fortran 8.3
11532           tmp_sharedflag='-G' ;;
11533         *)
11534           tmp_sharedflag='-shared' ;;
11535         esac
11536         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11537
11538         if test "x$supports_anon_versioning" = xyes; then
11539           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11540             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11541             echo "local: *; };" >> $output_objdir/$libname.ver~
11542             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11543         fi
11544       else
11545         ld_shlibs_FC=no
11546       fi
11547       ;;
11548
11549     netbsd*)
11550       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11551         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11552         wlarc=
11553       else
11554         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11555         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11556       fi
11557       ;;
11558
11559     solaris*)
11560       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11561         ld_shlibs_FC=no
11562         cat <<_LT_EOF 1>&2
11563
11564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11565 *** create shared libraries on Solaris systems.  Therefore, libtool
11566 *** is disabling shared libraries support.  We urge you to upgrade GNU
11567 *** binutils to release 2.9.1 or newer.  Another option is to modify
11568 *** your PATH or compiler configuration so that the native linker is
11569 *** used, and then restart.
11570
11571 _LT_EOF
11572       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11573         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11574         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11575       else
11576         ld_shlibs_FC=no
11577       fi
11578       ;;
11579
11580     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11581       case `$LD -v 2>&1` in
11582         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11583         ld_shlibs_FC=no
11584         cat <<_LT_EOF 1>&2
11585
11586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11587 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11588 *** is disabling shared libraries support.  We urge you to upgrade GNU
11589 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11590 *** your PATH or compiler configuration so that the native linker is
11591 *** used, and then restart.
11592
11593 _LT_EOF
11594         ;;
11595         *)
11596           # For security reasons, it is highly recommended that you always
11597           # use absolute paths for naming shared libraries, and exclude the
11598           # DT_RUNPATH tag from executables and libraries.  But doing so
11599           # requires that you compile everything twice, which is a pain.
11600           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11601             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11602             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11604           else
11605             ld_shlibs_FC=no
11606           fi
11607         ;;
11608       esac
11609       ;;
11610
11611     sunos4*)
11612       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11613       wlarc=
11614       hardcode_direct_FC=yes
11615       hardcode_shlibpath_var_FC=no
11616       ;;
11617
11618     *)
11619       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11620         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11621         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11622       else
11623         ld_shlibs_FC=no
11624       fi
11625       ;;
11626     esac
11627
11628     if test "$ld_shlibs_FC" = no; then
11629       runpath_var=
11630       hardcode_libdir_flag_spec_FC=
11631       export_dynamic_flag_spec_FC=
11632       whole_archive_flag_spec_FC=
11633     fi
11634   else
11635     # PORTME fill in a description of your system's linker (not GNU ld)
11636     case $host_os in
11637     aix3*)
11638       allow_undefined_flag_FC=unsupported
11639       always_export_symbols_FC=yes
11640       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'
11641       # Note: this linker hardcodes the directories in LIBPATH if there
11642       # are no directories specified by -L.
11643       hardcode_minus_L_FC=yes
11644       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11645         # Neither direct hardcoding nor static linking is supported with a
11646         # broken collect2.
11647         hardcode_direct_FC=unsupported
11648       fi
11649       ;;
11650
11651     aix[4-9]*)
11652       if test "$host_cpu" = ia64; then
11653         # On IA64, the linker does run time linking by default, so we don't
11654         # have to do anything special.
11655         aix_use_runtimelinking=no
11656         exp_sym_flag='-Bexport'
11657         no_entry_flag=""
11658       else
11659         # If we're using GNU nm, then we don't want the "-C" option.
11660         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11661         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11662           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'
11663         else
11664           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'
11665         fi
11666         aix_use_runtimelinking=no
11667
11668         # Test if we are trying to use run time linking or normal
11669         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11670         # need to do runtime linking.
11671         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11672           for ld_flag in $LDFLAGS; do
11673           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11674             aix_use_runtimelinking=yes
11675             break
11676           fi
11677           done
11678           ;;
11679         esac
11680
11681         exp_sym_flag='-bexport'
11682         no_entry_flag='-bnoentry'
11683       fi
11684
11685       # When large executables or shared objects are built, AIX ld can
11686       # have problems creating the table of contents.  If linking a library
11687       # or program results in "error TOC overflow" add -mminimal-toc to
11688       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11689       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11690
11691       archive_cmds_FC=''
11692       hardcode_direct_FC=yes
11693       hardcode_direct_absolute_FC=yes
11694       hardcode_libdir_separator_FC=':'
11695       link_all_deplibs_FC=yes
11696       file_list_spec_FC='${wl}-f,'
11697
11698       if test "$GCC" = yes; then
11699         case $host_os in aix4.[012]|aix4.[012].*)
11700         # We only want to do this on AIX 4.2 and lower, the check
11701         # below for broken collect2 doesn't work under 4.3+
11702           collect2name=`${CC} -print-prog-name=collect2`
11703           if test -f "$collect2name" &&
11704            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11705           then
11706           # We have reworked collect2
11707           :
11708           else
11709           # We have old collect2
11710           hardcode_direct_FC=unsupported
11711           # It fails to find uninstalled libraries when the uninstalled
11712           # path is not listed in the libpath.  Setting hardcode_minus_L
11713           # to unsupported forces relinking
11714           hardcode_minus_L_FC=yes
11715           hardcode_libdir_flag_spec_FC='-L$libdir'
11716           hardcode_libdir_separator_FC=
11717           fi
11718           ;;
11719         esac
11720         shared_flag='-shared'
11721         if test "$aix_use_runtimelinking" = yes; then
11722           shared_flag="$shared_flag "'${wl}-G'
11723         fi
11724       else
11725         # not using gcc
11726         if test "$host_cpu" = ia64; then
11727         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11728         # chokes on -Wl,-G. The following line is correct:
11729           shared_flag='-G'
11730         else
11731           if test "$aix_use_runtimelinking" = yes; then
11732             shared_flag='${wl}-G'
11733           else
11734             shared_flag='${wl}-bM:SRE'
11735           fi
11736         fi
11737       fi
11738
11739       # It seems that -bexpall does not export symbols beginning with
11740       # underscore (_), so it is better to generate a list of symbols to export.
11741       always_export_symbols_FC=yes
11742       if test "$aix_use_runtimelinking" = yes; then
11743         # Warning - without using the other runtime loading flags (-brtl),
11744         # -berok will link without error, but may produce a broken library.
11745         allow_undefined_flag_FC='-berok'
11746         # Determine the default libpath from the value encoded in an
11747         # empty executable.
11748         cat >conftest.$ac_ext <<_ACEOF
11749       program main
11750
11751       end
11752 _ACEOF
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11755   (eval $ac_link) 2>conftest.er1
11756   ac_status=$?
11757   grep -v '^ *+' conftest.er1 >conftest.err
11758   rm -f conftest.er1
11759   cat conftest.err >&5
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -z "$ac_fc_werror_flag"
11763                          || test ! -s conftest.err'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; } &&
11769          { ac_try='test -s conftest$ac_exeext'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775
11776 lt_aix_libpath_sed='
11777     /Import File Strings/,/^$/ {
11778         /^0/ {
11779             s/^0  *\(.*\)$/\1/
11780             p
11781         }
11782     }'
11783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11784 # Check for a 64-bit object if we didn't find anything.
11785 if test -z "$aix_libpath"; then
11786   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11787 fi
11788 else
11789   echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792 fi
11793 rm -f conftest.err conftest.$ac_objext \
11794       conftest$ac_exeext conftest.$ac_ext
11795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11796
11797         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11798         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"
11799       else
11800         if test "$host_cpu" = ia64; then
11801           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11802           allow_undefined_flag_FC="-z nodefs"
11803           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"
11804         else
11805          # Determine the default libpath from the value encoded in an
11806          # empty executable.
11807          cat >conftest.$ac_ext <<_ACEOF
11808       program main
11809
11810       end
11811 _ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814   (eval $ac_link) 2>conftest.er1
11815   ac_status=$?
11816   grep -v '^ *+' conftest.er1 >conftest.err
11817   rm -f conftest.er1
11818   cat conftest.err >&5
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } &&
11821          { ac_try='test -z "$ac_fc_werror_flag"
11822                          || test ! -s conftest.err'
11823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824   (eval $ac_try) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); }; } &&
11828          { ac_try='test -s conftest$ac_exeext'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834
11835 lt_aix_libpath_sed='
11836     /Import File Strings/,/^$/ {
11837         /^0/ {
11838             s/^0  *\(.*\)$/\1/
11839             p
11840         }
11841     }'
11842 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11843 # Check for a 64-bit object if we didn't find anything.
11844 if test -z "$aix_libpath"; then
11845   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11846 fi
11847 else
11848   echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851 fi
11852 rm -f conftest.err conftest.$ac_objext \
11853       conftest$ac_exeext conftest.$ac_ext
11854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11855
11856          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11857           # Warning - without using the other run time loading flags,
11858           # -berok will link without error, but may produce a broken library.
11859           no_undefined_flag_FC=' ${wl}-bernotok'
11860           allow_undefined_flag_FC=' ${wl}-berok'
11861           # Exported symbols can be pulled into shared objects from archives
11862           whole_archive_flag_spec_FC='$convenience'
11863           archive_cmds_need_lc_FC=yes
11864           # This is similar to how AIX traditionally builds its shared libraries.
11865           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'
11866         fi
11867       fi
11868       ;;
11869
11870     amigaos*)
11871       if test "$host_cpu" = m68k; then
11872         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)'
11873         hardcode_libdir_flag_spec_FC='-L$libdir'
11874         hardcode_minus_L_FC=yes
11875       fi
11876       # see comment about different semantics on the GNU ld section
11877       ld_shlibs_FC=no
11878       ;;
11879
11880     bsdi[45]*)
11881       export_dynamic_flag_spec_FC=-rdynamic
11882       ;;
11883
11884     cygwin* | mingw* | pw32*)
11885       # When not using gcc, we currently assume that we are using
11886       # Microsoft Visual C++.
11887       # hardcode_libdir_flag_spec is actually meaningless, as there is
11888       # no search path for DLLs.
11889       hardcode_libdir_flag_spec_FC=' '
11890       allow_undefined_flag_FC=unsupported
11891       # Tell ltmain to make .lib files, not .a files.
11892       libext=lib
11893       # Tell ltmain to make .dll files, not .so files.
11894       shrext_cmds=".dll"
11895       # FIXME: Setting linknames here is a bad hack.
11896       archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11897       # The linker will automatically build a .lib file if we build a DLL.
11898       old_archive_from_new_cmds_FC='true'
11899       # FIXME: Should let the user specify the lib program.
11900       old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11901       fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11902       enable_shared_with_static_runtimes_FC=yes
11903       ;;
11904
11905     darwin* | rhapsody*)
11906       case $host_os in
11907       rhapsody* | darwin1.[012])
11908         allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11909         ;;
11910       *) # Darwin 1.3 on
11911         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11912         10.[012])
11913           allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11914           ;;
11915         10.*)
11916           allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11917           ;;
11918         esac
11919         ;;
11920       esac
11921       archive_cmds_need_lc_FC=no
11922       hardcode_direct_FC=no
11923       hardcode_automatic_FC=yes
11924       hardcode_shlibpath_var_FC=unsupported
11925       whole_archive_flag_spec_FC=''
11926       link_all_deplibs_FC=yes
11927       if test "$GCC" = yes ; then
11928         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11929   echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931   lt_cv_apple_cc_single_mod=no
11932         if test -z "${LT_MULTI_MODULE}"; then
11933           # By default we will add the -single_module flag. You can override
11934           # by either setting the environment variable LT_MULTI_MODULE
11935           # non-empty at configure time, or by adding -multi-module to the
11936           # link flags.
11937           echo "int foo(void){return 1;}" > conftest.c
11938           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11939               -dynamiclib ${wl}-single_module conftest.c
11940           if test -f libconftest.dylib; then
11941               lt_cv_apple_cc_single_mod=yes
11942               rm libconftest.dylib
11943           fi
11944           rm conftest.$ac_ext
11945         fi
11946 fi
11947
11948         output_verbose_link_cmd=echo
11949         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11950           archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11951           archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11952         else
11953           archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11954           archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11955         fi
11956         module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11957         module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11958       else
11959         case $cc_basename in
11960         xlc*)
11961           output_verbose_link_cmd=echo
11962           archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11963           module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11964           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11965           archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11966           module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11967           ;;
11968         *)
11969           ld_shlibs_FC=no
11970           ;;
11971         esac
11972       fi
11973       ;;
11974
11975     dgux*)
11976       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11977       hardcode_libdir_flag_spec_FC='-L$libdir'
11978       hardcode_shlibpath_var_FC=no
11979       ;;
11980
11981     freebsd1*)
11982       ld_shlibs_FC=no
11983       ;;
11984
11985     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11986     # support.  Future versions do this automatically, but an explicit c++rt0.o
11987     # does not break anything, and helps significantly (at the cost of a little
11988     # extra space).
11989     freebsd2.2*)
11990       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11991       hardcode_libdir_flag_spec_FC='-R$libdir'
11992       hardcode_direct_FC=yes
11993       hardcode_shlibpath_var_FC=no
11994       ;;
11995
11996     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11997     freebsd2*)
11998       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11999       hardcode_direct_FC=yes
12000       hardcode_minus_L_FC=yes
12001       hardcode_shlibpath_var_FC=no
12002       ;;
12003
12004     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12005     freebsd* | dragonfly*)
12006       archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12007       hardcode_libdir_flag_spec_FC='-R$libdir'
12008       hardcode_direct_FC=yes
12009       hardcode_shlibpath_var_FC=no
12010       ;;
12011
12012     hpux9*)
12013       if test "$GCC" = yes; then
12014         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'
12015       else
12016         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'
12017       fi
12018       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12019       hardcode_libdir_separator_FC=:
12020       hardcode_direct_FC=yes
12021
12022       # hardcode_minus_L: Not really in the search PATH,
12023       # but as the default location of the library.
12024       hardcode_minus_L_FC=yes
12025       export_dynamic_flag_spec_FC='${wl}-E'
12026       ;;
12027
12028     hpux10*)
12029       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12030         archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12031       else
12032         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12033       fi
12034       if test "$with_gnu_ld" = no; then
12035         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12036         hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12037         hardcode_libdir_separator_FC=:
12038         hardcode_direct_FC=yes
12039         hardcode_direct_absolute_FC=yes
12040         export_dynamic_flag_spec_FC='${wl}-E'
12041         # hardcode_minus_L: Not really in the search PATH,
12042         # but as the default location of the library.
12043         hardcode_minus_L_FC=yes
12044       fi
12045       ;;
12046
12047     hpux11*)
12048       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12049         case $host_cpu in
12050         hppa*64*)
12051           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12052           ;;
12053         ia64*)
12054           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12055           ;;
12056         *)
12057           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12058           ;;
12059         esac
12060       else
12061         case $host_cpu in
12062         hppa*64*)
12063           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12064           ;;
12065         ia64*)
12066           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12067           ;;
12068         *)
12069           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12070           ;;
12071         esac
12072       fi
12073       if test "$with_gnu_ld" = no; then
12074         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12075         hardcode_libdir_separator_FC=:
12076
12077         case $host_cpu in
12078         hppa*64*|ia64*)
12079           hardcode_direct_FC=no
12080           hardcode_shlibpath_var_FC=no
12081           ;;
12082         *)
12083           hardcode_direct_FC=yes
12084           hardcode_direct_absolute_FC=yes
12085           export_dynamic_flag_spec_FC='${wl}-E'
12086
12087           # hardcode_minus_L: Not really in the search PATH,
12088           # but as the default location of the library.
12089           hardcode_minus_L_FC=yes
12090           ;;
12091         esac
12092       fi
12093       ;;
12094
12095     irix5* | irix6* | nonstopux*)
12096       if test "$GCC" = yes; then
12097         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'
12098         # Try to use the -exported_symbol ld option, if it does not
12099         # work, assume that -exports_file does not work either and
12100         # implicitly export all symbols.
12101         save_LDFLAGS="$LDFLAGS"
12102         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12103         cat >conftest.$ac_ext <<_ACEOF
12104 int foo(void) {}
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108   (eval $ac_link) 2>conftest.er1
12109   ac_status=$?
12110   grep -v '^ *+' conftest.er1 >conftest.err
12111   rm -f conftest.er1
12112   cat conftest.err >&5
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); } &&
12115          { ac_try='test -z "$ac_fc_werror_flag"
12116                          || test ! -s conftest.err'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; } &&
12122          { ac_try='test -s conftest$ac_exeext'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; }; then
12128   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'
12129
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 fi
12135 rm -f conftest.err conftest.$ac_objext \
12136       conftest$ac_exeext conftest.$ac_ext
12137         LDFLAGS="$save_LDFLAGS"
12138       else
12139         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'
12140         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'
12141       fi
12142       archive_cmds_need_lc_FC='no'
12143       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12144       hardcode_libdir_separator_FC=:
12145       inherit_rpath_FC=yes
12146       link_all_deplibs_FC=yes
12147       ;;
12148
12149     netbsd*)
12150       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12151         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12152       else
12153         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12154       fi
12155       hardcode_libdir_flag_spec_FC='-R$libdir'
12156       hardcode_direct_FC=yes
12157       hardcode_shlibpath_var_FC=no
12158       ;;
12159
12160     newsos6)
12161       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12162       hardcode_direct_FC=yes
12163       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12164       hardcode_libdir_separator_FC=:
12165       hardcode_shlibpath_var_FC=no
12166       ;;
12167
12168     *nto* | *qnx*)
12169       ;;
12170
12171     openbsd*)
12172       hardcode_direct_FC=yes
12173       hardcode_shlibpath_var_FC=no
12174       hardcode_direct_absolute_FC=yes
12175       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12176         archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12177         archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12178         hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12179         export_dynamic_flag_spec_FC='${wl}-E'
12180       else
12181         case $host_os in
12182         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12183           archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12184           hardcode_libdir_flag_spec_FC='-R$libdir'
12185           ;;
12186         *)
12187           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12188           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12189           ;;
12190         esac
12191       fi
12192       ;;
12193
12194     os2*)
12195       hardcode_libdir_flag_spec_FC='-L$libdir'
12196       hardcode_minus_L_FC=yes
12197       allow_undefined_flag_FC=unsupported
12198       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'
12199       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12200       ;;
12201
12202     osf3*)
12203       if test "$GCC" = yes; then
12204         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12205         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'
12206       else
12207         allow_undefined_flag_FC=' -expect_unresolved \*'
12208         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'
12209       fi
12210       archive_cmds_need_lc_FC='no'
12211       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12212       hardcode_libdir_separator_FC=:
12213       ;;
12214
12215     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12216       if test "$GCC" = yes; then
12217         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12218         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'
12219         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12220       else
12221         allow_undefined_flag_FC=' -expect_unresolved \*'
12222         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'
12223         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~
12224         $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'
12225
12226         # Both c and cxx compiler support -rpath directly
12227         hardcode_libdir_flag_spec_FC='-rpath $libdir'
12228       fi
12229       archive_cmds_need_lc_FC='no'
12230       hardcode_libdir_separator_FC=:
12231       ;;
12232
12233     solaris*)
12234       no_undefined_flag_FC=' -z defs'
12235       if test "$GCC" = yes; then
12236         wlarc='${wl}'
12237         archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12238         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12239           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12240       else
12241         case `$CC -V 2>&1` in
12242         *"Compilers 5.0"*)
12243           wlarc=''
12244           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12245           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12246           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12247           ;;
12248         *)
12249           wlarc='${wl}'
12250           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12251           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12252           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12253           ;;
12254         esac
12255       fi
12256       hardcode_libdir_flag_spec_FC='-R$libdir'
12257       hardcode_shlibpath_var_FC=no
12258       case $host_os in
12259       solaris2.[0-5] | solaris2.[0-5].*) ;;
12260       *)
12261         # The compiler driver will combine and reorder linker options,
12262         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12263         # but is careful enough not to reorder.
12264         # Supported since Solaris 2.6 (maybe 2.5.1?)
12265         if test "$GCC" = yes; then
12266           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12267         else
12268           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12269         fi
12270         ;;
12271       esac
12272       link_all_deplibs_FC=yes
12273       ;;
12274
12275     sunos4*)
12276       if test "x$host_vendor" = xsequent; then
12277         # Use $CC to link under sequent, because it throws in some extra .o
12278         # files that make .init and .fini sections work.
12279         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12280       else
12281         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12282       fi
12283       hardcode_libdir_flag_spec_FC='-L$libdir'
12284       hardcode_direct_FC=yes
12285       hardcode_minus_L_FC=yes
12286       hardcode_shlibpath_var_FC=no
12287       ;;
12288
12289     sysv4)
12290       case $host_vendor in
12291         sni)
12292           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12293           hardcode_direct_FC=yes # is this really true???
12294         ;;
12295         siemens)
12296           ## LD is ld it makes a PLAMLIB
12297           ## CC just makes a GrossModule.
12298           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12299           reload_cmds_FC='$CC -r -o $output$reload_objs'
12300           hardcode_direct_FC=no
12301         ;;
12302         motorola)
12303           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12304           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12305         ;;
12306       esac
12307       runpath_var='LD_RUN_PATH'
12308       hardcode_shlibpath_var_FC=no
12309       ;;
12310
12311     sysv4.3*)
12312       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313       hardcode_shlibpath_var_FC=no
12314       export_dynamic_flag_spec_FC='-Bexport'
12315       ;;
12316
12317     sysv4*MP*)
12318       if test -d /usr/nec; then
12319         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320         hardcode_shlibpath_var_FC=no
12321         runpath_var=LD_RUN_PATH
12322         hardcode_runpath_var=yes
12323         ld_shlibs_FC=yes
12324       fi
12325       ;;
12326
12327     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12328       no_undefined_flag_FC='${wl}-z,text'
12329       archive_cmds_need_lc_FC=no
12330       hardcode_shlibpath_var_FC=no
12331       runpath_var='LD_RUN_PATH'
12332
12333       if test "$GCC" = yes; then
12334         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336       else
12337         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339       fi
12340       ;;
12341
12342     sysv5* | sco3.2v5* | sco5v6*)
12343       # Note: We can NOT use -z defs as we might desire, because we do not
12344       # link with -lc, and that would cause any symbols used from libc to
12345       # always be unresolved, which means just about no library would
12346       # ever link correctly.  If we're not using GNU ld we use -z text
12347       # though, which does catch some bad symbols but isn't as heavy-handed
12348       # as -z defs.
12349       no_undefined_flag_FC='${wl}-z,text'
12350       allow_undefined_flag_FC='${wl}-z,nodefs'
12351       archive_cmds_need_lc_FC=no
12352       hardcode_shlibpath_var_FC=no
12353       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12354       hardcode_libdir_separator_FC=':'
12355       link_all_deplibs_FC=yes
12356       export_dynamic_flag_spec_FC='${wl}-Bexport'
12357       runpath_var='LD_RUN_PATH'
12358
12359       if test "$GCC" = yes; then
12360         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362       else
12363         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12365       fi
12366       ;;
12367
12368     uts4*)
12369       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12370       hardcode_libdir_flag_spec_FC='-L$libdir'
12371       hardcode_shlibpath_var_FC=no
12372       ;;
12373
12374     *)
12375       ld_shlibs_FC=no
12376       ;;
12377     esac
12378
12379     if test x$host_vendor = xsni; then
12380       case $host in
12381       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12382         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12383         ;;
12384       esac
12385     fi
12386   fi
12387
12388 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12389 echo "${ECHO_T}$ld_shlibs_FC" >&6
12390 test "$ld_shlibs_FC" = no && can_build_shared=no
12391
12392 with_gnu_ld_FC=$with_gnu_ld
12393
12394
12395
12396
12397
12398
12399 #
12400 # Do we need to explicitly link libc?
12401 #
12402 case "x$archive_cmds_need_lc_FC" in
12403 x|xyes)
12404   # Assume -lc should be added
12405   archive_cmds_need_lc_FC=yes
12406
12407   if test "$enable_shared" = yes && test "$GCC" = yes; then
12408     case $archive_cmds_FC in
12409     *'~'*)
12410       # FIXME: we may have to deal with multi-command sequences.
12411       ;;
12412     '$CC '*)
12413       # Test whether the compiler implicitly links with -lc since on some
12414       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12415       # to ld, don't add -lc before -lgcc.
12416       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12417 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12418       $RM conftest*
12419       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12420
12421       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422   (eval $ac_compile) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } 2>conftest.err; then
12426         soname=conftest
12427         lib=conftest
12428         libobjs=conftest.$ac_objext
12429         deplibs=
12430         wl=$lt_prog_compiler_wl_FC
12431         pic_flag=$lt_prog_compiler_pic_FC
12432         compiler_flags=-v
12433         linker_flags=-v
12434         verstring=
12435         output_objdir=.
12436         libname=conftest
12437         lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12438         allow_undefined_flag_FC=
12439         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12440   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }
12444         then
12445           archive_cmds_need_lc_FC=no
12446         else
12447           archive_cmds_need_lc_FC=yes
12448         fi
12449         allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12450       else
12451         cat conftest.err 1>&5
12452       fi
12453       $RM conftest*
12454       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12455 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12456       ;;
12457     esac
12458   fi
12459   ;;
12460 esac
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12527 withGCC=$ac_cv_fc_compiler_gnu
12528 library_names_spec=
12529 libname_spec='lib$name'
12530 soname_spec=
12531 shrext_cmds=".so"
12532 postinstall_cmds=
12533 postuninstall_cmds=
12534 finish_cmds=
12535 finish_eval=
12536 shlibpath_var=
12537 shlibpath_overrides_runpath=unknown
12538 version_type=none
12539 dynamic_linker="$host_os ld.so"
12540 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12541 need_lib_prefix=unknown
12542 hardcode_into_libs=no
12543
12544 # when you set need_version to no, make sure it does not cause -set_version
12545 # flags to be left without arguments
12546 need_version=unknown
12547
12548 case $host_os in
12549 aix3*)
12550   version_type=linux
12551   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12552   shlibpath_var=LIBPATH
12553
12554   # AIX 3 has no versioning support, so we append a major version to the name.
12555   soname_spec='${libname}${release}${shared_ext}$major'
12556   ;;
12557
12558 aix[4-9]*)
12559   version_type=linux
12560   need_lib_prefix=no
12561   need_version=no
12562   hardcode_into_libs=yes
12563   if test "$host_cpu" = ia64; then
12564     # AIX 5 supports IA64
12565     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12566     shlibpath_var=LD_LIBRARY_PATH
12567   else
12568     # With GCC up to 2.95.x, collect2 would create an import file
12569     # for dependence libraries.  The import file would start with
12570     # the line `#! .'.  This would cause the generated library to
12571     # depend on `.', always an invalid library.  This was fixed in
12572     # development snapshots of GCC prior to 3.0.
12573     case $host_os in
12574       aix4 | aix4.[01] | aix4.[01].*)
12575       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12576            echo ' yes '
12577            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12578         :
12579       else
12580         can_build_shared=no
12581       fi
12582       ;;
12583     esac
12584     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12585     # soname into executable. Probably we can add versioning support to
12586     # collect2, so additional links can be useful in future.
12587     if test "$aix_use_runtimelinking" = yes; then
12588       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12589       # instead of lib<name>.a to let people know that these are not
12590       # typical AIX shared libraries.
12591       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12592     else
12593       # We preserve .a as extension for shared libraries through AIX4.2
12594       # and later when we are not doing run time linking.
12595       library_names_spec='${libname}${release}.a $libname.a'
12596       soname_spec='${libname}${release}${shared_ext}$major'
12597     fi
12598     shlibpath_var=LIBPATH
12599   fi
12600   ;;
12601
12602 amigaos*)
12603   if test "$host_cpu" = m68k; then
12604     library_names_spec='$libname.ixlibrary $libname.a'
12605     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12606     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'
12607   else
12608     dynamic_linker=no
12609   fi
12610   ;;
12611
12612 beos*)
12613   library_names_spec='${libname}${shared_ext}'
12614   dynamic_linker="$host_os ld.so"
12615   shlibpath_var=LIBRARY_PATH
12616   ;;
12617
12618 bsdi[45]*)
12619   version_type=linux
12620   need_version=no
12621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622   soname_spec='${libname}${release}${shared_ext}$major'
12623   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12624   shlibpath_var=LD_LIBRARY_PATH
12625   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12626   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12627   # the default ld.so.conf also contains /usr/contrib/lib and
12628   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12629   # libtool to hard-code these into programs
12630   ;;
12631
12632 cygwin* | mingw* | pw32*)
12633   version_type=windows
12634   shrext_cmds=".dll"
12635   need_version=no
12636   need_lib_prefix=no
12637
12638   case $withGCC,$host_os in
12639   yes,cygwin* | yes,mingw* | yes,pw32*)
12640     library_names_spec='$libname.dll.a'
12641     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12642     postinstall_cmds='base_file=`basename \${file}`~
12643       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12644       dldir=$destdir/`dirname \$dlpath`~
12645       test -d \$dldir || mkdir -p \$dldir~
12646       $install_prog $dir/$dlname \$dldir/$dlname~
12647       chmod a+x \$dldir/$dlname~
12648       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12649         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12650       fi'
12651     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12652       dlpath=$dir/\$dldll~
12653        $RM \$dlpath'
12654     shlibpath_overrides_runpath=yes
12655
12656     case $host_os in
12657     cygwin*)
12658       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12659       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12660       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12661       ;;
12662     mingw*)
12663       # MinGW DLLs use traditional 'lib' prefix
12664       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12665       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12666       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12667         # It is most probably a Windows format PATH printed by
12668         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12669         # path with ; separators, and with drive letters. We can handle the
12670         # drive letters (cygwin fileutils understands them), so leave them,
12671         # especially as we might pass files found there to a mingw objdump,
12672         # which wouldn't understand a cygwinified path. Ahh.
12673         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12674       else
12675         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12676       fi
12677       ;;
12678     pw32*)
12679       # pw32 DLLs use 'pw' prefix rather than 'lib'
12680       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12681       ;;
12682     esac
12683     ;;
12684
12685   *)
12686     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12687     ;;
12688   esac
12689   dynamic_linker='Win32 ld.exe'
12690   # FIXME: first we should search . and the directory the executable is in
12691   shlibpath_var=PATH
12692   ;;
12693
12694 darwin* | rhapsody*)
12695   dynamic_linker="$host_os dyld"
12696   version_type=darwin
12697   need_lib_prefix=no
12698   need_version=no
12699   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12700   soname_spec='${libname}${release}${major}$shared_ext'
12701   shlibpath_overrides_runpath=yes
12702   shlibpath_var=DYLD_LIBRARY_PATH
12703   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12704
12705   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12706   ;;
12707
12708 dgux*)
12709   version_type=linux
12710   need_lib_prefix=no
12711   need_version=no
12712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12713   soname_spec='${libname}${release}${shared_ext}$major'
12714   shlibpath_var=LD_LIBRARY_PATH
12715   ;;
12716
12717 freebsd1*)
12718   dynamic_linker=no
12719   ;;
12720
12721 freebsd* | dragonfly*)
12722   # DragonFly does not have aout.  When/if they implement a new
12723   # versioning mechanism, adjust this.
12724   if test -x /usr/bin/objformat; then
12725     objformat=`/usr/bin/objformat`
12726   else
12727     case $host_os in
12728     freebsd[123]*) objformat=aout ;;
12729     *) objformat=elf ;;
12730     esac
12731   fi
12732   version_type=freebsd-$objformat
12733   case $version_type in
12734     freebsd-elf*)
12735       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12736       need_version=no
12737       need_lib_prefix=no
12738       ;;
12739     freebsd-*)
12740       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12741       need_version=yes
12742       ;;
12743   esac
12744   shlibpath_var=LD_LIBRARY_PATH
12745   case $host_os in
12746   freebsd2*)
12747     shlibpath_overrides_runpath=yes
12748     ;;
12749   freebsd3.[01]* | freebsdelf3.[01]*)
12750     shlibpath_overrides_runpath=yes
12751     hardcode_into_libs=yes
12752     ;;
12753   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12754   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12755     shlibpath_overrides_runpath=no
12756     hardcode_into_libs=yes
12757     ;;
12758   *) # from 4.6 on, and DragonFly
12759     shlibpath_overrides_runpath=yes
12760     hardcode_into_libs=yes
12761     ;;
12762   esac
12763   ;;
12764
12765 gnu*)
12766   version_type=linux
12767   need_lib_prefix=no
12768   need_version=no
12769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12770   soname_spec='${libname}${release}${shared_ext}$major'
12771   shlibpath_var=LD_LIBRARY_PATH
12772   hardcode_into_libs=yes
12773   ;;
12774
12775 hpux9* | hpux10* | hpux11*)
12776   # Give a soname corresponding to the major version so that dld.sl refuses to
12777   # link against other versions.
12778   version_type=sunos
12779   need_lib_prefix=no
12780   need_version=no
12781   case $host_cpu in
12782   ia64*)
12783     shrext_cmds='.so'
12784     hardcode_into_libs=yes
12785     dynamic_linker="$host_os dld.so"
12786     shlibpath_var=LD_LIBRARY_PATH
12787     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789     soname_spec='${libname}${release}${shared_ext}$major'
12790     if test "X$HPUX_IA64_MODE" = X32; then
12791       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12792     else
12793       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12794     fi
12795     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12796     ;;
12797   hppa*64*)
12798     shrext_cmds='.sl'
12799     hardcode_into_libs=yes
12800     dynamic_linker="$host_os dld.sl"
12801     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804     soname_spec='${libname}${release}${shared_ext}$major'
12805     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12807     ;;
12808   *)
12809     shrext_cmds='.sl'
12810     dynamic_linker="$host_os dld.sl"
12811     shlibpath_var=SHLIB_PATH
12812     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814     soname_spec='${libname}${release}${shared_ext}$major'
12815     ;;
12816   esac
12817   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12818   postinstall_cmds='chmod 555 $lib'
12819   ;;
12820
12821 interix[3-9]*)
12822   version_type=linux
12823   need_lib_prefix=no
12824   need_version=no
12825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12826   soname_spec='${libname}${release}${shared_ext}$major'
12827   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12828   shlibpath_var=LD_LIBRARY_PATH
12829   shlibpath_overrides_runpath=no
12830   hardcode_into_libs=yes
12831   ;;
12832
12833 irix5* | irix6* | nonstopux*)
12834   case $host_os in
12835     nonstopux*) version_type=nonstopux ;;
12836     *)
12837         if test "$lt_cv_prog_gnu_ld" = yes; then
12838                 version_type=linux
12839         else
12840                 version_type=irix
12841         fi ;;
12842   esac
12843   need_lib_prefix=no
12844   need_version=no
12845   soname_spec='${libname}${release}${shared_ext}$major'
12846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12847   case $host_os in
12848   irix5* | nonstopux*)
12849     libsuff= shlibsuff=
12850     ;;
12851   *)
12852     case $LD in # libtool.m4 will add one of these switches to LD
12853     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12854       libsuff= shlibsuff= libmagic=32-bit;;
12855     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12856       libsuff=32 shlibsuff=N32 libmagic=N32;;
12857     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12858       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12859     *) libsuff= shlibsuff= libmagic=never-match;;
12860     esac
12861     ;;
12862   esac
12863   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12864   shlibpath_overrides_runpath=no
12865   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12866   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12867   hardcode_into_libs=yes
12868   ;;
12869
12870 # No shared lib support for Linux oldld, aout, or coff.
12871 linux*oldld* | linux*aout* | linux*coff*)
12872   dynamic_linker=no
12873   ;;
12874
12875 # This must be Linux ELF.
12876 linux* | k*bsd*-gnu)
12877   version_type=linux
12878   need_lib_prefix=no
12879   need_version=no
12880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881   soname_spec='${libname}${release}${shared_ext}$major'
12882   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12883   shlibpath_var=LD_LIBRARY_PATH
12884   shlibpath_overrides_runpath=no
12885   # Some binutils ld are patched to set DT_RUNPATH
12886   save_LDFLAGS=$LDFLAGS
12887   save_libdir=$libdir
12888   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12889        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12890   cat >conftest.$ac_ext <<_ACEOF
12891       program main
12892
12893       end
12894 _ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897   (eval $ac_link) 2>conftest.er1
12898   ac_status=$?
12899   grep -v '^ *+' conftest.er1 >conftest.err
12900   rm -f conftest.er1
12901   cat conftest.err >&5
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); } &&
12904          { ac_try='test -z "$ac_fc_werror_flag"
12905                          || test ! -s conftest.err'
12906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907   (eval $ac_try) 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; } &&
12911          { ac_try='test -s conftest$ac_exeext'
12912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913   (eval $ac_try) 2>&5
12914   ac_status=$?
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); }; }; then
12917   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12918   shlibpath_overrides_runpath=yes
12919 fi
12920
12921 else
12922   echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925 fi
12926 rm -f conftest.err conftest.$ac_objext \
12927       conftest$ac_exeext conftest.$ac_ext
12928   LDFLAGS=$save_LDFLAGS
12929   libdir=$save_libdir
12930
12931   # This implies no fast_install, which is unacceptable.
12932   # Some rework will be needed to allow for fast_install
12933   # before this can be enabled.
12934   hardcode_into_libs=yes
12935
12936   # Append ld.so.conf contents to the search path
12937   if test -f /etc/ld.so.conf; then
12938     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12939     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12940   fi
12941
12942   # We used to test for /lib/ld.so.1 and disable shared libraries on
12943   # powerpc, because MkLinux only supported shared libraries with the
12944   # GNU dynamic linker.  Since this was broken with cross compilers,
12945   # most powerpc-linux boxes support dynamic linking these days and
12946   # people can always --disable-shared, the test was removed, and we
12947   # assume the GNU/Linux dynamic linker is in use.
12948   dynamic_linker='GNU/Linux ld.so'
12949   ;;
12950
12951 netbsd*)
12952   version_type=sunos
12953   need_lib_prefix=no
12954   need_version=no
12955   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12957     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12958     dynamic_linker='NetBSD (a.out) ld.so'
12959   else
12960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12961     soname_spec='${libname}${release}${shared_ext}$major'
12962     dynamic_linker='NetBSD ld.elf_so'
12963   fi
12964   shlibpath_var=LD_LIBRARY_PATH
12965   shlibpath_overrides_runpath=yes
12966   hardcode_into_libs=yes
12967   ;;
12968
12969 newsos6)
12970   version_type=linux
12971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972   shlibpath_var=LD_LIBRARY_PATH
12973   shlibpath_overrides_runpath=yes
12974   ;;
12975
12976 *nto* | *qnx*)
12977   version_type=qnx
12978   need_lib_prefix=no
12979   need_version=no
12980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981   soname_spec='${libname}${release}${shared_ext}$major'
12982   shlibpath_var=LD_LIBRARY_PATH
12983   shlibpath_overrides_runpath=no
12984   hardcode_into_libs=yes
12985   dynamic_linker='ldqnx.so'
12986   ;;
12987
12988 openbsd*)
12989   version_type=sunos
12990   sys_lib_dlsearch_path_spec="/usr/lib"
12991   need_lib_prefix=no
12992   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12993   case $host_os in
12994     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12995     *)                          need_version=no  ;;
12996   esac
12997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999   shlibpath_var=LD_LIBRARY_PATH
13000   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13001     case $host_os in
13002       openbsd2.[89] | openbsd2.[89].*)
13003         shlibpath_overrides_runpath=no
13004         ;;
13005       *)
13006         shlibpath_overrides_runpath=yes
13007         ;;
13008       esac
13009   else
13010     shlibpath_overrides_runpath=yes
13011   fi
13012   ;;
13013
13014 os2*)
13015   libname_spec='$name'
13016   shrext_cmds=".dll"
13017   need_lib_prefix=no
13018   library_names_spec='$libname${shared_ext} $libname.a'
13019   dynamic_linker='OS/2 ld.exe'
13020   shlibpath_var=LIBPATH
13021   ;;
13022
13023 osf3* | osf4* | osf5*)
13024   version_type=osf
13025   need_lib_prefix=no
13026   need_version=no
13027   soname_spec='${libname}${release}${shared_ext}$major'
13028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13029   shlibpath_var=LD_LIBRARY_PATH
13030   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13031   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13032   ;;
13033
13034 rdos*)
13035   dynamic_linker=no
13036   ;;
13037
13038 solaris*)
13039   version_type=linux
13040   need_lib_prefix=no
13041   need_version=no
13042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043   soname_spec='${libname}${release}${shared_ext}$major'
13044   shlibpath_var=LD_LIBRARY_PATH
13045   shlibpath_overrides_runpath=yes
13046   hardcode_into_libs=yes
13047   # ldd complains unless libraries are executable
13048   postinstall_cmds='chmod +x $lib'
13049   ;;
13050
13051 sunos4*)
13052   version_type=sunos
13053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13054   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13055   shlibpath_var=LD_LIBRARY_PATH
13056   shlibpath_overrides_runpath=yes
13057   if test "$with_gnu_ld" = yes; then
13058     need_lib_prefix=no
13059   fi
13060   need_version=yes
13061   ;;
13062
13063 sysv4 | sysv4.3*)
13064   version_type=linux
13065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066   soname_spec='${libname}${release}${shared_ext}$major'
13067   shlibpath_var=LD_LIBRARY_PATH
13068   case $host_vendor in
13069     sni)
13070       shlibpath_overrides_runpath=no
13071       need_lib_prefix=no
13072       runpath_var=LD_RUN_PATH
13073       ;;
13074     siemens)
13075       need_lib_prefix=no
13076       ;;
13077     motorola)
13078       need_lib_prefix=no
13079       need_version=no
13080       shlibpath_overrides_runpath=no
13081       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13082       ;;
13083   esac
13084   ;;
13085
13086 sysv4*MP*)
13087   if test -d /usr/nec ;then
13088     version_type=linux
13089     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13090     soname_spec='$libname${shared_ext}.$major'
13091     shlibpath_var=LD_LIBRARY_PATH
13092   fi
13093   ;;
13094
13095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13096   version_type=freebsd-elf
13097   need_lib_prefix=no
13098   need_version=no
13099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13100   soname_spec='${libname}${release}${shared_ext}$major'
13101   shlibpath_var=LD_LIBRARY_PATH
13102   shlibpath_overrides_runpath=yes
13103   hardcode_into_libs=yes
13104   if test "$with_gnu_ld" = yes; then
13105     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13106   else
13107     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13108     case $host_os in
13109       sco3.2v5*)
13110         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13111         ;;
13112     esac
13113   fi
13114   sys_lib_dlsearch_path_spec='/usr/lib'
13115   ;;
13116
13117 tpf*)
13118   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13119   version_type=linux
13120   need_lib_prefix=no
13121   need_version=no
13122   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13123   shlibpath_var=LD_LIBRARY_PATH
13124   shlibpath_overrides_runpath=no
13125   hardcode_into_libs=yes
13126   ;;
13127
13128 uts4*)
13129   version_type=linux
13130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131   soname_spec='${libname}${release}${shared_ext}$major'
13132   shlibpath_var=LD_LIBRARY_PATH
13133   ;;
13134
13135 *)
13136   dynamic_linker=no
13137   ;;
13138 esac
13139 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13140 echo "${ECHO_T}$dynamic_linker" >&6
13141 test "$dynamic_linker" = no && can_build_shared=no
13142
13143 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13144 if test "$GCC" = yes; then
13145   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13146 fi
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13185 hardcode_action_FC=
13186 if test -n "$hardcode_libdir_flag_spec_FC" ||
13187    test -n "$runpath_var_FC" ||
13188    test "X$hardcode_automatic_FC" = "Xyes" ; then
13189
13190   # We can hardcode non-existent directories.
13191   if test "$hardcode_direct_FC" != no &&
13192      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13193      # have to relink, otherwise we might link with an installed library
13194      # when we should be linking with a yet-to-be-installed one
13195      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13196      test "$hardcode_minus_L_FC" != no; then
13197     # Linking always hardcodes the temporary library directory.
13198     hardcode_action_FC=relink
13199   else
13200     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13201     hardcode_action_FC=immediate
13202   fi
13203 else
13204   # We cannot hardcode anything, or else we can only hardcode existing
13205   # directories.
13206   hardcode_action_FC=unsupported
13207 fi
13208 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13209 echo "${ECHO_T}$hardcode_action_FC" >&6
13210
13211 if test "$hardcode_action_FC" = relink ||
13212    test "$inherit_rpath_FC" = yes; then
13213   # Fast installation is not supported
13214   enable_fast_install=no
13215 elif test "$shlibpath_overrides_runpath" = yes ||
13216      test "$enable_shared" = no; then
13217   # Fast installation is not necessary
13218   enable_fast_install=needless
13219 fi
13220
13221
13222
13223
13224
13225
13226
13227   fi # test -n "$compiler"
13228
13229   CC="$lt_save_CC"
13230 fi # test "$_lt_disable_FC" != yes
13231
13232 ac_ext=c
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238
13239 FCFLAGS="$FCFLAGS -Wall"
13240
13241 # For libtool versioning info, format is CURRENT:REVISION:AGE
13242 libtool_VERSION=1:0:0
13243
13244
13245 # Check header files.
13246 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13248 if test "${ac_cv_header_stdc+set}" = set; then
13249   echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251   cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257 #include <stdlib.h>
13258 #include <stdarg.h>
13259 #include <string.h>
13260 #include <float.h>
13261
13262 int
13263 main ()
13264 {
13265
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13272   (eval $ac_compile) 2>conftest.er1
13273   ac_status=$?
13274   grep -v '^ *+' conftest.er1 >conftest.err
13275   rm -f conftest.er1
13276   cat conftest.err >&5
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); } &&
13279          { ac_try='test -z "$ac_c_werror_flag"
13280                          || test ! -s conftest.err'
13281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282   (eval $ac_try) 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; } &&
13286          { ac_try='test -s conftest.$ac_objext'
13287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288   (eval $ac_try) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); }; }; then
13292   ac_cv_header_stdc=yes
13293 else
13294   echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 ac_cv_header_stdc=no
13298 fi
13299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13300
13301 if test $ac_cv_header_stdc = yes; then
13302   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13303   cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h.  */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h.  */
13309 #include <string.h>
13310
13311 _ACEOF
13312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13313   $EGREP "memchr" >/dev/null 2>&1; then
13314   :
13315 else
13316   ac_cv_header_stdc=no
13317 fi
13318 rm -f conftest*
13319
13320 fi
13321
13322 if test $ac_cv_header_stdc = yes; then
13323   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13324   cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13330 #include <stdlib.h>
13331
13332 _ACEOF
13333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13334   $EGREP "free" >/dev/null 2>&1; then
13335   :
13336 else
13337   ac_cv_header_stdc=no
13338 fi
13339 rm -f conftest*
13340
13341 fi
13342
13343 if test $ac_cv_header_stdc = yes; then
13344   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13345   if test "$cross_compiling" = yes; then
13346   :
13347 else
13348   cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354 #include <ctype.h>
13355 #if ((' ' & 0x0FF) == 0x020)
13356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13358 #else
13359 # define ISLOWER(c) \
13360                    (('a' <= (c) && (c) <= 'i') \
13361                      || ('j' <= (c) && (c) <= 'r') \
13362                      || ('s' <= (c) && (c) <= 'z'))
13363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13364 #endif
13365
13366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13367 int
13368 main ()
13369 {
13370   int i;
13371   for (i = 0; i < 256; i++)
13372     if (XOR (islower (i), ISLOWER (i))
13373         || toupper (i) != TOUPPER (i))
13374       exit(2);
13375   exit (0);
13376 }
13377 _ACEOF
13378 rm -f conftest$ac_exeext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380   (eval $ac_link) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   :
13390 else
13391   echo "$as_me: program exited with status $ac_status" >&5
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 ( exit $ac_status )
13396 ac_cv_header_stdc=no
13397 fi
13398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13399 fi
13400 fi
13401 fi
13402 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13403 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13404 if test $ac_cv_header_stdc = yes; then
13405
13406 cat >>confdefs.h <<\_ACEOF
13407 #define STDC_HEADERS 1
13408 _ACEOF
13409
13410 fi
13411
13412 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13413 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13414 if test "${ac_cv_header_time+set}" = set; then
13415   echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417   cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 #include <sys/types.h>
13424 #include <sys/time.h>
13425 #include <time.h>
13426
13427 int
13428 main ()
13429 {
13430 if ((struct tm *) 0)
13431 return 0;
13432   ;
13433   return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438   (eval $ac_compile) 2>conftest.er1
13439   ac_status=$?
13440   grep -v '^ *+' conftest.er1 >conftest.err
13441   rm -f conftest.er1
13442   cat conftest.err >&5
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); } &&
13445          { ac_try='test -z "$ac_c_werror_flag"
13446                          || test ! -s conftest.err'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; } &&
13452          { ac_try='test -s conftest.$ac_objext'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; }; then
13458   ac_cv_header_time=yes
13459 else
13460   echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462
13463 ac_cv_header_time=no
13464 fi
13465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13466 fi
13467 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13468 echo "${ECHO_T}$ac_cv_header_time" >&6
13469 if test $ac_cv_header_time = yes; then
13470
13471 cat >>confdefs.h <<\_ACEOF
13472 #define TIME_WITH_SYS_TIME 1
13473 _ACEOF
13474
13475 fi
13476
13477 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13478 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13479 if test "${gcc_cv_header_string+set}" = set; then
13480   echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482   cat >conftest.$ac_ext <<_ACEOF
13483 /* confdefs.h.  */
13484 _ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h.  */
13488 #include <string.h>
13489 #include <strings.h>
13490 int
13491 main ()
13492 {
13493
13494   ;
13495   return 0;
13496 }
13497 _ACEOF
13498 rm -f conftest.$ac_objext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500   (eval $ac_compile) 2>conftest.er1
13501   ac_status=$?
13502   grep -v '^ *+' conftest.er1 >conftest.err
13503   rm -f conftest.er1
13504   cat conftest.err >&5
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -z "$ac_c_werror_flag"
13508                          || test ! -s conftest.err'
13509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510   (eval $ac_try) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); }; } &&
13514          { ac_try='test -s conftest.$ac_objext'
13515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516   (eval $ac_try) 2>&5
13517   ac_status=$?
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); }; }; then
13520   gcc_cv_header_string=yes
13521 else
13522   echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 gcc_cv_header_string=no
13526 fi
13527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13528 fi
13529 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13530 echo "${ECHO_T}$gcc_cv_header_string" >&6
13531 if test $gcc_cv_header_string = yes; then
13532
13533 cat >>confdefs.h <<\_ACEOF
13534 #define STRING_WITH_STRINGS 1
13535 _ACEOF
13536
13537 fi
13538
13539
13540
13541
13542
13543 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13544 do
13545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13547   echo "$as_me:$LINENO: checking for $ac_header" >&5
13548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 fi
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13554 else
13555   # Is the header compilable?
13556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h.  */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h.  */
13564 $ac_includes_default
13565 #include <$ac_header>
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569   (eval $ac_compile) 2>conftest.er1
13570   ac_status=$?
13571   grep -v '^ *+' conftest.er1 >conftest.err
13572   rm -f conftest.er1
13573   cat conftest.err >&5
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } &&
13576          { ac_try='test -z "$ac_c_werror_flag"
13577                          || test ! -s conftest.err'
13578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579   (eval $ac_try) 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; } &&
13583          { ac_try='test -s conftest.$ac_objext'
13584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585   (eval $ac_try) 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); }; }; then
13589   ac_header_compiler=yes
13590 else
13591   echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13593
13594 ac_header_compiler=no
13595 fi
13596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13598 echo "${ECHO_T}$ac_header_compiler" >&6
13599
13600 # Is the header present?
13601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h.  */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h.  */
13609 #include <$ac_header>
13610 _ACEOF
13611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } >/dev/null; then
13619   if test -s conftest.err; then
13620     ac_cpp_err=$ac_c_preproc_warn_flag
13621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13622   else
13623     ac_cpp_err=
13624   fi
13625 else
13626   ac_cpp_err=yes
13627 fi
13628 if test -z "$ac_cpp_err"; then
13629   ac_header_preproc=yes
13630 else
13631   echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13633
13634   ac_header_preproc=no
13635 fi
13636 rm -f conftest.err conftest.$ac_ext
13637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13638 echo "${ECHO_T}$ac_header_preproc" >&6
13639
13640 # So?  What about this header?
13641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13642   yes:no: )
13643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13647     ac_header_preproc=yes
13648     ;;
13649   no:yes:* )
13650     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13652     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13653 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13654     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13656     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13657 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13660     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13662     (
13663       cat <<\_ASBOX
13664 ## ----------------------------------------------------- ##
13665 ## Report this to the GNU OpenMP Runtime Library lists.  ##
13666 ## ----------------------------------------------------- ##
13667 _ASBOX
13668     ) |
13669       sed "s/^/$as_me: WARNING:     /" >&2
13670     ;;
13671 esac
13672 echo "$as_me:$LINENO: checking for $ac_header" >&5
13673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   eval "$as_ac_Header=\$ac_header_preproc"
13678 fi
13679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13681
13682 fi
13683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13684   cat >>confdefs.h <<_ACEOF
13685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13686 _ACEOF
13687
13688 fi
13689
13690 done
13691
13692
13693
13694
13695 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
13696
13697 acx_cv_header_stdint=stddef.h
13698 acx_cv_header_stdint_kind="(already complete)"
13699 for i in stdint.h $inttype_headers; do
13700   unset ac_cv_type_uintptr_t
13701   unset ac_cv_type_uintmax_t
13702   unset ac_cv_type_int_least32_t
13703   unset ac_cv_type_int_fast32_t
13704   unset ac_cv_type_uint64_t
13705   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13706   echo "$as_me:$LINENO: checking for uintmax_t" >&5
13707 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13708 if test "${ac_cv_type_uintmax_t+set}" = set; then
13709   echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711   cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h.  */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h.  */
13717 #include <sys/types.h>
13718 #include <$i>
13719
13720 int
13721 main ()
13722 {
13723 if ((uintmax_t *) 0)
13724   return 0;
13725 if (sizeof (uintmax_t))
13726   return 0;
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733   (eval $ac_compile) 2>conftest.er1
13734   ac_status=$?
13735   grep -v '^ *+' conftest.er1 >conftest.err
13736   rm -f conftest.er1
13737   cat conftest.err >&5
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); } &&
13740          { ac_try='test -z "$ac_c_werror_flag"
13741                          || test ! -s conftest.err'
13742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743   (eval $ac_try) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; } &&
13747          { ac_try='test -s conftest.$ac_objext'
13748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749   (eval $ac_try) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; }; then
13753   ac_cv_type_uintmax_t=yes
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758 ac_cv_type_uintmax_t=no
13759 fi
13760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761 fi
13762 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13763 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13764 if test $ac_cv_type_uintmax_t = yes; then
13765   acx_cv_header_stdint=$i
13766 else
13767   continue
13768 fi
13769
13770   echo "$as_me:$LINENO: checking for uintptr_t" >&5
13771 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13772 if test "${ac_cv_type_uintptr_t+set}" = set; then
13773   echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775   cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h.  */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h.  */
13781 #include <sys/types.h>
13782 #include <$i>
13783
13784 int
13785 main ()
13786 {
13787 if ((uintptr_t *) 0)
13788   return 0;
13789 if (sizeof (uintptr_t))
13790   return 0;
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797   (eval $ac_compile) 2>conftest.er1
13798   ac_status=$?
13799   grep -v '^ *+' conftest.er1 >conftest.err
13800   rm -f conftest.er1
13801   cat conftest.err >&5
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } &&
13804          { ac_try='test -z "$ac_c_werror_flag"
13805                          || test ! -s conftest.err'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; } &&
13811          { ac_try='test -s conftest.$ac_objext'
13812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813   (eval $ac_try) 2>&5
13814   ac_status=$?
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); }; }; then
13817   ac_cv_type_uintptr_t=yes
13818 else
13819   echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13821
13822 ac_cv_type_uintptr_t=no
13823 fi
13824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825 fi
13826 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13827 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13828 if test $ac_cv_type_uintptr_t = yes; then
13829   :
13830 else
13831   acx_cv_header_stdint_kind="(mostly complete)"
13832 fi
13833
13834   echo "$as_me:$LINENO: checking for int_least32_t" >&5
13835 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13836 if test "${ac_cv_type_int_least32_t+set}" = set; then
13837   echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h.  */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h.  */
13845 #include <sys/types.h>
13846 #include <$i>
13847
13848 int
13849 main ()
13850 {
13851 if ((int_least32_t *) 0)
13852   return 0;
13853 if (sizeof (int_least32_t))
13854   return 0;
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 rm -f conftest.$ac_objext
13860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13861   (eval $ac_compile) 2>conftest.er1
13862   ac_status=$?
13863   grep -v '^ *+' conftest.er1 >conftest.err
13864   rm -f conftest.er1
13865   cat conftest.err >&5
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); } &&
13868          { ac_try='test -z "$ac_c_werror_flag"
13869                          || test ! -s conftest.err'
13870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871   (eval $ac_try) 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; } &&
13875          { ac_try='test -s conftest.$ac_objext'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; }; then
13881   ac_cv_type_int_least32_t=yes
13882 else
13883   echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 ac_cv_type_int_least32_t=no
13887 fi
13888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13889 fi
13890 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13891 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13892 if test $ac_cv_type_int_least32_t = yes; then
13893   :
13894 else
13895   acx_cv_header_stdint_kind="(mostly complete)"
13896 fi
13897
13898   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13899 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13900 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13901   echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903   cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h.  */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h.  */
13909 #include <sys/types.h>
13910 #include <$i>
13911
13912 int
13913 main ()
13914 {
13915 if ((int_fast32_t *) 0)
13916   return 0;
13917 if (sizeof (int_fast32_t))
13918   return 0;
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13925   (eval $ac_compile) 2>conftest.er1
13926   ac_status=$?
13927   grep -v '^ *+' conftest.er1 >conftest.err
13928   rm -f conftest.er1
13929   cat conftest.err >&5
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); } &&
13932          { ac_try='test -z "$ac_c_werror_flag"
13933                          || test ! -s conftest.err'
13934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935   (eval $ac_try) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; } &&
13939          { ac_try='test -s conftest.$ac_objext'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   ac_cv_type_int_fast32_t=yes
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950 ac_cv_type_int_fast32_t=no
13951 fi
13952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13953 fi
13954 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13955 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13956 if test $ac_cv_type_int_fast32_t = yes; then
13957   :
13958 else
13959   acx_cv_header_stdint_kind="(mostly complete)"
13960 fi
13961
13962   echo "$as_me:$LINENO: checking for uint64_t" >&5
13963 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13964 if test "${ac_cv_type_uint64_t+set}" = set; then
13965   echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967   cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 #include <sys/types.h>
13974 #include <$i>
13975
13976 int
13977 main ()
13978 {
13979 if ((uint64_t *) 0)
13980   return 0;
13981 if (sizeof (uint64_t))
13982   return 0;
13983   ;
13984   return 0;
13985 }
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989   (eval $ac_compile) 2>conftest.er1
13990   ac_status=$?
13991   grep -v '^ *+' conftest.er1 >conftest.err
13992   rm -f conftest.er1
13993   cat conftest.err >&5
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); } &&
13996          { ac_try='test -z "$ac_c_werror_flag"
13997                          || test ! -s conftest.err'
13998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999   (eval $ac_try) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; } &&
14003          { ac_try='test -s conftest.$ac_objext'
14004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005   (eval $ac_try) 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; }; then
14009   ac_cv_type_uint64_t=yes
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_cv_type_uint64_t=no
14015 fi
14016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14017 fi
14018 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14019 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14020 if test $ac_cv_type_uint64_t = yes; then
14021   :
14022 else
14023   acx_cv_header_stdint_kind="(lacks uint64_t)"
14024 fi
14025
14026   break
14027 done
14028 if test "$acx_cv_header_stdint" = stddef.h; then
14029   acx_cv_header_stdint_kind="(lacks uintmax_t)"
14030   for i in stdint.h $inttype_headers; do
14031     unset ac_cv_type_uintptr_t
14032     unset ac_cv_type_uint32_t
14033     unset ac_cv_type_uint64_t
14034     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14035     echo "$as_me:$LINENO: checking for uint32_t" >&5
14036 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14037 if test "${ac_cv_type_uint32_t+set}" = set; then
14038   echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040   cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046 #include <sys/types.h>
14047 #include <$i>
14048
14049 int
14050 main ()
14051 {
14052 if ((uint32_t *) 0)
14053   return 0;
14054 if (sizeof (uint32_t))
14055   return 0;
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062   (eval $ac_compile) 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } &&
14069          { ac_try='test -z "$ac_c_werror_flag"
14070                          || test ! -s conftest.err'
14071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072   (eval $ac_try) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; } &&
14076          { ac_try='test -s conftest.$ac_objext'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; }; then
14082   ac_cv_type_uint32_t=yes
14083 else
14084   echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14086
14087 ac_cv_type_uint32_t=no
14088 fi
14089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14090 fi
14091 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14092 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14093 if test $ac_cv_type_uint32_t = yes; then
14094   acx_cv_header_stdint=$i
14095 else
14096   continue
14097 fi
14098
14099     echo "$as_me:$LINENO: checking for uint64_t" >&5
14100 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14101 if test "${ac_cv_type_uint64_t+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h.  */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h.  */
14110 #include <sys/types.h>
14111 #include <$i>
14112
14113 int
14114 main ()
14115 {
14116 if ((uint64_t *) 0)
14117   return 0;
14118 if (sizeof (uint64_t))
14119   return 0;
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 rm -f conftest.$ac_objext
14125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126   (eval $ac_compile) 2>conftest.er1
14127   ac_status=$?
14128   grep -v '^ *+' conftest.er1 >conftest.err
14129   rm -f conftest.er1
14130   cat conftest.err >&5
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); } &&
14133          { ac_try='test -z "$ac_c_werror_flag"
14134                          || test ! -s conftest.err'
14135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136   (eval $ac_try) 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); }; } &&
14140          { ac_try='test -s conftest.$ac_objext'
14141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142   (eval $ac_try) 2>&5
14143   ac_status=$?
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); }; }; then
14146   ac_cv_type_uint64_t=yes
14147 else
14148   echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14150
14151 ac_cv_type_uint64_t=no
14152 fi
14153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14154 fi
14155 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14156 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14157
14158     echo "$as_me:$LINENO: checking for uintptr_t" >&5
14159 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14160 if test "${ac_cv_type_uintptr_t+set}" = set; then
14161   echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163   cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h.  */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h.  */
14169 #include <sys/types.h>
14170 #include <$i>
14171
14172 int
14173 main ()
14174 {
14175 if ((uintptr_t *) 0)
14176   return 0;
14177 if (sizeof (uintptr_t))
14178   return 0;
14179   ;
14180   return 0;
14181 }
14182 _ACEOF
14183 rm -f conftest.$ac_objext
14184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14185   (eval $ac_compile) 2>conftest.er1
14186   ac_status=$?
14187   grep -v '^ *+' conftest.er1 >conftest.err
14188   rm -f conftest.er1
14189   cat conftest.err >&5
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); } &&
14192          { ac_try='test -z "$ac_c_werror_flag"
14193                          || test ! -s conftest.err'
14194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195   (eval $ac_try) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; } &&
14199          { ac_try='test -s conftest.$ac_objext'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }; then
14205   ac_cv_type_uintptr_t=yes
14206 else
14207   echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14209
14210 ac_cv_type_uintptr_t=no
14211 fi
14212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14213 fi
14214 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14215 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14216
14217     break
14218   done
14219 fi
14220 if test "$acx_cv_header_stdint" = stddef.h; then
14221   acx_cv_header_stdint_kind="(u_intXX_t style)"
14222   for i in sys/types.h $inttype_headers; do
14223     unset ac_cv_type_u_int32_t
14224     unset ac_cv_type_u_int64_t
14225     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14226     echo "$as_me:$LINENO: checking for u_int32_t" >&5
14227 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14228 if test "${ac_cv_type_u_int32_t+set}" = set; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 #include <sys/types.h>
14238 #include <$i>
14239
14240 int
14241 main ()
14242 {
14243 if ((u_int32_t *) 0)
14244   return 0;
14245 if (sizeof (u_int32_t))
14246   return 0;
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 rm -f conftest.$ac_objext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14253   (eval $ac_compile) 2>conftest.er1
14254   ac_status=$?
14255   grep -v '^ *+' conftest.er1 >conftest.err
14256   rm -f conftest.er1
14257   cat conftest.err >&5
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -z "$ac_c_werror_flag"
14261                          || test ! -s conftest.err'
14262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263   (eval $ac_try) 2>&5
14264   ac_status=$?
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); }; } &&
14267          { ac_try='test -s conftest.$ac_objext'
14268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269   (eval $ac_try) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; }; then
14273   ac_cv_type_u_int32_t=yes
14274 else
14275   echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14277
14278 ac_cv_type_u_int32_t=no
14279 fi
14280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14281 fi
14282 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14283 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14284 if test $ac_cv_type_u_int32_t = yes; then
14285   acx_cv_header_stdint=$i
14286 else
14287   continue
14288 fi
14289
14290     echo "$as_me:$LINENO: checking for u_int64_t" >&5
14291 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14292 if test "${ac_cv_type_u_int64_t+set}" = set; then
14293   echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295   cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 #include <sys/types.h>
14302 #include <$i>
14303
14304 int
14305 main ()
14306 {
14307 if ((u_int64_t *) 0)
14308   return 0;
14309 if (sizeof (u_int64_t))
14310   return 0;
14311   ;
14312   return 0;
14313 }
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317   (eval $ac_compile) 2>conftest.er1
14318   ac_status=$?
14319   grep -v '^ *+' conftest.er1 >conftest.err
14320   rm -f conftest.er1
14321   cat conftest.err >&5
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); } &&
14324          { ac_try='test -z "$ac_c_werror_flag"
14325                          || test ! -s conftest.err'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; } &&
14331          { ac_try='test -s conftest.$ac_objext'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   ac_cv_type_u_int64_t=yes
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ac_cv_type_u_int64_t=no
14343 fi
14344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14347 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14348
14349     break
14350   done
14351 fi
14352 if test "$acx_cv_header_stdint" = stddef.h; then
14353   acx_cv_header_stdint_kind="(using manual detection)"
14354 fi
14355
14356 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14357 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14358 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14359 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14360 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14361
14362 # ----------------- Summarize what we found so far
14363
14364 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14365 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14366
14367 case `$as_basename gstdint.h ||
14368 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14369          Xgstdint.h : 'X\(//\)$' \| \
14370          Xgstdint.h : 'X\(/\)$' \| \
14371          .     : '\(.\)' 2>/dev/null ||
14372 echo X/gstdint.h |
14373     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14374           /^X\/\(\/\/\)$/{ s//\1/; q; }
14375           /^X\/\(\/\).*/{ s//\1/; q; }
14376           s/.*/./; q'` in
14377   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14378 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14379   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14380 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14381   *) ;;
14382 esac
14383
14384 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14385 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14386
14387 # ----------------- done included file, check C basic types --------
14388
14389 # Lacking an uintptr_t?  Test size of void *
14390 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14391   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14392 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14393 if test "${ac_cv_type_void_p+set}" = set; then
14394   echo $ECHO_N "(cached) $ECHO_C" >&6
14395 else
14396   cat >conftest.$ac_ext <<_ACEOF
14397 /* confdefs.h.  */
14398 _ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h.  */
14402 $ac_includes_default
14403 int
14404 main ()
14405 {
14406 if ((void * *) 0)
14407   return 0;
14408 if (sizeof (void *))
14409   return 0;
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 rm -f conftest.$ac_objext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14416   (eval $ac_compile) 2>conftest.er1
14417   ac_status=$?
14418   grep -v '^ *+' conftest.er1 >conftest.err
14419   rm -f conftest.er1
14420   cat conftest.err >&5
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } &&
14423          { ac_try='test -z "$ac_c_werror_flag"
14424                          || test ! -s conftest.err'
14425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426   (eval $ac_try) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; } &&
14430          { ac_try='test -s conftest.$ac_objext'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436   ac_cv_type_void_p=yes
14437 else
14438   echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14440
14441 ac_cv_type_void_p=no
14442 fi
14443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14444 fi
14445 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14446 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14447
14448 echo "$as_me:$LINENO: checking size of void *" >&5
14449 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14450 if test "${ac_cv_sizeof_void_p+set}" = set; then
14451   echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453   if test "$ac_cv_type_void_p" = yes; then
14454   # The cast to unsigned long works around a bug in the HP C Compiler
14455   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14456   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14457   # This bug is HP SR number 8606223364.
14458   if test "$cross_compiling" = yes; then
14459   # Depending upon the size, compute the lo and hi bounds.
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466 $ac_includes_default
14467 int
14468 main ()
14469 {
14470 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14471 test_array [0] = 0
14472
14473   ;
14474   return 0;
14475 }
14476 _ACEOF
14477 rm -f conftest.$ac_objext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479   (eval $ac_compile) 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } &&
14486          { ac_try='test -z "$ac_c_werror_flag"
14487                          || test ! -s conftest.err'
14488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489   (eval $ac_try) 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); }; } &&
14493          { ac_try='test -s conftest.$ac_objext'
14494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495   (eval $ac_try) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   ac_lo=0 ac_mid=0
14500   while :; do
14501     cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507 $ac_includes_default
14508 int
14509 main ()
14510 {
14511 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14512 test_array [0] = 0
14513
14514   ;
14515   return 0;
14516 }
14517 _ACEOF
14518 rm -f conftest.$ac_objext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520   (eval $ac_compile) 2>conftest.er1
14521   ac_status=$?
14522   grep -v '^ *+' conftest.er1 >conftest.err
14523   rm -f conftest.er1
14524   cat conftest.err >&5
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); } &&
14527          { ac_try='test -z "$ac_c_werror_flag"
14528                          || test ! -s conftest.err'
14529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530   (eval $ac_try) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; } &&
14534          { ac_try='test -s conftest.$ac_objext'
14535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536   (eval $ac_try) 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); }; }; then
14540   ac_hi=$ac_mid; break
14541 else
14542   echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545 ac_lo=`expr $ac_mid + 1`
14546                     if test $ac_lo -le $ac_mid; then
14547                       ac_lo= ac_hi=
14548                       break
14549                     fi
14550                     ac_mid=`expr 2 '*' $ac_mid + 1`
14551 fi
14552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14553   done
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564 $ac_includes_default
14565 int
14566 main ()
14567 {
14568 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14569 test_array [0] = 0
14570
14571   ;
14572   return 0;
14573 }
14574 _ACEOF
14575 rm -f conftest.$ac_objext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14577   (eval $ac_compile) 2>conftest.er1
14578   ac_status=$?
14579   grep -v '^ *+' conftest.er1 >conftest.err
14580   rm -f conftest.er1
14581   cat conftest.err >&5
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); } &&
14584          { ac_try='test -z "$ac_c_werror_flag"
14585                          || test ! -s conftest.err'
14586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587   (eval $ac_try) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; } &&
14591          { ac_try='test -s conftest.$ac_objext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   ac_hi=-1 ac_mid=-1
14598   while :; do
14599     cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h.  */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h.  */
14605 $ac_includes_default
14606 int
14607 main ()
14608 {
14609 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14610 test_array [0] = 0
14611
14612   ;
14613   return 0;
14614 }
14615 _ACEOF
14616 rm -f conftest.$ac_objext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618   (eval $ac_compile) 2>conftest.er1
14619   ac_status=$?
14620   grep -v '^ *+' conftest.er1 >conftest.err
14621   rm -f conftest.er1
14622   cat conftest.err >&5
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } &&
14625          { ac_try='test -z "$ac_c_werror_flag"
14626                          || test ! -s conftest.err'
14627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628   (eval $ac_try) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; } &&
14632          { ac_try='test -s conftest.$ac_objext'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }; then
14638   ac_lo=$ac_mid; break
14639 else
14640   echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643 ac_hi=`expr '(' $ac_mid ')' - 1`
14644                        if test $ac_mid -le $ac_hi; then
14645                          ac_lo= ac_hi=
14646                          break
14647                        fi
14648                        ac_mid=`expr 2 '*' $ac_mid`
14649 fi
14650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14651   done
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 ac_lo= ac_hi=
14657 fi
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659 fi
14660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14661 # Binary search between lo and hi bounds.
14662 while test "x$ac_lo" != "x$ac_hi"; do
14663   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14664   cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 $ac_includes_default
14671 int
14672 main ()
14673 {
14674 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14675 test_array [0] = 0
14676
14677   ;
14678   return 0;
14679 }
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683   (eval $ac_compile) 2>conftest.er1
14684   ac_status=$?
14685   grep -v '^ *+' conftest.er1 >conftest.err
14686   rm -f conftest.er1
14687   cat conftest.err >&5
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } &&
14690          { ac_try='test -z "$ac_c_werror_flag"
14691                          || test ! -s conftest.err'
14692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693   (eval $ac_try) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; } &&
14697          { ac_try='test -s conftest.$ac_objext'
14698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699   (eval $ac_try) 2>&5
14700   ac_status=$?
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); }; }; then
14703   ac_hi=$ac_mid
14704 else
14705   echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 ac_lo=`expr '(' $ac_mid ')' + 1`
14709 fi
14710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14711 done
14712 case $ac_lo in
14713 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14714 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14715 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14717 See \`config.log' for more details." >&5
14718 echo "$as_me: error: cannot compute sizeof (void *), 77
14719 See \`config.log' for more details." >&2;}
14720    { (exit 1); exit 1; }; }; } ;;
14721 esac
14722 else
14723   if test "$cross_compiling" = yes; then
14724   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14725 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14726 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14727 See \`config.log' for more details." >&5
14728 echo "$as_me: error: cannot run test program while cross compiling
14729 See \`config.log' for more details." >&2;}
14730    { (exit 1); exit 1; }; }; }
14731 else
14732   cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h.  */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h.  */
14738 $ac_includes_default
14739 long longval () { return (long) (sizeof (void *)); }
14740 unsigned long ulongval () { return (long) (sizeof (void *)); }
14741 #include <stdio.h>
14742 #include <stdlib.h>
14743 int
14744 main ()
14745 {
14746
14747   FILE *f = fopen ("conftest.val", "w");
14748   if (! f)
14749     exit (1);
14750   if (((long) (sizeof (void *))) < 0)
14751     {
14752       long i = longval ();
14753       if (i != ((long) (sizeof (void *))))
14754         exit (1);
14755       fprintf (f, "%ld\n", i);
14756     }
14757   else
14758     {
14759       unsigned long i = ulongval ();
14760       if (i != ((long) (sizeof (void *))))
14761         exit (1);
14762       fprintf (f, "%lu\n", i);
14763     }
14764   exit (ferror (f) || fclose (f) != 0);
14765
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 rm -f conftest$ac_exeext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772   (eval $ac_link) 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   ac_cv_sizeof_void_p=`cat conftest.val`
14782 else
14783   echo "$as_me: program exited with status $ac_status" >&5
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ( exit $ac_status )
14788 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14789 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14791 See \`config.log' for more details." >&5
14792 echo "$as_me: error: cannot compute sizeof (void *), 77
14793 See \`config.log' for more details." >&2;}
14794    { (exit 1); exit 1; }; }; }
14795 fi
14796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14797 fi
14798 fi
14799 rm -f conftest.val
14800 else
14801   ac_cv_sizeof_void_p=0
14802 fi
14803 fi
14804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14805 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14806 cat >>confdefs.h <<_ACEOF
14807 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14808 _ACEOF
14809
14810  ;;
14811 esac
14812
14813 # Lacking an uint64_t?  Test size of long
14814 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14815   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14816 echo $ECHO_N "checking for long... $ECHO_C" >&6
14817 if test "${ac_cv_type_long+set}" = set; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h.  */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h.  */
14826 $ac_includes_default
14827 int
14828 main ()
14829 {
14830 if ((long *) 0)
14831   return 0;
14832 if (sizeof (long))
14833   return 0;
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14840   (eval $ac_compile) 2>conftest.er1
14841   ac_status=$?
14842   grep -v '^ *+' conftest.er1 >conftest.err
14843   rm -f conftest.er1
14844   cat conftest.err >&5
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); } &&
14847          { ac_try='test -z "$ac_c_werror_flag"
14848                          || test ! -s conftest.err'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; } &&
14854          { ac_try='test -s conftest.$ac_objext'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; }; then
14860   ac_cv_type_long=yes
14861 else
14862   echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 ac_cv_type_long=no
14866 fi
14867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868 fi
14869 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14870 echo "${ECHO_T}$ac_cv_type_long" >&6
14871
14872 echo "$as_me:$LINENO: checking size of long" >&5
14873 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14874 if test "${ac_cv_sizeof_long+set}" = set; then
14875   echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877   if test "$ac_cv_type_long" = yes; then
14878   # The cast to unsigned long works around a bug in the HP C Compiler
14879   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14880   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14881   # This bug is HP SR number 8606223364.
14882   if test "$cross_compiling" = yes; then
14883   # Depending upon the size, compute the lo and hi bounds.
14884 cat >conftest.$ac_ext <<_ACEOF
14885 /* confdefs.h.  */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h.  */
14890 $ac_includes_default
14891 int
14892 main ()
14893 {
14894 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14895 test_array [0] = 0
14896
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 rm -f conftest.$ac_objext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903   (eval $ac_compile) 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -z "$ac_c_werror_flag"
14911                          || test ! -s conftest.err'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest.$ac_objext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_lo=0 ac_mid=0
14924   while :; do
14925     cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h.  */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h.  */
14931 $ac_includes_default
14932 int
14933 main ()
14934 {
14935 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14936 test_array [0] = 0
14937
14938   ;
14939   return 0;
14940 }
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944   (eval $ac_compile) 2>conftest.er1
14945   ac_status=$?
14946   grep -v '^ *+' conftest.er1 >conftest.err
14947   rm -f conftest.er1
14948   cat conftest.err >&5
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); } &&
14951          { ac_try='test -z "$ac_c_werror_flag"
14952                          || test ! -s conftest.err'
14953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954   (eval $ac_try) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); }; } &&
14958          { ac_try='test -s conftest.$ac_objext'
14959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960   (eval $ac_try) 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; }; then
14964   ac_hi=$ac_mid; break
14965 else
14966   echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ac_lo=`expr $ac_mid + 1`
14970                     if test $ac_lo -le $ac_mid; then
14971                       ac_lo= ac_hi=
14972                       break
14973                     fi
14974                     ac_mid=`expr 2 '*' $ac_mid + 1`
14975 fi
14976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14977   done
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h.  */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h.  */
14988 $ac_includes_default
14989 int
14990 main ()
14991 {
14992 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14993 test_array [0] = 0
14994
14995   ;
14996   return 0;
14997 }
14998 _ACEOF
14999 rm -f conftest.$ac_objext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001   (eval $ac_compile) 2>conftest.er1
15002   ac_status=$?
15003   grep -v '^ *+' conftest.er1 >conftest.err
15004   rm -f conftest.er1
15005   cat conftest.err >&5
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); } &&
15008          { ac_try='test -z "$ac_c_werror_flag"
15009                          || test ! -s conftest.err'
15010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011   (eval $ac_try) 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); }; } &&
15015          { ac_try='test -s conftest.$ac_objext'
15016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017   (eval $ac_try) 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; }; then
15021   ac_hi=-1 ac_mid=-1
15022   while :; do
15023     cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h.  */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h.  */
15029 $ac_includes_default
15030 int
15031 main ()
15032 {
15033 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15034 test_array [0] = 0
15035
15036   ;
15037   return 0;
15038 }
15039 _ACEOF
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042   (eval $ac_compile) 2>conftest.er1
15043   ac_status=$?
15044   grep -v '^ *+' conftest.er1 >conftest.err
15045   rm -f conftest.er1
15046   cat conftest.err >&5
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); } &&
15049          { ac_try='test -z "$ac_c_werror_flag"
15050                          || test ! -s conftest.err'
15051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052   (eval $ac_try) 2>&5
15053   ac_status=$?
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); }; } &&
15056          { ac_try='test -s conftest.$ac_objext'
15057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058   (eval $ac_try) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); }; }; then
15062   ac_lo=$ac_mid; break
15063 else
15064   echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 ac_hi=`expr '(' $ac_mid ')' - 1`
15068                        if test $ac_mid -le $ac_hi; then
15069                          ac_lo= ac_hi=
15070                          break
15071                        fi
15072                        ac_mid=`expr 2 '*' $ac_mid`
15073 fi
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075   done
15076 else
15077   echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15079
15080 ac_lo= ac_hi=
15081 fi
15082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15083 fi
15084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15085 # Binary search between lo and hi bounds.
15086 while test "x$ac_lo" != "x$ac_hi"; do
15087   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15088   cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h.  */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h.  */
15094 $ac_includes_default
15095 int
15096 main ()
15097 {
15098 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15099 test_array [0] = 0
15100
15101   ;
15102   return 0;
15103 }
15104 _ACEOF
15105 rm -f conftest.$ac_objext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107   (eval $ac_compile) 2>conftest.er1
15108   ac_status=$?
15109   grep -v '^ *+' conftest.er1 >conftest.err
15110   rm -f conftest.er1
15111   cat conftest.err >&5
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); } &&
15114          { ac_try='test -z "$ac_c_werror_flag"
15115                          || test ! -s conftest.err'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; } &&
15121          { ac_try='test -s conftest.$ac_objext'
15122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123   (eval $ac_try) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127   ac_hi=$ac_mid
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15131
15132 ac_lo=`expr '(' $ac_mid ')' + 1`
15133 fi
15134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15135 done
15136 case $ac_lo in
15137 ?*) ac_cv_sizeof_long=$ac_lo;;
15138 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15139 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15141 See \`config.log' for more details." >&5
15142 echo "$as_me: error: cannot compute sizeof (long), 77
15143 See \`config.log' for more details." >&2;}
15144    { (exit 1); exit 1; }; }; } ;;
15145 esac
15146 else
15147   if test "$cross_compiling" = yes; then
15148   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15149 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15150 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15151 See \`config.log' for more details." >&5
15152 echo "$as_me: error: cannot run test program while cross compiling
15153 See \`config.log' for more details." >&2;}
15154    { (exit 1); exit 1; }; }; }
15155 else
15156   cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h.  */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h.  */
15162 $ac_includes_default
15163 long longval () { return (long) (sizeof (long)); }
15164 unsigned long ulongval () { return (long) (sizeof (long)); }
15165 #include <stdio.h>
15166 #include <stdlib.h>
15167 int
15168 main ()
15169 {
15170
15171   FILE *f = fopen ("conftest.val", "w");
15172   if (! f)
15173     exit (1);
15174   if (((long) (sizeof (long))) < 0)
15175     {
15176       long i = longval ();
15177       if (i != ((long) (sizeof (long))))
15178         exit (1);
15179       fprintf (f, "%ld\n", i);
15180     }
15181   else
15182     {
15183       unsigned long i = ulongval ();
15184       if (i != ((long) (sizeof (long))))
15185         exit (1);
15186       fprintf (f, "%lu\n", i);
15187     }
15188   exit (ferror (f) || fclose (f) != 0);
15189
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
15194 rm -f conftest$ac_exeext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196   (eval $ac_link) 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201   (eval $ac_try) 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); }; }; then
15205   ac_cv_sizeof_long=`cat conftest.val`
15206 else
15207   echo "$as_me: program exited with status $ac_status" >&5
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15210
15211 ( exit $ac_status )
15212 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15213 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15215 See \`config.log' for more details." >&5
15216 echo "$as_me: error: cannot compute sizeof (long), 77
15217 See \`config.log' for more details." >&2;}
15218    { (exit 1); exit 1; }; }; }
15219 fi
15220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15221 fi
15222 fi
15223 rm -f conftest.val
15224 else
15225   ac_cv_sizeof_long=0
15226 fi
15227 fi
15228 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15229 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15230 cat >>confdefs.h <<_ACEOF
15231 #define SIZEOF_LONG $ac_cv_sizeof_long
15232 _ACEOF
15233
15234  ;;
15235 esac
15236
15237 if test $acx_cv_header_stdint = stddef.h; then
15238   # Lacking a good header?  Test size of everything and deduce all types.
15239   echo "$as_me:$LINENO: checking for int" >&5
15240 echo $ECHO_N "checking for int... $ECHO_C" >&6
15241 if test "${ac_cv_type_int+set}" = set; then
15242   echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244   cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250 $ac_includes_default
15251 int
15252 main ()
15253 {
15254 if ((int *) 0)
15255   return 0;
15256 if (sizeof (int))
15257   return 0;
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264   (eval $ac_compile) 2>conftest.er1
15265   ac_status=$?
15266   grep -v '^ *+' conftest.er1 >conftest.err
15267   rm -f conftest.er1
15268   cat conftest.err >&5
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); } &&
15271          { ac_try='test -z "$ac_c_werror_flag"
15272                          || test ! -s conftest.err'
15273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274   (eval $ac_try) 2>&5
15275   ac_status=$?
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); }; } &&
15278          { ac_try='test -s conftest.$ac_objext'
15279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280   (eval $ac_try) 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; }; then
15284   ac_cv_type_int=yes
15285 else
15286   echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 ac_cv_type_int=no
15290 fi
15291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15292 fi
15293 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15294 echo "${ECHO_T}$ac_cv_type_int" >&6
15295
15296 echo "$as_me:$LINENO: checking size of int" >&5
15297 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15298 if test "${ac_cv_sizeof_int+set}" = set; then
15299   echo $ECHO_N "(cached) $ECHO_C" >&6
15300 else
15301   if test "$ac_cv_type_int" = yes; then
15302   # The cast to unsigned long works around a bug in the HP C Compiler
15303   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15304   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15305   # This bug is HP SR number 8606223364.
15306   if test "$cross_compiling" = yes; then
15307   # Depending upon the size, compute the lo and hi bounds.
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314 $ac_includes_default
15315 int
15316 main ()
15317 {
15318 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15319 test_array [0] = 0
15320
15321   ;
15322   return 0;
15323 }
15324 _ACEOF
15325 rm -f conftest.$ac_objext
15326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15327   (eval $ac_compile) 2>conftest.er1
15328   ac_status=$?
15329   grep -v '^ *+' conftest.er1 >conftest.err
15330   rm -f conftest.er1
15331   cat conftest.err >&5
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); } &&
15334          { ac_try='test -z "$ac_c_werror_flag"
15335                          || test ! -s conftest.err'
15336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337   (eval $ac_try) 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); }; } &&
15341          { ac_try='test -s conftest.$ac_objext'
15342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343   (eval $ac_try) 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; }; then
15347   ac_lo=0 ac_mid=0
15348   while :; do
15349     cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 $ac_includes_default
15356 int
15357 main ()
15358 {
15359 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15360 test_array [0] = 0
15361
15362   ;
15363   return 0;
15364 }
15365 _ACEOF
15366 rm -f conftest.$ac_objext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15368   (eval $ac_compile) 2>conftest.er1
15369   ac_status=$?
15370   grep -v '^ *+' conftest.er1 >conftest.err
15371   rm -f conftest.er1
15372   cat conftest.err >&5
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); } &&
15375          { ac_try='test -z "$ac_c_werror_flag"
15376                          || test ! -s conftest.err'
15377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378   (eval $ac_try) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); }; } &&
15382          { ac_try='test -s conftest.$ac_objext'
15383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384   (eval $ac_try) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; }; then
15388   ac_hi=$ac_mid; break
15389 else
15390   echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_lo=`expr $ac_mid + 1`
15394                     if test $ac_lo -le $ac_mid; then
15395                       ac_lo= ac_hi=
15396                       break
15397                     fi
15398                     ac_mid=`expr 2 '*' $ac_mid + 1`
15399 fi
15400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15401   done
15402 else
15403   echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 $ac_includes_default
15413 int
15414 main ()
15415 {
15416 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15417 test_array [0] = 0
15418
15419   ;
15420   return 0;
15421 }
15422 _ACEOF
15423 rm -f conftest.$ac_objext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425   (eval $ac_compile) 2>conftest.er1
15426   ac_status=$?
15427   grep -v '^ *+' conftest.er1 >conftest.err
15428   rm -f conftest.er1
15429   cat conftest.err >&5
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); } &&
15432          { ac_try='test -z "$ac_c_werror_flag"
15433                          || test ! -s conftest.err'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; } &&
15439          { ac_try='test -s conftest.$ac_objext'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; }; then
15445   ac_hi=-1 ac_mid=-1
15446   while :; do
15447     cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h.  */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h.  */
15453 $ac_includes_default
15454 int
15455 main ()
15456 {
15457 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15458 test_array [0] = 0
15459
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466   (eval $ac_compile) 2>conftest.er1
15467   ac_status=$?
15468   grep -v '^ *+' conftest.er1 >conftest.err
15469   rm -f conftest.er1
15470   cat conftest.err >&5
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } &&
15473          { ac_try='test -z "$ac_c_werror_flag"
15474                          || test ! -s conftest.err'
15475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476   (eval $ac_try) 2>&5
15477   ac_status=$?
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); }; } &&
15480          { ac_try='test -s conftest.$ac_objext'
15481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482   (eval $ac_try) 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); }; }; then
15486   ac_lo=$ac_mid; break
15487 else
15488   echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491 ac_hi=`expr '(' $ac_mid ')' - 1`
15492                        if test $ac_mid -le $ac_hi; then
15493                          ac_lo= ac_hi=
15494                          break
15495                        fi
15496                        ac_mid=`expr 2 '*' $ac_mid`
15497 fi
15498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15499   done
15500 else
15501   echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15503
15504 ac_lo= ac_hi=
15505 fi
15506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15507 fi
15508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509 # Binary search between lo and hi bounds.
15510 while test "x$ac_lo" != "x$ac_hi"; do
15511   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15512   cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h.  */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h.  */
15518 $ac_includes_default
15519 int
15520 main ()
15521 {
15522 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15523 test_array [0] = 0
15524
15525   ;
15526   return 0;
15527 }
15528 _ACEOF
15529 rm -f conftest.$ac_objext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15531   (eval $ac_compile) 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } &&
15538          { ac_try='test -z "$ac_c_werror_flag"
15539                          || test ! -s conftest.err'
15540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541   (eval $ac_try) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; } &&
15545          { ac_try='test -s conftest.$ac_objext'
15546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547   (eval $ac_try) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; }; then
15551   ac_hi=$ac_mid
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556 ac_lo=`expr '(' $ac_mid ')' + 1`
15557 fi
15558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15559 done
15560 case $ac_lo in
15561 ?*) ac_cv_sizeof_int=$ac_lo;;
15562 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15565 See \`config.log' for more details." >&5
15566 echo "$as_me: error: cannot compute sizeof (int), 77
15567 See \`config.log' for more details." >&2;}
15568    { (exit 1); exit 1; }; }; } ;;
15569 esac
15570 else
15571   if test "$cross_compiling" = yes; then
15572   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15573 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15575 See \`config.log' for more details." >&5
15576 echo "$as_me: error: cannot run test program while cross compiling
15577 See \`config.log' for more details." >&2;}
15578    { (exit 1); exit 1; }; }; }
15579 else
15580   cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h.  */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h.  */
15586 $ac_includes_default
15587 long longval () { return (long) (sizeof (int)); }
15588 unsigned long ulongval () { return (long) (sizeof (int)); }
15589 #include <stdio.h>
15590 #include <stdlib.h>
15591 int
15592 main ()
15593 {
15594
15595   FILE *f = fopen ("conftest.val", "w");
15596   if (! f)
15597     exit (1);
15598   if (((long) (sizeof (int))) < 0)
15599     {
15600       long i = longval ();
15601       if (i != ((long) (sizeof (int))))
15602         exit (1);
15603       fprintf (f, "%ld\n", i);
15604     }
15605   else
15606     {
15607       unsigned long i = ulongval ();
15608       if (i != ((long) (sizeof (int))))
15609         exit (1);
15610       fprintf (f, "%lu\n", i);
15611     }
15612   exit (ferror (f) || fclose (f) != 0);
15613
15614   ;
15615   return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest$ac_exeext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620   (eval $ac_link) 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625   (eval $ac_try) 2>&5
15626   ac_status=$?
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); }; }; then
15629   ac_cv_sizeof_int=`cat conftest.val`
15630 else
15631   echo "$as_me: program exited with status $ac_status" >&5
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 ( exit $ac_status )
15636 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15637 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15638 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15639 See \`config.log' for more details." >&5
15640 echo "$as_me: error: cannot compute sizeof (int), 77
15641 See \`config.log' for more details." >&2;}
15642    { (exit 1); exit 1; }; }; }
15643 fi
15644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15645 fi
15646 fi
15647 rm -f conftest.val
15648 else
15649   ac_cv_sizeof_int=0
15650 fi
15651 fi
15652 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15653 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15654 cat >>confdefs.h <<_ACEOF
15655 #define SIZEOF_INT $ac_cv_sizeof_int
15656 _ACEOF
15657
15658
15659   echo "$as_me:$LINENO: checking for short" >&5
15660 echo $ECHO_N "checking for short... $ECHO_C" >&6
15661 if test "${ac_cv_type_short+set}" = set; then
15662   echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664   cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670 $ac_includes_default
15671 int
15672 main ()
15673 {
15674 if ((short *) 0)
15675   return 0;
15676 if (sizeof (short))
15677   return 0;
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684   (eval $ac_compile) 2>conftest.er1
15685   ac_status=$?
15686   grep -v '^ *+' conftest.er1 >conftest.err
15687   rm -f conftest.er1
15688   cat conftest.err >&5
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); } &&
15691          { ac_try='test -z "$ac_c_werror_flag"
15692                          || test ! -s conftest.err'
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); }; } &&
15698          { ac_try='test -s conftest.$ac_objext'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   ac_cv_type_short=yes
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 ac_cv_type_short=no
15710 fi
15711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15712 fi
15713 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15714 echo "${ECHO_T}$ac_cv_type_short" >&6
15715
15716 echo "$as_me:$LINENO: checking size of short" >&5
15717 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15718 if test "${ac_cv_sizeof_short+set}" = set; then
15719   echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721   if test "$ac_cv_type_short" = yes; then
15722   # The cast to unsigned long works around a bug in the HP C Compiler
15723   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15724   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15725   # This bug is HP SR number 8606223364.
15726   if test "$cross_compiling" = yes; then
15727   # Depending upon the size, compute the lo and hi bounds.
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 $ac_includes_default
15735 int
15736 main ()
15737 {
15738 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15739 test_array [0] = 0
15740
15741   ;
15742   return 0;
15743 }
15744 _ACEOF
15745 rm -f conftest.$ac_objext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747   (eval $ac_compile) 2>conftest.er1
15748   ac_status=$?
15749   grep -v '^ *+' conftest.er1 >conftest.err
15750   rm -f conftest.er1
15751   cat conftest.err >&5
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } &&
15754          { ac_try='test -z "$ac_c_werror_flag"
15755                          || test ! -s conftest.err'
15756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757   (eval $ac_try) 2>&5
15758   ac_status=$?
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); }; } &&
15761          { ac_try='test -s conftest.$ac_objext'
15762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763   (eval $ac_try) 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; }; then
15767   ac_lo=0 ac_mid=0
15768   while :; do
15769     cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h.  */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h.  */
15775 $ac_includes_default
15776 int
15777 main ()
15778 {
15779 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15780 test_array [0] = 0
15781
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15788   (eval $ac_compile) 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -z "$ac_c_werror_flag"
15796                          || test ! -s conftest.err'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; } &&
15802          { ac_try='test -s conftest.$ac_objext'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; }; then
15808   ac_hi=$ac_mid; break
15809 else
15810   echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ac_lo=`expr $ac_mid + 1`
15814                     if test $ac_lo -le $ac_mid; then
15815                       ac_lo= ac_hi=
15816                       break
15817                     fi
15818                     ac_mid=`expr 2 '*' $ac_mid + 1`
15819 fi
15820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15821   done
15822 else
15823   echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15825
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h.  */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h.  */
15832 $ac_includes_default
15833 int
15834 main ()
15835 {
15836 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15837 test_array [0] = 0
15838
15839   ;
15840   return 0;
15841 }
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845   (eval $ac_compile) 2>conftest.er1
15846   ac_status=$?
15847   grep -v '^ *+' conftest.er1 >conftest.err
15848   rm -f conftest.er1
15849   cat conftest.err >&5
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); } &&
15852          { ac_try='test -z "$ac_c_werror_flag"
15853                          || test ! -s conftest.err'
15854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855   (eval $ac_try) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); }; } &&
15859          { ac_try='test -s conftest.$ac_objext'
15860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861   (eval $ac_try) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865   ac_hi=-1 ac_mid=-1
15866   while :; do
15867     cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873 $ac_includes_default
15874 int
15875 main ()
15876 {
15877 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15878 test_array [0] = 0
15879
15880   ;
15881   return 0;
15882 }
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886   (eval $ac_compile) 2>conftest.er1
15887   ac_status=$?
15888   grep -v '^ *+' conftest.er1 >conftest.err
15889   rm -f conftest.er1
15890   cat conftest.err >&5
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } &&
15893          { ac_try='test -z "$ac_c_werror_flag"
15894                          || test ! -s conftest.err'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; } &&
15900          { ac_try='test -s conftest.$ac_objext'
15901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902   (eval $ac_try) 2>&5
15903   ac_status=$?
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); }; }; then
15906   ac_lo=$ac_mid; break
15907 else
15908   echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15910
15911 ac_hi=`expr '(' $ac_mid ')' - 1`
15912                        if test $ac_mid -le $ac_hi; then
15913                          ac_lo= ac_hi=
15914                          break
15915                        fi
15916                        ac_mid=`expr 2 '*' $ac_mid`
15917 fi
15918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15919   done
15920 else
15921   echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_lo= ac_hi=
15925 fi
15926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15927 fi
15928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15929 # Binary search between lo and hi bounds.
15930 while test "x$ac_lo" != "x$ac_hi"; do
15931   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15932   cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h.  */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h.  */
15938 $ac_includes_default
15939 int
15940 main ()
15941 {
15942 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15943 test_array [0] = 0
15944
15945   ;
15946   return 0;
15947 }
15948 _ACEOF
15949 rm -f conftest.$ac_objext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15951   (eval $ac_compile) 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -z "$ac_c_werror_flag"
15959                          || test ! -s conftest.err'
15960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961   (eval $ac_try) 2>&5
15962   ac_status=$?
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); }; } &&
15965          { ac_try='test -s conftest.$ac_objext'
15966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967   (eval $ac_try) 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); }; }; then
15971   ac_hi=$ac_mid
15972 else
15973   echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15975
15976 ac_lo=`expr '(' $ac_mid ')' + 1`
15977 fi
15978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15979 done
15980 case $ac_lo in
15981 ?*) ac_cv_sizeof_short=$ac_lo;;
15982 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15983 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15985 See \`config.log' for more details." >&5
15986 echo "$as_me: error: cannot compute sizeof (short), 77
15987 See \`config.log' for more details." >&2;}
15988    { (exit 1); exit 1; }; }; } ;;
15989 esac
15990 else
15991   if test "$cross_compiling" = yes; then
15992   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15993 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15995 See \`config.log' for more details." >&5
15996 echo "$as_me: error: cannot run test program while cross compiling
15997 See \`config.log' for more details." >&2;}
15998    { (exit 1); exit 1; }; }; }
15999 else
16000   cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006 $ac_includes_default
16007 long longval () { return (long) (sizeof (short)); }
16008 unsigned long ulongval () { return (long) (sizeof (short)); }
16009 #include <stdio.h>
16010 #include <stdlib.h>
16011 int
16012 main ()
16013 {
16014
16015   FILE *f = fopen ("conftest.val", "w");
16016   if (! f)
16017     exit (1);
16018   if (((long) (sizeof (short))) < 0)
16019     {
16020       long i = longval ();
16021       if (i != ((long) (sizeof (short))))
16022         exit (1);
16023       fprintf (f, "%ld\n", i);
16024     }
16025   else
16026     {
16027       unsigned long i = ulongval ();
16028       if (i != ((long) (sizeof (short))))
16029         exit (1);
16030       fprintf (f, "%lu\n", i);
16031     }
16032   exit (ferror (f) || fclose (f) != 0);
16033
16034   ;
16035   return 0;
16036 }
16037 _ACEOF
16038 rm -f conftest$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040   (eval $ac_link) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045   (eval $ac_try) 2>&5
16046   ac_status=$?
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); }; }; then
16049   ac_cv_sizeof_short=`cat conftest.val`
16050 else
16051   echo "$as_me: program exited with status $ac_status" >&5
16052 echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16054
16055 ( exit $ac_status )
16056 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16057 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16059 See \`config.log' for more details." >&5
16060 echo "$as_me: error: cannot compute sizeof (short), 77
16061 See \`config.log' for more details." >&2;}
16062    { (exit 1); exit 1; }; }; }
16063 fi
16064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16065 fi
16066 fi
16067 rm -f conftest.val
16068 else
16069   ac_cv_sizeof_short=0
16070 fi
16071 fi
16072 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16073 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16074 cat >>confdefs.h <<_ACEOF
16075 #define SIZEOF_SHORT $ac_cv_sizeof_short
16076 _ACEOF
16077
16078
16079   echo "$as_me:$LINENO: checking for char" >&5
16080 echo $ECHO_N "checking for char... $ECHO_C" >&6
16081 if test "${ac_cv_type_char+set}" = set; then
16082   echo $ECHO_N "(cached) $ECHO_C" >&6
16083 else
16084   cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h.  */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h.  */
16090 $ac_includes_default
16091 int
16092 main ()
16093 {
16094 if ((char *) 0)
16095   return 0;
16096 if (sizeof (char))
16097   return 0;
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16104   (eval $ac_compile) 2>conftest.er1
16105   ac_status=$?
16106   grep -v '^ *+' conftest.er1 >conftest.err
16107   rm -f conftest.er1
16108   cat conftest.err >&5
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -z "$ac_c_werror_flag"
16112                          || test ! -s conftest.err'
16113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114   (eval $ac_try) 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; } &&
16118          { ac_try='test -s conftest.$ac_objext'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; }; then
16124   ac_cv_type_char=yes
16125 else
16126   echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 ac_cv_type_char=no
16130 fi
16131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16132 fi
16133 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16134 echo "${ECHO_T}$ac_cv_type_char" >&6
16135
16136 echo "$as_me:$LINENO: checking size of char" >&5
16137 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16138 if test "${ac_cv_sizeof_char+set}" = set; then
16139   echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141   if test "$ac_cv_type_char" = yes; then
16142   # The cast to unsigned long works around a bug in the HP C Compiler
16143   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16144   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16145   # This bug is HP SR number 8606223364.
16146   if test "$cross_compiling" = yes; then
16147   # Depending upon the size, compute the lo and hi bounds.
16148 cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h.  */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h.  */
16154 $ac_includes_default
16155 int
16156 main ()
16157 {
16158 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16159 test_array [0] = 0
16160
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167   (eval $ac_compile) 2>conftest.er1
16168   ac_status=$?
16169   grep -v '^ *+' conftest.er1 >conftest.err
16170   rm -f conftest.er1
16171   cat conftest.err >&5
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); } &&
16174          { ac_try='test -z "$ac_c_werror_flag"
16175                          || test ! -s conftest.err'
16176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177   (eval $ac_try) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; } &&
16181          { ac_try='test -s conftest.$ac_objext'
16182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183   (eval $ac_try) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187   ac_lo=0 ac_mid=0
16188   while :; do
16189     cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195 $ac_includes_default
16196 int
16197 main ()
16198 {
16199 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16200 test_array [0] = 0
16201
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208   (eval $ac_compile) 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } &&
16215          { ac_try='test -z "$ac_c_werror_flag"
16216                          || test ! -s conftest.err'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; } &&
16222          { ac_try='test -s conftest.$ac_objext'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; }; then
16228   ac_hi=$ac_mid; break
16229 else
16230   echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16232
16233 ac_lo=`expr $ac_mid + 1`
16234                     if test $ac_lo -le $ac_mid; then
16235                       ac_lo= ac_hi=
16236                       break
16237                     fi
16238                     ac_mid=`expr 2 '*' $ac_mid + 1`
16239 fi
16240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16241   done
16242 else
16243   echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
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 (char))) < 0)];
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=-1 ac_mid=-1
16286   while :; do
16287     cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293 $ac_includes_default
16294 int
16295 main ()
16296 {
16297 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16298 test_array [0] = 0
16299
16300   ;
16301   return 0;
16302 }
16303 _ACEOF
16304 rm -f conftest.$ac_objext
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306   (eval $ac_compile) 2>conftest.er1
16307   ac_status=$?
16308   grep -v '^ *+' conftest.er1 >conftest.err
16309   rm -f conftest.er1
16310   cat conftest.err >&5
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); } &&
16313          { ac_try='test -z "$ac_c_werror_flag"
16314                          || test ! -s conftest.err'
16315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316   (eval $ac_try) 2>&5
16317   ac_status=$?
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); }; } &&
16320          { ac_try='test -s conftest.$ac_objext'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; }; then
16326   ac_lo=$ac_mid; break
16327 else
16328   echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 ac_hi=`expr '(' $ac_mid ')' - 1`
16332                        if test $ac_mid -le $ac_hi; then
16333                          ac_lo= ac_hi=
16334                          break
16335                        fi
16336                        ac_mid=`expr 2 '*' $ac_mid`
16337 fi
16338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16339   done
16340 else
16341   echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344 ac_lo= ac_hi=
16345 fi
16346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16347 fi
16348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16349 # Binary search between lo and hi bounds.
16350 while test "x$ac_lo" != "x$ac_hi"; do
16351   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16352   cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h.  */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h.  */
16358 $ac_includes_default
16359 int
16360 main ()
16361 {
16362 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16363 test_array [0] = 0
16364
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371   (eval $ac_compile) 2>conftest.er1
16372   ac_status=$?
16373   grep -v '^ *+' conftest.er1 >conftest.err
16374   rm -f conftest.er1
16375   cat conftest.err >&5
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); } &&
16378          { ac_try='test -z "$ac_c_werror_flag"
16379                          || test ! -s conftest.err'
16380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381   (eval $ac_try) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; } &&
16385          { ac_try='test -s conftest.$ac_objext'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   ac_hi=$ac_mid
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 ac_lo=`expr '(' $ac_mid ')' + 1`
16397 fi
16398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16399 done
16400 case $ac_lo in
16401 ?*) ac_cv_sizeof_char=$ac_lo;;
16402 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16403 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16404 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16405 See \`config.log' for more details." >&5
16406 echo "$as_me: error: cannot compute sizeof (char), 77
16407 See \`config.log' for more details." >&2;}
16408    { (exit 1); exit 1; }; }; } ;;
16409 esac
16410 else
16411   if test "$cross_compiling" = yes; then
16412   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16413 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16414 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16415 See \`config.log' for more details." >&5
16416 echo "$as_me: error: cannot run test program while cross compiling
16417 See \`config.log' for more details." >&2;}
16418    { (exit 1); exit 1; }; }; }
16419 else
16420   cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h.  */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h.  */
16426 $ac_includes_default
16427 long longval () { return (long) (sizeof (char)); }
16428 unsigned long ulongval () { return (long) (sizeof (char)); }
16429 #include <stdio.h>
16430 #include <stdlib.h>
16431 int
16432 main ()
16433 {
16434
16435   FILE *f = fopen ("conftest.val", "w");
16436   if (! f)
16437     exit (1);
16438   if (((long) (sizeof (char))) < 0)
16439     {
16440       long i = longval ();
16441       if (i != ((long) (sizeof (char))))
16442         exit (1);
16443       fprintf (f, "%ld\n", i);
16444     }
16445   else
16446     {
16447       unsigned long i = ulongval ();
16448       if (i != ((long) (sizeof (char))))
16449         exit (1);
16450       fprintf (f, "%lu\n", i);
16451     }
16452   exit (ferror (f) || fclose (f) != 0);
16453
16454   ;
16455   return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460   (eval $ac_link) 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465   (eval $ac_try) 2>&5
16466   ac_status=$?
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); }; }; then
16469   ac_cv_sizeof_char=`cat conftest.val`
16470 else
16471   echo "$as_me: program exited with status $ac_status" >&5
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475 ( exit $ac_status )
16476 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16477 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16478 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16479 See \`config.log' for more details." >&5
16480 echo "$as_me: error: cannot compute sizeof (char), 77
16481 See \`config.log' for more details." >&2;}
16482    { (exit 1); exit 1; }; }; }
16483 fi
16484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16485 fi
16486 fi
16487 rm -f conftest.val
16488 else
16489   ac_cv_sizeof_char=0
16490 fi
16491 fi
16492 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16493 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16494 cat >>confdefs.h <<_ACEOF
16495 #define SIZEOF_CHAR $ac_cv_sizeof_char
16496 _ACEOF
16497
16498
16499
16500   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16501 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16502   case "$ac_cv_sizeof_char" in
16503     1) acx_cv_type_int8_t=char ;;
16504     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16505 echo "$as_me: error: no 8-bit type" >&2;}
16506    { (exit please report a bug); exit please report a bug; }; }
16507   esac
16508   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16509 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16510
16511   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16512 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16513   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16514     2:*) acx_cv_type_int16_t=int ;;
16515     *:2) acx_cv_type_int16_t=short ;;
16516     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16517 echo "$as_me: error: no 16-bit type" >&2;}
16518    { (exit please report a bug); exit please report a bug; }; }
16519   esac
16520   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16521 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16522
16523   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16524 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16525   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16526     4:*) acx_cv_type_int32_t=int ;;
16527     *:4) acx_cv_type_int32_t=long ;;
16528     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16529 echo "$as_me: error: no 32-bit type" >&2;}
16530    { (exit please report a bug); exit please report a bug; }; }
16531   esac
16532   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16533 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16534 fi
16535
16536 # These tests are here to make the output prettier
16537
16538 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16539   case "$ac_cv_sizeof_long" in
16540     8) acx_cv_type_int64_t=long ;;
16541   esac
16542   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16543 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16544   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16545 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16546 fi
16547
16548 # Now we can use the above types
16549
16550 if test "$ac_cv_type_uintptr_t" != yes; then
16551   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16552 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16553   case $ac_cv_sizeof_void_p in
16554     2) acx_cv_type_intptr_t=int16_t ;;
16555     4) acx_cv_type_intptr_t=int32_t ;;
16556     8) acx_cv_type_intptr_t=int64_t ;;
16557     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16558 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16559    { (exit please report a bug); exit please report a bug; }; }
16560   esac
16561   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16562 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16563 fi
16564
16565 # ----------------- done all checks, emit header -------------
16566           ac_config_commands="$ac_config_commands gstdint.h"
16567
16568
16569
16570
16571 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
16572 # In case the pthread.h system header is not found, this test will fail.
16573 XPCFLAGS=""
16574 CFLAGS="$CFLAGS -pthread"
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 #include <pthread.h>
16582    void *g(void *d) { return NULL; }
16583 int
16584 main ()
16585 {
16586 pthread_t t; pthread_create(&t,NULL,g,NULL);
16587   ;
16588   return 0;
16589 }
16590 _ACEOF
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593   (eval $ac_link) 2>conftest.er1
16594   ac_status=$?
16595   grep -v '^ *+' conftest.er1 >conftest.err
16596   rm -f conftest.er1
16597   cat conftest.err >&5
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); } &&
16600          { ac_try='test -z "$ac_c_werror_flag"
16601                          || test ! -s conftest.err'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; } &&
16607          { ac_try='test -s conftest$ac_exeext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   XPCFLAGS=" -Wc,-pthread"
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16619   cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625 #include <pthread.h>
16626      void *g(void *d) { return NULL; }
16627 int
16628 main ()
16629 {
16630 pthread_t t; pthread_create(&t,NULL,g,NULL);
16631   ;
16632   return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16637   (eval $ac_link) 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } &&
16644          { ac_try='test -z "$ac_c_werror_flag"
16645                          || test ! -s conftest.err'
16646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647   (eval $ac_try) 2>&5
16648   ac_status=$?
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); }; } &&
16651          { ac_try='test -s conftest$ac_exeext'
16652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653   (eval $ac_try) 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; }; then
16657   :
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16663 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16664    { (exit 1); exit 1; }; }
16665 fi
16666 rm -f conftest.err conftest.$ac_objext \
16667       conftest$ac_exeext conftest.$ac_ext
16668 fi
16669 rm -f conftest.err conftest.$ac_objext \
16670       conftest$ac_exeext conftest.$ac_ext
16671
16672 # Check for functions needed.
16673
16674
16675
16676 for ac_func in getloadavg clock_gettime strtoull
16677 do
16678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16679 echo "$as_me:$LINENO: checking for $ac_func" >&5
16680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16681 if eval "test \"\${$as_ac_var+set}\" = set"; then
16682   echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684   cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h.  */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h.  */
16690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16692 #define $ac_func innocuous_$ac_func
16693
16694 /* System header to define __stub macros and hopefully few prototypes,
16695     which can conflict with char $ac_func (); below.
16696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697     <limits.h> exists even on freestanding compilers.  */
16698
16699 #ifdef __STDC__
16700 # include <limits.h>
16701 #else
16702 # include <assert.h>
16703 #endif
16704
16705 #undef $ac_func
16706
16707 /* Override any gcc2 internal prototype to avoid an error.  */
16708 #ifdef __cplusplus
16709 extern "C"
16710 {
16711 #endif
16712 /* We use char because int might match the return type of a gcc2
16713    builtin and then its argument prototype would still apply.  */
16714 char $ac_func ();
16715 /* The GNU C library defines this for functions which it implements
16716     to always fail with ENOSYS.  Some functions are actually named
16717     something starting with __ and the normal name is an alias.  */
16718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16719 choke me
16720 #else
16721 char (*f) () = $ac_func;
16722 #endif
16723 #ifdef __cplusplus
16724 }
16725 #endif
16726
16727 int
16728 main ()
16729 {
16730 return f != $ac_func;
16731   ;
16732   return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737   (eval $ac_link) 2>conftest.er1
16738   ac_status=$?
16739   grep -v '^ *+' conftest.er1 >conftest.err
16740   rm -f conftest.er1
16741   cat conftest.err >&5
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); } &&
16744          { ac_try='test -z "$ac_c_werror_flag"
16745                          || test ! -s conftest.err'
16746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747   (eval $ac_try) 2>&5
16748   ac_status=$?
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); }; } &&
16751          { ac_try='test -s conftest$ac_exeext'
16752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753   (eval $ac_try) 2>&5
16754   ac_status=$?
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); }; }; then
16757   eval "$as_ac_var=yes"
16758 else
16759   echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 eval "$as_ac_var=no"
16763 fi
16764 rm -f conftest.err conftest.$ac_objext \
16765       conftest$ac_exeext conftest.$ac_ext
16766 fi
16767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16769 if test `eval echo '${'$as_ac_var'}'` = yes; then
16770   cat >>confdefs.h <<_ACEOF
16771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16772 _ACEOF
16773
16774 fi
16775 done
16776
16777
16778 # Check for broken semaphore implementation on darwin.
16779 # sem_init returns: sem_init error: Function not implemented.
16780 case "$host" in
16781   *-darwin*)
16782
16783 cat >>confdefs.h <<\_ACEOF
16784 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16785 _ACEOF
16786
16787     ;;
16788 esac
16789
16790  # Check whether --enable-linux-futex or --disable-linux-futex was given.
16791 if test "${enable_linux_futex+set}" = set; then
16792   enableval="$enable_linux_futex"
16793
16794       case "$enableval" in
16795        yes|no|default) ;;
16796        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16797 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16798    { (exit 1); exit 1; }; } ;;
16799                           esac
16800
16801 else
16802   enable_linux_futex=default
16803 fi;
16804
16805 case "$target" in
16806   *-linux*)
16807     case "$enable_linux_futex" in
16808       default)
16809         # If headers don't have gettid/futex syscalls definition, then
16810         # default to no, otherwise there will be compile time failures.
16811         # Otherwise, default to yes.  If we don't detect we are
16812         # compiled/linked against NPTL and not cross-compiling, check
16813         # if programs are run by default against NPTL and if not, issue
16814         # a warning.
16815         enable_linux_futex=no
16816         cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h.  */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h.  */
16822 #include <sys/syscall.h>
16823            int lk;
16824 int
16825 main ()
16826 {
16827 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 rm -f conftest.$ac_objext conftest$ac_exeext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16834   (eval $ac_link) 2>conftest.er1
16835   ac_status=$?
16836   grep -v '^ *+' conftest.er1 >conftest.err
16837   rm -f conftest.er1
16838   cat conftest.err >&5
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); } &&
16841          { ac_try='test -z "$ac_c_werror_flag"
16842                          || test ! -s conftest.err'
16843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844   (eval $ac_try) 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; } &&
16848          { ac_try='test -s conftest$ac_exeext'
16849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850   (eval $ac_try) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); }; }; then
16854   save_LIBS="$LIBS"
16855            LIBS="-lpthread $LIBS"
16856            cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h.  */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h.  */
16862 #ifndef _GNU_SOURCE
16863              #define _GNU_SOURCE 1
16864              #endif
16865              #include <pthread.h>
16866              pthread_t th; void *status;
16867 int
16868 main ()
16869 {
16870 pthread_tryjoin_np (th, &status);
16871   ;
16872   return 0;
16873 }
16874 _ACEOF
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877   (eval $ac_link) 2>conftest.er1
16878   ac_status=$?
16879   grep -v '^ *+' conftest.er1 >conftest.err
16880   rm -f conftest.er1
16881   cat conftest.err >&5
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } &&
16884          { ac_try='test -z "$ac_c_werror_flag"
16885                          || test ! -s conftest.err'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; } &&
16891          { ac_try='test -s conftest$ac_exeext'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; }; then
16897   enable_linux_futex=yes
16898 else
16899   echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16901
16902 if test x$cross_compiling = xno; then
16903                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16904                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16905                  { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16906 If so, please configure with --disable-linux-futex" >&5
16907 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16908 If so, please configure with --disable-linux-futex" >&2;}
16909                fi
16910              fi
16911              enable_linux_futex=yes
16912 fi
16913 rm -f conftest.err conftest.$ac_objext \
16914       conftest$ac_exeext conftest.$ac_ext
16915            LIBS="$save_LIBS"
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920 fi
16921 rm -f conftest.err conftest.$ac_objext \
16922       conftest$ac_exeext conftest.$ac_ext
16923         ;;
16924       yes)
16925         cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h.  */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h.  */
16931 #include <sys/syscall.h>
16932            int lk;
16933 int
16934 main ()
16935 {
16936 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943   (eval $ac_link) 2>conftest.er1
16944   ac_status=$?
16945   grep -v '^ *+' conftest.er1 >conftest.err
16946   rm -f conftest.er1
16947   cat conftest.err >&5
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); } &&
16950          { ac_try='test -z "$ac_c_werror_flag"
16951                          || test ! -s conftest.err'
16952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953   (eval $ac_try) 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }; } &&
16957          { ac_try='test -s conftest$ac_exeext'
16958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959   (eval $ac_try) 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }; }; then
16963   :
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16969 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16970    { (exit 1); exit 1; }; }
16971 fi
16972 rm -f conftest.err conftest.$ac_objext \
16973       conftest$ac_exeext conftest.$ac_ext
16974         ;;
16975     esac
16976     ;;
16977   *)
16978     enable_linux_futex=no
16979     ;;
16980 esac
16981 if test x$enable_linux_futex = xyes; then
16982   :
16983 fi
16984
16985
16986 # Check for pthread_{,attr_}[sg]etaffinity_np.
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h.  */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h.  */
16993 #define _GNU_SOURCE
16994    #include <pthread.h>
16995 int
16996 main ()
16997 {
16998 cpu_set_t cpuset;
16999    pthread_attr_t attr;
17000    pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17001    if (CPU_ISSET (0, &cpuset))
17002      CPU_SET (1, &cpuset);
17003    else
17004      CPU_ZERO (&cpuset);
17005    pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17006    pthread_attr_init (&attr);
17007    pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17008    pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015   (eval $ac_link) 2>conftest.er1
17016   ac_status=$?
17017   grep -v '^ *+' conftest.er1 >conftest.err
17018   rm -f conftest.er1
17019   cat conftest.err >&5
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -z "$ac_c_werror_flag"
17023                          || test ! -s conftest.err'
17024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025   (eval $ac_try) 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); }; } &&
17029          { ac_try='test -s conftest$ac_exeext'
17030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031   (eval $ac_try) 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; }; then
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_PTHREAD_AFFINITY_NP 1
17038 _ACEOF
17039
17040 else
17041   echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17043
17044 fi
17045 rm -f conftest.err conftest.$ac_objext \
17046       conftest$ac_exeext conftest.$ac_ext
17047
17048 # At least for glibc, clock_gettime is in librt.  But don't pull that
17049 # in if it still doesn't give us the function we want.
17050 if test $ac_cv_func_clock_gettime = no; then
17051   echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17052 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17053 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17054   echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056   ac_check_lib_save_LIBS=$LIBS
17057 LIBS="-lrt  $LIBS"
17058 cat >conftest.$ac_ext <<_ACEOF
17059 /* confdefs.h.  */
17060 _ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h.  */
17064
17065 /* Override any gcc2 internal prototype to avoid an error.  */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 /* We use char because int might match the return type of a gcc2
17070    builtin and then its argument prototype would still apply.  */
17071 char clock_gettime ();
17072 int
17073 main ()
17074 {
17075 clock_gettime ();
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082   (eval $ac_link) 2>conftest.er1
17083   ac_status=$?
17084   grep -v '^ *+' conftest.er1 >conftest.err
17085   rm -f conftest.er1
17086   cat conftest.err >&5
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); } &&
17089          { ac_try='test -z "$ac_c_werror_flag"
17090                          || test ! -s conftest.err'
17091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; } &&
17096          { ac_try='test -s conftest$ac_exeext'
17097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098   (eval $ac_try) 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; }; then
17102   ac_cv_lib_rt_clock_gettime=yes
17103 else
17104   echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17106
17107 ac_cv_lib_rt_clock_gettime=no
17108 fi
17109 rm -f conftest.err conftest.$ac_objext \
17110       conftest$ac_exeext conftest.$ac_ext
17111 LIBS=$ac_check_lib_save_LIBS
17112 fi
17113 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17114 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17115 if test $ac_cv_lib_rt_clock_gettime = yes; then
17116   LIBS="-lrt $LIBS"
17117
17118 cat >>confdefs.h <<\_ACEOF
17119 #define HAVE_CLOCK_GETTIME 1
17120 _ACEOF
17121
17122 fi
17123
17124 fi
17125
17126 # See if we support thread-local storage.
17127
17128    # Check whether --enable-tls or --disable-tls was given.
17129 if test "${enable_tls+set}" = set; then
17130   enableval="$enable_tls"
17131
17132       case "$enableval" in
17133        yes|no) ;;
17134        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17135 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17136    { (exit 1); exit 1; }; } ;;
17137       esac
17138
17139 else
17140   enable_tls=yes
17141 fi;
17142
17143   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17144 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17145 if test "${gcc_cv_have_tls+set}" = set; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148
17149     if test "$cross_compiling" = yes; then
17150                 cat >conftest.$ac_ext <<_ACEOF
17151 __thread int a; int b; int main() { return a = b; }
17152 _ACEOF
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155   (eval $ac_link) 2>conftest.er1
17156   ac_status=$?
17157   grep -v '^ *+' conftest.er1 >conftest.err
17158   rm -f conftest.er1
17159   cat conftest.err >&5
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); } &&
17162          { ac_try='test -z "$ac_c_werror_flag"
17163                          || test ! -s conftest.err'
17164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; } &&
17169          { ac_try='test -s conftest$ac_exeext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   gcc_cv_have_tls=yes
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 gcc_cv_have_tls=no
17181 fi
17182 rm -f conftest.err conftest.$ac_objext \
17183       conftest$ac_exeext conftest.$ac_ext
17184
17185
17186 else
17187   cat >conftest.$ac_ext <<_ACEOF
17188 __thread int a; int b; int main() { return a = b; }
17189 _ACEOF
17190 rm -f conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192   (eval $ac_link) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197   (eval $ac_try) 2>&5
17198   ac_status=$?
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); }; }; then
17201                       chktls_save_LDFLAGS="$LDFLAGS"
17202       LDFLAGS="-static $LDFLAGS"
17203       cat >conftest.$ac_ext <<_ACEOF
17204 int main() { return 0; }
17205 _ACEOF
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208   (eval $ac_link) 2>conftest.er1
17209   ac_status=$?
17210   grep -v '^ *+' conftest.er1 >conftest.err
17211   rm -f conftest.er1
17212   cat conftest.err >&5
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); } &&
17215          { ac_try='test -z "$ac_c_werror_flag"
17216                          || test ! -s conftest.err'
17217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218   (eval $ac_try) 2>&5
17219   ac_status=$?
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); }; } &&
17222          { ac_try='test -s conftest$ac_exeext'
17223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224   (eval $ac_try) 2>&5
17225   ac_status=$?
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); }; }; then
17228   if test "$cross_compiling" = yes; then
17229   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17230 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17231 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17232 See \`config.log' for more details." >&5
17233 echo "$as_me: error: cannot run test program while cross compiling
17234 See \`config.log' for more details." >&2;}
17235    { (exit 1); exit 1; }; }; }
17236 else
17237   cat >conftest.$ac_ext <<_ACEOF
17238 __thread int a; int b; int main() { return a = b; }
17239 _ACEOF
17240 rm -f conftest$ac_exeext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17242   (eval $ac_link) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247   (eval $ac_try) 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; }; then
17251   gcc_cv_have_tls=yes
17252 else
17253   echo "$as_me: program exited with status $ac_status" >&5
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257 ( exit $ac_status )
17258 gcc_cv_have_tls=no
17259 fi
17260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17261 fi
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 gcc_cv_have_tls=yes
17267 fi
17268 rm -f conftest.err conftest.$ac_objext \
17269       conftest$ac_exeext conftest.$ac_ext
17270       LDFLAGS="$chktls_save_LDFLAGS"
17271       if test $gcc_cv_have_tls = yes; then
17272                                                 chktls_save_CFLAGS="$CFLAGS"
17273         thread_CFLAGS=failed
17274         for flag in '' '-pthread' '-lpthread'; do
17275           CFLAGS="$flag $chktls_save_CFLAGS"
17276           cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 #include <pthread.h>
17283                 void *g(void *d) { return NULL; }
17284 int
17285 main ()
17286 {
17287 pthread_t t; pthread_create(&t,NULL,g,NULL);
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294   (eval $ac_link) 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } &&
17301          { ac_try='test -z "$ac_c_werror_flag"
17302                          || test ! -s conftest.err'
17303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304   (eval $ac_try) 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); }; } &&
17308          { ac_try='test -s conftest$ac_exeext'
17309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310   (eval $ac_try) 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; }; then
17314   thread_CFLAGS="$flag"
17315 else
17316   echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17318
17319 fi
17320 rm -f conftest.err conftest.$ac_objext \
17321       conftest$ac_exeext conftest.$ac_ext
17322           if test "X$thread_CFLAGS" != Xfailed; then
17323             break
17324           fi
17325         done
17326         CFLAGS="$chktls_save_CFLAGS"
17327         if test "X$thread_CFLAGS" != Xfailed; then
17328           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17329           if test "$cross_compiling" = yes; then
17330   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17331 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17333 See \`config.log' for more details." >&5
17334 echo "$as_me: error: cannot run test program while cross compiling
17335 See \`config.log' for more details." >&2;}
17336    { (exit 1); exit 1; }; }; }
17337 else
17338   cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h.  */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h.  */
17344 #include <pthread.h>
17345                 __thread int a;
17346                 static int *a_in_other_thread;
17347                 static void *
17348                 thread_func (void *arg)
17349                 {
17350                   a_in_other_thread = &a;
17351                   return (void *)0;
17352                 }
17353 int
17354 main ()
17355 {
17356 pthread_t thread;
17357                 void *thread_retval;
17358                 int *a_in_main_thread;
17359                 if (pthread_create (&thread, (pthread_attr_t *)0,
17360                                     thread_func, (void *)0))
17361                   return 0;
17362                 a_in_main_thread = &a;
17363                 if (pthread_join (thread, &thread_retval))
17364                   return 0;
17365                 return (a_in_other_thread == a_in_main_thread);
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 rm -f conftest$ac_exeext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372   (eval $ac_link) 2>&5
17373   ac_status=$?
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377   (eval $ac_try) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; }; then
17381   gcc_cv_have_tls=yes
17382 else
17383   echo "$as_me: program exited with status $ac_status" >&5
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387 ( exit $ac_status )
17388 gcc_cv_have_tls=no
17389 fi
17390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17391 fi
17392           CFLAGS="$chktls_save_CFLAGS"
17393         fi
17394       fi
17395 else
17396   echo "$as_me: program exited with status $ac_status" >&5
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 ( exit $ac_status )
17401 gcc_cv_have_tls=no
17402 fi
17403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17404 fi
17405 fi
17406 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17407 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17408   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17409
17410 cat >>confdefs.h <<\_ACEOF
17411 #define HAVE_TLS 1
17412 _ACEOF
17413
17414   fi
17415
17416 # See what sort of export controls are availible.
17417
17418   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17419 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17420 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
17421   echo $ECHO_N "(cached) $ECHO_C" >&6
17422 else
17423
17424   save_CFLAGS="$CFLAGS"
17425   CFLAGS="$CFLAGS -Werror"
17426   cat >conftest.$ac_ext <<_ACEOF
17427 /* confdefs.h.  */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h.  */
17432 void __attribute__((visibility("hidden"))) foo(void) { }
17433 int
17434 main ()
17435 {
17436
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443   (eval $ac_compile) 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -z "$ac_c_werror_flag"
17451                          || test ! -s conftest.err'
17452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453   (eval $ac_try) 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; } &&
17457          { ac_try='test -s conftest.$ac_objext'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; }; then
17463   libgomp_cv_have_attribute_visibility=yes
17464 else
17465   echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17467
17468 libgomp_cv_have_attribute_visibility=no
17469 fi
17470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17471   CFLAGS="$save_CFLAGS"
17472 fi
17473 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
17474 echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
17475   if test $libgomp_cv_have_attribute_visibility = yes; then
17476
17477 cat >>confdefs.h <<\_ACEOF
17478 #define HAVE_ATTRIBUTE_VISIBILITY 1
17479 _ACEOF
17480
17481   fi
17482
17483   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17484 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17485 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
17486   echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488
17489   save_CFLAGS="$CFLAGS"
17490   CFLAGS="$CFLAGS -Werror"
17491   cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h.  */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h.  */
17497 void __attribute__((dllexport)) foo(void) { }
17498 int
17499 main ()
17500 {
17501
17502   ;
17503   return 0;
17504 }
17505 _ACEOF
17506 rm -f conftest.$ac_objext
17507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508   (eval $ac_compile) 2>conftest.er1
17509   ac_status=$?
17510   grep -v '^ *+' conftest.er1 >conftest.err
17511   rm -f conftest.er1
17512   cat conftest.err >&5
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } &&
17515          { ac_try='test -z "$ac_c_werror_flag"
17516                          || test ! -s conftest.err'
17517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518   (eval $ac_try) 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; } &&
17522          { ac_try='test -s conftest.$ac_objext'
17523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524   (eval $ac_try) 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); }; }; then
17528   libgomp_cv_have_attribute_dllexport=yes
17529 else
17530   echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533 libgomp_cv_have_attribute_dllexport=no
17534 fi
17535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17536   CFLAGS="$save_CFLAGS"
17537 fi
17538 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
17539 echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
17540   if test $libgomp_cv_have_attribute_dllexport = yes; then
17541
17542 cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17544 _ACEOF
17545
17546   fi
17547
17548   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17549 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17550 if test "${libgomp_cv_have_attribute_alias+set}" = set; then
17551   echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553
17554   cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h.  */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h.  */
17560
17561 void foo(void) { }
17562 extern void bar(void) __attribute__((alias("foo")));
17563 int
17564 main ()
17565 {
17566 bar();
17567   ;
17568   return 0;
17569 }
17570 _ACEOF
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17573   (eval $ac_link) 2>conftest.er1
17574   ac_status=$?
17575   grep -v '^ *+' conftest.er1 >conftest.err
17576   rm -f conftest.er1
17577   cat conftest.err >&5
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); } &&
17580          { ac_try='test -z "$ac_c_werror_flag"
17581                          || test ! -s conftest.err'
17582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583   (eval $ac_try) 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; } &&
17587          { ac_try='test -s conftest$ac_exeext'
17588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   libgomp_cv_have_attribute_alias=yes
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598 libgomp_cv_have_attribute_alias=no
17599 fi
17600 rm -f conftest.err conftest.$ac_objext \
17601       conftest$ac_exeext conftest.$ac_ext
17602 fi
17603 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
17604 echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
17605   if test $libgomp_cv_have_attribute_alias = yes; then
17606
17607 cat >>confdefs.h <<\_ACEOF
17608 #define HAVE_ATTRIBUTE_ALIAS 1
17609 _ACEOF
17610
17611   fi
17612
17613
17614 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17615 if test "${with_gnu_ld+set}" = set; then
17616   withval="$with_gnu_ld"
17617   test "$withval" = no || with_gnu_ld=yes
17618 else
17619   with_gnu_ld=no
17620 fi;
17621 ac_prog=ld
17622 if test "$GCC" = yes; then
17623   # Check if gcc -print-prog-name=ld gives a path.
17624   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17625 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17626   case $host in
17627   *-*-mingw*)
17628     # gcc leaves a trailing carriage return which upsets mingw
17629     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17630   *)
17631     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17632   esac
17633   case $ac_prog in
17634     # Accept absolute paths.
17635     [\\/]* | ?:[\\/]*)
17636       re_direlt='/[^/][^/]*/\.\./'
17637       # Canonicalize the pathname of ld
17638       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17639       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17640         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17641       done
17642       test -z "$LD" && LD="$ac_prog"
17643       ;;
17644   "")
17645     # If it fails, then pretend we aren't using GCC.
17646     ac_prog=ld
17647     ;;
17648   *)
17649     # If it is relative, then search for the first ld in PATH.
17650     with_gnu_ld=unknown
17651     ;;
17652   esac
17653 elif test "$with_gnu_ld" = yes; then
17654   echo "$as_me:$LINENO: checking for GNU ld" >&5
17655 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17656 else
17657   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17658 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17659 fi
17660 if test "${lt_cv_path_LD+set}" = set; then
17661   echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663   if test -z "$LD"; then
17664   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17665   for ac_dir in $PATH; do
17666     IFS="$lt_save_ifs"
17667     test -z "$ac_dir" && ac_dir=.
17668     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17669       lt_cv_path_LD="$ac_dir/$ac_prog"
17670       # Check to see if the program is GNU ld.  I'd rather use --version,
17671       # but apparently some variants of GNU ld only accept -v.
17672       # Break only if it was the GNU/non-GNU ld that we prefer.
17673       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17674       *GNU* | *'with BFD'*)
17675         test "$with_gnu_ld" != no && break
17676         ;;
17677       *)
17678         test "$with_gnu_ld" != yes && break
17679         ;;
17680       esac
17681     fi
17682   done
17683   IFS="$lt_save_ifs"
17684 else
17685   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17686 fi
17687 fi
17688
17689 LD="$lt_cv_path_LD"
17690 if test -n "$LD"; then
17691   echo "$as_me:$LINENO: result: $LD" >&5
17692 echo "${ECHO_T}$LD" >&6
17693 else
17694   echo "$as_me:$LINENO: result: no" >&5
17695 echo "${ECHO_T}no" >&6
17696 fi
17697 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17698 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17699    { (exit 1); exit 1; }; }
17700 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17701 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17702 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17703   echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17706 case `$LD -v 2>&1 </dev/null` in
17707 *GNU* | *'with BFD'*)
17708   lt_cv_prog_gnu_ld=yes
17709   ;;
17710 *)
17711   lt_cv_prog_gnu_ld=no
17712   ;;
17713 esac
17714 fi
17715 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17716 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17717 with_gnu_ld=$lt_cv_prog_gnu_ld
17718
17719
17720
17721
17722
17723
17724
17725   # If we're not using GNU ld, then there's no point in even trying these
17726   # tests.  Check for that first.  We should have already tested for gld
17727   # by now (in libtool), but require it now just to be safe...
17728   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17729   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17730
17731
17732
17733   # The name set by libtool depends on the version of libtool.  Shame on us
17734   # for depending on an impl detail, but c'est la vie.  Older versions used
17735   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17736   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17737   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
17738   # set (hence we're using an older libtool), then set it.
17739   if test x${with_gnu_ld+set} != xset; then
17740     if test x${ac_cv_prog_gnu_ld+set} != xset; then
17741       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
17742       with_gnu_ld=no
17743     else
17744       with_gnu_ld=$ac_cv_prog_gnu_ld
17745     fi
17746   fi
17747
17748   # Start by getting the version number.  I think the libtool test already
17749   # does some of this, but throws away the result.
17750
17751   ldver=`$LD --version 2>/dev/null | head -1 | \
17752          sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17753
17754   libgomp_gnu_ld_version=`echo $ldver | \
17755          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17756
17757   # Set --gc-sections.
17758   if test "$with_gnu_ld" = "notbroken"; then
17759     # GNU ld it is!  Joy and bunny rabbits!
17760
17761     # All these tests are for C++; save the language and the compiler flags.
17762     # Need to do this so that g++ won't try to link in libstdc++
17763     ac_test_CFLAGS="${CFLAGS+set}"
17764     ac_save_CFLAGS="$CFLAGS"
17765     CFLAGS='-x c++  -Wl,--gc-sections'
17766
17767     # Check for -Wl,--gc-sections
17768     # XXX This test is broken at the moment, as symbols required for linking
17769     # are now in libsupc++ (not built yet).  In addition, this test has
17770     # cored on solaris in the past.  In addition, --gc-sections doesn't
17771     # really work at the moment (keeps on discarding used sections, first
17772     # .eh_frame and now some of the glibc sections for iconv).
17773     # Bzzzzt.  Thanks for playing, maybe next time.
17774     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17775 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17776     if test "$cross_compiling" = yes; then
17777   ac_sectionLDflags=yes
17778 else
17779   cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h.  */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h.  */
17785
17786      int main(void)
17787      {
17788        try { throw 1; }
17789        catch (...) { };
17790        return 0;
17791      }
17792
17793 _ACEOF
17794 rm -f conftest$ac_exeext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796   (eval $ac_link) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801   (eval $ac_try) 2>&5
17802   ac_status=$?
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); }; }; then
17805   ac_sectionLDflags=yes
17806 else
17807   echo "$as_me: program exited with status $ac_status" >&5
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17810
17811 ( exit $ac_status )
17812 ac_sectionLDflags=no
17813 fi
17814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17815 fi
17816     if test "$ac_test_CFLAGS" = set; then
17817       CFLAGS="$ac_save_CFLAGS"
17818     else
17819       # this is the suspicious part
17820       CFLAGS=''
17821     fi
17822     if test "$ac_sectionLDflags" = "yes"; then
17823       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17824     fi
17825     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17826 echo "${ECHO_T}$ac_sectionLDflags" >&6
17827   fi
17828
17829   # Set linker optimization flags.
17830   if test x"$with_gnu_ld" = x"yes"; then
17831     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17832   fi
17833
17834
17835
17836
17837
17838
17839  # Check whether --enable-symvers or --disable-symvers was given.
17840 if test "${enable_symvers+set}" = set; then
17841   enableval="$enable_symvers"
17842
17843       case "$enableval" in
17844        yes|no|gnu) ;;
17845        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17846 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17847    { (exit 1); exit 1; }; } ;;
17848                           esac
17849
17850 else
17851   enable_symvers=yes
17852 fi;
17853
17854
17855 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17856 # don't know enough about $LD to do tricks...
17857
17858 # FIXME  The following test is too strict, in theory.
17859 if test $enable_shared = no ||
17860         test "x$LD" = x ||
17861         test x$libgomp_gnu_ld_version = x; then
17862   enable_symvers=no
17863 fi
17864
17865 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17866 if test $enable_symvers != no; then
17867   echo "$as_me:$LINENO: checking for shared libgcc" >&5
17868 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17869   ac_save_CFLAGS="$CFLAGS"
17870   CFLAGS=' -lgcc_s'
17871   cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h.  */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h.  */
17877
17878 int
17879 main ()
17880 {
17881 return 0;
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888   (eval $ac_link) 2>conftest.er1
17889   ac_status=$?
17890   grep -v '^ *+' conftest.er1 >conftest.err
17891   rm -f conftest.er1
17892   cat conftest.err >&5
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); } &&
17895          { ac_try='test -z "$ac_c_werror_flag"
17896                          || test ! -s conftest.err'
17897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898   (eval $ac_try) 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; } &&
17902          { ac_try='test -s conftest$ac_exeext'
17903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904   (eval $ac_try) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; }; then
17908   libgomp_shared_libgcc=yes
17909 else
17910   echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913 libgomp_shared_libgcc=no
17914 fi
17915 rm -f conftest.err conftest.$ac_objext \
17916       conftest$ac_exeext conftest.$ac_ext
17917   CFLAGS="$ac_save_CFLAGS"
17918   if test $libgomp_shared_libgcc = no; then
17919     cat > conftest.c <<EOF
17920 int main (void) { return 0; }
17921 EOF
17922     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17923                              -shared -shared-libgcc -o conftest.so \
17924                              conftest.c -v 2>&1 >/dev/null \
17925                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17926     rm -f conftest.c conftest.so
17927     if test x${libgomp_libgcc_s_suffix+set} = xset; then
17928       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17929       cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h.  */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h.  */
17935
17936 int
17937 main ()
17938 {
17939 return 0;
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946   (eval $ac_link) 2>conftest.er1
17947   ac_status=$?
17948   grep -v '^ *+' conftest.er1 >conftest.err
17949   rm -f conftest.er1
17950   cat conftest.err >&5
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } &&
17953          { ac_try='test -z "$ac_c_werror_flag"
17954                          || test ! -s conftest.err'
17955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956   (eval $ac_try) 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; } &&
17960          { ac_try='test -s conftest$ac_exeext'
17961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962   (eval $ac_try) 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; }; then
17966   libgomp_shared_libgcc=yes
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971 fi
17972 rm -f conftest.err conftest.$ac_objext \
17973       conftest$ac_exeext conftest.$ac_ext
17974       CFLAGS="$ac_save_CFLAGS"
17975     fi
17976   fi
17977   echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17978 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17979 fi
17980
17981 # For GNU ld, we need at least this version.  The format is described in
17982 # LIBGOMP_CHECK_LINKER_FEATURES above.
17983 libgomp_min_gnu_ld_version=21400
17984 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17985
17986 # Check to see if unspecified "yes" value can win, given results above.
17987 # Change "yes" into either "no" or a style name.
17988 if test $enable_symvers = yes; then
17989   if test $with_gnu_ld = yes &&
17990      test $libgomp_shared_libgcc = yes;
17991   then
17992     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17993       enable_symvers=gnu
17994     else
17995       # The right tools, the right setup, but too old.  Fallbacks?
17996       { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17997 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17998       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17999 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
18000       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
18001 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
18002       { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
18003 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
18004       if test $libgomp_gnu_ld_version -ge 21200 ; then
18005         # Globbing fix is present, proper block support is not.
18006                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18007 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18008         enable_symvers=no
18009       else
18010         # 2.11 or older.
18011         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18012 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18013         enable_symvers=no
18014       fi
18015     fi
18016   else
18017     # just fail for now
18018     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
18019 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
18020     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
18021 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
18022     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
18023 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
18024     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18025 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18026     enable_symvers=no
18027   fi
18028 fi
18029
18030
18031
18032 if test $enable_symvers != no; then
18033   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
18034   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
18035 else
18036   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
18037   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
18038 fi
18039
18040 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
18041 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
18042
18043
18044 if test $enable_symvers = gnu; then
18045
18046 cat >>confdefs.h <<\_ACEOF
18047 #define LIBGOMP_GNU_SYMBOL_VERSIONING 1
18048 _ACEOF
18049
18050 fi
18051
18052 # Get target configury.
18053 . ${srcdir}/configure.tgt
18054 CFLAGS="$save_CFLAGS $XCFLAGS"
18055
18056 # Check for __sync_val_compare_and_swap, but only after the target has
18057 # had a chance to set XCFLAGS.
18058
18059   echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
18060 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
18061 if test "${libgomp_cv_have_sync_builtins+set}" = set; then
18062   echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064
18065   cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h.  */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h.  */
18071
18072 int
18073 main ()
18074 {
18075 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18076   ;
18077   return 0;
18078 }
18079 _ACEOF
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082   (eval $ac_link) 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } &&
18089          { ac_try='test -z "$ac_c_werror_flag"
18090                          || test ! -s conftest.err'
18091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092   (eval $ac_try) 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; } &&
18096          { ac_try='test -s conftest$ac_exeext'
18097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098   (eval $ac_try) 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; }; then
18102   libgomp_cv_have_sync_builtins=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107 libgomp_cv_have_sync_builtins=no
18108 fi
18109 rm -f conftest.err conftest.$ac_objext \
18110       conftest$ac_exeext conftest.$ac_ext
18111 fi
18112 echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18113 echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18114   if test $libgomp_cv_have_sync_builtins = yes; then
18115
18116 cat >>confdefs.h <<\_ACEOF
18117 #define HAVE_SYNC_BUILTINS 1
18118 _ACEOF
18119
18120   fi
18121
18122 XCFLAGS="$XCFLAGS$XPCFLAGS"
18123
18124
18125
18126
18127
18128 # Cleanup and exit.
18129 CFLAGS="$save_CFLAGS"
18130 cat >confcache <<\_ACEOF
18131 # This file is a shell script that caches the results of configure
18132 # tests run on this system so they can be shared between configure
18133 # scripts and configure runs, see configure's option --config-cache.
18134 # It is not useful on other systems.  If it contains results you don't
18135 # want to keep, you may remove or edit it.
18136 #
18137 # config.status only pays attention to the cache file if you give it
18138 # the --recheck option to rerun configure.
18139 #
18140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18142 # following values.
18143
18144 _ACEOF
18145
18146 # The following way of writing the cache mishandles newlines in values,
18147 # but we know of no workaround that is simple, portable, and efficient.
18148 # So, don't put newlines in cache variables' values.
18149 # Ultrix sh set writes to stderr and can't be redirected directly,
18150 # and sets the high bit in the cache file unless we assign to the vars.
18151 {
18152   (set) 2>&1 |
18153     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18154     *ac_space=\ *)
18155       # `set' does not quote correctly, so add quotes (double-quote
18156       # substitution turns \\\\ into \\, and sed turns \\ into \).
18157       sed -n \
18158         "s/'/'\\\\''/g;
18159           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18160       ;;
18161     *)
18162       # `set' quotes correctly as required by POSIX, so do not add quotes.
18163       sed -n \
18164         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18165       ;;
18166     esac;
18167 } |
18168   sed '
18169      t clear
18170      : clear
18171      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18172      t end
18173      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18174      : end' >>confcache
18175 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18176   if test -w $cache_file; then
18177     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18178     cat confcache >$cache_file
18179   else
18180     echo "not updating unwritable cache $cache_file"
18181   fi
18182 fi
18183 rm -f confcache
18184
18185 if test ${multilib} = yes; then
18186   multilib_arg="--enable-multilib"
18187 else
18188   multilib_arg=
18189 fi
18190
18191 # Set up the set of libraries that we need to link against for libgomp.
18192 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18193 # which will force linkage against -lpthread (or equivalent for the system).
18194 # That's not 100% ideal, but about the best we can do easily.
18195 if test $enable_shared = yes; then
18196   link_gomp="-lgomp %{static: $LIBS}"
18197 else
18198   link_gomp="-lgomp $LIBS"
18199 fi
18200
18201
18202
18203
18204 if test "$ac_cv_fc_compiler_gnu" = yes; then
18205   USE_FORTRAN_TRUE=
18206   USE_FORTRAN_FALSE='#'
18207 else
18208   USE_FORTRAN_TRUE='#'
18209   USE_FORTRAN_FALSE=
18210 fi
18211
18212
18213 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18214 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
18215 # the underscore here and update the PREREQ.  If it doesn't, then we'll
18216 # need to copy this macro to our acinclude.m4.
18217 save_CFLAGS="$CFLAGS"
18218 for i in $config_path; do
18219   if test -f $srcdir/config/$i/omp-lock.h; then
18220     CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
18221     break
18222   fi
18223 done
18224
18225 if test "$cross_compiling" = yes; then
18226   # Depending upon the size, compute the lo and hi bounds.
18227 cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h.  */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h.  */
18233
18234 int
18235 main ()
18236 {
18237 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18238 test_array [0] = 0
18239
18240   ;
18241   return 0;
18242 }
18243 _ACEOF
18244 rm -f conftest.$ac_objext
18245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18246   (eval $ac_compile) 2>conftest.er1
18247   ac_status=$?
18248   grep -v '^ *+' conftest.er1 >conftest.err
18249   rm -f conftest.er1
18250   cat conftest.err >&5
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); } &&
18253          { ac_try='test -z "$ac_c_werror_flag"
18254                          || test ! -s conftest.err'
18255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256   (eval $ac_try) 2>&5
18257   ac_status=$?
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); }; } &&
18260          { ac_try='test -s conftest.$ac_objext'
18261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262   (eval $ac_try) 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; }; then
18266   ac_lo=0 ac_mid=0
18267   while :; do
18268     cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h.  */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h.  */
18274
18275 int
18276 main ()
18277 {
18278 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18279 test_array [0] = 0
18280
18281   ;
18282   return 0;
18283 }
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287   (eval $ac_compile) 2>conftest.er1
18288   ac_status=$?
18289   grep -v '^ *+' conftest.er1 >conftest.err
18290   rm -f conftest.er1
18291   cat conftest.err >&5
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); } &&
18294          { ac_try='test -z "$ac_c_werror_flag"
18295                          || test ! -s conftest.err'
18296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297   (eval $ac_try) 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); }; } &&
18301          { ac_try='test -s conftest.$ac_objext'
18302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; }; then
18307   ac_hi=$ac_mid; break
18308 else
18309   echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18311
18312 ac_lo=`expr $ac_mid + 1`
18313                     if test $ac_lo -le $ac_mid; then
18314                       ac_lo= ac_hi=
18315                       break
18316                     fi
18317                     ac_mid=`expr 2 '*' $ac_mid + 1`
18318 fi
18319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18320   done
18321 else
18322   echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18324
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h.  */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h.  */
18331
18332 int
18333 main ()
18334 {
18335 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18336 test_array [0] = 0
18337
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344   (eval $ac_compile) 2>conftest.er1
18345   ac_status=$?
18346   grep -v '^ *+' conftest.er1 >conftest.err
18347   rm -f conftest.er1
18348   cat conftest.err >&5
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); } &&
18351          { ac_try='test -z "$ac_c_werror_flag"
18352                          || test ! -s conftest.err'
18353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354   (eval $ac_try) 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); }; } &&
18358          { ac_try='test -s conftest.$ac_objext'
18359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360   (eval $ac_try) 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; }; then
18364   ac_hi=-1 ac_mid=-1
18365   while :; do
18366     cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h.  */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h.  */
18372
18373 int
18374 main ()
18375 {
18376 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18377 test_array [0] = 0
18378
18379   ;
18380   return 0;
18381 }
18382 _ACEOF
18383 rm -f conftest.$ac_objext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385   (eval $ac_compile) 2>conftest.er1
18386   ac_status=$?
18387   grep -v '^ *+' conftest.er1 >conftest.err
18388   rm -f conftest.er1
18389   cat conftest.err >&5
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); } &&
18392          { ac_try='test -z "$ac_c_werror_flag"
18393                          || test ! -s conftest.err'
18394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395   (eval $ac_try) 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; } &&
18399          { ac_try='test -s conftest.$ac_objext'
18400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401   (eval $ac_try) 2>&5
18402   ac_status=$?
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); }; }; then
18405   ac_lo=$ac_mid; break
18406 else
18407   echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410 ac_hi=`expr '(' $ac_mid ')' - 1`
18411                        if test $ac_mid -le $ac_hi; then
18412                          ac_lo= ac_hi=
18413                          break
18414                        fi
18415                        ac_mid=`expr 2 '*' $ac_mid`
18416 fi
18417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18418   done
18419 else
18420   echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 ac_lo= ac_hi=
18424 fi
18425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18426 fi
18427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18428 # Binary search between lo and hi bounds.
18429 while test "x$ac_lo" != "x$ac_hi"; do
18430   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18431   cat >conftest.$ac_ext <<_ACEOF
18432 /* confdefs.h.  */
18433 _ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h.  */
18437
18438 int
18439 main ()
18440 {
18441 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18442 test_array [0] = 0
18443
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450   (eval $ac_compile) 2>conftest.er1
18451   ac_status=$?
18452   grep -v '^ *+' conftest.er1 >conftest.err
18453   rm -f conftest.er1
18454   cat conftest.err >&5
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } &&
18457          { ac_try='test -z "$ac_c_werror_flag"
18458                          || test ! -s conftest.err'
18459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460   (eval $ac_try) 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; } &&
18464          { ac_try='test -s conftest.$ac_objext'
18465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466   (eval $ac_try) 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; }; then
18470   ac_hi=$ac_mid
18471 else
18472   echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18474
18475 ac_lo=`expr '(' $ac_mid ')' + 1`
18476 fi
18477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18478 done
18479 case $ac_lo in
18480 ?*) OMP_LOCK_SIZE=$ac_lo;;
18481 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18482 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18483    { (exit 1); exit 1; }; } ;;
18484 esac
18485 else
18486   if test "$cross_compiling" = yes; then
18487   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18488 echo "$as_me: error: in \`$ac_pwd':" >&2;}
18489 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18490 See \`config.log' for more details." >&5
18491 echo "$as_me: error: cannot run test program while cross compiling
18492 See \`config.log' for more details." >&2;}
18493    { (exit 1); exit 1; }; }; }
18494 else
18495   cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h.  */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h.  */
18501
18502 long longval () { return sizeof (omp_lock_t); }
18503 unsigned long ulongval () { return sizeof (omp_lock_t); }
18504 #include <stdio.h>
18505 #include <stdlib.h>
18506 int
18507 main ()
18508 {
18509
18510   FILE *f = fopen ("conftest.val", "w");
18511   if (! f)
18512     exit (1);
18513   if ((sizeof (omp_lock_t)) < 0)
18514     {
18515       long i = longval ();
18516       if (i != (sizeof (omp_lock_t)))
18517         exit (1);
18518       fprintf (f, "%ld\n", i);
18519     }
18520   else
18521     {
18522       unsigned long i = ulongval ();
18523       if (i != (sizeof (omp_lock_t)))
18524         exit (1);
18525       fprintf (f, "%lu\n", i);
18526     }
18527   exit (ferror (f) || fclose (f) != 0);
18528
18529   ;
18530   return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535   (eval $ac_link) 2>&5
18536   ac_status=$?
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540   (eval $ac_try) 2>&5
18541   ac_status=$?
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); }; }; then
18544   OMP_LOCK_SIZE=`cat conftest.val`
18545 else
18546   echo "$as_me: program exited with status $ac_status" >&5
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 ( exit $ac_status )
18551 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18552 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18553    { (exit 1); exit 1; }; }
18554 fi
18555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18556 fi
18557 fi
18558 rm -f conftest.val
18559 if test "$cross_compiling" = yes; then
18560   # Depending upon the size, compute the lo and hi bounds.
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567
18568 int
18569 main ()
18570 {
18571 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18572 test_array [0] = 0
18573
18574   ;
18575   return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580   (eval $ac_compile) 2>conftest.er1
18581   ac_status=$?
18582   grep -v '^ *+' conftest.er1 >conftest.err
18583   rm -f conftest.er1
18584   cat conftest.err >&5
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); } &&
18587          { ac_try='test -z "$ac_c_werror_flag"
18588                          || test ! -s conftest.err'
18589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590   (eval $ac_try) 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; } &&
18594          { ac_try='test -s conftest.$ac_objext'
18595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596   (eval $ac_try) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; }; then
18600   ac_lo=0 ac_mid=0
18601   while :; do
18602     cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608
18609 int
18610 main ()
18611 {
18612 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18613 test_array [0] = 0
18614
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621   (eval $ac_compile) 2>conftest.er1
18622   ac_status=$?
18623   grep -v '^ *+' conftest.er1 >conftest.err
18624   rm -f conftest.er1
18625   cat conftest.err >&5
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); } &&
18628          { ac_try='test -z "$ac_c_werror_flag"
18629                          || test ! -s conftest.err'
18630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631   (eval $ac_try) 2>&5
18632   ac_status=$?
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); }; } &&
18635          { ac_try='test -s conftest.$ac_objext'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; }; then
18641   ac_hi=$ac_mid; break
18642 else
18643   echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 ac_lo=`expr $ac_mid + 1`
18647                     if test $ac_lo -le $ac_mid; then
18648                       ac_lo= ac_hi=
18649                       break
18650                     fi
18651                     ac_mid=`expr 2 '*' $ac_mid + 1`
18652 fi
18653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18654   done
18655 else
18656   echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18658
18659 cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h.  */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h.  */
18665
18666 int
18667 main ()
18668 {
18669 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18670 test_array [0] = 0
18671
18672   ;
18673   return 0;
18674 }
18675 _ACEOF
18676 rm -f conftest.$ac_objext
18677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18678   (eval $ac_compile) 2>conftest.er1
18679   ac_status=$?
18680   grep -v '^ *+' conftest.er1 >conftest.err
18681   rm -f conftest.er1
18682   cat conftest.err >&5
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); } &&
18685          { ac_try='test -z "$ac_c_werror_flag"
18686                          || test ! -s conftest.err'
18687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688   (eval $ac_try) 2>&5
18689   ac_status=$?
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); }; } &&
18692          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18698   ac_hi=-1 ac_mid=-1
18699   while :; do
18700     cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h.  */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h.  */
18706
18707 int
18708 main ()
18709 {
18710 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18711 test_array [0] = 0
18712
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719   (eval $ac_compile) 2>conftest.er1
18720   ac_status=$?
18721   grep -v '^ *+' conftest.er1 >conftest.err
18722   rm -f conftest.er1
18723   cat conftest.err >&5
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } &&
18726          { ac_try='test -z "$ac_c_werror_flag"
18727                          || test ! -s conftest.err'
18728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729   (eval $ac_try) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); }; } &&
18733          { ac_try='test -s conftest.$ac_objext'
18734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735   (eval $ac_try) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; }; then
18739   ac_lo=$ac_mid; break
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 ac_hi=`expr '(' $ac_mid ')' - 1`
18745                        if test $ac_mid -le $ac_hi; then
18746                          ac_lo= ac_hi=
18747                          break
18748                        fi
18749                        ac_mid=`expr 2 '*' $ac_mid`
18750 fi
18751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18752   done
18753 else
18754   echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18756
18757 ac_lo= ac_hi=
18758 fi
18759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18760 fi
18761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18762 # Binary search between lo and hi bounds.
18763 while test "x$ac_lo" != "x$ac_hi"; do
18764   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18765   cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771
18772 int
18773 main ()
18774 {
18775 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18776 test_array [0] = 0
18777
18778   ;
18779   return 0;
18780 }
18781 _ACEOF
18782 rm -f conftest.$ac_objext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18784   (eval $ac_compile) 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } &&
18791          { ac_try='test -z "$ac_c_werror_flag"
18792                          || test ! -s conftest.err'
18793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794   (eval $ac_try) 2>&5
18795   ac_status=$?
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); }; } &&
18798          { ac_try='test -s conftest.$ac_objext'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; }; then
18804   ac_hi=$ac_mid
18805 else
18806   echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809 ac_lo=`expr '(' $ac_mid ')' + 1`
18810 fi
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812 done
18813 case $ac_lo in
18814 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18815 '')  ;;
18816 esac
18817 else
18818   if test "$cross_compiling" = yes; then
18819   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18820 echo "$as_me: error: in \`$ac_pwd':" >&2;}
18821 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18822 See \`config.log' for more details." >&5
18823 echo "$as_me: error: cannot run test program while cross compiling
18824 See \`config.log' for more details." >&2;}
18825    { (exit 1); exit 1; }; }; }
18826 else
18827   cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h.  */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h.  */
18833
18834 long longval () { return __alignof (omp_lock_t); }
18835 unsigned long ulongval () { return __alignof (omp_lock_t); }
18836 #include <stdio.h>
18837 #include <stdlib.h>
18838 int
18839 main ()
18840 {
18841
18842   FILE *f = fopen ("conftest.val", "w");
18843   if (! f)
18844     exit (1);
18845   if ((__alignof (omp_lock_t)) < 0)
18846     {
18847       long i = longval ();
18848       if (i != (__alignof (omp_lock_t)))
18849         exit (1);
18850       fprintf (f, "%ld\n", i);
18851     }
18852   else
18853     {
18854       unsigned long i = ulongval ();
18855       if (i != (__alignof (omp_lock_t)))
18856         exit (1);
18857       fprintf (f, "%lu\n", i);
18858     }
18859   exit (ferror (f) || fclose (f) != 0);
18860
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 rm -f conftest$ac_exeext
18866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18867   (eval $ac_link) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872   (eval $ac_try) 2>&5
18873   ac_status=$?
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); }; }; then
18876   OMP_LOCK_ALIGN=`cat conftest.val`
18877 else
18878   echo "$as_me: program exited with status $ac_status" >&5
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18881
18882 fi
18883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18884 fi
18885 fi
18886 rm -f conftest.val
18887 if test "$cross_compiling" = yes; then
18888   # Depending upon the size, compute the lo and hi bounds.
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h.  */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h.  */
18895
18896 int
18897 main ()
18898 {
18899 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18900 test_array [0] = 0
18901
18902   ;
18903   return 0;
18904 }
18905 _ACEOF
18906 rm -f conftest.$ac_objext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908   (eval $ac_compile) 2>conftest.er1
18909   ac_status=$?
18910   grep -v '^ *+' conftest.er1 >conftest.err
18911   rm -f conftest.er1
18912   cat conftest.err >&5
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); } &&
18915          { ac_try='test -z "$ac_c_werror_flag"
18916                          || test ! -s conftest.err'
18917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918   (eval $ac_try) 2>&5
18919   ac_status=$?
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); }; } &&
18922          { ac_try='test -s conftest.$ac_objext'
18923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924   (eval $ac_try) 2>&5
18925   ac_status=$?
18926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927   (exit $ac_status); }; }; then
18928   ac_lo=0 ac_mid=0
18929   while :; do
18930     cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936
18937 int
18938 main ()
18939 {
18940 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18941 test_array [0] = 0
18942
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext
18948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18949   (eval $ac_compile) 2>conftest.er1
18950   ac_status=$?
18951   grep -v '^ *+' conftest.er1 >conftest.err
18952   rm -f conftest.er1
18953   cat conftest.err >&5
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); } &&
18956          { ac_try='test -z "$ac_c_werror_flag"
18957                          || test ! -s conftest.err'
18958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959   (eval $ac_try) 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; } &&
18963          { ac_try='test -s conftest.$ac_objext'
18964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965   (eval $ac_try) 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; }; then
18969   ac_hi=$ac_mid; break
18970 else
18971   echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 ac_lo=`expr $ac_mid + 1`
18975                     if test $ac_lo -le $ac_mid; then
18976                       ac_lo= ac_hi=
18977                       break
18978                     fi
18979                     ac_mid=`expr 2 '*' $ac_mid + 1`
18980 fi
18981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18982   done
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993
18994 int
18995 main ()
18996 {
18997 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18998 test_array [0] = 0
18999
19000   ;
19001   return 0;
19002 }
19003 _ACEOF
19004 rm -f conftest.$ac_objext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19006   (eval $ac_compile) 2>conftest.er1
19007   ac_status=$?
19008   grep -v '^ *+' conftest.er1 >conftest.err
19009   rm -f conftest.er1
19010   cat conftest.err >&5
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); } &&
19013          { ac_try='test -z "$ac_c_werror_flag"
19014                          || test ! -s conftest.err'
19015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016   (eval $ac_try) 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; } &&
19020          { ac_try='test -s conftest.$ac_objext'
19021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022   (eval $ac_try) 2>&5
19023   ac_status=$?
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); }; }; then
19026   ac_hi=-1 ac_mid=-1
19027   while :; do
19028     cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h.  */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h.  */
19034
19035 int
19036 main ()
19037 {
19038 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
19039 test_array [0] = 0
19040
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19047   (eval $ac_compile) 2>conftest.er1
19048   ac_status=$?
19049   grep -v '^ *+' conftest.er1 >conftest.err
19050   rm -f conftest.er1
19051   cat conftest.err >&5
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } &&
19054          { ac_try='test -z "$ac_c_werror_flag"
19055                          || test ! -s conftest.err'
19056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057   (eval $ac_try) 2>&5
19058   ac_status=$?
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); }; } &&
19061          { ac_try='test -s conftest.$ac_objext'
19062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063   (eval $ac_try) 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }; }; then
19067   ac_lo=$ac_mid; break
19068 else
19069   echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072 ac_hi=`expr '(' $ac_mid ')' - 1`
19073                        if test $ac_mid -le $ac_hi; then
19074                          ac_lo= ac_hi=
19075                          break
19076                        fi
19077                        ac_mid=`expr 2 '*' $ac_mid`
19078 fi
19079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19080   done
19081 else
19082   echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085 ac_lo= ac_hi=
19086 fi
19087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19088 fi
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19090 # Binary search between lo and hi bounds.
19091 while test "x$ac_lo" != "x$ac_hi"; do
19092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19093   cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h.  */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h.  */
19099
19100 int
19101 main ()
19102 {
19103 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19104 test_array [0] = 0
19105
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest.$ac_objext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19112   (eval $ac_compile) 2>conftest.er1
19113   ac_status=$?
19114   grep -v '^ *+' conftest.er1 >conftest.err
19115   rm -f conftest.er1
19116   cat conftest.err >&5
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); } &&
19119          { ac_try='test -z "$ac_c_werror_flag"
19120                          || test ! -s conftest.err'
19121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122   (eval $ac_try) 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; } &&
19126          { ac_try='test -s conftest.$ac_objext'
19127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128   (eval $ac_try) 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; }; then
19132   ac_hi=$ac_mid
19133 else
19134   echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 ac_lo=`expr '(' $ac_mid ')' + 1`
19138 fi
19139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19140 done
19141 case $ac_lo in
19142 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19143 '')  ;;
19144 esac
19145 else
19146   if test "$cross_compiling" = yes; then
19147   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19148 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19149 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19150 See \`config.log' for more details." >&5
19151 echo "$as_me: error: cannot run test program while cross compiling
19152 See \`config.log' for more details." >&2;}
19153    { (exit 1); exit 1; }; }; }
19154 else
19155   cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161
19162 long longval () { return sizeof (omp_nest_lock_t); }
19163 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19164 #include <stdio.h>
19165 #include <stdlib.h>
19166 int
19167 main ()
19168 {
19169
19170   FILE *f = fopen ("conftest.val", "w");
19171   if (! f)
19172     exit (1);
19173   if ((sizeof (omp_nest_lock_t)) < 0)
19174     {
19175       long i = longval ();
19176       if (i != (sizeof (omp_nest_lock_t)))
19177         exit (1);
19178       fprintf (f, "%ld\n", i);
19179     }
19180   else
19181     {
19182       unsigned long i = ulongval ();
19183       if (i != (sizeof (omp_nest_lock_t)))
19184         exit (1);
19185       fprintf (f, "%lu\n", i);
19186     }
19187   exit (ferror (f) || fclose (f) != 0);
19188
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest$ac_exeext
19194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19195   (eval $ac_link) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200   (eval $ac_try) 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; }; then
19204   OMP_NEST_LOCK_SIZE=`cat conftest.val`
19205 else
19206   echo "$as_me: program exited with status $ac_status" >&5
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210 fi
19211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19212 fi
19213 fi
19214 rm -f conftest.val
19215 if test "$cross_compiling" = yes; then
19216   # Depending upon the size, compute the lo and hi bounds.
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223
19224 int
19225 main ()
19226 {
19227 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19228 test_array [0] = 0
19229
19230   ;
19231   return 0;
19232 }
19233 _ACEOF
19234 rm -f conftest.$ac_objext
19235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236   (eval $ac_compile) 2>conftest.er1
19237   ac_status=$?
19238   grep -v '^ *+' conftest.er1 >conftest.err
19239   rm -f conftest.er1
19240   cat conftest.err >&5
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); } &&
19243          { ac_try='test -z "$ac_c_werror_flag"
19244                          || test ! -s conftest.err'
19245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246   (eval $ac_try) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; } &&
19250          { ac_try='test -s conftest.$ac_objext'
19251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252   (eval $ac_try) 2>&5
19253   ac_status=$?
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); }; }; then
19256   ac_lo=0 ac_mid=0
19257   while :; do
19258     cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h.  */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h.  */
19264
19265 int
19266 main ()
19267 {
19268 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19269 test_array [0] = 0
19270
19271   ;
19272   return 0;
19273 }
19274 _ACEOF
19275 rm -f conftest.$ac_objext
19276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19277   (eval $ac_compile) 2>conftest.er1
19278   ac_status=$?
19279   grep -v '^ *+' conftest.er1 >conftest.err
19280   rm -f conftest.er1
19281   cat conftest.err >&5
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); } &&
19284          { ac_try='test -z "$ac_c_werror_flag"
19285                          || test ! -s conftest.err'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; } &&
19291          { ac_try='test -s conftest.$ac_objext'
19292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293   (eval $ac_try) 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; }; then
19297   ac_hi=$ac_mid; break
19298 else
19299   echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302 ac_lo=`expr $ac_mid + 1`
19303                     if test $ac_lo -le $ac_mid; then
19304                       ac_lo= ac_hi=
19305                       break
19306                     fi
19307                     ac_mid=`expr 2 '*' $ac_mid + 1`
19308 fi
19309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310   done
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h.  */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h.  */
19321
19322 int
19323 main ()
19324 {
19325 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19326 test_array [0] = 0
19327
19328   ;
19329   return 0;
19330 }
19331 _ACEOF
19332 rm -f conftest.$ac_objext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334   (eval $ac_compile) 2>conftest.er1
19335   ac_status=$?
19336   grep -v '^ *+' conftest.er1 >conftest.err
19337   rm -f conftest.er1
19338   cat conftest.err >&5
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } &&
19341          { ac_try='test -z "$ac_c_werror_flag"
19342                          || test ! -s conftest.err'
19343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344   (eval $ac_try) 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); }; } &&
19348          { ac_try='test -s conftest.$ac_objext'
19349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350   (eval $ac_try) 2>&5
19351   ac_status=$?
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); }; }; then
19354   ac_hi=-1 ac_mid=-1
19355   while :; do
19356     cat >conftest.$ac_ext <<_ACEOF
19357 /* confdefs.h.  */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h.  */
19362
19363 int
19364 main ()
19365 {
19366 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19367 test_array [0] = 0
19368
19369   ;
19370   return 0;
19371 }
19372 _ACEOF
19373 rm -f conftest.$ac_objext
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375   (eval $ac_compile) 2>conftest.er1
19376   ac_status=$?
19377   grep -v '^ *+' conftest.er1 >conftest.err
19378   rm -f conftest.er1
19379   cat conftest.err >&5
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); } &&
19382          { ac_try='test -z "$ac_c_werror_flag"
19383                          || test ! -s conftest.err'
19384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385   (eval $ac_try) 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); }; } &&
19389          { ac_try='test -s conftest.$ac_objext'
19390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391   (eval $ac_try) 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; }; then
19395   ac_lo=$ac_mid; break
19396 else
19397   echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400 ac_hi=`expr '(' $ac_mid ')' - 1`
19401                        if test $ac_mid -le $ac_hi; then
19402                          ac_lo= ac_hi=
19403                          break
19404                        fi
19405                        ac_mid=`expr 2 '*' $ac_mid`
19406 fi
19407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19408   done
19409 else
19410   echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413 ac_lo= ac_hi=
19414 fi
19415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416 fi
19417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418 # Binary search between lo and hi bounds.
19419 while test "x$ac_lo" != "x$ac_hi"; do
19420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19421   cat >conftest.$ac_ext <<_ACEOF
19422 /* confdefs.h.  */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h.  */
19427
19428 int
19429 main ()
19430 {
19431 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19432 test_array [0] = 0
19433
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440   (eval $ac_compile) 2>conftest.er1
19441   ac_status=$?
19442   grep -v '^ *+' conftest.er1 >conftest.err
19443   rm -f conftest.er1
19444   cat conftest.err >&5
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); } &&
19447          { ac_try='test -z "$ac_c_werror_flag"
19448                          || test ! -s conftest.err'
19449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450   (eval $ac_try) 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); }; } &&
19454          { ac_try='test -s conftest.$ac_objext'
19455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456   (eval $ac_try) 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); }; }; then
19460   ac_hi=$ac_mid
19461 else
19462   echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19464
19465 ac_lo=`expr '(' $ac_mid ')' + 1`
19466 fi
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19468 done
19469 case $ac_lo in
19470 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19471 '')  ;;
19472 esac
19473 else
19474   if test "$cross_compiling" = yes; then
19475   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19476 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19478 See \`config.log' for more details." >&5
19479 echo "$as_me: error: cannot run test program while cross compiling
19480 See \`config.log' for more details." >&2;}
19481    { (exit 1); exit 1; }; }; }
19482 else
19483   cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489
19490 long longval () { return __alignof (omp_nest_lock_t); }
19491 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19492 #include <stdio.h>
19493 #include <stdlib.h>
19494 int
19495 main ()
19496 {
19497
19498   FILE *f = fopen ("conftest.val", "w");
19499   if (! f)
19500     exit (1);
19501   if ((__alignof (omp_nest_lock_t)) < 0)
19502     {
19503       long i = longval ();
19504       if (i != (__alignof (omp_nest_lock_t)))
19505         exit (1);
19506       fprintf (f, "%ld\n", i);
19507     }
19508   else
19509     {
19510       unsigned long i = ulongval ();
19511       if (i != (__alignof (omp_nest_lock_t)))
19512         exit (1);
19513       fprintf (f, "%lu\n", i);
19514     }
19515   exit (ferror (f) || fclose (f) != 0);
19516
19517   ;
19518   return 0;
19519 }
19520 _ACEOF
19521 rm -f conftest$ac_exeext
19522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19523   (eval $ac_link) 2>&5
19524   ac_status=$?
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; }; then
19532   OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19533 else
19534   echo "$as_me: program exited with status $ac_status" >&5
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 fi
19539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19540 fi
19541 fi
19542 rm -f conftest.val
19543 if test "$cross_compiling" = yes; then
19544   # Depending upon the size, compute the lo and hi bounds.
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h.  */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h.  */
19551
19552 int
19553 main ()
19554 {
19555 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)];
19556 test_array [0] = 0
19557
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564   (eval $ac_compile) 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } &&
19571          { ac_try='test -z "$ac_c_werror_flag"
19572                          || test ! -s conftest.err'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; } &&
19578          { ac_try='test -s conftest.$ac_objext'
19579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580   (eval $ac_try) 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); }; }; then
19584   ac_lo=0 ac_mid=0
19585   while :; do
19586     cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h.  */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h.  */
19592
19593 int
19594 main ()
19595 {
19596 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19597 test_array [0] = 0
19598
19599   ;
19600   return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19605   (eval $ac_compile) 2>conftest.er1
19606   ac_status=$?
19607   grep -v '^ *+' conftest.er1 >conftest.err
19608   rm -f conftest.er1
19609   cat conftest.err >&5
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } &&
19612          { ac_try='test -z "$ac_c_werror_flag"
19613                          || test ! -s conftest.err'
19614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615   (eval $ac_try) 2>&5
19616   ac_status=$?
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); }; } &&
19619          { ac_try='test -s conftest.$ac_objext'
19620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621   (eval $ac_try) 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; }; then
19625   ac_hi=$ac_mid; break
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ac_lo=`expr $ac_mid + 1`
19631                     if test $ac_lo -le $ac_mid; then
19632                       ac_lo= ac_hi=
19633                       break
19634                     fi
19635                     ac_mid=`expr 2 '*' $ac_mid + 1`
19636 fi
19637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19638   done
19639 else
19640   echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h.  */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h.  */
19649
19650 int
19651 main ()
19652 {
19653 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)];
19654 test_array [0] = 0
19655
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19662   (eval $ac_compile) 2>conftest.er1
19663   ac_status=$?
19664   grep -v '^ *+' conftest.er1 >conftest.err
19665   rm -f conftest.er1
19666   cat conftest.err >&5
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); } &&
19669          { ac_try='test -z "$ac_c_werror_flag"
19670                          || test ! -s conftest.err'
19671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672   (eval $ac_try) 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; } &&
19676          { ac_try='test -s conftest.$ac_objext'
19677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678   (eval $ac_try) 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; }; then
19682   ac_hi=-1 ac_mid=-1
19683   while :; do
19684     cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h.  */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h.  */
19690
19691 int
19692 main ()
19693 {
19694 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)];
19695 test_array [0] = 0
19696
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19703   (eval $ac_compile) 2>conftest.er1
19704   ac_status=$?
19705   grep -v '^ *+' conftest.er1 >conftest.err
19706   rm -f conftest.er1
19707   cat conftest.err >&5
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); } &&
19710          { ac_try='test -z "$ac_c_werror_flag"
19711                          || test ! -s conftest.err'
19712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713   (eval $ac_try) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; } &&
19717          { ac_try='test -s conftest.$ac_objext'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; }; then
19723   ac_lo=$ac_mid; break
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 ac_hi=`expr '(' $ac_mid ')' - 1`
19729                        if test $ac_mid -le $ac_hi; then
19730                          ac_lo= ac_hi=
19731                          break
19732                        fi
19733                        ac_mid=`expr 2 '*' $ac_mid`
19734 fi
19735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19736   done
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 ac_lo= ac_hi=
19742 fi
19743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744 fi
19745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19746 # Binary search between lo and hi bounds.
19747 while test "x$ac_lo" != "x$ac_hi"; do
19748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19749   cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h.  */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h.  */
19755
19756 int
19757 main ()
19758 {
19759 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19760 test_array [0] = 0
19761
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19768   (eval $ac_compile) 2>conftest.er1
19769   ac_status=$?
19770   grep -v '^ *+' conftest.er1 >conftest.err
19771   rm -f conftest.er1
19772   cat conftest.err >&5
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); } &&
19775          { ac_try='test -z "$ac_c_werror_flag"
19776                          || test ! -s conftest.err'
19777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778   (eval $ac_try) 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; } &&
19782          { ac_try='test -s conftest.$ac_objext'
19783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784   (eval $ac_try) 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; }; then
19788   ac_hi=$ac_mid
19789 else
19790   echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19792
19793 ac_lo=`expr '(' $ac_mid ')' + 1`
19794 fi
19795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19796 done
19797 case $ac_lo in
19798 ?*) OMP_LOCK_25_SIZE=$ac_lo;;
19799 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19800 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19801    { (exit 1); exit 1; }; } ;;
19802 esac
19803 else
19804   if test "$cross_compiling" = yes; then
19805   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19806 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19808 See \`config.log' for more details." >&5
19809 echo "$as_me: error: cannot run test program while cross compiling
19810 See \`config.log' for more details." >&2;}
19811    { (exit 1); exit 1; }; }; }
19812 else
19813   cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h.  */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h.  */
19819
19820 long longval () { return sizeof (omp_lock_25_t); }
19821 unsigned long ulongval () { return sizeof (omp_lock_25_t); }
19822 #include <stdio.h>
19823 #include <stdlib.h>
19824 int
19825 main ()
19826 {
19827
19828   FILE *f = fopen ("conftest.val", "w");
19829   if (! f)
19830     exit (1);
19831   if ((sizeof (omp_lock_25_t)) < 0)
19832     {
19833       long i = longval ();
19834       if (i != (sizeof (omp_lock_25_t)))
19835         exit (1);
19836       fprintf (f, "%ld\n", i);
19837     }
19838   else
19839     {
19840       unsigned long i = ulongval ();
19841       if (i != (sizeof (omp_lock_25_t)))
19842         exit (1);
19843       fprintf (f, "%lu\n", i);
19844     }
19845   exit (ferror (f) || fclose (f) != 0);
19846
19847   ;
19848   return 0;
19849 }
19850 _ACEOF
19851 rm -f conftest$ac_exeext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853   (eval $ac_link) 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858   (eval $ac_try) 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; }; then
19862   OMP_LOCK_25_SIZE=`cat conftest.val`
19863 else
19864   echo "$as_me: program exited with status $ac_status" >&5
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 ( exit $ac_status )
19869 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19870 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19871    { (exit 1); exit 1; }; }
19872 fi
19873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19874 fi
19875 fi
19876 rm -f conftest.val
19877 if test "$cross_compiling" = yes; then
19878   # Depending upon the size, compute the lo and hi bounds.
19879 cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h.  */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h.  */
19885
19886 int
19887 main ()
19888 {
19889 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)];
19890 test_array [0] = 0
19891
19892   ;
19893   return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898   (eval $ac_compile) 2>conftest.er1
19899   ac_status=$?
19900   grep -v '^ *+' conftest.er1 >conftest.err
19901   rm -f conftest.er1
19902   cat conftest.err >&5
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); } &&
19905          { ac_try='test -z "$ac_c_werror_flag"
19906                          || test ! -s conftest.err'
19907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908   (eval $ac_try) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; } &&
19912          { ac_try='test -s conftest.$ac_objext'
19913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914   (eval $ac_try) 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); }; }; then
19918   ac_lo=0 ac_mid=0
19919   while :; do
19920     cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h.  */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h.  */
19926
19927 int
19928 main ()
19929 {
19930 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
19931 test_array [0] = 0
19932
19933   ;
19934   return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939   (eval $ac_compile) 2>conftest.er1
19940   ac_status=$?
19941   grep -v '^ *+' conftest.er1 >conftest.err
19942   rm -f conftest.er1
19943   cat conftest.err >&5
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } &&
19946          { ac_try='test -z "$ac_c_werror_flag"
19947                          || test ! -s conftest.err'
19948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949   (eval $ac_try) 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); }; } &&
19953          { ac_try='test -s conftest.$ac_objext'
19954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955   (eval $ac_try) 2>&5
19956   ac_status=$?
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); }; }; then
19959   ac_hi=$ac_mid; break
19960 else
19961   echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 ac_lo=`expr $ac_mid + 1`
19965                     if test $ac_lo -le $ac_mid; then
19966                       ac_lo= ac_hi=
19967                       break
19968                     fi
19969                     ac_mid=`expr 2 '*' $ac_mid + 1`
19970 fi
19971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19972   done
19973 else
19974   echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h.  */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h.  */
19983
19984 int
19985 main ()
19986 {
19987 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)];
19988 test_array [0] = 0
19989
19990   ;
19991   return 0;
19992 }
19993 _ACEOF
19994 rm -f conftest.$ac_objext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996   (eval $ac_compile) 2>conftest.er1
19997   ac_status=$?
19998   grep -v '^ *+' conftest.er1 >conftest.err
19999   rm -f conftest.er1
20000   cat conftest.err >&5
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); } &&
20003          { ac_try='test -z "$ac_c_werror_flag"
20004                          || test ! -s conftest.err'
20005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006   (eval $ac_try) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; } &&
20010          { ac_try='test -s conftest.$ac_objext'
20011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012   (eval $ac_try) 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); }; }; then
20016   ac_hi=-1 ac_mid=-1
20017   while :; do
20018     cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024
20025 int
20026 main ()
20027 {
20028 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)];
20029 test_array [0] = 0
20030
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 rm -f conftest.$ac_objext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037   (eval $ac_compile) 2>conftest.er1
20038   ac_status=$?
20039   grep -v '^ *+' conftest.er1 >conftest.err
20040   rm -f conftest.er1
20041   cat conftest.err >&5
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); } &&
20044          { ac_try='test -z "$ac_c_werror_flag"
20045                          || test ! -s conftest.err'
20046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047   (eval $ac_try) 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; } &&
20051          { ac_try='test -s conftest.$ac_objext'
20052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053   (eval $ac_try) 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); }; }; then
20057   ac_lo=$ac_mid; break
20058 else
20059   echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ac_hi=`expr '(' $ac_mid ')' - 1`
20063                        if test $ac_mid -le $ac_hi; then
20064                          ac_lo= ac_hi=
20065                          break
20066                        fi
20067                        ac_mid=`expr 2 '*' $ac_mid`
20068 fi
20069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070   done
20071 else
20072   echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075 ac_lo= ac_hi=
20076 fi
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078 fi
20079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20080 # Binary search between lo and hi bounds.
20081 while test "x$ac_lo" != "x$ac_hi"; do
20082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20083   cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089
20090 int
20091 main ()
20092 {
20093 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20094 test_array [0] = 0
20095
20096   ;
20097   return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext
20101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102   (eval $ac_compile) 2>conftest.er1
20103   ac_status=$?
20104   grep -v '^ *+' conftest.er1 >conftest.err
20105   rm -f conftest.er1
20106   cat conftest.err >&5
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); } &&
20109          { ac_try='test -z "$ac_c_werror_flag"
20110                          || test ! -s conftest.err'
20111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112   (eval $ac_try) 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; } &&
20116          { ac_try='test -s conftest.$ac_objext'
20117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118   (eval $ac_try) 2>&5
20119   ac_status=$?
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); }; }; then
20122   ac_hi=$ac_mid
20123 else
20124   echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127 ac_lo=`expr '(' $ac_mid ')' + 1`
20128 fi
20129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20130 done
20131 case $ac_lo in
20132 ?*) OMP_LOCK_25_ALIGN=$ac_lo;;
20133 '')  ;;
20134 esac
20135 else
20136   if test "$cross_compiling" = yes; then
20137   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20138 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20140 See \`config.log' for more details." >&5
20141 echo "$as_me: error: cannot run test program while cross compiling
20142 See \`config.log' for more details." >&2;}
20143    { (exit 1); exit 1; }; }; }
20144 else
20145   cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151
20152 long longval () { return __alignof (omp_lock_25_t); }
20153 unsigned long ulongval () { return __alignof (omp_lock_25_t); }
20154 #include <stdio.h>
20155 #include <stdlib.h>
20156 int
20157 main ()
20158 {
20159
20160   FILE *f = fopen ("conftest.val", "w");
20161   if (! f)
20162     exit (1);
20163   if ((__alignof (omp_lock_25_t)) < 0)
20164     {
20165       long i = longval ();
20166       if (i != (__alignof (omp_lock_25_t)))
20167         exit (1);
20168       fprintf (f, "%ld\n", i);
20169     }
20170   else
20171     {
20172       unsigned long i = ulongval ();
20173       if (i != (__alignof (omp_lock_25_t)))
20174         exit (1);
20175       fprintf (f, "%lu\n", i);
20176     }
20177   exit (ferror (f) || fclose (f) != 0);
20178
20179   ;
20180   return 0;
20181 }
20182 _ACEOF
20183 rm -f conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185   (eval $ac_link) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; }; then
20194   OMP_LOCK_25_ALIGN=`cat conftest.val`
20195 else
20196   echo "$as_me: program exited with status $ac_status" >&5
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200 fi
20201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20202 fi
20203 fi
20204 rm -f conftest.val
20205 if test "$cross_compiling" = yes; then
20206   # Depending upon the size, compute the lo and hi bounds.
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213
20214 int
20215 main ()
20216 {
20217 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)];
20218 test_array [0] = 0
20219
20220   ;
20221   return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226   (eval $ac_compile) 2>conftest.er1
20227   ac_status=$?
20228   grep -v '^ *+' conftest.er1 >conftest.err
20229   rm -f conftest.er1
20230   cat conftest.err >&5
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); } &&
20233          { ac_try='test -z "$ac_c_werror_flag"
20234                          || test ! -s conftest.err'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; } &&
20240          { ac_try='test -s conftest.$ac_objext'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_lo=0 ac_mid=0
20247   while :; do
20248     cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254
20255 int
20256 main ()
20257 {
20258 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20259 test_array [0] = 0
20260
20261   ;
20262   return 0;
20263 }
20264 _ACEOF
20265 rm -f conftest.$ac_objext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267   (eval $ac_compile) 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } &&
20274          { ac_try='test -z "$ac_c_werror_flag"
20275                          || test ! -s conftest.err'
20276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277   (eval $ac_try) 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; } &&
20281          { ac_try='test -s conftest.$ac_objext'
20282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283   (eval $ac_try) 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; }; then
20287   ac_hi=$ac_mid; break
20288 else
20289   echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 ac_lo=`expr $ac_mid + 1`
20293                     if test $ac_lo -le $ac_mid; then
20294                       ac_lo= ac_hi=
20295                       break
20296                     fi
20297                     ac_mid=`expr 2 '*' $ac_mid + 1`
20298 fi
20299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20300   done
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311
20312 int
20313 main ()
20314 {
20315 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)];
20316 test_array [0] = 0
20317
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324   (eval $ac_compile) 2>conftest.er1
20325   ac_status=$?
20326   grep -v '^ *+' conftest.er1 >conftest.err
20327   rm -f conftest.er1
20328   cat conftest.err >&5
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } &&
20331          { ac_try='test -z "$ac_c_werror_flag"
20332                          || test ! -s conftest.err'
20333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334   (eval $ac_try) 2>&5
20335   ac_status=$?
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); }; } &&
20338          { ac_try='test -s conftest.$ac_objext'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; }; then
20344   ac_hi=-1 ac_mid=-1
20345   while :; do
20346     cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h.  */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h.  */
20352
20353 int
20354 main ()
20355 {
20356 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)];
20357 test_array [0] = 0
20358
20359   ;
20360   return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365   (eval $ac_compile) 2>conftest.er1
20366   ac_status=$?
20367   grep -v '^ *+' conftest.er1 >conftest.err
20368   rm -f conftest.er1
20369   cat conftest.err >&5
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } &&
20372          { ac_try='test -z "$ac_c_werror_flag"
20373                          || test ! -s conftest.err'
20374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375   (eval $ac_try) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; } &&
20379          { ac_try='test -s conftest.$ac_objext'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; }; then
20385   ac_lo=$ac_mid; break
20386 else
20387   echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 ac_hi=`expr '(' $ac_mid ')' - 1`
20391                        if test $ac_mid -le $ac_hi; then
20392                          ac_lo= ac_hi=
20393                          break
20394                        fi
20395                        ac_mid=`expr 2 '*' $ac_mid`
20396 fi
20397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20398   done
20399 else
20400   echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 ac_lo= ac_hi=
20404 fi
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406 fi
20407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20408 # Binary search between lo and hi bounds.
20409 while test "x$ac_lo" != "x$ac_hi"; do
20410   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20411   cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 int
20419 main ()
20420 {
20421 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20422 test_array [0] = 0
20423
20424   ;
20425   return 0;
20426 }
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20430   (eval $ac_compile) 2>conftest.er1
20431   ac_status=$?
20432   grep -v '^ *+' conftest.er1 >conftest.err
20433   rm -f conftest.er1
20434   cat conftest.err >&5
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } &&
20437          { ac_try='test -z "$ac_c_werror_flag"
20438                          || test ! -s conftest.err'
20439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440   (eval $ac_try) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; } &&
20444          { ac_try='test -s conftest.$ac_objext'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   ac_hi=$ac_mid
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 ac_lo=`expr '(' $ac_mid ')' + 1`
20456 fi
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20458 done
20459 case $ac_lo in
20460 ?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;;
20461 '')  ;;
20462 esac
20463 else
20464   if test "$cross_compiling" = yes; then
20465   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20466 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20467 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20468 See \`config.log' for more details." >&5
20469 echo "$as_me: error: cannot run test program while cross compiling
20470 See \`config.log' for more details." >&2;}
20471    { (exit 1); exit 1; }; }; }
20472 else
20473   cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479
20480 long longval () { return sizeof (omp_nest_lock_25_t); }
20481 unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); }
20482 #include <stdio.h>
20483 #include <stdlib.h>
20484 int
20485 main ()
20486 {
20487
20488   FILE *f = fopen ("conftest.val", "w");
20489   if (! f)
20490     exit (1);
20491   if ((sizeof (omp_nest_lock_25_t)) < 0)
20492     {
20493       long i = longval ();
20494       if (i != (sizeof (omp_nest_lock_25_t)))
20495         exit (1);
20496       fprintf (f, "%ld\n", i);
20497     }
20498   else
20499     {
20500       unsigned long i = ulongval ();
20501       if (i != (sizeof (omp_nest_lock_25_t)))
20502         exit (1);
20503       fprintf (f, "%lu\n", i);
20504     }
20505   exit (ferror (f) || fclose (f) != 0);
20506
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest$ac_exeext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20513   (eval $ac_link) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518   (eval $ac_try) 2>&5
20519   ac_status=$?
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); }; }; then
20522   OMP_NEST_LOCK_25_SIZE=`cat conftest.val`
20523 else
20524   echo "$as_me: program exited with status $ac_status" >&5
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528 fi
20529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20530 fi
20531 fi
20532 rm -f conftest.val
20533 if test "$cross_compiling" = yes; then
20534   # Depending upon the size, compute the lo and hi bounds.
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541
20542 int
20543 main ()
20544 {
20545 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)];
20546 test_array [0] = 0
20547
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554   (eval $ac_compile) 2>conftest.er1
20555   ac_status=$?
20556   grep -v '^ *+' conftest.er1 >conftest.err
20557   rm -f conftest.er1
20558   cat conftest.err >&5
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); } &&
20561          { ac_try='test -z "$ac_c_werror_flag"
20562                          || test ! -s conftest.err'
20563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564   (eval $ac_try) 2>&5
20565   ac_status=$?
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); }; } &&
20568          { ac_try='test -s conftest.$ac_objext'
20569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570   (eval $ac_try) 2>&5
20571   ac_status=$?
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); }; }; then
20574   ac_lo=0 ac_mid=0
20575   while :; do
20576     cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582
20583 int
20584 main ()
20585 {
20586 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20587 test_array [0] = 0
20588
20589   ;
20590   return 0;
20591 }
20592 _ACEOF
20593 rm -f conftest.$ac_objext
20594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20595   (eval $ac_compile) 2>conftest.er1
20596   ac_status=$?
20597   grep -v '^ *+' conftest.er1 >conftest.err
20598   rm -f conftest.er1
20599   cat conftest.err >&5
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); } &&
20602          { ac_try='test -z "$ac_c_werror_flag"
20603                          || test ! -s conftest.err'
20604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605   (eval $ac_try) 2>&5
20606   ac_status=$?
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); }; } &&
20609          { ac_try='test -s conftest.$ac_objext'
20610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611   (eval $ac_try) 2>&5
20612   ac_status=$?
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); }; }; then
20615   ac_hi=$ac_mid; break
20616 else
20617   echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620 ac_lo=`expr $ac_mid + 1`
20621                     if test $ac_lo -le $ac_mid; then
20622                       ac_lo= ac_hi=
20623                       break
20624                     fi
20625                     ac_mid=`expr 2 '*' $ac_mid + 1`
20626 fi
20627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20628   done
20629 else
20630   echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639
20640 int
20641 main ()
20642 {
20643 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)];
20644 test_array [0] = 0
20645
20646   ;
20647   return 0;
20648 }
20649 _ACEOF
20650 rm -f conftest.$ac_objext
20651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652   (eval $ac_compile) 2>conftest.er1
20653   ac_status=$?
20654   grep -v '^ *+' conftest.er1 >conftest.err
20655   rm -f conftest.er1
20656   cat conftest.err >&5
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); } &&
20659          { ac_try='test -z "$ac_c_werror_flag"
20660                          || test ! -s conftest.err'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; } &&
20666          { ac_try='test -s conftest.$ac_objext'
20667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668   (eval $ac_try) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; }; then
20672   ac_hi=-1 ac_mid=-1
20673   while :; do
20674     cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680
20681 int
20682 main ()
20683 {
20684 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)];
20685 test_array [0] = 0
20686
20687   ;
20688   return 0;
20689 }
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20693   (eval $ac_compile) 2>conftest.er1
20694   ac_status=$?
20695   grep -v '^ *+' conftest.er1 >conftest.err
20696   rm -f conftest.er1
20697   cat conftest.err >&5
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } &&
20700          { ac_try='test -z "$ac_c_werror_flag"
20701                          || test ! -s conftest.err'
20702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703   (eval $ac_try) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; } &&
20707          { ac_try='test -s conftest.$ac_objext'
20708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709   (eval $ac_try) 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   ac_lo=$ac_mid; break
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 ac_hi=`expr '(' $ac_mid ')' - 1`
20719                        if test $ac_mid -le $ac_hi; then
20720                          ac_lo= ac_hi=
20721                          break
20722                        fi
20723                        ac_mid=`expr 2 '*' $ac_mid`
20724 fi
20725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20726   done
20727 else
20728   echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731 ac_lo= ac_hi=
20732 fi
20733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20734 fi
20735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20736 # Binary search between lo and hi bounds.
20737 while test "x$ac_lo" != "x$ac_hi"; do
20738   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20739   cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h.  */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h.  */
20745
20746 int
20747 main ()
20748 {
20749 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20750 test_array [0] = 0
20751
20752   ;
20753   return 0;
20754 }
20755 _ACEOF
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758   (eval $ac_compile) 2>conftest.er1
20759   ac_status=$?
20760   grep -v '^ *+' conftest.er1 >conftest.err
20761   rm -f conftest.er1
20762   cat conftest.err >&5
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); } &&
20765          { ac_try='test -z "$ac_c_werror_flag"
20766                          || test ! -s conftest.err'
20767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768   (eval $ac_try) 2>&5
20769   ac_status=$?
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); }; } &&
20772          { ac_try='test -s conftest.$ac_objext'
20773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774   (eval $ac_try) 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; }; then
20778   ac_hi=$ac_mid
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783 ac_lo=`expr '(' $ac_mid ')' + 1`
20784 fi
20785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20786 done
20787 case $ac_lo in
20788 ?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;;
20789 '')  ;;
20790 esac
20791 else
20792   if test "$cross_compiling" = yes; then
20793   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20794 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20795 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20796 See \`config.log' for more details." >&5
20797 echo "$as_me: error: cannot run test program while cross compiling
20798 See \`config.log' for more details." >&2;}
20799    { (exit 1); exit 1; }; }; }
20800 else
20801   cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h.  */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h.  */
20807
20808 long longval () { return __alignof (omp_nest_lock_25_t); }
20809 unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); }
20810 #include <stdio.h>
20811 #include <stdlib.h>
20812 int
20813 main ()
20814 {
20815
20816   FILE *f = fopen ("conftest.val", "w");
20817   if (! f)
20818     exit (1);
20819   if ((__alignof (omp_nest_lock_25_t)) < 0)
20820     {
20821       long i = longval ();
20822       if (i != (__alignof (omp_nest_lock_25_t)))
20823         exit (1);
20824       fprintf (f, "%ld\n", i);
20825     }
20826   else
20827     {
20828       unsigned long i = ulongval ();
20829       if (i != (__alignof (omp_nest_lock_25_t)))
20830         exit (1);
20831       fprintf (f, "%lu\n", i);
20832     }
20833   exit (ferror (f) || fclose (f) != 0);
20834
20835   ;
20836   return 0;
20837 }
20838 _ACEOF
20839 rm -f conftest$ac_exeext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841   (eval $ac_link) 2>&5
20842   ac_status=$?
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846   (eval $ac_try) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   OMP_NEST_LOCK_25_ALIGN=`cat conftest.val`
20851 else
20852   echo "$as_me: program exited with status $ac_status" >&5
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856 fi
20857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20858 fi
20859 fi
20860 rm -f conftest.val
20861
20862 # If the lock fits in an integer, then arrange for Fortran to use that
20863 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
20864 # Except that we don't have a way at present to multi-lib the installed
20865 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
20866 # actual target.
20867 OMP_LOCK_KIND=$OMP_LOCK_SIZE
20868 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
20869 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
20870   OMP_LOCK_KIND=8
20871 fi
20872 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
20873   OMP_NEST_LOCK_KIND=8
20874 fi
20875 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
20876 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
20877 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
20878   OMP_LOCK_25_KIND=8
20879 fi
20880 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
20881   OMP_NEST_LOCK_25_KIND=8
20882 fi
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896 CFLAGS="$save_CFLAGS"
20897
20898                                         ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
20899
20900                               ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
20901
20902 cat >confcache <<\_ACEOF
20903 # This file is a shell script that caches the results of configure
20904 # tests run on this system so they can be shared between configure
20905 # scripts and configure runs, see configure's option --config-cache.
20906 # It is not useful on other systems.  If it contains results you don't
20907 # want to keep, you may remove or edit it.
20908 #
20909 # config.status only pays attention to the cache file if you give it
20910 # the --recheck option to rerun configure.
20911 #
20912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20914 # following values.
20915
20916 _ACEOF
20917
20918 # The following way of writing the cache mishandles newlines in values,
20919 # but we know of no workaround that is simple, portable, and efficient.
20920 # So, don't put newlines in cache variables' values.
20921 # Ultrix sh set writes to stderr and can't be redirected directly,
20922 # and sets the high bit in the cache file unless we assign to the vars.
20923 {
20924   (set) 2>&1 |
20925     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20926     *ac_space=\ *)
20927       # `set' does not quote correctly, so add quotes (double-quote
20928       # substitution turns \\\\ into \\, and sed turns \\ into \).
20929       sed -n \
20930         "s/'/'\\\\''/g;
20931           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20932       ;;
20933     *)
20934       # `set' quotes correctly as required by POSIX, so do not add quotes.
20935       sed -n \
20936         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20937       ;;
20938     esac;
20939 } |
20940   sed '
20941      t clear
20942      : clear
20943      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20944      t end
20945      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20946      : end' >>confcache
20947 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20948   if test -w $cache_file; then
20949     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20950     cat confcache >$cache_file
20951   else
20952     echo "not updating unwritable cache $cache_file"
20953   fi
20954 fi
20955 rm -f confcache
20956
20957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20958 # Let make expand exec_prefix.
20959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20960
20961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20963 # trailing colons and then remove the whole line if VPATH becomes empty
20964 # (actually we leave an empty line to preserve line numbers).
20965 if test "x$srcdir" = x.; then
20966   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20967 s/:*\$(srcdir):*/:/;
20968 s/:*\${srcdir}:*/:/;
20969 s/:*@srcdir@:*/:/;
20970 s/^\([^=]*=[     ]*\):*/\1/;
20971 s/:*$//;
20972 s/^[^=]*=[       ]*$//;
20973 }'
20974 fi
20975
20976 DEFS=-DHAVE_CONFIG_H
20977
20978 ac_libobjs=
20979 ac_ltlibobjs=
20980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20981   # 1. Remove the extension, and $U if already installed.
20982   ac_i=`echo "$ac_i" |
20983          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20984   # 2. Add them.
20985   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20986   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20987 done
20988 LIBOBJS=$ac_libobjs
20989
20990 LTLIBOBJS=$ac_ltlibobjs
20991
20992
20993 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
20994   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
20995 Usually this means the macro was only invoked conditionally." >&5
20996 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
20997 Usually this means the macro was only invoked conditionally." >&2;}
20998    { (exit 1); exit 1; }; }
20999 fi
21000 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21001   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21002 Usually this means the macro was only invoked conditionally." >&5
21003 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21004 Usually this means the macro was only invoked conditionally." >&2;}
21005    { (exit 1); exit 1; }; }
21006 fi
21007 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21008   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21009 Usually this means the macro was only invoked conditionally." >&5
21010 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21011 Usually this means the macro was only invoked conditionally." >&2;}
21012    { (exit 1); exit 1; }; }
21013 fi
21014 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
21015   { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
21016 Usually this means the macro was only invoked conditionally." >&5
21017 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
21018 Usually this means the macro was only invoked conditionally." >&2;}
21019    { (exit 1); exit 1; }; }
21020 fi
21021 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21022   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21023 Usually this means the macro was only invoked conditionally." >&5
21024 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21025 Usually this means the macro was only invoked conditionally." >&2;}
21026    { (exit 1); exit 1; }; }
21027 fi
21028 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
21029   { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21030 Usually this means the macro was only invoked conditionally." >&5
21031 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21032 Usually this means the macro was only invoked conditionally." >&2;}
21033    { (exit 1); exit 1; }; }
21034 fi
21035 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
21036   { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
21037 Usually this means the macro was only invoked conditionally." >&5
21038 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
21039 Usually this means the macro was only invoked conditionally." >&2;}
21040    { (exit 1); exit 1; }; }
21041 fi
21042
21043 : ${CONFIG_STATUS=./config.status}
21044 ac_clean_files_save=$ac_clean_files
21045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21046 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21047 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21048 cat >$CONFIG_STATUS <<_ACEOF
21049 #! $SHELL
21050 # Generated by $as_me.
21051 # Run this file to recreate the current configuration.
21052 # Compiler output produced by configure, useful for debugging
21053 # configure, is in config.log if it exists.
21054
21055 debug=false
21056 ac_cs_recheck=false
21057 ac_cs_silent=false
21058 SHELL=\${CONFIG_SHELL-$SHELL}
21059 _ACEOF
21060
21061 cat >>$CONFIG_STATUS <<\_ACEOF
21062 ## --------------------- ##
21063 ## M4sh Initialization.  ##
21064 ## --------------------- ##
21065
21066 # Be Bourne compatible
21067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21068   emulate sh
21069   NULLCMD=:
21070   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21071   # is contrary to our usage.  Disable this feature.
21072   alias -g '${1+"$@"}'='"$@"'
21073 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21074   set -o posix
21075 fi
21076 DUALCASE=1; export DUALCASE # for MKS sh
21077
21078 # Support unset when possible.
21079 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21080   as_unset=unset
21081 else
21082   as_unset=false
21083 fi
21084
21085
21086 # Work around bugs in pre-3.0 UWIN ksh.
21087 $as_unset ENV MAIL MAILPATH
21088 PS1='$ '
21089 PS2='> '
21090 PS4='+ '
21091
21092 # NLS nuisances.
21093 for as_var in \
21094   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21095   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21096   LC_TELEPHONE LC_TIME
21097 do
21098   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21099     eval $as_var=C; export $as_var
21100   else
21101     $as_unset $as_var
21102   fi
21103 done
21104
21105 # Required to use basename.
21106 if expr a : '\(a\)' >/dev/null 2>&1; then
21107   as_expr=expr
21108 else
21109   as_expr=false
21110 fi
21111
21112 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21113   as_basename=basename
21114 else
21115   as_basename=false
21116 fi
21117
21118
21119 # Name of the executable.
21120 as_me=`$as_basename "$0" ||
21121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21122          X"$0" : 'X\(//\)$' \| \
21123          X"$0" : 'X\(/\)$' \| \
21124          .     : '\(.\)' 2>/dev/null ||
21125 echo X/"$0" |
21126     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21127           /^X\/\(\/\/\)$/{ s//\1/; q; }
21128           /^X\/\(\/\).*/{ s//\1/; q; }
21129           s/.*/./; q'`
21130
21131
21132 # PATH needs CR, and LINENO needs CR and PATH.
21133 # Avoid depending upon Character Ranges.
21134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21137 as_cr_digits='0123456789'
21138 as_cr_alnum=$as_cr_Letters$as_cr_digits
21139
21140 # The user is always right.
21141 if test "${PATH_SEPARATOR+set}" != set; then
21142   echo "#! /bin/sh" >conf$$.sh
21143   echo  "exit 0"   >>conf$$.sh
21144   chmod +x conf$$.sh
21145   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21146     PATH_SEPARATOR=';'
21147   else
21148     PATH_SEPARATOR=:
21149   fi
21150   rm -f conf$$.sh
21151 fi
21152
21153
21154   as_lineno_1=$LINENO
21155   as_lineno_2=$LINENO
21156   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21157   test "x$as_lineno_1" != "x$as_lineno_2" &&
21158   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21159   # Find who we are.  Look in the path if we contain no path at all
21160   # relative or not.
21161   case $0 in
21162     *[\\/]* ) as_myself=$0 ;;
21163     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21164 for as_dir in $PATH
21165 do
21166   IFS=$as_save_IFS
21167   test -z "$as_dir" && as_dir=.
21168   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21169 done
21170
21171        ;;
21172   esac
21173   # We did not find ourselves, most probably we were run as `sh COMMAND'
21174   # in which case we are not to be found in the path.
21175   if test "x$as_myself" = x; then
21176     as_myself=$0
21177   fi
21178   if test ! -f "$as_myself"; then
21179     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21180 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21181    { (exit 1); exit 1; }; }
21182   fi
21183   case $CONFIG_SHELL in
21184   '')
21185     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21187 do
21188   IFS=$as_save_IFS
21189   test -z "$as_dir" && as_dir=.
21190   for as_base in sh bash ksh sh5; do
21191          case $as_dir in
21192          /*)
21193            if ("$as_dir/$as_base" -c '
21194   as_lineno_1=$LINENO
21195   as_lineno_2=$LINENO
21196   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21197   test "x$as_lineno_1" != "x$as_lineno_2" &&
21198   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21199              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21200              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21201              CONFIG_SHELL=$as_dir/$as_base
21202              export CONFIG_SHELL
21203              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21204            fi;;
21205          esac
21206        done
21207 done
21208 ;;
21209   esac
21210
21211   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21212   # uniformly replaced by the line number.  The first 'sed' inserts a
21213   # line-number line before each line; the second 'sed' does the real
21214   # work.  The second script uses 'N' to pair each line-number line
21215   # with the numbered line, and appends trailing '-' during
21216   # substitution so that $LINENO is not a special case at line end.
21217   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21218   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21219   sed '=' <$as_myself |
21220     sed '
21221       N
21222       s,$,-,
21223       : loop
21224       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21225       t loop
21226       s,-$,,
21227       s,^['$as_cr_digits']*\n,,
21228     ' >$as_me.lineno &&
21229   chmod +x $as_me.lineno ||
21230     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21231 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21232    { (exit 1); exit 1; }; }
21233
21234   # Don't try to exec as it changes $[0], causing all sort of problems
21235   # (the dirname of $[0] is not the place where we might find the
21236   # original and so on.  Autoconf is especially sensible to this).
21237   . ./$as_me.lineno
21238   # Exit status is that of the last command.
21239   exit
21240 }
21241
21242
21243 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21244   *c*,-n*) ECHO_N= ECHO_C='
21245 ' ECHO_T='      ' ;;
21246   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21247   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21248 esac
21249
21250 if expr a : '\(a\)' >/dev/null 2>&1; then
21251   as_expr=expr
21252 else
21253   as_expr=false
21254 fi
21255
21256 rm -f conf$$ conf$$.exe conf$$.file
21257 echo >conf$$.file
21258 if ln -s conf$$.file conf$$ 2>/dev/null; then
21259   # We could just check for DJGPP; but this test a) works b) is more generic
21260   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21261   if test -f conf$$.exe; then
21262     # Don't use ln at all; we don't have any links
21263     as_ln_s='cp -p'
21264   else
21265     as_ln_s='ln -s'
21266   fi
21267 elif ln conf$$.file conf$$ 2>/dev/null; then
21268   as_ln_s=ln
21269 else
21270   as_ln_s='cp -p'
21271 fi
21272 rm -f conf$$ conf$$.exe conf$$.file
21273
21274 if mkdir -p . 2>/dev/null; then
21275   as_mkdir_p=:
21276 else
21277   test -d ./-p && rmdir ./-p
21278   as_mkdir_p=false
21279 fi
21280
21281 as_executable_p="test -f"
21282
21283 # Sed expression to map a string onto a valid CPP name.
21284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21285
21286 # Sed expression to map a string onto a valid variable name.
21287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21288
21289
21290 # IFS
21291 # We need space, tab and new line, in precisely that order.
21292 as_nl='
21293 '
21294 IFS="   $as_nl"
21295
21296 # CDPATH.
21297 $as_unset CDPATH
21298
21299 exec 6>&1
21300
21301 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21302 # report actual input values of CONFIG_FILES etc. instead of their
21303 # values after options handling.  Logging --version etc. is OK.
21304 exec 5>>config.log
21305 {
21306   echo
21307   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21308 ## Running $as_me. ##
21309 _ASBOX
21310 } >&5
21311 cat >&5 <<_CSEOF
21312
21313 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
21314 generated by GNU Autoconf 2.59.  Invocation command line was
21315
21316   CONFIG_FILES    = $CONFIG_FILES
21317   CONFIG_HEADERS  = $CONFIG_HEADERS
21318   CONFIG_LINKS    = $CONFIG_LINKS
21319   CONFIG_COMMANDS = $CONFIG_COMMANDS
21320   $ $0 $@
21321
21322 _CSEOF
21323 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21324 echo >&5
21325 _ACEOF
21326
21327 # Files that config.status was made for.
21328 if test -n "$ac_config_files"; then
21329   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21330 fi
21331
21332 if test -n "$ac_config_headers"; then
21333   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21334 fi
21335
21336 if test -n "$ac_config_links"; then
21337   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21338 fi
21339
21340 if test -n "$ac_config_commands"; then
21341   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21342 fi
21343
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345
21346 ac_cs_usage="\
21347 \`$as_me' instantiates files from templates according to the
21348 current configuration.
21349
21350 Usage: $0 [OPTIONS] [FILE]...
21351
21352   -h, --help       print this help, then exit
21353   -V, --version    print version number, then exit
21354   -q, --quiet      do not print progress messages
21355   -d, --debug      don't remove temporary files
21356       --recheck    update $as_me by reconfiguring in the same conditions
21357   --file=FILE[:TEMPLATE]
21358                    instantiate the configuration file FILE
21359   --header=FILE[:TEMPLATE]
21360                    instantiate the configuration header FILE
21361
21362 Configuration files:
21363 $config_files
21364
21365 Configuration headers:
21366 $config_headers
21367
21368 Configuration commands:
21369 $config_commands
21370
21371 Report bugs to <bug-autoconf@gnu.org>."
21372 _ACEOF
21373
21374 cat >>$CONFIG_STATUS <<_ACEOF
21375 ac_cs_version="\\
21376 GNU OpenMP Runtime Library config.status 1.0
21377 configured by $0, generated by GNU Autoconf 2.59,
21378   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21379
21380 Copyright (C) 2003 Free Software Foundation, Inc.
21381 This config.status script is free software; the Free Software Foundation
21382 gives unlimited permission to copy, distribute and modify it."
21383 srcdir=$srcdir
21384 INSTALL="$INSTALL"
21385 _ACEOF
21386
21387 cat >>$CONFIG_STATUS <<\_ACEOF
21388 # If no file are specified by the user, then we need to provide default
21389 # value.  By we need to know if files were specified by the user.
21390 ac_need_defaults=:
21391 while test $# != 0
21392 do
21393   case $1 in
21394   --*=*)
21395     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21396     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21397     ac_shift=:
21398     ;;
21399   -*)
21400     ac_option=$1
21401     ac_optarg=$2
21402     ac_shift=shift
21403     ;;
21404   *) # This is not an option, so the user has probably given explicit
21405      # arguments.
21406      ac_option=$1
21407      ac_need_defaults=false;;
21408   esac
21409
21410   case $ac_option in
21411   # Handling of the options.
21412 _ACEOF
21413 cat >>$CONFIG_STATUS <<\_ACEOF
21414   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21415     ac_cs_recheck=: ;;
21416   --version | --vers* | -V )
21417     echo "$ac_cs_version"; exit 0 ;;
21418   --he | --h)
21419     # Conflict between --help and --header
21420     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21421 Try \`$0 --help' for more information." >&5
21422 echo "$as_me: error: ambiguous option: $1
21423 Try \`$0 --help' for more information." >&2;}
21424    { (exit 1); exit 1; }; };;
21425   --help | --hel | -h )
21426     echo "$ac_cs_usage"; exit 0 ;;
21427   --debug | --d* | -d )
21428     debug=: ;;
21429   --file | --fil | --fi | --f )
21430     $ac_shift
21431     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21432     ac_need_defaults=false;;
21433   --header | --heade | --head | --hea )
21434     $ac_shift
21435     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21436     ac_need_defaults=false;;
21437   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21438   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21439     ac_cs_silent=: ;;
21440
21441   # This is an error.
21442   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21443 Try \`$0 --help' for more information." >&5
21444 echo "$as_me: error: unrecognized option: $1
21445 Try \`$0 --help' for more information." >&2;}
21446    { (exit 1); exit 1; }; } ;;
21447
21448   *) ac_config_targets="$ac_config_targets $1" ;;
21449
21450   esac
21451   shift
21452 done
21453
21454 ac_configure_extra_args=
21455
21456 if $ac_cs_silent; then
21457   exec 6>/dev/null
21458   ac_configure_extra_args="$ac_configure_extra_args --silent"
21459 fi
21460
21461 _ACEOF
21462 cat >>$CONFIG_STATUS <<_ACEOF
21463 if \$ac_cs_recheck; then
21464   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21465   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21466 fi
21467
21468 _ACEOF
21469
21470 cat >>$CONFIG_STATUS <<_ACEOF
21471 #
21472 # INIT-COMMANDS section.
21473 #
21474
21475
21476 srcdir="$srcdir"
21477 host="$host"
21478 target="$target"
21479 with_multisubdir="$with_multisubdir"
21480 with_multisrctop="$with_multisrctop"
21481 with_target_subdir="$with_target_subdir"
21482 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21483 multi_basedir="$multi_basedir"
21484 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21485 CC="$CC"
21486 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21487
21488
21489 # The HP-UX ksh and POSIX shell print the target directory to stdout
21490 # if CDPATH is set.
21491 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21492
21493 sed_quote_subst='$sed_quote_subst'
21494 double_quote_subst='$double_quote_subst'
21495 delay_variable_subst='$delay_variable_subst'
21496 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21497 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21498 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21499 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21500 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21501 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21502 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21503 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21504 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21505 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21506 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21507 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21508 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21509 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21510 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21511 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21512 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21513 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21514 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21515 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21516 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21517 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21518 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21519 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21520 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21521 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21522 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21523 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21524 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21525 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21526 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21527 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21528 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21529 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21530 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21531 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21532 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21533 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21534 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21535 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21536 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21537 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21538 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21539 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"`'
21540 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21541 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21542 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21543 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21544 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21545 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21546 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21547 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21548 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21549 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21550 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21551 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21552 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21553 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21554 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21555 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21556 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21557 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21558 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21559 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21560 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21561 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21562 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21563 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21564 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21565 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21566 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21567 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21568 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21569 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21570 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21571 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21572 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21573 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21574 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21575 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21576 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21577 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21578 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21579 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21580 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21581 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21582 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21583 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21584 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21585 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21586 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21587 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21588 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21589 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21590 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21591 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21592 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21593 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21594 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21595 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21596 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21597 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21598 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21599 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21600 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21601 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21602 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21603 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21604 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21605 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21606 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21607 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21608 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21609 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21610 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21611 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21612 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
21613 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21614 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
21615 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
21616 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21617 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
21618 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21619 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
21620 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
21621 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
21622 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
21623 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21624 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21625 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
21626 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21627 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21628 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21629 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21630 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21631 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21632 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21633 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21634 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21635 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21636 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21637 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
21638 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
21639 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
21640 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
21641 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
21642 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21643 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
21644 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
21645 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21646 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
21647 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21648 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21649 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21650 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21651 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21652 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
21653 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21654 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21655 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21656 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21657 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21658
21659 LTCC='$LTCC'
21660 LTCFLAGS='$LTCFLAGS'
21661 compiler='$compiler_DEFAULT'
21662
21663 # Quote evaled strings.
21664 for var in SED \
21665 GREP \
21666 EGREP \
21667 FGREP \
21668 LD \
21669 NM \
21670 LN_S \
21671 lt_SP2NL \
21672 lt_NL2SP \
21673 reload_flag \
21674 deplibs_check_method \
21675 file_magic_cmd \
21676 AR \
21677 AR_FLAGS \
21678 STRIP \
21679 RANLIB \
21680 CC \
21681 CFLAGS \
21682 compiler \
21683 lt_cv_sys_global_symbol_pipe \
21684 lt_cv_sys_global_symbol_to_cdecl \
21685 lt_cv_sys_global_symbol_to_c_name_address \
21686 SHELL \
21687 ECHO \
21688 lt_prog_compiler_no_builtin_flag \
21689 lt_prog_compiler_wl \
21690 lt_prog_compiler_pic \
21691 lt_prog_compiler_static \
21692 lt_cv_prog_compiler_c_o \
21693 need_locks \
21694 shrext_cmds \
21695 export_dynamic_flag_spec \
21696 whole_archive_flag_spec \
21697 compiler_needs_object \
21698 with_gnu_ld \
21699 allow_undefined_flag \
21700 no_undefined_flag \
21701 hardcode_libdir_flag_spec \
21702 hardcode_libdir_flag_spec_ld \
21703 hardcode_libdir_separator \
21704 fix_srcfile_path \
21705 exclude_expsyms \
21706 include_expsyms \
21707 file_list_spec \
21708 variables_saved_for_relink \
21709 libname_spec \
21710 library_names_spec \
21711 soname_spec \
21712 finish_eval \
21713 old_striplib \
21714 striplib \
21715 predep_objects \
21716 postdep_objects \
21717 predeps \
21718 postdeps \
21719 compiler_lib_search_path \
21720 LD_FC \
21721 compiler_FC \
21722 lt_prog_compiler_no_builtin_flag_FC \
21723 lt_prog_compiler_wl_FC \
21724 lt_prog_compiler_pic_FC \
21725 lt_prog_compiler_static_FC \
21726 lt_cv_prog_compiler_c_o_FC \
21727 export_dynamic_flag_spec_FC \
21728 whole_archive_flag_spec_FC \
21729 compiler_needs_object_FC \
21730 with_gnu_ld_FC \
21731 allow_undefined_flag_FC \
21732 no_undefined_flag_FC \
21733 hardcode_libdir_flag_spec_FC \
21734 hardcode_libdir_flag_spec_ld_FC \
21735 hardcode_libdir_separator_FC \
21736 fix_srcfile_path_FC \
21737 exclude_expsyms_FC \
21738 include_expsyms_FC \
21739 file_list_spec_FC \
21740 predep_objects_FC \
21741 postdep_objects_FC \
21742 predeps_FC \
21743 postdeps_FC \
21744 compiler_lib_search_path_FC; do
21745     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21746     *[\\\\\\\`\\"\\\$]*)
21747       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21748       ;;
21749     *)
21750       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21751       ;;
21752     esac
21753 done
21754
21755 # Double-quote double-evaled strings.
21756 for var in reload_cmds \
21757 old_postinstall_cmds \
21758 old_postuninstall_cmds \
21759 old_archive_cmds \
21760 extract_expsyms_cmds \
21761 old_archive_from_new_cmds \
21762 old_archive_from_expsyms_cmds \
21763 archive_cmds \
21764 archive_expsym_cmds \
21765 module_cmds \
21766 module_expsym_cmds \
21767 export_symbols_cmds \
21768 prelink_cmds \
21769 postinstall_cmds \
21770 postuninstall_cmds \
21771 finish_cmds \
21772 sys_lib_search_path_spec \
21773 sys_lib_dlsearch_path_spec \
21774 old_archive_cmds_FC \
21775 old_archive_from_new_cmds_FC \
21776 old_archive_from_expsyms_cmds_FC \
21777 archive_cmds_FC \
21778 archive_expsym_cmds_FC \
21779 module_cmds_FC \
21780 module_expsym_cmds_FC \
21781 export_symbols_cmds_FC \
21782 prelink_cmds_FC; do
21783     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21784     *[\\\\\\\`\\"\\\$]*)
21785       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21786       ;;
21787     *)
21788       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21789       ;;
21790     esac
21791 done
21792
21793 # Fix-up fallback echo if it was mangled by the above quoting rules.
21794 case \$lt_ECHO in
21795 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21796   ;;
21797 esac
21798
21799 ac_aux_dir='$ac_aux_dir'
21800 xsi_shell='$xsi_shell'
21801 lt_shell_append='$lt_shell_append'
21802
21803 # See if we are running on zsh, and set the options which allow our
21804 # commands through without removal of \ escapes INIT.
21805 if test -n "\${ZSH_VERSION+set}" ; then
21806    setopt NO_GLOB_SUBST
21807 fi
21808
21809
21810     PACKAGE='$PACKAGE'
21811     VERSION='$VERSION'
21812     TIMESTAMP='$TIMESTAMP'
21813     RM='$RM'
21814     ofile='$ofile'
21815
21816
21817
21818
21819
21820
21821 GCC="$GCC"
21822 CC="$CC"
21823 acx_cv_header_stdint="$acx_cv_header_stdint"
21824 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21825 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21826 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21827 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21828 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21829 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21830 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21831 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21832 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21833 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21834 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21835 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21836 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21837
21838
21839 _ACEOF
21840
21841
21842
21843 cat >>$CONFIG_STATUS <<\_ACEOF
21844 for ac_config_target in $ac_config_targets
21845 do
21846   case "$ac_config_target" in
21847   # Handling of arguments.
21848   "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
21849   "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
21850   "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
21851   "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
21852   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21853   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
21854   "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
21855   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21856   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21857   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21858   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
21859   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21860   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21861 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21862    { (exit 1); exit 1; }; };;
21863   esac
21864 done
21865
21866 # If the user did not use the arguments to specify the items to instantiate,
21867 # then the envvar interface is used.  Set only those that are not.
21868 # We use the long form for the default assignment because of an extremely
21869 # bizarre bug on SunOS 4.1.3.
21870 if $ac_need_defaults; then
21871   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21872   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21873   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21874 fi
21875
21876 # Have a temporary directory for convenience.  Make it in the build tree
21877 # simply because there is no reason to put it here, and in addition,
21878 # creating and moving files from /tmp can sometimes cause problems.
21879 # Create a temporary directory, and hook for its removal unless debugging.
21880 $debug ||
21881 {
21882   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21883   trap '{ (exit 1); exit 1; }' 1 2 13 15
21884 }
21885
21886 # Create a (secure) tmp directory for tmp files.
21887
21888 {
21889   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21890   test -n "$tmp" && test -d "$tmp"
21891 }  ||
21892 {
21893   tmp=./confstat$$-$RANDOM
21894   (umask 077 && mkdir $tmp)
21895 } ||
21896 {
21897    echo "$me: cannot create a temporary directory in ." >&2
21898    { (exit 1); exit 1; }
21899 }
21900
21901 _ACEOF
21902
21903 cat >>$CONFIG_STATUS <<_ACEOF
21904
21905 #
21906 # CONFIG_FILES section.
21907 #
21908
21909 # No need to generate the scripts if there are no CONFIG_FILES.
21910 # This happens for instance when ./config.status config.h
21911 if test -n "\$CONFIG_FILES"; then
21912   # Protect against being on the right side of a sed subst in config.status.
21913   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21914    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21915 s,@SHELL@,$SHELL,;t t
21916 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21917 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21918 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21919 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21920 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21921 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21922 s,@exec_prefix@,$exec_prefix,;t t
21923 s,@prefix@,$prefix,;t t
21924 s,@program_transform_name@,$program_transform_name,;t t
21925 s,@bindir@,$bindir,;t t
21926 s,@sbindir@,$sbindir,;t t
21927 s,@libexecdir@,$libexecdir,;t t
21928 s,@datadir@,$datadir,;t t
21929 s,@sysconfdir@,$sysconfdir,;t t
21930 s,@sharedstatedir@,$sharedstatedir,;t t
21931 s,@localstatedir@,$localstatedir,;t t
21932 s,@libdir@,$libdir,;t t
21933 s,@includedir@,$includedir,;t t
21934 s,@oldincludedir@,$oldincludedir,;t t
21935 s,@infodir@,$infodir,;t t
21936 s,@mandir@,$mandir,;t t
21937 s,@build_alias@,$build_alias,;t t
21938 s,@host_alias@,$host_alias,;t t
21939 s,@target_alias@,$target_alias,;t t
21940 s,@DEFS@,$DEFS,;t t
21941 s,@ECHO_C@,$ECHO_C,;t t
21942 s,@ECHO_N@,$ECHO_N,;t t
21943 s,@ECHO_T@,$ECHO_T,;t t
21944 s,@LIBS@,$LIBS,;t t
21945 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
21946 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
21947 s,@build@,$build,;t t
21948 s,@build_cpu@,$build_cpu,;t t
21949 s,@build_vendor@,$build_vendor,;t t
21950 s,@build_os@,$build_os,;t t
21951 s,@host@,$host,;t t
21952 s,@host_cpu@,$host_cpu,;t t
21953 s,@host_vendor@,$host_vendor,;t t
21954 s,@host_os@,$host_os,;t t
21955 s,@target@,$target,;t t
21956 s,@target_cpu@,$target_cpu,;t t
21957 s,@target_vendor@,$target_vendor,;t t
21958 s,@target_os@,$target_os,;t t
21959 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21960 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21961 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21962 s,@CYGPATH_W@,$CYGPATH_W,;t t
21963 s,@PACKAGE@,$PACKAGE,;t t
21964 s,@VERSION@,$VERSION,;t t
21965 s,@ACLOCAL@,$ACLOCAL,;t t
21966 s,@AUTOCONF@,$AUTOCONF,;t t
21967 s,@AUTOMAKE@,$AUTOMAKE,;t t
21968 s,@AUTOHEADER@,$AUTOHEADER,;t t
21969 s,@MAKEINFO@,$MAKEINFO,;t t
21970 s,@install_sh@,$install_sh,;t t
21971 s,@STRIP@,$STRIP,;t t
21972 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21973 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21974 s,@mkdir_p@,$mkdir_p,;t t
21975 s,@AWK@,$AWK,;t t
21976 s,@SET_MAKE@,$SET_MAKE,;t t
21977 s,@am__leading_dot@,$am__leading_dot,;t t
21978 s,@AMTAR@,$AMTAR,;t t
21979 s,@am__tar@,$am__tar,;t t
21980 s,@am__untar@,$am__untar,;t t
21981 s,@multi_basedir@,$multi_basedir,;t t
21982 s,@toolexecdir@,$toolexecdir,;t t
21983 s,@toolexeclibdir@,$toolexeclibdir,;t t
21984 s,@CC@,$CC,;t t
21985 s,@ac_ct_CC@,$ac_ct_CC,;t t
21986 s,@EXEEXT@,$EXEEXT,;t t
21987 s,@OBJEXT@,$OBJEXT,;t t
21988 s,@DEPDIR@,$DEPDIR,;t t
21989 s,@am__include@,$am__include,;t t
21990 s,@am__quote@,$am__quote,;t t
21991 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21992 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21993 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21994 s,@CCDEPMODE@,$CCDEPMODE,;t t
21995 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21996 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21997 s,@CFLAGS@,$CFLAGS,;t t
21998 s,@AR@,$AR,;t t
21999 s,@ac_ct_AR@,$ac_ct_AR,;t t
22000 s,@RANLIB@,$RANLIB,;t t
22001 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22002 s,@PERL@,$PERL,;t t
22003 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
22004 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
22005 s,@LIBTOOL@,$LIBTOOL,;t t
22006 s,@SED@,$SED,;t t
22007 s,@EGREP@,$EGREP,;t t
22008 s,@FGREP@,$FGREP,;t t
22009 s,@GREP@,$GREP,;t t
22010 s,@LD@,$LD,;t t
22011 s,@DUMPBIN@,$DUMPBIN,;t t
22012 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22013 s,@NM@,$NM,;t t
22014 s,@LN_S@,$LN_S,;t t
22015 s,@lt_ECHO@,$lt_ECHO,;t t
22016 s,@CPP@,$CPP,;t t
22017 s,@CPPFLAGS@,$CPPFLAGS,;t t
22018 s,@enable_shared@,$enable_shared,;t t
22019 s,@enable_static@,$enable_static,;t t
22020 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22021 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22022 s,@MAINT@,$MAINT,;t t
22023 s,@FC@,$FC,;t t
22024 s,@FCFLAGS@,$FCFLAGS,;t t
22025 s,@LDFLAGS@,$LDFLAGS,;t t
22026 s,@ac_ct_FC@,$ac_ct_FC,;t t
22027 s,@libtool_VERSION@,$libtool_VERSION,;t t
22028 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
22029 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
22030 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
22031 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
22032 s,@config_path@,$config_path,;t t
22033 s,@XCFLAGS@,$XCFLAGS,;t t
22034 s,@XLDFLAGS@,$XLDFLAGS,;t t
22035 s,@link_gomp@,$link_gomp,;t t
22036 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
22037 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
22038 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
22039 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
22040 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
22041 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
22042 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
22043 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
22044 s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t
22045 s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t
22046 s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t
22047 s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t
22048 s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t
22049 s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t
22050 s,@LIBOBJS@,$LIBOBJS,;t t
22051 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22052 CEOF
22053
22054 _ACEOF
22055
22056   cat >>$CONFIG_STATUS <<\_ACEOF
22057   # Split the substitutions into bite-sized pieces for seds with
22058   # small command number limits, like on Digital OSF/1 and HP-UX.
22059   ac_max_sed_lines=48
22060   ac_sed_frag=1 # Number of current file.
22061   ac_beg=1 # First line for current file.
22062   ac_end=$ac_max_sed_lines # Line after last line for current file.
22063   ac_more_lines=:
22064   ac_sed_cmds=
22065   while $ac_more_lines; do
22066     if test $ac_beg -gt 1; then
22067       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22068     else
22069       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22070     fi
22071     if test ! -s $tmp/subs.frag; then
22072       ac_more_lines=false
22073     else
22074       # The purpose of the label and of the branching condition is to
22075       # speed up the sed processing (if there are no `@' at all, there
22076       # is no need to browse any of the substitutions).
22077       # These are the two extra sed commands mentioned above.
22078       (echo ':t
22079   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22080       if test -z "$ac_sed_cmds"; then
22081         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22082       else
22083         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22084       fi
22085       ac_sed_frag=`expr $ac_sed_frag + 1`
22086       ac_beg=$ac_end
22087       ac_end=`expr $ac_end + $ac_max_sed_lines`
22088     fi
22089   done
22090   if test -z "$ac_sed_cmds"; then
22091     ac_sed_cmds=cat
22092   fi
22093 fi # test -n "$CONFIG_FILES"
22094
22095 _ACEOF
22096 cat >>$CONFIG_STATUS <<\_ACEOF
22097 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22098   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22099   case $ac_file in
22100   - | *:- | *:-:* ) # input from stdin
22101         cat >$tmp/stdin
22102         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22103         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22104   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22105         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22106   * )   ac_file_in=$ac_file.in ;;
22107   esac
22108
22109   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22110   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22112          X"$ac_file" : 'X\(//\)[^/]' \| \
22113          X"$ac_file" : 'X\(//\)$' \| \
22114          X"$ac_file" : 'X\(/\)' \| \
22115          .     : '\(.\)' 2>/dev/null ||
22116 echo X"$ac_file" |
22117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22118           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22119           /^X\(\/\/\)$/{ s//\1/; q; }
22120           /^X\(\/\).*/{ s//\1/; q; }
22121           s/.*/./; q'`
22122   { if $as_mkdir_p; then
22123     mkdir -p "$ac_dir"
22124   else
22125     as_dir="$ac_dir"
22126     as_dirs=
22127     while test ! -d "$as_dir"; do
22128       as_dirs="$as_dir $as_dirs"
22129       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22131          X"$as_dir" : 'X\(//\)[^/]' \| \
22132          X"$as_dir" : 'X\(//\)$' \| \
22133          X"$as_dir" : 'X\(/\)' \| \
22134          .     : '\(.\)' 2>/dev/null ||
22135 echo X"$as_dir" |
22136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22137           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22138           /^X\(\/\/\)$/{ s//\1/; q; }
22139           /^X\(\/\).*/{ s//\1/; q; }
22140           s/.*/./; q'`
22141     done
22142     test ! -n "$as_dirs" || mkdir $as_dirs
22143   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22144 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22145    { (exit 1); exit 1; }; }; }
22146
22147   ac_builddir=.
22148
22149 if test "$ac_dir" != .; then
22150   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22151   # A "../" for each directory in $ac_dir_suffix.
22152   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22153 else
22154   ac_dir_suffix= ac_top_builddir=
22155 fi
22156
22157 case $srcdir in
22158   .)  # No --srcdir option.  We are building in place.
22159     ac_srcdir=.
22160     if test -z "$ac_top_builddir"; then
22161        ac_top_srcdir=.
22162     else
22163        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22164     fi ;;
22165   [\\/]* | ?:[\\/]* )  # Absolute path.
22166     ac_srcdir=$srcdir$ac_dir_suffix;
22167     ac_top_srcdir=$srcdir ;;
22168   *) # Relative path.
22169     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22170     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22171 esac
22172
22173 # Do not use `cd foo && pwd` to compute absolute paths, because
22174 # the directories may not exist.
22175 case `pwd` in
22176 .) ac_abs_builddir="$ac_dir";;
22177 *)
22178   case "$ac_dir" in
22179   .) ac_abs_builddir=`pwd`;;
22180   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22181   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22182   esac;;
22183 esac
22184 case $ac_abs_builddir in
22185 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22186 *)
22187   case ${ac_top_builddir}. in
22188   .) ac_abs_top_builddir=$ac_abs_builddir;;
22189   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22190   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22191   esac;;
22192 esac
22193 case $ac_abs_builddir in
22194 .) ac_abs_srcdir=$ac_srcdir;;
22195 *)
22196   case $ac_srcdir in
22197   .) ac_abs_srcdir=$ac_abs_builddir;;
22198   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22199   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22200   esac;;
22201 esac
22202 case $ac_abs_builddir in
22203 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22204 *)
22205   case $ac_top_srcdir in
22206   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22207   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22208   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22209   esac;;
22210 esac
22211
22212
22213   case $INSTALL in
22214   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22215   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22216   esac
22217
22218   if test x"$ac_file" != x-; then
22219     { echo "$as_me:$LINENO: creating $ac_file" >&5
22220 echo "$as_me: creating $ac_file" >&6;}
22221     rm -f "$ac_file"
22222   fi
22223   # Let's still pretend it is `configure' which instantiates (i.e., don't
22224   # use $as_me), people would be surprised to read:
22225   #    /* config.h.  Generated by config.status.  */
22226   if test x"$ac_file" = x-; then
22227     configure_input=
22228   else
22229     configure_input="$ac_file.  "
22230   fi
22231   configure_input=$configure_input"Generated from `echo $ac_file_in |
22232                                      sed 's,.*/,,'` by configure."
22233
22234   # First look for the input files in the build tree, otherwise in the
22235   # src tree.
22236   ac_file_inputs=`IFS=:
22237     for f in $ac_file_in; do
22238       case $f in
22239       -) echo $tmp/stdin ;;
22240       [\\/$]*)
22241          # Absolute (can't be DOS-style, as IFS=:)
22242          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22243 echo "$as_me: error: cannot find input file: $f" >&2;}
22244    { (exit 1); exit 1; }; }
22245          echo "$f";;
22246       *) # Relative
22247          if test -f "$f"; then
22248            # Build tree
22249            echo "$f"
22250          elif test -f "$srcdir/$f"; then
22251            # Source tree
22252            echo "$srcdir/$f"
22253          else
22254            # /dev/null tree
22255            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22256 echo "$as_me: error: cannot find input file: $f" >&2;}
22257    { (exit 1); exit 1; }; }
22258          fi;;
22259       esac
22260     done` || { (exit 1); exit 1; }
22261 _ACEOF
22262 cat >>$CONFIG_STATUS <<_ACEOF
22263   sed "$ac_vpsub
22264 $extrasub
22265 _ACEOF
22266 cat >>$CONFIG_STATUS <<\_ACEOF
22267 :t
22268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22269 s,@configure_input@,$configure_input,;t t
22270 s,@srcdir@,$ac_srcdir,;t t
22271 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22272 s,@top_srcdir@,$ac_top_srcdir,;t t
22273 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22274 s,@builddir@,$ac_builddir,;t t
22275 s,@abs_builddir@,$ac_abs_builddir,;t t
22276 s,@top_builddir@,$ac_top_builddir,;t t
22277 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22278 s,@INSTALL@,$ac_INSTALL,;t t
22279 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22280   rm -f $tmp/stdin
22281   if test x"$ac_file" != x-; then
22282     mv $tmp/out $ac_file
22283   else
22284     cat $tmp/out
22285     rm -f $tmp/out
22286   fi
22287
22288 done
22289 _ACEOF
22290 cat >>$CONFIG_STATUS <<\_ACEOF
22291
22292 #
22293 # CONFIG_HEADER section.
22294 #
22295
22296 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22297 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22298 #
22299 # ac_d sets the value in "#define NAME VALUE" lines.
22300 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22301 ac_dB='[         ].*$,\1#\2'
22302 ac_dC=' '
22303 ac_dD=',;t'
22304 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22305 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22306 ac_uB='$,\1#\2define\3'
22307 ac_uC=' '
22308 ac_uD=',;t'
22309
22310 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22311   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22312   case $ac_file in
22313   - | *:- | *:-:* ) # input from stdin
22314         cat >$tmp/stdin
22315         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22316         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22317   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22318         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22319   * )   ac_file_in=$ac_file.in ;;
22320   esac
22321
22322   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22323 echo "$as_me: creating $ac_file" >&6;}
22324
22325   # First look for the input files in the build tree, otherwise in the
22326   # src tree.
22327   ac_file_inputs=`IFS=:
22328     for f in $ac_file_in; do
22329       case $f in
22330       -) echo $tmp/stdin ;;
22331       [\\/$]*)
22332          # Absolute (can't be DOS-style, as IFS=:)
22333          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22334 echo "$as_me: error: cannot find input file: $f" >&2;}
22335    { (exit 1); exit 1; }; }
22336          # Do quote $f, to prevent DOS paths from being IFS'd.
22337          echo "$f";;
22338       *) # Relative
22339          if test -f "$f"; then
22340            # Build tree
22341            echo "$f"
22342          elif test -f "$srcdir/$f"; then
22343            # Source tree
22344            echo "$srcdir/$f"
22345          else
22346            # /dev/null tree
22347            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22348 echo "$as_me: error: cannot find input file: $f" >&2;}
22349    { (exit 1); exit 1; }; }
22350          fi;;
22351       esac
22352     done` || { (exit 1); exit 1; }
22353   # Remove the trailing spaces.
22354   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22355
22356 _ACEOF
22357
22358 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22359 # `conftest.undefs', that substitutes the proper values into
22360 # config.h.in to produce config.h.  The first handles `#define'
22361 # templates, and the second `#undef' templates.
22362 # And first: Protect against being on the right side of a sed subst in
22363 # config.status.  Protect against being in an unquoted here document
22364 # in config.status.
22365 rm -f conftest.defines conftest.undefs
22366 # Using a here document instead of a string reduces the quoting nightmare.
22367 # Putting comments in sed scripts is not portable.
22368 #
22369 # `end' is used to avoid that the second main sed command (meant for
22370 # 0-ary CPP macros) applies to n-ary macro definitions.
22371 # See the Autoconf documentation for `clear'.
22372 cat >confdef2sed.sed <<\_ACEOF
22373 s/[\\&,]/\\&/g
22374 s,[\\$`],\\&,g
22375 t clear
22376 : clear
22377 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22378 t end
22379 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22380 : end
22381 _ACEOF
22382 # If some macros were called several times there might be several times
22383 # the same #defines, which is useless.  Nevertheless, we may not want to
22384 # sort them, since we want the *last* AC-DEFINE to be honored.
22385 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22386 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22387 rm -f confdef2sed.sed
22388
22389 # This sed command replaces #undef with comments.  This is necessary, for
22390 # example, in the case of _POSIX_SOURCE, which is predefined and required
22391 # on some systems where configure will not decide to define it.
22392 cat >>conftest.undefs <<\_ACEOF
22393 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22394 _ACEOF
22395
22396 # Break up conftest.defines because some shells have a limit on the size
22397 # of here documents, and old seds have small limits too (100 cmds).
22398 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22399 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22400 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22401 echo '  :' >>$CONFIG_STATUS
22402 rm -f conftest.tail
22403 while grep . conftest.defines >/dev/null
22404 do
22405   # Write a limited-size here document to $tmp/defines.sed.
22406   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22407   # Speed up: don't consider the non `#define' lines.
22408   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22409   # Work around the forget-to-reset-the-flag bug.
22410   echo 't clr' >>$CONFIG_STATUS
22411   echo ': clr' >>$CONFIG_STATUS
22412   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22413   echo 'CEOF
22414   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22415   rm -f $tmp/in
22416   mv $tmp/out $tmp/in
22417 ' >>$CONFIG_STATUS
22418   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22419   rm -f conftest.defines
22420   mv conftest.tail conftest.defines
22421 done
22422 rm -f conftest.defines
22423 echo '  fi # grep' >>$CONFIG_STATUS
22424 echo >>$CONFIG_STATUS
22425
22426 # Break up conftest.undefs because some shells have a limit on the size
22427 # of here documents, and old seds have small limits too (100 cmds).
22428 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22429 rm -f conftest.tail
22430 while grep . conftest.undefs >/dev/null
22431 do
22432   # Write a limited-size here document to $tmp/undefs.sed.
22433   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22434   # Speed up: don't consider the non `#undef'
22435   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22436   # Work around the forget-to-reset-the-flag bug.
22437   echo 't clr' >>$CONFIG_STATUS
22438   echo ': clr' >>$CONFIG_STATUS
22439   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22440   echo 'CEOF
22441   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22442   rm -f $tmp/in
22443   mv $tmp/out $tmp/in
22444 ' >>$CONFIG_STATUS
22445   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22446   rm -f conftest.undefs
22447   mv conftest.tail conftest.undefs
22448 done
22449 rm -f conftest.undefs
22450
22451 cat >>$CONFIG_STATUS <<\_ACEOF
22452   # Let's still pretend it is `configure' which instantiates (i.e., don't
22453   # use $as_me), people would be surprised to read:
22454   #    /* config.h.  Generated by config.status.  */
22455   if test x"$ac_file" = x-; then
22456     echo "/* Generated by configure.  */" >$tmp/config.h
22457   else
22458     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22459   fi
22460   cat $tmp/in >>$tmp/config.h
22461   rm -f $tmp/in
22462   if test x"$ac_file" != x-; then
22463     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22464       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22465 echo "$as_me: $ac_file is unchanged" >&6;}
22466     else
22467       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22468 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22469          X"$ac_file" : 'X\(//\)[^/]' \| \
22470          X"$ac_file" : 'X\(//\)$' \| \
22471          X"$ac_file" : 'X\(/\)' \| \
22472          .     : '\(.\)' 2>/dev/null ||
22473 echo X"$ac_file" |
22474     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22475           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22476           /^X\(\/\/\)$/{ s//\1/; q; }
22477           /^X\(\/\).*/{ s//\1/; q; }
22478           s/.*/./; q'`
22479       { if $as_mkdir_p; then
22480     mkdir -p "$ac_dir"
22481   else
22482     as_dir="$ac_dir"
22483     as_dirs=
22484     while test ! -d "$as_dir"; do
22485       as_dirs="$as_dir $as_dirs"
22486       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22488          X"$as_dir" : 'X\(//\)[^/]' \| \
22489          X"$as_dir" : 'X\(//\)$' \| \
22490          X"$as_dir" : 'X\(/\)' \| \
22491          .     : '\(.\)' 2>/dev/null ||
22492 echo X"$as_dir" |
22493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22494           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22495           /^X\(\/\/\)$/{ s//\1/; q; }
22496           /^X\(\/\).*/{ s//\1/; q; }
22497           s/.*/./; q'`
22498     done
22499     test ! -n "$as_dirs" || mkdir $as_dirs
22500   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22501 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22502    { (exit 1); exit 1; }; }; }
22503
22504       rm -f $ac_file
22505       mv $tmp/config.h $ac_file
22506     fi
22507   else
22508     cat $tmp/config.h
22509     rm -f $tmp/config.h
22510   fi
22511 # Compute $ac_file's index in $config_headers.
22512 _am_stamp_count=1
22513 for _am_header in $config_headers :; do
22514   case $_am_header in
22515     $ac_file | $ac_file:* )
22516       break ;;
22517     * )
22518       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22519   esac
22520 done
22521 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22522 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22523          X$ac_file : 'X\(//\)[^/]' \| \
22524          X$ac_file : 'X\(//\)$' \| \
22525          X$ac_file : 'X\(/\)' \| \
22526          .     : '\(.\)' 2>/dev/null ||
22527 echo X$ac_file |
22528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22529           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22530           /^X\(\/\/\)$/{ s//\1/; q; }
22531           /^X\(\/\).*/{ s//\1/; q; }
22532           s/.*/./; q'`/stamp-h$_am_stamp_count
22533 done
22534 _ACEOF
22535 cat >>$CONFIG_STATUS <<\_ACEOF
22536
22537 #
22538 # CONFIG_COMMANDS section.
22539 #
22540 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22541   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22542   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22543   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22544 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22545          X"$ac_dest" : 'X\(//\)[^/]' \| \
22546          X"$ac_dest" : 'X\(//\)$' \| \
22547          X"$ac_dest" : 'X\(/\)' \| \
22548          .     : '\(.\)' 2>/dev/null ||
22549 echo X"$ac_dest" |
22550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22551           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22552           /^X\(\/\/\)$/{ s//\1/; q; }
22553           /^X\(\/\).*/{ s//\1/; q; }
22554           s/.*/./; q'`
22555   { if $as_mkdir_p; then
22556     mkdir -p "$ac_dir"
22557   else
22558     as_dir="$ac_dir"
22559     as_dirs=
22560     while test ! -d "$as_dir"; do
22561       as_dirs="$as_dir $as_dirs"
22562       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22564          X"$as_dir" : 'X\(//\)[^/]' \| \
22565          X"$as_dir" : 'X\(//\)$' \| \
22566          X"$as_dir" : 'X\(/\)' \| \
22567          .     : '\(.\)' 2>/dev/null ||
22568 echo X"$as_dir" |
22569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22570           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22571           /^X\(\/\/\)$/{ s//\1/; q; }
22572           /^X\(\/\).*/{ s//\1/; q; }
22573           s/.*/./; q'`
22574     done
22575     test ! -n "$as_dirs" || mkdir $as_dirs
22576   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22578    { (exit 1); exit 1; }; }; }
22579
22580   ac_builddir=.
22581
22582 if test "$ac_dir" != .; then
22583   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22584   # A "../" for each directory in $ac_dir_suffix.
22585   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22586 else
22587   ac_dir_suffix= ac_top_builddir=
22588 fi
22589
22590 case $srcdir in
22591   .)  # No --srcdir option.  We are building in place.
22592     ac_srcdir=.
22593     if test -z "$ac_top_builddir"; then
22594        ac_top_srcdir=.
22595     else
22596        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22597     fi ;;
22598   [\\/]* | ?:[\\/]* )  # Absolute path.
22599     ac_srcdir=$srcdir$ac_dir_suffix;
22600     ac_top_srcdir=$srcdir ;;
22601   *) # Relative path.
22602     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22603     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22604 esac
22605
22606 # Do not use `cd foo && pwd` to compute absolute paths, because
22607 # the directories may not exist.
22608 case `pwd` in
22609 .) ac_abs_builddir="$ac_dir";;
22610 *)
22611   case "$ac_dir" in
22612   .) ac_abs_builddir=`pwd`;;
22613   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22614   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22615   esac;;
22616 esac
22617 case $ac_abs_builddir in
22618 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22619 *)
22620   case ${ac_top_builddir}. in
22621   .) ac_abs_top_builddir=$ac_abs_builddir;;
22622   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22623   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22624   esac;;
22625 esac
22626 case $ac_abs_builddir in
22627 .) ac_abs_srcdir=$ac_srcdir;;
22628 *)
22629   case $ac_srcdir in
22630   .) ac_abs_srcdir=$ac_abs_builddir;;
22631   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22632   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22633   esac;;
22634 esac
22635 case $ac_abs_builddir in
22636 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22637 *)
22638   case $ac_top_srcdir in
22639   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22640   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22641   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22642   esac;;
22643 esac
22644
22645
22646   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22647 echo "$as_me: executing $ac_dest commands" >&6;}
22648   case $ac_dest in
22649     default-1 )
22650 # Only add multilib support code if we just rebuilt the top-level
22651 # Makefile.
22652 case " $CONFIG_FILES " in
22653  *" Makefile "*)
22654    ac_file=Makefile . ${multi_basedir}/config-ml.in
22655    ;;
22656 esac ;;
22657     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22658   # Strip MF so we end up with the name of the file.
22659   mf=`echo "$mf" | sed -e 's/:.*$//'`
22660   # Check whether this is an Automake generated Makefile or not.
22661   # We used to match only the files named `Makefile.in', but
22662   # some people rename them; so instead we look at the file content.
22663   # Grep'ing the first line is not enough: some people post-process
22664   # each Makefile.in and add a new line on top of each file to say so.
22665   # So let's grep whole file.
22666   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22667     dirpart=`(dirname "$mf") 2>/dev/null ||
22668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22669          X"$mf" : 'X\(//\)[^/]' \| \
22670          X"$mf" : 'X\(//\)$' \| \
22671          X"$mf" : 'X\(/\)' \| \
22672          .     : '\(.\)' 2>/dev/null ||
22673 echo X"$mf" |
22674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22676           /^X\(\/\/\)$/{ s//\1/; q; }
22677           /^X\(\/\).*/{ s//\1/; q; }
22678           s/.*/./; q'`
22679   else
22680     continue
22681   fi
22682   # Extract the definition of DEPDIR, am__include, and am__quote
22683   # from the Makefile without running `make'.
22684   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22685   test -z "$DEPDIR" && continue
22686   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22687   test -z "am__include" && continue
22688   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22689   # When using ansi2knr, U may be empty or an underscore; expand it
22690   U=`sed -n 's/^U = //p' < "$mf"`
22691   # Find all dependency output files, they are included files with
22692   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22693   # simplest approach to changing $(DEPDIR) to its actual value in the
22694   # expansion.
22695   for file in `sed -n "
22696     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22697        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22698     # Make sure the directory exists.
22699     test -f "$dirpart/$file" && continue
22700     fdir=`(dirname "$file") 2>/dev/null ||
22701 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22702          X"$file" : 'X\(//\)[^/]' \| \
22703          X"$file" : 'X\(//\)$' \| \
22704          X"$file" : 'X\(/\)' \| \
22705          .     : '\(.\)' 2>/dev/null ||
22706 echo X"$file" |
22707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22708           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22709           /^X\(\/\/\)$/{ s//\1/; q; }
22710           /^X\(\/\).*/{ s//\1/; q; }
22711           s/.*/./; q'`
22712     { if $as_mkdir_p; then
22713     mkdir -p $dirpart/$fdir
22714   else
22715     as_dir=$dirpart/$fdir
22716     as_dirs=
22717     while test ! -d "$as_dir"; do
22718       as_dirs="$as_dir $as_dirs"
22719       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22721          X"$as_dir" : 'X\(//\)[^/]' \| \
22722          X"$as_dir" : 'X\(//\)$' \| \
22723          X"$as_dir" : 'X\(/\)' \| \
22724          .     : '\(.\)' 2>/dev/null ||
22725 echo X"$as_dir" |
22726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22727           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22728           /^X\(\/\/\)$/{ s//\1/; q; }
22729           /^X\(\/\).*/{ s//\1/; q; }
22730           s/.*/./; q'`
22731     done
22732     test ! -n "$as_dirs" || mkdir $as_dirs
22733   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22734 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22735    { (exit 1); exit 1; }; }; }
22736
22737     # echo "creating $dirpart/$file"
22738     echo '# dummy' > "$dirpart/$file"
22739   done
22740 done
22741  ;;
22742     libtool )
22743
22744     # See if we are running on zsh, and set the options which allow our
22745     # commands through without removal of \ escapes.
22746     if test -n "${ZSH_VERSION+set}" ; then
22747       setopt NO_GLOB_SUBST
22748     fi
22749
22750     cfgfile="${ofile}T"
22751     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22752     $RM "$cfgfile"
22753
22754     cat <<_LT_EOF >> "$cfgfile"
22755 #! $SHELL
22756
22757 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22758 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22760 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22761 #
22762 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22763 # 2006, 2007 Free Software Foundation, Inc.
22764 #
22765 # This file is part of GNU Libtool:
22766 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22767 #
22768 # This program is free software; you can redistribute it and/or modify
22769 # it under the terms of the GNU General Public License as published by
22770 # the Free Software Foundation; either version 2 of the License, or
22771 # (at your option) any later version.
22772 #
22773 # This program is distributed in the hope that it will be useful, but
22774 # WITHOUT ANY WARRANTY; without even the implied warranty of
22775 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22776 # General Public License for more details.
22777 #
22778 # You should have received a copy of the GNU General Public License
22779 # along with this program; if not, a copy can be downloaded from
22780 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22781 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22782 # MA 02110-1301, USA.
22783 #
22784 # As a special exception to the GNU General Public License, if you
22785 # distribute this file as part of a program that contains a
22786 # configuration script generated by Autoconf, you may include it under
22787 # the same distribution terms that you use for the rest of that program.
22788
22789
22790 # The names of the tagged configurations supported by this script.
22791 available_tags="FC "
22792
22793 # ### BEGIN LIBTOOL CONFIG
22794
22795 # Which release of libtool.m4 was used?
22796 macro_version=$macro_version
22797 macro_revision=$macro_revision
22798
22799 # Whether or not to build shared libraries.
22800 build_libtool_libs=$enable_shared
22801
22802 # Whether or not to build static libraries.
22803 build_old_libs=$enable_static
22804
22805 # What type of objects to build.
22806 pic_mode=$pic_mode
22807
22808 # Whether or not to optimize for fast installation.
22809 fast_install=$enable_fast_install
22810
22811 # The host system.
22812 host_alias=$host_alias
22813 host=$host
22814 host_os=$host_os
22815
22816 # The build system.
22817 build_alias=$build_alias
22818 build=$build
22819 build_os=$build_os
22820
22821 # A sed program that does not truncate output.
22822 SED=$lt_SED
22823
22824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22825 Xsed="\$SED -e 1s/^X//"
22826
22827 # A grep program that handles long lines.
22828 GREP=$lt_GREP
22829
22830 # An ERE matcher.
22831 EGREP=$lt_EGREP
22832
22833 # A literal string matcher.
22834 FGREP=$lt_FGREP
22835
22836 # A BSD- or MS-compatible name lister.
22837 NM=$lt_NM
22838
22839 # Whether we need soft or hard links.
22840 LN_S=$lt_LN_S
22841
22842 # What is the maximum length of a command?
22843 max_cmd_len=$max_cmd_len
22844
22845 # Object file suffix (normally "o").
22846 objext=$ac_objext
22847
22848 # Executable file suffix (normally "").
22849 exeext=$exeext
22850
22851 # whether the shell understands "unset".
22852 lt_unset=$lt_unset
22853
22854 # turn spaces into newlines.
22855 SP2NL=$lt_lt_SP2NL
22856
22857 # turn newlines into spaces.
22858 NL2SP=$lt_lt_NL2SP
22859
22860 # How to create reloadable object files.
22861 reload_flag=$lt_reload_flag
22862 reload_cmds=$lt_reload_cmds
22863
22864 # Method to check whether dependent libraries are shared objects.
22865 deplibs_check_method=$lt_deplibs_check_method
22866
22867 # Command to use when deplibs_check_method == "file_magic".
22868 file_magic_cmd=$lt_file_magic_cmd
22869
22870 # The archiver.
22871 AR=$lt_AR
22872 AR_FLAGS=$lt_AR_FLAGS
22873
22874 # A symbol stripping program.
22875 STRIP=$lt_STRIP
22876
22877 # Commands used to install an old-style archive.
22878 RANLIB=$lt_RANLIB
22879 old_postinstall_cmds=$lt_old_postinstall_cmds
22880 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22881
22882 # A C compiler.
22883 LTCC=$lt_CC
22884
22885 # LTCC compiler flags.
22886 LTCFLAGS=$lt_CFLAGS
22887
22888 # Take the output of nm and produce a listing of raw symbols and C names.
22889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22890
22891 # Transform the output of nm in a proper C declaration.
22892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22893
22894 # Transform the output of nm in a C name address pair.
22895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22896
22897 # The name of the directory that contains temporary libtool files.
22898 objdir=$objdir
22899
22900 # Shell to use when invoking shell scripts.
22901 SHELL=$lt_SHELL
22902
22903 # An echo program that does not interpret backslashes.
22904 ECHO=$lt_ECHO
22905
22906 # Used to examine libraries when file_magic_cmd begins with "file".
22907 MAGIC_CMD=$MAGIC_CMD
22908
22909 # Must we lock files when doing compilation?
22910 need_locks=$lt_need_locks
22911
22912 # Old archive suffix (normally "a").
22913 libext=$libext
22914
22915 # Shared library suffix (normally ".so").
22916 shrext_cmds=$lt_shrext_cmds
22917
22918 # The commands to extract the exported symbol list from a shared archive.
22919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22920
22921 # Variables whose values should be saved in libtool wrapper scripts and
22922 # restored at link time.
22923 variables_saved_for_relink=$lt_variables_saved_for_relink
22924
22925 # Do we need the "lib" prefix for modules?
22926 need_lib_prefix=$need_lib_prefix
22927
22928 # Do we need a version for libraries?
22929 need_version=$need_version
22930
22931 # Library versioning type.
22932 version_type=$version_type
22933
22934 # Shared library runtime path variable.
22935 runpath_var=$runpath_var
22936
22937 # Shared library path variable.
22938 shlibpath_var=$shlibpath_var
22939
22940 # Is shlibpath searched before the hard-coded library search path?
22941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22942
22943 # Format of library name prefix.
22944 libname_spec=$lt_libname_spec
22945
22946 # List of archive names.  First name is the real one, the rest are links.
22947 # The last name is the one that the linker finds with -lNAME
22948 library_names_spec=$lt_library_names_spec
22949
22950 # The coded name of the library, if different from the real name.
22951 soname_spec=$lt_soname_spec
22952
22953 # Command to use after installation of a shared archive.
22954 postinstall_cmds=$lt_postinstall_cmds
22955
22956 # Command to use after uninstallation of a shared archive.
22957 postuninstall_cmds=$lt_postuninstall_cmds
22958
22959 # Commands used to finish a libtool library installation in a directory.
22960 finish_cmds=$lt_finish_cmds
22961
22962 # As "finish_cmds", except a single script fragment to be evaled but
22963 # not shown.
22964 finish_eval=$lt_finish_eval
22965
22966 # Whether we should hardcode library paths into libraries.
22967 hardcode_into_libs=$hardcode_into_libs
22968
22969 # Compile-time system search path for libraries.
22970 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22971
22972 # Run-time system search path for libraries.
22973 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22974
22975 # Whether dlopen is supported.
22976 dlopen_support=$enable_dlopen
22977
22978 # Whether dlopen of programs is supported.
22979 dlopen_self=$enable_dlopen_self
22980
22981 # Whether dlopen of statically linked programs is supported.
22982 dlopen_self_static=$enable_dlopen_self_static
22983
22984 # Commands to strip libraries.
22985 old_striplib=$lt_old_striplib
22986 striplib=$lt_striplib
22987
22988
22989 # The linker used to build libraries.
22990 LD=$lt_LD
22991
22992 # Commands used to build an old-style archive.
22993 old_archive_cmds=$lt_old_archive_cmds
22994
22995 # A language specific compiler.
22996 CC=$lt_compiler
22997
22998 # Is the compiler the GNU compiler?
22999 with_gcc=$GCC
23000
23001 # Compiler flag to turn off builtin functions.
23002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23003
23004 # How to pass a linker flag through the compiler.
23005 wl=$lt_lt_prog_compiler_wl
23006
23007 # Additional compiler flags for building library objects.
23008 pic_flag=$lt_lt_prog_compiler_pic
23009
23010 # Compiler flag to prevent dynamic linking.
23011 link_static_flag=$lt_lt_prog_compiler_static
23012
23013 # Does compiler simultaneously support -c and -o options?
23014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23015
23016 # Whether or not to add -lc for building shared libraries.
23017 build_libtool_need_lc=$archive_cmds_need_lc
23018
23019 # Whether or not to disallow shared libs when runtime libs are static.
23020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23021
23022 # Compiler flag to allow reflexive dlopens.
23023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23024
23025 # Compiler flag to generate shared objects directly from archives.
23026 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23027
23028 # Whether the compiler copes with passing no objects directly.
23029 compiler_needs_object=$lt_compiler_needs_object
23030
23031 # Create an old-style archive from a shared archive.
23032 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23033
23034 # Create a temporary old-style archive to link instead of a shared archive.
23035 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23036
23037 # Commands used to build a shared archive.
23038 archive_cmds=$lt_archive_cmds
23039 archive_expsym_cmds=$lt_archive_expsym_cmds
23040
23041 # Commands used to build a loadable module if different from building
23042 # a shared archive.
23043 module_cmds=$lt_module_cmds
23044 module_expsym_cmds=$lt_module_expsym_cmds
23045
23046 # Whether we are building with GNU ld or not.
23047 with_gnu_ld=$lt_with_gnu_ld
23048
23049 # Flag that allows shared libraries with undefined symbols to be built.
23050 allow_undefined_flag=$lt_allow_undefined_flag
23051
23052 # Flag that enforces no undefined symbols.
23053 no_undefined_flag=$lt_no_undefined_flag
23054
23055 # Flag to hardcode \$libdir into a binary during linking.
23056 # This must work even if \$libdir does not exist
23057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23058
23059 # If ld is used when linking, flag to hardcode \$libdir into a binary
23060 # during linking.  This must work even if \$libdir does not exist.
23061 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23062
23063 # Whether we need a single "-rpath" flag with a separated argument.
23064 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23065
23066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23067 # DIR into the resulting binary.
23068 hardcode_direct=$hardcode_direct
23069
23070 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23071 # DIR into the resulting binary and the resulting library dependency is
23072 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23073 # library is relocated.
23074 hardcode_direct_absolute=$hardcode_direct_absolute
23075
23076 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23077 # into the resulting binary.
23078 hardcode_minus_L=$hardcode_minus_L
23079
23080 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23081 # into the resulting binary.
23082 hardcode_shlibpath_var=$hardcode_shlibpath_var
23083
23084 # Set to "yes" if building a shared library automatically hardcodes DIR
23085 # into the library and all subsequent libraries and executables linked
23086 # against it.
23087 hardcode_automatic=$hardcode_automatic
23088
23089 # Set to yes if linker adds runtime paths of dependent libraries
23090 # to runtime path list.
23091 inherit_rpath=$inherit_rpath
23092
23093 # Whether libtool must link a program against all its dependency libraries.
23094 link_all_deplibs=$link_all_deplibs
23095
23096 # Fix the shell variable \$srcfile for the compiler.
23097 fix_srcfile_path=$lt_fix_srcfile_path
23098
23099 # Set to "yes" if exported symbols are required.
23100 always_export_symbols=$always_export_symbols
23101
23102 # The commands to list exported symbols.
23103 export_symbols_cmds=$lt_export_symbols_cmds
23104
23105 # Symbols that should not be listed in the preloaded symbols.
23106 exclude_expsyms=$lt_exclude_expsyms
23107
23108 # Symbols that must always be exported.
23109 include_expsyms=$lt_include_expsyms
23110
23111 # Commands necessary for linking programs (against libraries) with templates.
23112 prelink_cmds=$lt_prelink_cmds
23113
23114 # Specify filename containing input files.
23115 file_list_spec=$lt_file_list_spec
23116
23117 # How to hardcode a shared library path into an executable.
23118 hardcode_action=$hardcode_action
23119
23120 # Dependencies to place before and after the objects being linked to
23121 # create a shared library.
23122 predep_objects=$lt_predep_objects
23123 postdep_objects=$lt_postdep_objects
23124 predeps=$lt_predeps
23125 postdeps=$lt_postdeps
23126
23127 # The library search path used internally by the compiler when linking
23128 # a shared library.
23129 compiler_lib_search_path=$lt_compiler_lib_search_path
23130
23131 # ### END LIBTOOL CONFIG
23132
23133 _LT_EOF
23134
23135   case $host_os in
23136   aix3*)
23137     cat <<\_LT_EOF >> "$cfgfile"
23138 # AIX sometimes has problems with the GCC collect2 program.  For some
23139 # reason, if we set the COLLECT_NAMES environment variable, the problems
23140 # vanish in a puff of smoke.
23141 if test "X${COLLECT_NAMES+set}" != Xset; then
23142   COLLECT_NAMES=
23143   export COLLECT_NAMES
23144 fi
23145 _LT_EOF
23146     ;;
23147   esac
23148
23149
23150 ltmain="$ac_aux_dir/ltmain.sh"
23151
23152
23153   # We use sed instead of cat because bash on DJGPP gets confused if
23154   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23155   # text mode, it properly converts lines to CR/LF.  This bash problem
23156   # is reportedly fixed, but why not run on old versions too?
23157   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23158     || (rm -f "$cfgfile"; exit 1)
23159
23160   case $xsi_shell in
23161   yes)
23162     cat << \_LT_EOF >> "$cfgfile"
23163 # func_dirname file append nondir_replacement
23164 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23165 # otherwise set result to NONDIR_REPLACEMENT.
23166 func_dirname ()
23167 {
23168   case ${1} in
23169     */*) func_dirname_result="${1%/*}${2}" ;;
23170     *  ) func_dirname_result="${3}" ;;
23171   esac
23172 }
23173
23174 # func_basename file
23175 func_basename ()
23176 {
23177   func_basename_result="${1##*/}"
23178 }
23179
23180 # func_stripname prefix suffix name
23181 # strip PREFIX and SUFFIX off of NAME.
23182 # PREFIX and SUFFIX must not contain globbing or regex special
23183 # characters, hashes, percent signs, but SUFFIX may contain a leading
23184 # dot (in which case that matches only a dot).
23185 func_stripname ()
23186 {
23187   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23188   # positional parameters, so assign one to ordinary parameter first.
23189   func_stripname_result=${3}
23190   func_stripname_result=${func_stripname_result#"${1}"}
23191   func_stripname_result=${func_stripname_result%"${2}"}
23192 }
23193
23194 # func_opt_split
23195 func_opt_split ()
23196 {
23197   func_opt_split_opt=${1%%=*}
23198   func_opt_split_arg=${1#*=}
23199 }
23200
23201 # func_lo2o object
23202 func_lo2o ()
23203 {
23204   case ${1} in
23205     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23206     *)    func_lo2o_result=${1} ;;
23207   esac
23208 }
23209 _LT_EOF
23210     ;;
23211   *) # Bourne compatible functions.
23212     cat << \_LT_EOF >> "$cfgfile"
23213 # func_dirname file append nondir_replacement
23214 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23215 # otherwise set result to NONDIR_REPLACEMENT.
23216 func_dirname ()
23217 {
23218   # Extract subdirectory from the argument.
23219   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23220   if test "X$func_dirname_result" = "X${1}"; then
23221     func_dirname_result="${3}"
23222   else
23223     func_dirname_result="$func_dirname_result${2}"
23224   fi
23225 }
23226
23227 # func_basename file
23228 func_basename ()
23229 {
23230   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23231 }
23232
23233 # func_stripname prefix suffix name
23234 # strip PREFIX and SUFFIX off of NAME.
23235 # PREFIX and SUFFIX must not contain globbing or regex special
23236 # characters, hashes, percent signs, but SUFFIX may contain a leading
23237 # dot (in which case that matches only a dot).
23238 # func_strip_suffix prefix name
23239 func_stripname ()
23240 {
23241   case ${2} in
23242     .*) func_stripname_result=`$ECHO "X${3}" \
23243            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23244     *)  func_stripname_result=`$ECHO "X${3}" \
23245            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23246   esac
23247 }
23248
23249 # sed scripts:
23250 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23251 my_sed_long_arg='1s/^-[^=]*=//'
23252
23253 # func_opt_split
23254 func_opt_split ()
23255 {
23256   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23257   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23258 }
23259
23260 # func_lo2o object
23261 func_lo2o ()
23262 {
23263   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23264 }
23265 _LT_EOF
23266 esac
23267
23268 case $lt_shell_append in
23269   yes)
23270     cat << \_LT_EOF >> "$cfgfile"
23271
23272 # func_append var value
23273 # Append VALUE to the end of shell variable VAR.
23274 func_append ()
23275 {
23276   eval "$1+=\$2"
23277 }
23278 _LT_EOF
23279     ;;
23280   *)
23281     cat << \_LT_EOF >> "$cfgfile"
23282
23283 # func_append var value
23284 # Append VALUE to the end of shell variable VAR.
23285 func_append ()
23286 {
23287   eval "$1=\$$1\$2"
23288 }
23289 _LT_EOF
23290     ;;
23291   esac
23292
23293
23294   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23295     || (rm -f "$cfgfile"; exit 1)
23296
23297   mv -f "$cfgfile" "$ofile" ||
23298     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23299   chmod +x "$ofile"
23300
23301
23302     cat <<_LT_EOF >> "$ofile"
23303
23304 # ### BEGIN LIBTOOL TAG CONFIG: FC
23305
23306 # The linker used to build libraries.
23307 LD=$lt_LD_FC
23308
23309 # Commands used to build an old-style archive.
23310 old_archive_cmds=$lt_old_archive_cmds_FC
23311
23312 # A language specific compiler.
23313 CC=$lt_compiler_FC
23314
23315 # Is the compiler the GNU compiler?
23316 with_gcc=$GCC_FC
23317
23318 # Compiler flag to turn off builtin functions.
23319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
23320
23321 # How to pass a linker flag through the compiler.
23322 wl=$lt_lt_prog_compiler_wl_FC
23323
23324 # Additional compiler flags for building library objects.
23325 pic_flag=$lt_lt_prog_compiler_pic_FC
23326
23327 # Compiler flag to prevent dynamic linking.
23328 link_static_flag=$lt_lt_prog_compiler_static_FC
23329
23330 # Does compiler simultaneously support -c and -o options?
23331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
23332
23333 # Whether or not to add -lc for building shared libraries.
23334 build_libtool_need_lc=$archive_cmds_need_lc_FC
23335
23336 # Whether or not to disallow shared libs when runtime libs are static.
23337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
23338
23339 # Compiler flag to allow reflexive dlopens.
23340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
23341
23342 # Compiler flag to generate shared objects directly from archives.
23343 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
23344
23345 # Whether the compiler copes with passing no objects directly.
23346 compiler_needs_object=$lt_compiler_needs_object_FC
23347
23348 # Create an old-style archive from a shared archive.
23349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
23350
23351 # Create a temporary old-style archive to link instead of a shared archive.
23352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
23353
23354 # Commands used to build a shared archive.
23355 archive_cmds=$lt_archive_cmds_FC
23356 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
23357
23358 # Commands used to build a loadable module if different from building
23359 # a shared archive.
23360 module_cmds=$lt_module_cmds_FC
23361 module_expsym_cmds=$lt_module_expsym_cmds_FC
23362
23363 # Whether we are building with GNU ld or not.
23364 with_gnu_ld=$lt_with_gnu_ld_FC
23365
23366 # Flag that allows shared libraries with undefined symbols to be built.
23367 allow_undefined_flag=$lt_allow_undefined_flag_FC
23368
23369 # Flag that enforces no undefined symbols.
23370 no_undefined_flag=$lt_no_undefined_flag_FC
23371
23372 # Flag to hardcode \$libdir into a binary during linking.
23373 # This must work even if \$libdir does not exist
23374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
23375
23376 # If ld is used when linking, flag to hardcode \$libdir into a binary
23377 # during linking.  This must work even if \$libdir does not exist.
23378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
23379
23380 # Whether we need a single "-rpath" flag with a separated argument.
23381 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
23382
23383 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23384 # DIR into the resulting binary.
23385 hardcode_direct=$hardcode_direct_FC
23386
23387 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23388 # DIR into the resulting binary and the resulting library dependency is
23389 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23390 # library is relocated.
23391 hardcode_direct_absolute=$hardcode_direct_absolute_FC
23392
23393 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23394 # into the resulting binary.
23395 hardcode_minus_L=$hardcode_minus_L_FC
23396
23397 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23398 # into the resulting binary.
23399 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
23400
23401 # Set to "yes" if building a shared library automatically hardcodes DIR
23402 # into the library and all subsequent libraries and executables linked
23403 # against it.
23404 hardcode_automatic=$hardcode_automatic_FC
23405
23406 # Set to yes if linker adds runtime paths of dependent libraries
23407 # to runtime path list.
23408 inherit_rpath=$inherit_rpath_FC
23409
23410 # Whether libtool must link a program against all its dependency libraries.
23411 link_all_deplibs=$link_all_deplibs_FC
23412
23413 # Fix the shell variable \$srcfile for the compiler.
23414 fix_srcfile_path=$lt_fix_srcfile_path_FC
23415
23416 # Set to "yes" if exported symbols are required.
23417 always_export_symbols=$always_export_symbols_FC
23418
23419 # The commands to list exported symbols.
23420 export_symbols_cmds=$lt_export_symbols_cmds_FC
23421
23422 # Symbols that should not be listed in the preloaded symbols.
23423 exclude_expsyms=$lt_exclude_expsyms_FC
23424
23425 # Symbols that must always be exported.
23426 include_expsyms=$lt_include_expsyms_FC
23427
23428 # Commands necessary for linking programs (against libraries) with templates.
23429 prelink_cmds=$lt_prelink_cmds_FC
23430
23431 # Specify filename containing input files.
23432 file_list_spec=$lt_file_list_spec_FC
23433
23434 # How to hardcode a shared library path into an executable.
23435 hardcode_action=$hardcode_action_FC
23436
23437 # Dependencies to place before and after the objects being linked to
23438 # create a shared library.
23439 predep_objects=$lt_predep_objects_FC
23440 postdep_objects=$lt_postdep_objects_FC
23441 predeps=$lt_predeps_FC
23442 postdeps=$lt_postdeps_FC
23443
23444 # The library search path used internally by the compiler when linking
23445 # a shared library.
23446 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
23447
23448 # ### END LIBTOOL TAG CONFIG: FC
23449 _LT_EOF
23450
23451  ;;
23452     gstdint.h )
23453 if test "$GCC" = yes; then
23454   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23455 else
23456   echo "/* generated for $CC */" > tmp-stdint.h
23457 fi
23458
23459 sed 's/^ *//' >> tmp-stdint.h <<EOF
23460
23461   #ifndef GCC_GENERATED_STDINT_H
23462   #define GCC_GENERATED_STDINT_H 1
23463
23464   #include <sys/types.h>
23465 EOF
23466
23467 if test "$acx_cv_header_stdint" != stdint.h; then
23468   echo "#include <stddef.h>" >> tmp-stdint.h
23469 fi
23470 if test "$acx_cv_header_stdint" != stddef.h; then
23471   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23472 fi
23473
23474 sed 's/^ *//' >> tmp-stdint.h <<EOF
23475   /* glibc uses these symbols as guards to prevent redefinitions.  */
23476   #ifdef __int8_t_defined
23477   #define _INT8_T
23478   #define _INT16_T
23479   #define _INT32_T
23480   #endif
23481   #ifdef __uint32_t_defined
23482   #define _UINT32_T
23483   #endif
23484
23485 EOF
23486
23487 # ----------------- done header, emit basic int types -------------
23488 if test "$acx_cv_header_stdint" = stddef.h; then
23489   sed 's/^ *//' >> tmp-stdint.h <<EOF
23490
23491     #ifndef _UINT8_T
23492     #define _UINT8_T
23493     #ifndef __uint8_t_defined
23494     #define __uint8_t_defined
23495     typedef unsigned $acx_cv_type_int8_t uint8_t;
23496     #endif
23497     #endif
23498
23499     #ifndef _UINT16_T
23500     #define _UINT16_T
23501     #ifndef __uint16_t_defined
23502     #define __uint16_t_defined
23503     typedef unsigned $acx_cv_type_int16_t uint16_t;
23504     #endif
23505     #endif
23506
23507     #ifndef _UINT32_T
23508     #define _UINT32_T
23509     #ifndef __uint32_t_defined
23510     #define __uint32_t_defined
23511     typedef unsigned $acx_cv_type_int32_t uint32_t;
23512     #endif
23513     #endif
23514
23515     #ifndef _INT8_T
23516     #define _INT8_T
23517     #ifndef __int8_t_defined
23518     #define __int8_t_defined
23519     typedef $acx_cv_type_int8_t int8_t;
23520     #endif
23521     #endif
23522
23523     #ifndef _INT16_T
23524     #define _INT16_T
23525     #ifndef __int16_t_defined
23526     #define __int16_t_defined
23527     typedef $acx_cv_type_int16_t int16_t;
23528     #endif
23529     #endif
23530
23531     #ifndef _INT32_T
23532     #define _INT32_T
23533     #ifndef __int32_t_defined
23534     #define __int32_t_defined
23535     typedef $acx_cv_type_int32_t int32_t;
23536     #endif
23537     #endif
23538 EOF
23539 elif test "$ac_cv_type_u_int32_t" = yes; then
23540   sed 's/^ *//' >> tmp-stdint.h <<EOF
23541
23542     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23543     #ifndef _INT8_T
23544     #define _INT8_T
23545     #endif
23546     #ifndef _INT16_T
23547     #define _INT16_T
23548     #endif
23549     #ifndef _INT32_T
23550     #define _INT32_T
23551     #endif
23552
23553     #ifndef _UINT8_T
23554     #define _UINT8_T
23555     #ifndef __uint8_t_defined
23556     #define __uint8_t_defined
23557     typedef u_int8_t uint8_t;
23558     #endif
23559     #endif
23560
23561     #ifndef _UINT16_T
23562     #define _UINT16_T
23563     #ifndef __uint16_t_defined
23564     #define __uint16_t_defined
23565     typedef u_int16_t uint16_t;
23566     #endif
23567     #endif
23568
23569     #ifndef _UINT32_T
23570     #define _UINT32_T
23571     #ifndef __uint32_t_defined
23572     #define __uint32_t_defined
23573     typedef u_int32_t uint32_t;
23574     #endif
23575     #endif
23576 EOF
23577 else
23578   sed 's/^ *//' >> tmp-stdint.h <<EOF
23579
23580     /* Some systems have guard macros to prevent redefinitions, define them.  */
23581     #ifndef _INT8_T
23582     #define _INT8_T
23583     #endif
23584     #ifndef _INT16_T
23585     #define _INT16_T
23586     #endif
23587     #ifndef _INT32_T
23588     #define _INT32_T
23589     #endif
23590     #ifndef _UINT8_T
23591     #define _UINT8_T
23592     #endif
23593     #ifndef _UINT16_T
23594     #define _UINT16_T
23595     #endif
23596     #ifndef _UINT32_T
23597     #define _UINT32_T
23598     #endif
23599 EOF
23600 fi
23601
23602 # ------------- done basic int types, emit int64_t types ------------
23603 if test "$ac_cv_type_uint64_t" = yes; then
23604   sed 's/^ *//' >> tmp-stdint.h <<EOF
23605
23606     /* system headers have good uint64_t and int64_t */
23607     #ifndef _INT64_T
23608     #define _INT64_T
23609     #endif
23610     #ifndef _UINT64_T
23611     #define _UINT64_T
23612     #endif
23613 EOF
23614 elif test "$ac_cv_type_u_int64_t" = yes; then
23615   sed 's/^ *//' >> tmp-stdint.h <<EOF
23616
23617     /* system headers have an u_int64_t (and int64_t) */
23618     #ifndef _INT64_T
23619     #define _INT64_T
23620     #endif
23621     #ifndef _UINT64_T
23622     #define _UINT64_T
23623     #ifndef __uint64_t_defined
23624     #define __uint64_t_defined
23625     typedef u_int64_t uint64_t;
23626     #endif
23627     #endif
23628 EOF
23629 elif test -n "$acx_cv_type_int64_t"; then
23630   sed 's/^ *//' >> tmp-stdint.h <<EOF
23631
23632     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23633     #ifndef _INT64_T
23634     #define _INT64_T
23635     typedef $acx_cv_type_int64_t int64_t;
23636     #endif
23637     #ifndef _UINT64_T
23638     #define _UINT64_T
23639     #ifndef __uint64_t_defined
23640     #define __uint64_t_defined
23641     typedef unsigned $acx_cv_type_int64_t uint64_t;
23642     #endif
23643     #endif
23644 EOF
23645 else
23646   sed 's/^ *//' >> tmp-stdint.h <<EOF
23647
23648     /* some common heuristics for int64_t, using compiler-specific tests */
23649     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23650     #ifndef _INT64_T
23651     #define _INT64_T
23652     #ifndef __int64_t_defined
23653     typedef long long int64_t;
23654     #endif
23655     #endif
23656     #ifndef _UINT64_T
23657     #define _UINT64_T
23658     typedef unsigned long long uint64_t;
23659     #endif
23660
23661     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23662     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23663        does not implement __extension__.  But that compiler doesn't define
23664        __GNUC_MINOR__.  */
23665     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23666     # define __extension__
23667     # endif
23668
23669     # ifndef _INT64_T
23670     # define _INT64_T
23671     __extension__ typedef long long int64_t;
23672     # endif
23673     # ifndef _UINT64_T
23674     # define _UINT64_T
23675     __extension__ typedef unsigned long long uint64_t;
23676     # endif
23677
23678     #elif !defined __STRICT_ANSI__
23679     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23680
23681     #  ifndef _INT64_T
23682     #  define _INT64_T
23683     typedef __int64 int64_t;
23684     #  endif
23685     #  ifndef _UINT64_T
23686     #  define _UINT64_T
23687     typedef unsigned __int64 uint64_t;
23688     #  endif
23689     # endif /* compiler */
23690
23691     #endif /* ANSI version */
23692 EOF
23693 fi
23694
23695 # ------------- done int64_t types, emit intptr types ------------
23696 if test "$ac_cv_type_uintptr_t" != yes; then
23697   sed 's/^ *//' >> tmp-stdint.h <<EOF
23698
23699     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23700     #ifndef __uintptr_t_defined
23701     typedef u$acx_cv_type_intptr_t uintptr_t;
23702     #endif
23703     #ifndef __intptr_t_defined
23704     typedef $acx_cv_type_intptr_t  intptr_t;
23705     #endif
23706 EOF
23707 fi
23708
23709 # ------------- done intptr types, emit int_least types ------------
23710 if test "$ac_cv_type_int_least32_t" != yes; then
23711   sed 's/^ *//' >> tmp-stdint.h <<EOF
23712
23713     /* Define int_least types */
23714     typedef int8_t     int_least8_t;
23715     typedef int16_t    int_least16_t;
23716     typedef int32_t    int_least32_t;
23717     #ifdef _INT64_T
23718     typedef int64_t    int_least64_t;
23719     #endif
23720
23721     typedef uint8_t    uint_least8_t;
23722     typedef uint16_t   uint_least16_t;
23723     typedef uint32_t   uint_least32_t;
23724     #ifdef _UINT64_T
23725     typedef uint64_t   uint_least64_t;
23726     #endif
23727 EOF
23728 fi
23729
23730 # ------------- done intptr types, emit int_fast types ------------
23731 if test "$ac_cv_type_int_fast32_t" != yes; then
23732       sed 's/^ *//' >> tmp-stdint.h <<EOF
23733
23734     /* Define int_fast types.  short is often slow */
23735     typedef int8_t       int_fast8_t;
23736     typedef int          int_fast16_t;
23737     typedef int32_t      int_fast32_t;
23738     #ifdef _INT64_T
23739     typedef int64_t      int_fast64_t;
23740     #endif
23741
23742     typedef uint8_t      uint_fast8_t;
23743     typedef unsigned int uint_fast16_t;
23744     typedef uint32_t     uint_fast32_t;
23745     #ifdef _UINT64_T
23746     typedef uint64_t     uint_fast64_t;
23747     #endif
23748 EOF
23749 fi
23750
23751 if test "$ac_cv_type_uintmax_t" != yes; then
23752   sed 's/^ *//' >> tmp-stdint.h <<EOF
23753
23754     /* Define intmax based on what we found */
23755     #ifdef _INT64_T
23756     typedef int64_t       intmax_t;
23757     #else
23758     typedef long          intmax_t;
23759     #endif
23760     #ifdef _UINT64_T
23761     typedef uint64_t      uintmax_t;
23762     #else
23763     typedef unsigned long uintmax_t;
23764     #endif
23765 EOF
23766 fi
23767
23768 sed 's/^ *//' >> tmp-stdint.h <<EOF
23769
23770   #endif /* GCC_GENERATED_STDINT_H */
23771 EOF
23772
23773 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
23774   rm -f tmp-stdint.h
23775 else
23776   mv -f tmp-stdint.h gstdint.h
23777 fi
23778
23779  ;;
23780   esac
23781 done
23782 _ACEOF
23783
23784 cat >>$CONFIG_STATUS <<\_ACEOF
23785
23786 { (exit 0); exit 0; }
23787 _ACEOF
23788 chmod +x $CONFIG_STATUS
23789 ac_clean_files=$ac_clean_files_save
23790
23791
23792 # configure is writing to config.log, and then calls config.status.
23793 # config.status does its own redirection, appending to config.log.
23794 # Unfortunately, on DOS this fails, as config.log is still kept open
23795 # by configure, so config.status won't be able to write to it; its
23796 # output is simply discarded.  So we exec the FD to /dev/null,
23797 # effectively closing config.log, so it can be properly (re)opened and
23798 # appended to by config.status.  When coming back to configure, we
23799 # need to make the FD available again.
23800 if test "$no_create" != yes; then
23801   ac_cs_success=:
23802   ac_config_status_args=
23803   test "$silent" = yes &&
23804     ac_config_status_args="$ac_config_status_args --quiet"
23805   exec 5>/dev/null
23806   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23807   exec 5>>config.log
23808   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23809   # would make configure fail if this is the last instruction.
23810   $ac_cs_success || { (exit 1); exit 1; }
23811 fi
23812