OSDN Git Service

2008-03-03 Peter O'Gorman <pogma@thewrittenword.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 LIBOBJS LTLIBOBJS'
461 ac_subst_files=''
462
463 # Initialize some variables set by options.
464 ac_init_help=
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 cache_file=/dev/null
469 exec_prefix=NONE
470 no_create=
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 verbose=
480 x_includes=NONE
481 x_libraries=NONE
482
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
500
501 ac_prev=
502 for ac_option
503 do
504   # If the previous option needs an argument, assign it.
505   if test -n "$ac_prev"; then
506     eval "$ac_prev=\$ac_option"
507     ac_prev=
508     continue
509   fi
510
511   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
512
513   # Accept the important Cygnus configure options, so we can diagnose typos.
514
515   case $ac_option in
516
517   -bindir | --bindir | --bindi | --bind | --bin | --bi)
518     ac_prev=bindir ;;
519   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520     bindir=$ac_optarg ;;
521
522   -build | --build | --buil | --bui | --bu)
523     ac_prev=build_alias ;;
524   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525     build_alias=$ac_optarg ;;
526
527   -cache-file | --cache-file | --cache-fil | --cache-fi \
528   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529     ac_prev=cache_file ;;
530   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532     cache_file=$ac_optarg ;;
533
534   --config-cache | -C)
535     cache_file=config.cache ;;
536
537   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538     ac_prev=datadir ;;
539   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540   | --da=*)
541     datadir=$ac_optarg ;;
542
543   -disable-* | --disable-*)
544     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545     # Reject names that are not valid shell variable names.
546     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548    { (exit 1); exit 1; }; }
549     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550     eval "enable_$ac_feature=no" ;;
551
552   -enable-* | --enable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     case $ac_option in
560       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561       *) ac_optarg=yes ;;
562     esac
563     eval "enable_$ac_feature='$ac_optarg'" ;;
564
565   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567   | --exec | --exe | --ex)
568     ac_prev=exec_prefix ;;
569   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571   | --exec=* | --exe=* | --ex=*)
572     exec_prefix=$ac_optarg ;;
573
574   -gas | --gas | --ga | --g)
575     # Obsolete; use --with-gas.
576     with_gas=yes ;;
577
578   -help | --help | --hel | --he | -h)
579     ac_init_help=long ;;
580   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581     ac_init_help=recursive ;;
582   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583     ac_init_help=short ;;
584
585   -host | --host | --hos | --ho)
586     ac_prev=host_alias ;;
587   -host=* | --host=* | --hos=* | --ho=*)
588     host_alias=$ac_optarg ;;
589
590   -includedir | --includedir | --includedi | --included | --include \
591   | --includ | --inclu | --incl | --inc)
592     ac_prev=includedir ;;
593   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594   | --includ=* | --inclu=* | --incl=* | --inc=*)
595     includedir=$ac_optarg ;;
596
597   -infodir | --infodir | --infodi | --infod | --info | --inf)
598     ac_prev=infodir ;;
599   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600     infodir=$ac_optarg ;;
601
602   -libdir | --libdir | --libdi | --libd)
603     ac_prev=libdir ;;
604   -libdir=* | --libdir=* | --libdi=* | --libd=*)
605     libdir=$ac_optarg ;;
606
607   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608   | --libexe | --libex | --libe)
609     ac_prev=libexecdir ;;
610   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611   | --libexe=* | --libex=* | --libe=*)
612     libexecdir=$ac_optarg ;;
613
614   -localstatedir | --localstatedir | --localstatedi | --localstated \
615   | --localstate | --localstat | --localsta | --localst \
616   | --locals | --local | --loca | --loc | --lo)
617     ac_prev=localstatedir ;;
618   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621     localstatedir=$ac_optarg ;;
622
623   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624     ac_prev=mandir ;;
625   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626     mandir=$ac_optarg ;;
627
628   -nfp | --nfp | --nf)
629     # Obsolete; use --without-fp.
630     with_fp=no ;;
631
632   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633   | --no-cr | --no-c | -n)
634     no_create=yes ;;
635
636   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638     no_recursion=yes ;;
639
640   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642   | --oldin | --oldi | --old | --ol | --o)
643     ac_prev=oldincludedir ;;
644   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647     oldincludedir=$ac_optarg ;;
648
649   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650     ac_prev=prefix ;;
651   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652     prefix=$ac_optarg ;;
653
654   -program-prefix | --program-prefix | --program-prefi | --program-pref \
655   | --program-pre | --program-pr | --program-p)
656     ac_prev=program_prefix ;;
657   -program-prefix=* | --program-prefix=* | --program-prefi=* \
658   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659     program_prefix=$ac_optarg ;;
660
661   -program-suffix | --program-suffix | --program-suffi | --program-suff \
662   | --program-suf | --program-su | --program-s)
663     ac_prev=program_suffix ;;
664   -program-suffix=* | --program-suffix=* | --program-suffi=* \
665   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666     program_suffix=$ac_optarg ;;
667
668   -program-transform-name | --program-transform-name \
669   | --program-transform-nam | --program-transform-na \
670   | --program-transform-n | --program-transform- \
671   | --program-transform | --program-transfor \
672   | --program-transfo | --program-transf \
673   | --program-trans | --program-tran \
674   | --progr-tra | --program-tr | --program-t)
675     ac_prev=program_transform_name ;;
676   -program-transform-name=* | --program-transform-name=* \
677   | --program-transform-nam=* | --program-transform-na=* \
678   | --program-transform-n=* | --program-transform-=* \
679   | --program-transform=* | --program-transfor=* \
680   | --program-transfo=* | --program-transf=* \
681   | --program-trans=* | --program-tran=* \
682   | --progr-tra=* | --program-tr=* | --program-t=*)
683     program_transform_name=$ac_optarg ;;
684
685   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686   | -silent | --silent | --silen | --sile | --sil)
687     silent=yes ;;
688
689   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690     ac_prev=sbindir ;;
691   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692   | --sbi=* | --sb=*)
693     sbindir=$ac_optarg ;;
694
695   -sharedstatedir | --sharedstatedir | --sharedstatedi \
696   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697   | --sharedst | --shareds | --shared | --share | --shar \
698   | --sha | --sh)
699     ac_prev=sharedstatedir ;;
700   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703   | --sha=* | --sh=*)
704     sharedstatedir=$ac_optarg ;;
705
706   -site | --site | --sit)
707     ac_prev=site ;;
708   -site=* | --site=* | --sit=*)
709     site=$ac_optarg ;;
710
711   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712     ac_prev=srcdir ;;
713   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714     srcdir=$ac_optarg ;;
715
716   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717   | --syscon | --sysco | --sysc | --sys | --sy)
718     ac_prev=sysconfdir ;;
719   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721     sysconfdir=$ac_optarg ;;
722
723   -target | --target | --targe | --targ | --tar | --ta | --t)
724     ac_prev=target_alias ;;
725   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726     target_alias=$ac_optarg ;;
727
728   -v | -verbose | --verbose | --verbos | --verbo | --verb)
729     verbose=yes ;;
730
731   -version | --version | --versio | --versi | --vers | -V)
732     ac_init_version=: ;;
733
734   -with-* | --with-*)
735     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736     # Reject names that are not valid shell variable names.
737     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738       { echo "$as_me: error: invalid package name: $ac_package" >&2
739    { (exit 1); exit 1; }; }
740     ac_package=`echo $ac_package| sed 's/-/_/g'`
741     case $ac_option in
742       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743       *) ac_optarg=yes ;;
744     esac
745     eval "with_$ac_package='$ac_optarg'" ;;
746
747   -without-* | --without-*)
748     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749     # Reject names that are not valid shell variable names.
750     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751       { echo "$as_me: error: invalid package name: $ac_package" >&2
752    { (exit 1); exit 1; }; }
753     ac_package=`echo $ac_package | sed 's/-/_/g'`
754     eval "with_$ac_package=no" ;;
755
756   --x)
757     # Obsolete; use --with-x.
758     with_x=yes ;;
759
760   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761   | --x-incl | --x-inc | --x-in | --x-i)
762     ac_prev=x_includes ;;
763   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765     x_includes=$ac_optarg ;;
766
767   -x-libraries | --x-libraries | --x-librarie | --x-librari \
768   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769     ac_prev=x_libraries ;;
770   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772     x_libraries=$ac_optarg ;;
773
774   -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776    { (exit 1); exit 1; }; }
777     ;;
778
779   *=*)
780     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781     # Reject names that are not valid shell variable names.
782     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784    { (exit 1); exit 1; }; }
785     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786     eval "$ac_envvar='$ac_optarg'"
787     export $ac_envvar ;;
788
789   *)
790     # FIXME: should be removed in autoconf 3.0.
791     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795     ;;
796
797   esac
798 done
799
800 if test -n "$ac_prev"; then
801   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802   { echo "$as_me: error: missing argument to $ac_option" >&2
803    { (exit 1); exit 1; }; }
804 fi
805
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
808 do
809   eval ac_val=$`echo $ac_var`
810   case $ac_val in
811     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813    { (exit 1); exit 1; }; };;
814   esac
815 done
816
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819               localstatedir libdir includedir oldincludedir infodir mandir
820 do
821   eval ac_val=$`echo $ac_var`
822   case $ac_val in
823     [\\/$]* | ?:[\\/]* ) ;;
824     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825    { (exit 1); exit 1; }; };;
826   esac
827 done
828
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
832 build=$build_alias
833 host=$host_alias
834 target=$target_alias
835
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838   if test "x$build_alias" = x; then
839     cross_compiling=maybe
840     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841     If a cross compiler is detected then cross compile mode will be used." >&2
842   elif test "x$build_alias" != "x$host_alias"; then
843     cross_compiling=yes
844   fi
845 fi
846
847 ac_tool_prefix=
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850 test "$silent" = yes && exec 6>/dev/null
851
852
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855   ac_srcdir_defaulted=yes
856   # Try the directory containing this script, then its parent.
857   ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859          X"$0" : 'X\(//\)[^/]' \| \
860          X"$0" : 'X\(//\)$' \| \
861          X"$0" : 'X\(/\)' \| \
862          .     : '\(.\)' 2>/dev/null ||
863 echo X"$0" |
864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866           /^X\(\/\/\)$/{ s//\1/; q; }
867           /^X\(\/\).*/{ s//\1/; q; }
868           s/.*/./; q'`
869   srcdir=$ac_confdir
870   if test ! -r $srcdir/$ac_unique_file; then
871     srcdir=..
872   fi
873 else
874   ac_srcdir_defaulted=no
875 fi
876 if test ! -r $srcdir/$ac_unique_file; then
877   if test "$ac_srcdir_defaulted" = yes; then
878     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879    { (exit 1); exit 1; }; }
880   else
881     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882    { (exit 1); exit 1; }; }
883   fi
884 fi
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887    { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CPP_set=${CPP+set}
902 ac_env_CPP_value=$CPP
903 ac_cv_env_CPP_set=${CPP+set}
904 ac_cv_env_CPP_value=$CPP
905 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_env_CPPFLAGS_value=$CPPFLAGS
907 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909 ac_env_FC_set=${FC+set}
910 ac_env_FC_value=$FC
911 ac_cv_env_FC_set=${FC+set}
912 ac_cv_env_FC_value=$FC
913 ac_env_FCFLAGS_set=${FCFLAGS+set}
914 ac_env_FCFLAGS_value=$FCFLAGS
915 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916 ac_cv_env_FCFLAGS_value=$FCFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921
922 #
923 # Report the --help message.
924 #
925 if test "$ac_init_help" = "long"; then
926   # Omit some internal or obsolete options to make the list less imposing.
927   # This message is too long to be a string in the A/UX 3.1 sh.
928   cat <<_ACEOF
929 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
930
931 Usage: $0 [OPTION]... [VAR=VALUE]...
932
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE.  See below for descriptions of some of the useful variables.
935
936 Defaults for the options are specified in brackets.
937
938 Configuration:
939   -h, --help              display this help and exit
940       --help=short        display options specific to this package
941       --help=recursive    display the short help of all the included packages
942   -V, --version           display version information and exit
943   -q, --quiet, --silent   do not print \`checking...' messages
944       --cache-file=FILE   cache test results in FILE [disabled]
945   -C, --config-cache      alias for \`--cache-file=config.cache'
946   -n, --no-create         do not create output files
947       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
948
949 _ACEOF
950
951   cat <<_ACEOF
952 Installation directories:
953   --prefix=PREFIX         install architecture-independent files in PREFIX
954                           [$ac_default_prefix]
955   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
956                           [PREFIX]
957
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
962
963 For better control, use the options below.
964
965 Fine tuning of the installation directories:
966   --bindir=DIR           user executables [EPREFIX/bin]
967   --sbindir=DIR          system admin executables [EPREFIX/sbin]
968   --libexecdir=DIR       program executables [EPREFIX/libexec]
969   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
970   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
971   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
972   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
973   --libdir=DIR           object code libraries [EPREFIX/lib]
974   --includedir=DIR       C header files [PREFIX/include]
975   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
976   --infodir=DIR          info documentation [PREFIX/info]
977   --mandir=DIR           man documentation [PREFIX/man]
978 _ACEOF
979
980   cat <<\_ACEOF
981
982 Program names:
983   --program-prefix=PREFIX            prepend PREFIX to installed program names
984   --program-suffix=SUFFIX            append SUFFIX to installed program names
985   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
986
987 System types:
988   --build=BUILD     configure for building on BUILD [guessed]
989   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
990   --target=TARGET   configure for building compilers for TARGET [HOST]
991 _ACEOF
992 fi
993
994 if test -n "$ac_init_help"; then
995   case $ac_init_help in
996      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
997    esac
998   cat <<\_ACEOF
999
1000 Optional Features:
1001   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003   --enable-version-specific-runtime-libs
1004                           Specify that runtime libraries should be installed
1005                           in a compiler-specific directory [default=no]
1006   --enable-generated-files-in-srcdir
1007                           put copies of generated files in source dir intended
1008                           for creating source tarballs for users without
1009                           texinfo bison or flex. [default=no]
1010   --enable-multilib       build many library versions (default)
1011   --disable-dependency-tracking  speeds up one-time build
1012   --enable-dependency-tracking   do not reject slow dependency extractors
1013   --enable-shared[=PKGS]
1014                           build shared libraries [default=yes]
1015   --enable-static[=PKGS]
1016                           build static libraries [default=yes]
1017   --enable-fast-install[=PKGS]
1018                           optimize for fast installation [default=yes]
1019   --disable-libtool-lock  avoid locking (might break parallel builds)
1020   --enable-maintainer-mode  enable make rules and dependencies not useful
1021                           (and sometimes confusing) to the casual installer
1022   --enable-linux-futex    use the Linux futex system call
1023                           [default=default]
1024   --enable-tls            Use thread-local storage [default=yes]
1025   --enable-symvers=STYLE  enables symbol versioning of the shared library
1026                           [default=yes]
1027
1028 Optional Packages:
1029   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1030   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1031   --with-pic              try to use only PIC/non-PIC objects [default=use
1032                           both]
1033   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1034
1035 Some influential environment variables:
1036   CC          C compiler command
1037   CFLAGS      C compiler flags
1038   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1039               nonstandard directory <lib dir>
1040   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041               headers in a nonstandard directory <include dir>
1042   CPP         C preprocessor
1043   FC          Fortran compiler command
1044   FCFLAGS     Fortran compiler flags
1045
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1048
1049 _ACEOF
1050 fi
1051
1052 if test "$ac_init_help" = "recursive"; then
1053   # If there are subdirs, report their specific --help.
1054   ac_popdir=`pwd`
1055   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056     test -d $ac_dir || continue
1057     ac_builddir=.
1058
1059 if test "$ac_dir" != .; then
1060   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061   # A "../" for each directory in $ac_dir_suffix.
1062   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064   ac_dir_suffix= ac_top_builddir=
1065 fi
1066
1067 case $srcdir in
1068   .)  # No --srcdir option.  We are building in place.
1069     ac_srcdir=.
1070     if test -z "$ac_top_builddir"; then
1071        ac_top_srcdir=.
1072     else
1073        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074     fi ;;
1075   [\\/]* | ?:[\\/]* )  # Absolute path.
1076     ac_srcdir=$srcdir$ac_dir_suffix;
1077     ac_top_srcdir=$srcdir ;;
1078   *) # Relative path.
1079     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1082
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1087 *)
1088   case "$ac_dir" in
1089   .) ac_abs_builddir=`pwd`;;
1090   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092   esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *)
1097   case ${ac_top_builddir}. in
1098   .) ac_abs_top_builddir=$ac_abs_builddir;;
1099   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101   esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1105 *)
1106   case $ac_srcdir in
1107   .) ac_abs_srcdir=$ac_abs_builddir;;
1108   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110   esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *)
1115   case $ac_top_srcdir in
1116   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119   esac;;
1120 esac
1121
1122     cd $ac_dir
1123     # Check for guested configure; otherwise get Cygnus style configure.
1124     if test -f $ac_srcdir/configure.gnu; then
1125       echo
1126       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1127     elif test -f $ac_srcdir/configure; then
1128       echo
1129       $SHELL $ac_srcdir/configure  --help=recursive
1130     elif test -f $ac_srcdir/configure.ac ||
1131            test -f $ac_srcdir/configure.in; then
1132       echo
1133       $ac_configure --help
1134     else
1135       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136     fi
1137     cd $ac_popdir
1138   done
1139 fi
1140
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143   cat <<\_ACEOF
1144 GNU OpenMP Runtime Library configure 1.0
1145 generated by GNU Autoconf 2.59
1146
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151   exit 0
1152 fi
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1157
1158 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159 generated by GNU Autoconf 2.59.  Invocation command line was
1160
1161   $ $0 $@
1162
1163 _ACEOF
1164 {
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1169
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1178
1179 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1180 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1183 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1184 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1185 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1186
1187 _ASUNAME
1188
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1191 do
1192   IFS=$as_save_IFS
1193   test -z "$as_dir" && as_dir=.
1194   echo "PATH: $as_dir"
1195 done
1196
1197 } >&5
1198
1199 cat >&5 <<_ACEOF
1200
1201
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1205
1206 _ACEOF
1207
1208
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1220 do
1221   for ac_arg
1222   do
1223     case $ac_arg in
1224     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226     | -silent | --silent | --silen | --sile | --sil)
1227       continue ;;
1228     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230     esac
1231     case $ac_pass in
1232     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233     2)
1234       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235       if test $ac_must_keep_next = true; then
1236         ac_must_keep_next=false # Got value, back to normal.
1237       else
1238         case $ac_arg in
1239           *=* | --config-cache | -C | -disable-* | --disable-* \
1240           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242           | -with-* | --with-* | -without-* | --without-* | --x)
1243             case "$ac_configure_args0 " in
1244               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245             esac
1246             ;;
1247           -* ) ac_must_keep_next=true ;;
1248         esac
1249       fi
1250       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251       # Get rid of the leading space.
1252       ac_sep=" "
1253       ;;
1254     esac
1255   done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log.  We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266   # Save into config.log some information that might help in debugging.
1267   {
1268     echo
1269
1270     cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275     echo
1276     # The following way of writing the cache mishandles newlines in values,
1277 {
1278   (set) 2>&1 |
1279     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280     *ac_space=\ *)
1281       sed -n \
1282         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284       ;;
1285     *)
1286       sed -n \
1287         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288       ;;
1289     esac;
1290 }
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298     echo
1299     for ac_var in $ac_subst_vars
1300     do
1301       eval ac_val=$`echo $ac_var`
1302       echo "$ac_var='"'"'$ac_val'"'"'"
1303     done | sort
1304     echo
1305
1306     if test -n "$ac_subst_files"; then
1307       cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312       echo
1313       for ac_var in $ac_subst_files
1314       do
1315         eval ac_val=$`echo $ac_var`
1316         echo "$ac_var='"'"'$ac_val'"'"'"
1317       done | sort
1318       echo
1319     fi
1320
1321     if test -s confdefs.h; then
1322       cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327       echo
1328       sed "/^$/d" confdefs.h | sort
1329       echo
1330     fi
1331     test "$ac_signal" != 0 &&
1332       echo "$as_me: caught signal $ac_signal"
1333     echo "$as_me: exit $exit_status"
1334   } >&5
1335   rm -f core *.core &&
1336   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337     exit $exit_status
1338      ' 0
1339 for ac_signal in 1 2 13 15; do
1340   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1343
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1348
1349 # Predefined preprocessor variables.
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1374
1375
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379   if test "x$prefix" != xNONE; then
1380     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381   else
1382     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383   fi
1384 fi
1385 for ac_site_file in $CONFIG_SITE; do
1386   if test -r "$ac_site_file"; then
1387     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389     sed 's/^/| /' "$ac_site_file" >&5
1390     . "$ac_site_file"
1391   fi
1392 done
1393
1394 if test -r "$cache_file"; then
1395   # Some versions of bash will fail to source /dev/null (special
1396   # files actually), so we avoid doing that.
1397   if test -f "$cache_file"; then
1398     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400     case $cache_file in
1401       [\\/]* | ?:[\\/]* ) . $cache_file;;
1402       *)                      . ./$cache_file;;
1403     esac
1404   fi
1405 else
1406   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408   >$cache_file
1409 fi
1410
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417   eval ac_new_set=\$ac_env_${ac_var}_set
1418   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419   eval ac_new_val="\$ac_env_${ac_var}_value"
1420   case $ac_old_set,$ac_new_set in
1421     set,)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,set)
1426       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428       ac_cache_corrupted=: ;;
1429     ,);;
1430     *)
1431       if test "x$ac_old_val" != "x$ac_new_val"; then
1432         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1435 echo "$as_me:   former value:  $ac_old_val" >&2;}
1436         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1437 echo "$as_me:   current value: $ac_new_val" >&2;}
1438         ac_cache_corrupted=:
1439       fi;;
1440   esac
1441   # Pass precious variables to config.status.
1442   if test "$ac_new_set" = set; then
1443     case $ac_new_val in
1444     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446     *) ac_arg=$ac_var=$ac_new_val ;;
1447     esac
1448     case " $ac_configure_args " in
1449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1450       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451     esac
1452   fi
1453 done
1454 if $ac_cache_corrupted; then
1455   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459    { (exit 1); exit 1; }; }
1460 fi
1461
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494           ac_config_headers="$ac_config_headers config.h"
1495
1496
1497 # -------
1498 # Options
1499 # -------
1500
1501 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1502 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1503  # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1504 if test "${enable_version_specific_runtime_libs+set}" = set; then
1505   enableval="$enable_version_specific_runtime_libs"
1506
1507       case "$enableval" in
1508        yes|no) ;;
1509        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1510 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1511    { (exit 1); exit 1; }; } ;;
1512                           esac
1513
1514 else
1515   enable_version_specific_runtime_libs=no
1516 fi;
1517
1518 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1519 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1520
1521 # We would like our source tree to be readonly. However when releases or
1522 # pre-releases are generated, the flex/bison generated files as well as the
1523 # various formats of manuals need to be included along with the rest of the
1524 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1525 # just that.
1526 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1527 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1528  # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1529 if test "${enable_generated_files_in_srcdir+set}" = set; then
1530   enableval="$enable_generated_files_in_srcdir"
1531
1532       case "$enableval" in
1533        yes|no) ;;
1534        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1535 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1536    { (exit 1); exit 1; }; } ;;
1537                           esac
1538
1539 else
1540   enable_generated_files_in_srcdir=no
1541 fi;
1542
1543 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1544 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1545
1546
1547 if test "$enable_generated_files_in_srcdir" = yes; then
1548   GENINSRC_TRUE=
1549   GENINSRC_FALSE='#'
1550 else
1551   GENINSRC_TRUE='#'
1552   GENINSRC_FALSE=
1553 fi
1554
1555
1556
1557 # -------
1558 # -------
1559
1560 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1561 #
1562 # You will slowly go insane if you do not grok the following fact:  when
1563 # building this library, the top-level /target/ becomes the library's /host/.
1564 #
1565 # configure then causes --target to default to --host, exactly like any
1566 # other package using autoconf.  Therefore, 'target' and 'host' will
1567 # always be the same.  This makes sense both for native and cross compilers
1568 # just think about it for a little while.  :-)
1569 #
1570 # Also, if this library is being configured as part of a cross compiler, the
1571 # top-level configure script will pass the "real" host as $with_cross_host.
1572 #
1573 # Do not delete or change the following two lines.  For why, see
1574 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1575 ac_aux_dir=
1576 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1577   if test -f $ac_dir/install-sh; then
1578     ac_aux_dir=$ac_dir
1579     ac_install_sh="$ac_aux_dir/install-sh -c"
1580     break
1581   elif test -f $ac_dir/install.sh; then
1582     ac_aux_dir=$ac_dir
1583     ac_install_sh="$ac_aux_dir/install.sh -c"
1584     break
1585   elif test -f $ac_dir/shtool; then
1586     ac_aux_dir=$ac_dir
1587     ac_install_sh="$ac_aux_dir/shtool install -c"
1588     break
1589   fi
1590 done
1591 if test -z "$ac_aux_dir"; then
1592   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1593 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1597 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1598 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1599
1600 # Make sure we can run config.sub.
1601 $ac_config_sub sun4 >/dev/null 2>&1 ||
1602   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1603 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1604    { (exit 1); exit 1; }; }
1605
1606 echo "$as_me:$LINENO: checking build system type" >&5
1607 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1608 if test "${ac_cv_build+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   ac_cv_build_alias=$build_alias
1612 test -z "$ac_cv_build_alias" &&
1613   ac_cv_build_alias=`$ac_config_guess`
1614 test -z "$ac_cv_build_alias" &&
1615   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1616 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1617    { (exit 1); exit 1; }; }
1618 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1619   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 fi
1624 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1625 echo "${ECHO_T}$ac_cv_build" >&6
1626 build=$ac_cv_build
1627 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632 echo "$as_me:$LINENO: checking host system type" >&5
1633 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1634 if test "${ac_cv_host+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   ac_cv_host_alias=$host_alias
1638 test -z "$ac_cv_host_alias" &&
1639   ac_cv_host_alias=$ac_cv_build_alias
1640 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1641   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1642 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1643    { (exit 1); exit 1; }; }
1644
1645 fi
1646 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1647 echo "${ECHO_T}$ac_cv_host" >&6
1648 host=$ac_cv_host
1649 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654 echo "$as_me:$LINENO: checking target system type" >&5
1655 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1656 if test "${ac_cv_target+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   ac_cv_target_alias=$target_alias
1660 test "x$ac_cv_target_alias" = "x" &&
1661   ac_cv_target_alias=$ac_cv_host_alias
1662 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1663   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1664 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1665    { (exit 1); exit 1; }; }
1666
1667 fi
1668 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1669 echo "${ECHO_T}$ac_cv_target" >&6
1670 target=$ac_cv_target
1671 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1674
1675
1676 # The aliases save the names the user supplied, while $host etc.
1677 # will get canonicalized.
1678 test -n "$target_alias" &&
1679   test "$program_prefix$program_suffix$program_transform_name" = \
1680     NONENONEs,x,x, &&
1681   program_prefix=${target_alias}-
1682 target_alias=${target_alias-$host_alias}
1683
1684 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1685 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1686 #  1.9.0:  minimum required version
1687 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1688 #              of other PACKAGE_* variables will, however, and there's nothing
1689 #              we can do about that; they come from AC_INIT).
1690 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1691 #            file in the top srcdir, etc, etc), so stop complaining.
1692 #  -Wall:  turns on all automake warnings...
1693 #  -Wno-portability:  ...except this one, since GNU make is required.
1694 #  -Wno-override: ... and this one, since we do want this in testsuite.
1695 am__api_version="1.9"
1696 # Find a good install program.  We prefer a C program (faster),
1697 # so one script is as good as another.  But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1702 # AIX /bin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   # Account for people who put trailing slashes in PATH elements.
1721 case $as_dir/ in
1722   ./ | .// | /cC/* | \
1723   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725   /usr/ucb/* ) ;;
1726   *)
1727     # OSF1 and SCO ODT 3.0 have their own names for install.
1728     # Don't use installbsd from OSF since it installs stuff as root
1729     # by default.
1730     for ac_prog in ginstall scoinst install; do
1731       for ac_exec_ext in '' $ac_executable_extensions; do
1732         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733           if test $ac_prog = install &&
1734             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # AIX install.  It has an incompatible calling convention.
1736             :
1737           elif test $ac_prog = install &&
1738             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739             # program-specific install script used by HP pwplus--don't use.
1740             :
1741           else
1742             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1743             break 3
1744           fi
1745         fi
1746       done
1747     done
1748     ;;
1749 esac
1750 done
1751
1752
1753 fi
1754   if test "${ac_cv_path_install+set}" = set; then
1755     INSTALL=$ac_cv_path_install
1756   else
1757     # As a last resort, use the slow shell script.  We don't cache a
1758     # path for INSTALL within a source directory, because that will
1759     # break other packages using the cache if that directory is
1760     # removed, or if the path is relative.
1761     INSTALL=$ac_install_sh
1762   fi
1763 fi
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1766
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1777 # Just in case
1778 sleep 1
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments.  Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1784 # directory).
1785 if (
1786    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787    if test "$*" = "X"; then
1788       # -L didn't work.
1789       set X `ls -t $srcdir/configure conftest.file`
1790    fi
1791    rm -f conftest.file
1792    if test "$*" != "X $srcdir/configure conftest.file" \
1793       && test "$*" != "X conftest.file $srcdir/configure"; then
1794
1795       # If neither matched, then we have a broken ls.  This can happen
1796       # if, for instance, CONFIG_SHELL is bash and it inherits a
1797       # broken ls alias from the environment.  This has actually
1798       # happened.  Such a system could not be considered "sane".
1799       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1802 alias in your environment" >&2;}
1803    { (exit 1); exit 1; }; }
1804    fi
1805
1806    test "$2" = conftest.file
1807    )
1808 then
1809    # Ok.
1810    :
1811 else
1812    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816    { (exit 1); exit 1; }; }
1817 fi
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $.  echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1829 _ACEOF
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1831 rm conftest.sed
1832
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1835
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839   am_missing_run="$MISSING --run "
1840 else
1841   am_missing_run=
1842   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1844 fi
1845
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847   # We used to keeping the `.' as first argument, in order to
1848   # allow $(mkdir_p) to be used without argument.  As in
1849   #   $(mkdir_p) $(somedir)
1850   # where $(somedir) is conditionally defined.  However this is wrong
1851   # for two reasons:
1852   #  1. if the package is installed by a user who cannot write `.'
1853   #     make install will fail,
1854   #  2. the above comment should most certainly read
1855   #     $(mkdir_p) $(DESTDIR)$(somedir)
1856   #     so it does not work when $(somedir) is undefined and
1857   #     $(DESTDIR) is not.
1858   #  To support the latter case, we have to write
1859   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860   #  so the `.' trick is pointless.
1861   mkdir_p='mkdir -p --'
1862 else
1863   # On NextStep and OpenStep, the `mkdir' command does not
1864   # recognize any option.  It will interpret all options as
1865   # directories to create, and then abort because `.' already
1866   # exists.
1867   for d in ./-p ./--version;
1868   do
1869     test -d $d && rmdir $d
1870   done
1871   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872   if test -f "$ac_aux_dir/mkinstalldirs"; then
1873     mkdir_p='$(mkinstalldirs)'
1874   else
1875     mkdir_p='$(install_sh) -d'
1876   fi
1877 fi
1878
1879 for ac_prog in gawk mawk nawk awk
1880 do
1881   # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$AWK"; then
1889   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_AWK="$ac_prog"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 AWK=$ac_cv_prog_AWK
1908 if test -n "$AWK"; then
1909   echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916   test -n "$AWK" && break
1917 done
1918
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   cat >conftest.make <<\_ACEOF
1926 all:
1927         @echo 'ac_maketemp="$(MAKE)"'
1928 _ACEOF
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932   eval ac_cv_prog_make_${ac_make}_set=yes
1933 else
1934   eval ac_cv_prog_make_${ac_make}_set=no
1935 fi
1936 rm -f conftest.make
1937 fi
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939   echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1941   SET_MAKE=
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945   SET_MAKE="MAKE=${MAKE-make}"
1946 fi
1947
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1951   am__leading_dot=.
1952 else
1953   am__leading_dot=_
1954 fi
1955 rmdir .tst 2>/dev/null
1956
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959    test -f $srcdir/config.status; then
1960   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967   if (cygpath --version) >/dev/null 2>/dev/null; then
1968     CYGPATH_W='cygpath -w'
1969   else
1970     CYGPATH_W=echo
1971   fi
1972 fi
1973
1974
1975 # Define the identity of the package.
1976  PACKAGE='libgomp'
1977  VERSION='1.0'
1978
1979
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE "$PACKAGE"
1982 _ACEOF
1983
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define VERSION "$VERSION"
1987 _ACEOF
1988
1989 # Some tools Automake needs.
1990
1991 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1992
1993
1994 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1995
1996
1997 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1998
1999
2000 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2001
2002
2003 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2004
2005 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2006
2007 # Installed binaries are usually stripped using `strip' when the user
2008 # run `make install-strip'.  However `strip' might not be the right
2009 # tool to use in cross-compilation environments, therefore Automake
2010 # will honor the `STRIP' environment variable to overrule this program.
2011 if test "$cross_compiling" != no; then
2012   if test -n "$ac_tool_prefix"; then
2013   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}strip; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_STRIP+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test -n "$STRIP"; then
2021   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028   for ac_exec_ext in '' $ac_executable_extensions; do
2029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032     break 2
2033   fi
2034 done
2035 done
2036
2037 fi
2038 fi
2039 STRIP=$ac_cv_prog_STRIP
2040 if test -n "$STRIP"; then
2041   echo "$as_me:$LINENO: result: $STRIP" >&5
2042 echo "${ECHO_T}$STRIP" >&6
2043 else
2044   echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$ac_cv_prog_STRIP"; then
2050   ac_ct_STRIP=$STRIP
2051   # Extract the first word of "strip", so it can be a program name with args.
2052 set dummy strip; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$ac_ct_STRIP"; then
2059   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     ac_cv_prog_ac_ct_STRIP="strip"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074
2075   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2076 fi
2077 fi
2078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2079 if test -n "$ac_ct_STRIP"; then
2080   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2081 echo "${ECHO_T}$ac_ct_STRIP" >&6
2082 else
2083   echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2085 fi
2086
2087   STRIP=$ac_ct_STRIP
2088 else
2089   STRIP="$ac_cv_prog_STRIP"
2090 fi
2091
2092 fi
2093 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2094
2095 # We need awk for the "check" target.  The system "awk" is bad on
2096 # some platforms.
2097 # Always define AMTAR for backward compatibility.
2098
2099 AMTAR=${AMTAR-"${am_missing_run}tar"}
2100
2101 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2102
2103
2104
2105
2106
2107 # Default to --enable-multilib
2108 # Check whether --enable-multilib or --disable-multilib was given.
2109 if test "${enable_multilib+set}" = set; then
2110   enableval="$enable_multilib"
2111   case "$enableval" in
2112   yes) multilib=yes ;;
2113   no)  multilib=no ;;
2114   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2115 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2116    { (exit 1); exit 1; }; } ;;
2117  esac
2118 else
2119   multilib=yes
2120 fi;
2121
2122 # We may get other options which we leave undocumented:
2123 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2124 # See config-ml.in if you want the gory details.
2125
2126 if test "$srcdir" = "."; then
2127   if test "$with_target_subdir" != "."; then
2128     multi_basedir="$srcdir/$with_multisrctop../.."
2129   else
2130     multi_basedir="$srcdir/$with_multisrctop.."
2131   fi
2132 else
2133   multi_basedir="$srcdir/.."
2134 fi
2135
2136
2137 # Even if the default multilib is not a cross compilation,
2138 # it may be that some of the other multilibs are.
2139 if test $cross_compiling = no && test $multilib = yes \
2140    && test "x${with_multisubdir}" != x ; then
2141    cross_compiling=maybe
2142 fi
2143
2144           ac_config_commands="$ac_config_commands default-1"
2145
2146
2147 # Calculate toolexeclibdir
2148 # Also toolexecdir, though it's only used in toolexeclibdir
2149 case ${enable_version_specific_runtime_libs} in
2150   yes)
2151     # Need the gcc compiler version to know where to install libraries
2152     # and header files if --enable-version-specific-runtime-libs option
2153     # is selected.
2154     toolexecdir='$(libdir)/gcc/$(target_alias)'
2155     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2156     ;;
2157   no)
2158     if test -n "$with_cross_host" &&
2159        test x"$with_cross_host" != x"no"; then
2160       # Install a library built with a cross compiler in tooldir, not libdir.
2161       toolexecdir='$(exec_prefix)/$(target_alias)'
2162       toolexeclibdir='$(toolexecdir)/lib'
2163     else
2164       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2165       toolexeclibdir='$(libdir)'
2166     fi
2167     multi_os_directory=`$CC -print-multi-os-directory`
2168     case $multi_os_directory in
2169       .) ;; # Avoid trailing /.
2170       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2171     esac
2172     ;;
2173 esac
2174
2175
2176
2177 # Check the compiler.
2178 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2179 # We must force CC to /not/ be precious variables; otherwise
2180 # the wrong, non-multilib-adjusted value will be used in multilibs.
2181 # As a side effect, we have to subst CFLAGS ourselves.
2182
2183
2184
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 if test -n "$ac_tool_prefix"; then
2191   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196   echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198   if test -n "$CC"; then
2199   ac_cv_prog_CC="$CC" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204   IFS=$as_save_IFS
2205   test -z "$as_dir" && as_dir=.
2206   for ac_exec_ext in '' $ac_executable_extensions; do
2207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210     break 2
2211   fi
2212 done
2213 done
2214
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219   echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6
2221 else
2222   echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2224 fi
2225
2226 fi
2227 if test -z "$ac_cv_prog_CC"; then
2228   ac_ct_CC=$CC
2229   # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if test -n "$ac_ct_CC"; then
2237   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246     ac_cv_prog_ac_ct_CC="gcc"
2247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252
2253 fi
2254 fi
2255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2256 if test -n "$ac_ct_CC"; then
2257   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2258 echo "${ECHO_T}$ac_ct_CC" >&6
2259 else
2260   echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2262 fi
2263
2264   CC=$ac_ct_CC
2265 else
2266   CC="$ac_cv_prog_CC"
2267 fi
2268
2269 if test -z "$CC"; then
2270   if test -n "$ac_tool_prefix"; then
2271   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}cc; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_CC+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   if test -n "$CC"; then
2279   ac_cv_prog_CC="$CC" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284   IFS=$as_save_IFS
2285   test -z "$as_dir" && as_dir=.
2286   for ac_exec_ext in '' $ac_executable_extensions; do
2287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288     ac_cv_prog_CC="${ac_tool_prefix}cc"
2289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290     break 2
2291   fi
2292 done
2293 done
2294
2295 fi
2296 fi
2297 CC=$ac_cv_prog_CC
2298 if test -n "$CC"; then
2299   echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2301 else
2302   echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2304 fi
2305
2306 fi
2307 if test -z "$ac_cv_prog_CC"; then
2308   ac_ct_CC=$CC
2309   # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   if test -n "$ac_ct_CC"; then
2317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   for ac_exec_ext in '' $ac_executable_extensions; do
2325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326     ac_cv_prog_ac_ct_CC="cc"
2327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328     break 2
2329   fi
2330 done
2331 done
2332
2333 fi
2334 fi
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2339 else
2340   echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2342 fi
2343
2344   CC=$ac_ct_CC
2345 else
2346   CC="$ac_cv_prog_CC"
2347 fi
2348
2349 fi
2350 if test -z "$CC"; then
2351   # Extract the first word of "cc", so it can be a program name with args.
2352 set dummy cc; ac_word=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_CC+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   if test -n "$CC"; then
2359   ac_cv_prog_CC="$CC" # Let the user override the test.
2360 else
2361   ac_prog_rejected=no
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   for ac_exec_ext in '' $ac_executable_extensions; do
2368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370        ac_prog_rejected=yes
2371        continue
2372      fi
2373     ac_cv_prog_CC="cc"
2374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378 done
2379
2380 if test $ac_prog_rejected = yes; then
2381   # We found a bogon in the path, so make sure we never use it.
2382   set dummy $ac_cv_prog_CC
2383   shift
2384   if test $# != 0; then
2385     # We chose a different compiler from the bogus one.
2386     # However, it has the same basename, so the bogon will be chosen
2387     # first if we set CC to just the basename; use the full file name.
2388     shift
2389     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2390   fi
2391 fi
2392 fi
2393 fi
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396   echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6
2398 else
2399   echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2401 fi
2402
2403 fi
2404 if test -z "$CC"; then
2405   if test -n "$ac_tool_prefix"; then
2406   for ac_prog in cl
2407   do
2408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   if test -n "$CC"; then
2416   ac_cv_prog_CC="$CC" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423   for ac_exec_ext in '' $ac_executable_extensions; do
2424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427     break 2
2428   fi
2429 done
2430 done
2431
2432 fi
2433 fi
2434 CC=$ac_cv_prog_CC
2435 if test -n "$CC"; then
2436   echo "$as_me:$LINENO: result: $CC" >&5
2437 echo "${ECHO_T}$CC" >&6
2438 else
2439   echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6
2441 fi
2442
2443     test -n "$CC" && break
2444   done
2445 fi
2446 if test -z "$CC"; then
2447   ac_ct_CC=$CC
2448   for ac_prog in cl
2449 do
2450   # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$ac_ct_CC"; then
2458   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467     ac_cv_prog_ac_ct_CC="$ac_prog"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473
2474 fi
2475 fi
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6
2480 else
2481   echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2483 fi
2484
2485   test -n "$ac_ct_CC" && break
2486 done
2487
2488   CC=$ac_ct_CC
2489 fi
2490
2491 fi
2492
2493
2494 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: no acceptable C compiler found in \$PATH
2497 See \`config.log' for more details." >&2;}
2498    { (exit 1); exit 1; }; }
2499
2500 # Provide some information about the compiler.
2501 echo "$as_me:$LINENO:" \
2502      "checking for C compiler version" >&5
2503 ac_compiler=`set X $ac_compile; echo $2`
2504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2505   (eval $ac_compiler --version </dev/null >&5) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }
2509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2510   (eval $ac_compiler -v </dev/null >&5) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }
2514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2515   (eval $ac_compiler -V </dev/null >&5) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }
2519
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 ac_clean_files_save=$ac_clean_files
2536 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2537 # Try to create an executable without -o first, disregard a.out.
2538 # It will help us diagnose broken compilers, and finding out an intuition
2539 # of exeext.
2540 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2542 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2544   (eval $ac_link_default) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; then
2548   # Find the output, starting from the most likely.  This scheme is
2549 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2550 # resort.
2551
2552 # Be careful to initialize this variable, since it used to be cached.
2553 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2554 ac_cv_exeext=
2555 # b.out is created by i960 compilers.
2556 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2557 do
2558   test -f "$ac_file" || continue
2559   case $ac_file in
2560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2561         ;;
2562     conftest.$ac_ext )
2563         # This is the source file.
2564         ;;
2565     [ab].out )
2566         # We found the default executable, but exeext='' is most
2567         # certainly right.
2568         break;;
2569     *.* )
2570         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2571         # FIXME: I believe we export ac_cv_exeext for Libtool,
2572         # but it would be cool to find out if it's true.  Does anybody
2573         # maintain Libtool? --akim.
2574         export ac_cv_exeext
2575         break;;
2576     * )
2577         break;;
2578   esac
2579 done
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C compiler cannot create executables
2587 See \`config.log' for more details." >&2;}
2588    { (exit 77); exit 77; }; }
2589 fi
2590
2591 ac_exeext=$ac_cv_exeext
2592 echo "$as_me:$LINENO: result: $ac_file" >&5
2593 echo "${ECHO_T}$ac_file" >&6
2594
2595 # Check the compiler produces executables we can run.  If not, either
2596 # the compiler is broken, or we cross compile.
2597 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2598 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2599 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2600 # If not cross compiling, check that we can run a simple program.
2601 if test "$cross_compiling" != yes; then
2602   if { ac_try='./$ac_file'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608     cross_compiling=no
2609   else
2610     if test "$cross_compiling" = maybe; then
2611         cross_compiling=yes
2612     else
2613         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot run C compiled programs.
2617 If you meant to cross compile, use \`--host'.
2618 See \`config.log' for more details." >&2;}
2619    { (exit 1); exit 1; }; }
2620     fi
2621   fi
2622 fi
2623 echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625
2626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2627 ac_clean_files=$ac_clean_files_save
2628 # Check the compiler produces executables we can run.  If not, either
2629 # the compiler is broken, or we cross compile.
2630 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2632 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2633 echo "${ECHO_T}$cross_compiling" >&6
2634
2635 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638   (eval $ac_link) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; then
2642   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2644 # work properly (i.e., refer to `conftest.exe'), while it won't with
2645 # `rm'.
2646 for ac_file in conftest.exe conftest conftest.*; do
2647   test -f "$ac_file" || continue
2648   case $ac_file in
2649     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2650     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2651           export ac_cv_exeext
2652           break;;
2653     * ) break;;
2654   esac
2655 done
2656 else
2657   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&2;}
2661    { (exit 1); exit 1; }; }
2662 fi
2663
2664 rm -f conftest$ac_cv_exeext
2665 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666 echo "${ECHO_T}$ac_cv_exeext" >&6
2667
2668 rm -f conftest.$ac_ext
2669 EXEEXT=$ac_cv_exeext
2670 ac_exeext=$EXEEXT
2671 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2673 if test "${ac_cv_objext+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.o conftest.obj
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693   (eval $ac_compile) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }; then
2697   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2698   case $ac_file in
2699     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2700     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701        break;;
2702   esac
2703 done
2704 else
2705   echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&2;}
2712    { (exit 1); exit 1; }; }
2713 fi
2714
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2716 fi
2717 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718 echo "${ECHO_T}$ac_cv_objext" >&6
2719 OBJEXT=$ac_cv_objext
2720 ac_objext=$OBJEXT
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732
2733 int
2734 main ()
2735 {
2736 #ifndef __GNUC__
2737        choke me
2738 #endif
2739
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag"
2754                          || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_compiler_gnu=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ac_compiler_gnu=no
2772 fi
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775
2776 fi
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2782 CFLAGS="-g"
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794
2795 int
2796 main ()
2797 {
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>conftest.er1
2806   ac_status=$?
2807   grep -v '^ *+' conftest.er1 >conftest.err
2808   rm -f conftest.er1
2809   cat conftest.err >&5
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } &&
2812          { ac_try='test -z "$ac_c_werror_flag"
2813                          || test ! -s conftest.err'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; } &&
2819          { ac_try='test -s conftest.$ac_objext'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; }; then
2825   ac_cv_prog_cc_g=yes
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 ac_cv_prog_cc_g=no
2831 fi
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 fi
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2836 if test "$ac_test_CFLAGS" = set; then
2837   CFLAGS=$ac_save_CFLAGS
2838 elif test $ac_cv_prog_cc_g = yes; then
2839   if test "$GCC" = yes; then
2840     CFLAGS="-g -O2"
2841   else
2842     CFLAGS="-g"
2843   fi
2844 else
2845   if test "$GCC" = yes; then
2846     CFLAGS="-O2"
2847   else
2848     CFLAGS=
2849   fi
2850 fi
2851 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2852 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2853 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   ac_cv_prog_cc_stdc=no
2857 ac_save_CC=$CC
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h.  */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h.  */
2864 #include <stdarg.h>
2865 #include <stdio.h>
2866 #include <sys/types.h>
2867 #include <sys/stat.h>
2868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2869 struct buf { int x; };
2870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871 static char *e (p, i)
2872      char **p;
2873      int i;
2874 {
2875   return p[i];
2876 }
2877 static char *f (char * (*g) (char **, int), char **p, ...)
2878 {
2879   char *s;
2880   va_list v;
2881   va_start (v,p);
2882   s = g (p, va_arg (v,int));
2883   va_end (v);
2884   return s;
2885 }
2886
2887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2888    function prototypes and stuff, but not '\xHH' hex character constants.
2889    These don't provoke an error unfortunately, instead are silently treated
2890    as 'x'.  The following induces an error, until -std1 is added to get
2891    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2892    array size at least.  It's necessary to write '\x00'==0 to get something
2893    that's true only with -std1.  */
2894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2895
2896 int test (int i, double x);
2897 struct s1 {int (*f) (int a);};
2898 struct s2 {int (*f) (double a);};
2899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2900 int argc;
2901 char **argv;
2902 int
2903 main ()
2904 {
2905 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2906   ;
2907   return 0;
2908 }
2909 _ACEOF
2910 # Don't try gcc -ansi; that turns off useful extensions and
2911 # breaks some systems' header files.
2912 # AIX                   -qlanglvl=ansi
2913 # Ultrix and OSF/1      -std1
2914 # HP-UX 10.20 and later -Ae
2915 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2916 # SVR4                  -Xc -D__EXTENSIONS__
2917 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2918 do
2919   CC="$ac_save_CC $ac_arg"
2920   rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922   (eval $ac_compile) 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } &&
2929          { ac_try='test -z "$ac_c_werror_flag"
2930                          || test ! -s conftest.err'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; } &&
2936          { ac_try='test -s conftest.$ac_objext'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942   ac_cv_prog_cc_stdc=$ac_arg
2943 break
2944 else
2945   echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 fi
2949 rm -f conftest.err conftest.$ac_objext
2950 done
2951 rm -f conftest.$ac_ext conftest.$ac_objext
2952 CC=$ac_save_CC
2953
2954 fi
2955
2956 case "x$ac_cv_prog_cc_stdc" in
2957   x|xno)
2958     echo "$as_me:$LINENO: result: none needed" >&5
2959 echo "${ECHO_T}none needed" >&6 ;;
2960   *)
2961     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2962 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2963     CC="$CC $ac_cv_prog_cc_stdc" ;;
2964 esac
2965
2966 # Some people use a C++ compiler to compile C.  Since we use `exit',
2967 # in C++ we need to declare it.  In case someone uses the same compiler
2968 # for both compiling C and C++ we need to have the C++ compiler decide
2969 # the declaration of exit, since it's the most demanding environment.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #ifndef __cplusplus
2972   choke me
2973 #endif
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977   (eval $ac_compile) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } &&
2984          { ac_try='test -z "$ac_c_werror_flag"
2985                          || test ! -s conftest.err'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; } &&
2991          { ac_try='test -s conftest.$ac_objext'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; }; then
2997   for ac_declaration in \
2998    '' \
2999    'extern "C" void std::exit (int) throw (); using std::exit;' \
3000    'extern "C" void std::exit (int); using std::exit;' \
3001    'extern "C" void exit (int) throw ();' \
3002    'extern "C" void exit (int);' \
3003    'void exit (int);'
3004 do
3005   cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 $ac_declaration
3012 #include <stdlib.h>
3013 int
3014 main ()
3015 {
3016 exit (42);
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023   (eval $ac_compile) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } &&
3030          { ac_try='test -z "$ac_c_werror_flag"
3031                          || test ! -s conftest.err'
3032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033   (eval $ac_try) 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; }; then
3043   :
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 continue
3049 fi
3050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051   cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057 $ac_declaration
3058 int
3059 main ()
3060 {
3061 exit (42);
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068   (eval $ac_compile) 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } &&
3075          { ac_try='test -z "$ac_c_werror_flag"
3076                          || test ! -s conftest.err'
3077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078   (eval $ac_try) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; } &&
3082          { ac_try='test -s conftest.$ac_objext'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   break
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 fi
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095 done
3096 rm -f conftest*
3097 if test -n "$ac_declaration"; then
3098   echo '#ifdef __cplusplus' >>confdefs.h
3099   echo $ac_declaration      >>confdefs.h
3100   echo '#endif'             >>confdefs.h
3101 fi
3102
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 fi
3108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3109 ac_ext=c
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 DEPDIR="${am__leading_dot}deps"
3115
3116           ac_config_commands="$ac_config_commands depfiles"
3117
3118
3119 am_make=${MAKE-make}
3120 cat > confinc << 'END'
3121 am__doit:
3122         @echo done
3123 .PHONY: am__doit
3124 END
3125 # If we don't find an include directive, just comment out the code.
3126 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3127 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3128 am__include="#"
3129 am__quote=
3130 _am_result=none
3131 # First try GNU make style include.
3132 echo "include confinc" > confmf
3133 # We grep out `Entering directory' and `Leaving directory'
3134 # messages which can occur if `w' ends up in MAKEFLAGS.
3135 # In particular we don't look at `^make:' because GNU make might
3136 # be invoked under some other name (usually "gmake"), in which
3137 # case it prints its new name instead of `make'.
3138 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3139    am__include=include
3140    am__quote=
3141    _am_result=GNU
3142 fi
3143 # Now try BSD make style include.
3144 if test "$am__include" = "#"; then
3145    echo '.include "confinc"' > confmf
3146    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3147       am__include=.include
3148       am__quote="\""
3149       _am_result=BSD
3150    fi
3151 fi
3152
3153
3154 echo "$as_me:$LINENO: result: $_am_result" >&5
3155 echo "${ECHO_T}$_am_result" >&6
3156 rm -f confinc confmf
3157
3158 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3159 if test "${enable_dependency_tracking+set}" = set; then
3160   enableval="$enable_dependency_tracking"
3161
3162 fi;
3163 if test "x$enable_dependency_tracking" != xno; then
3164   am_depcomp="$ac_aux_dir/depcomp"
3165   AMDEPBACKSLASH='\'
3166 fi
3167
3168
3169 if test "x$enable_dependency_tracking" != xno; then
3170   AMDEP_TRUE=
3171   AMDEP_FALSE='#'
3172 else
3173   AMDEP_TRUE='#'
3174   AMDEP_FALSE=
3175 fi
3176
3177
3178
3179
3180 depcc="$CC"   am_compiler_list=
3181
3182 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3188   # We make a subdir and do the tests there.  Otherwise we can end up
3189   # making bogus files that we don't know about and never remove.  For
3190   # instance it was reported that on HP-UX the gcc test will end up
3191   # making a dummy file named `D' -- because `-MD' means `put the output
3192   # in D'.
3193   mkdir conftest.dir
3194   # Copy depcomp to subdir because otherwise we won't find it if we're
3195   # using a relative directory.
3196   cp "$am_depcomp" conftest.dir
3197   cd conftest.dir
3198   # We will build objects and dependencies in a subdirectory because
3199   # it helps to detect inapplicable dependency modes.  For instance
3200   # both Tru64's cc and ICC support -MD to output dependencies as a
3201   # side effect of compilation, but ICC will put the dependencies in
3202   # the current directory while Tru64 will put them in the object
3203   # directory.
3204   mkdir sub
3205
3206   am_cv_CC_dependencies_compiler_type=none
3207   if test "$am_compiler_list" = ""; then
3208      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3209   fi
3210   for depmode in $am_compiler_list; do
3211     # Setup a source with many dependencies, because some compilers
3212     # like to wrap large dependency lists on column 80 (with \), and
3213     # we should not choose a depcomp mode which is confused by this.
3214     #
3215     # We need to recreate these files for each test, as the compiler may
3216     # overwrite some of them when testing with obscure command lines.
3217     # This happens at least with the AIX C compiler.
3218     : > sub/conftest.c
3219     for i in 1 2 3 4 5 6; do
3220       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3221       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3222       # Solaris 8's {/usr,}/bin/sh.
3223       touch sub/conftst$i.h
3224     done
3225     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3226
3227     case $depmode in
3228     nosideeffect)
3229       # after this tag, mechanisms are not by side-effect, so they'll
3230       # only be used when explicitly requested
3231       if test "x$enable_dependency_tracking" = xyes; then
3232         continue
3233       else
3234         break
3235       fi
3236       ;;
3237     none) break ;;
3238     esac
3239     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3240     # mode.  It turns out that the SunPro C++ compiler does not properly
3241     # handle `-M -o', and we need to detect this.
3242     if depmode=$depmode \
3243        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3244        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3245        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3246          >/dev/null 2>conftest.err &&
3247        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3248        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3249        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3250       # icc doesn't choke on unknown options, it will just issue warnings
3251       # or remarks (even with -Werror).  So we grep stderr for any message
3252       # that says an option was ignored or not supported.
3253       # When given -MP, icc 7.0 and 7.1 complain thusly:
3254       #   icc: Command line warning: ignoring option '-M'; no argument required
3255       # The diagnosis changed in icc 8.0:
3256       #   icc: Command line remark: option '-MP' not supported
3257       if (grep 'ignoring option' conftest.err ||
3258           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3259         am_cv_CC_dependencies_compiler_type=$depmode
3260         break
3261       fi
3262     fi
3263   done
3264
3265   cd ..
3266   rm -rf conftest.dir
3267 else
3268   am_cv_CC_dependencies_compiler_type=none
3269 fi
3270
3271 fi
3272 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3273 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3275
3276
3277
3278 if
3279   test "x$enable_dependency_tracking" != xno \
3280   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3281   am__fastdepCC_TRUE=
3282   am__fastdepCC_FALSE='#'
3283 else
3284   am__fastdepCC_TRUE='#'
3285   am__fastdepCC_FALSE=
3286 fi
3287
3288
3289
3290
3291
3292
3293 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3294 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3295 # in both places for now and restore CFLAGS at the end of config.
3296 save_CFLAGS="$CFLAGS"
3297
3298 # Add -Wall -Werror if we are using GCC.
3299 if test "x$GCC" = "xyes"; then
3300   XCFLAGS="$XCFLAGS -Wall -Werror"
3301 fi
3302
3303 # Find other programs we need.
3304 if test -n "$ac_tool_prefix"; then
3305   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3306 set dummy ${ac_tool_prefix}ar; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_prog_AR+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312   if test -n "$AR"; then
3313   ac_cv_prog_AR="$AR" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318   IFS=$as_save_IFS
3319   test -z "$as_dir" && as_dir=.
3320   for ac_exec_ext in '' $ac_executable_extensions; do
3321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322     ac_cv_prog_AR="${ac_tool_prefix}ar"
3323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324     break 2
3325   fi
3326 done
3327 done
3328
3329 fi
3330 fi
3331 AR=$ac_cv_prog_AR
3332 if test -n "$AR"; then
3333   echo "$as_me:$LINENO: result: $AR" >&5
3334 echo "${ECHO_T}$AR" >&6
3335 else
3336   echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3338 fi
3339
3340 fi
3341 if test -z "$ac_cv_prog_AR"; then
3342   ac_ct_AR=$AR
3343   # Extract the first word of "ar", so it can be a program name with args.
3344 set dummy ar; ac_word=$2
3345 echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3347 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3348   echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350   if test -n "$ac_ct_AR"; then
3351   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358   for ac_exec_ext in '' $ac_executable_extensions; do
3359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360     ac_cv_prog_ac_ct_AR="ar"
3361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365 done
3366
3367 fi
3368 fi
3369 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3370 if test -n "$ac_ct_AR"; then
3371   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3372 echo "${ECHO_T}$ac_ct_AR" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378   AR=$ac_ct_AR
3379 else
3380   AR="$ac_cv_prog_AR"
3381 fi
3382
3383 if test -n "$ac_tool_prefix"; then
3384   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_prog_RANLIB+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   if test -n "$RANLIB"; then
3392   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397   IFS=$as_save_IFS
3398   test -z "$as_dir" && as_dir=.
3399   for ac_exec_ext in '' $ac_executable_extensions; do
3400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406 done
3407
3408 fi
3409 fi
3410 RANLIB=$ac_cv_prog_RANLIB
3411 if test -n "$RANLIB"; then
3412   echo "$as_me:$LINENO: result: $RANLIB" >&5
3413 echo "${ECHO_T}$RANLIB" >&6
3414 else
3415   echo "$as_me:$LINENO: result: no" >&5
3416 echo "${ECHO_T}no" >&6
3417 fi
3418
3419 fi
3420 if test -z "$ac_cv_prog_RANLIB"; then
3421   ac_ct_RANLIB=$RANLIB
3422   # Extract the first word of "ranlib", so it can be a program name with args.
3423 set dummy ranlib; ac_word=$2
3424 echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   if test -n "$ac_ct_RANLIB"; then
3430   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437   for ac_exec_ext in '' $ac_executable_extensions; do
3438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439     ac_cv_prog_ac_ct_RANLIB="ranlib"
3440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444 done
3445
3446   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3447 fi
3448 fi
3449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3450 if test -n "$ac_ct_RANLIB"; then
3451   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3452 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458   RANLIB=$ac_ct_RANLIB
3459 else
3460   RANLIB="$ac_cv_prog_RANLIB"
3461 fi
3462
3463 # Extract the first word of "perl", so it can be a program name with args.
3464 set dummy perl; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_PERL+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   case $PERL in
3471   [\\/]* | ?:[\\/]*)
3472   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3473   ;;
3474   *)
3475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480   for ac_exec_ext in '' $ac_executable_extensions; do
3481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487 done
3488
3489   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3490   ;;
3491 esac
3492 fi
3493 PERL=$ac_cv_path_PERL
3494
3495 if test -n "$PERL"; then
3496   echo "$as_me:$LINENO: result: $PERL" >&5
3497 echo "${ECHO_T}$PERL" >&6
3498 else
3499   echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 fi
3502
3503 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3504 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3505 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3506 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   cat >conftest.make <<\_ACEOF
3510 all:
3511         @echo 'ac_maketemp="$(MAKE)"'
3512 _ACEOF
3513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3514 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3515 if test -n "$ac_maketemp"; then
3516   eval ac_cv_prog_make_${ac_make}_set=yes
3517 else
3518   eval ac_cv_prog_make_${ac_make}_set=no
3519 fi
3520 rm -f conftest.make
3521 fi
3522 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3523   echo "$as_me:$LINENO: result: yes" >&5
3524 echo "${ECHO_T}yes" >&6
3525   SET_MAKE=
3526 else
3527   echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529   SET_MAKE="MAKE=${MAKE-make}"
3530 fi
3531
3532 # Find a good install program.  We prefer a C program (faster),
3533 # so one script is as good as another.  But avoid the broken or
3534 # incompatible versions:
3535 # SysV /etc/install, /usr/sbin/install
3536 # SunOS /usr/etc/install
3537 # IRIX /sbin/install
3538 # AIX /bin/install
3539 # AmigaOS /C/install, which installs bootblocks on floppy discs
3540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3543 # OS/2's system install, which has a completely different semantic
3544 # ./install, which can be erroneously created by make from ./install.sh.
3545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3547 if test -z "$INSTALL"; then
3548 if test "${ac_cv_path_install+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556   # Account for people who put trailing slashes in PATH elements.
3557 case $as_dir/ in
3558   ./ | .// | /cC/* | \
3559   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3561   /usr/ucb/* ) ;;
3562   *)
3563     # OSF1 and SCO ODT 3.0 have their own names for install.
3564     # Don't use installbsd from OSF since it installs stuff as root
3565     # by default.
3566     for ac_prog in ginstall scoinst install; do
3567       for ac_exec_ext in '' $ac_executable_extensions; do
3568         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3569           if test $ac_prog = install &&
3570             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571             # AIX install.  It has an incompatible calling convention.
3572             :
3573           elif test $ac_prog = install &&
3574             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575             # program-specific install script used by HP pwplus--don't use.
3576             :
3577           else
3578             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3579             break 3
3580           fi
3581         fi
3582       done
3583     done
3584     ;;
3585 esac
3586 done
3587
3588
3589 fi
3590   if test "${ac_cv_path_install+set}" = set; then
3591     INSTALL=$ac_cv_path_install
3592   else
3593     # As a last resort, use the slow shell script.  We don't cache a
3594     # path for INSTALL within a source directory, because that will
3595     # break other packages using the cache if that directory is
3596     # removed, or if the path is relative.
3597     INSTALL=$ac_install_sh
3598   fi
3599 fi
3600 echo "$as_me:$LINENO: result: $INSTALL" >&5
3601 echo "${ECHO_T}$INSTALL" >&6
3602
3603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3604 # It thinks the first close brace ends the variable substitution.
3605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3606
3607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3608
3609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3610
3611
3612 # See if makeinfo has been installed and is modern enough
3613 # that we can use it.
3614
3615   # Extract the first word of "makeinfo", so it can be a program name with args.
3616 set dummy makeinfo; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   if test -n "$MAKEINFO"; then
3623   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630   for ac_exec_ext in '' $ac_executable_extensions; do
3631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632     ac_cv_prog_MAKEINFO="makeinfo"
3633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637 done
3638
3639 fi
3640 fi
3641 MAKEINFO=$ac_cv_prog_MAKEINFO
3642 if test -n "$MAKEINFO"; then
3643   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3644 echo "${ECHO_T}$MAKEINFO" >&6
3645 else
3646   echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3648 fi
3649
3650   if test -n "$MAKEINFO"; then
3651     # Found it, now check the version.
3652     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3653 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3654 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3658                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3659
3660                     case $ac_prog_version in
3661                       '')  gcc_cv_prog_makeinfo_modern=no;;
3662                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3663                       *)   gcc_cv_prog_makeinfo_modern=no;;
3664                     esac
3665
3666 fi
3667 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3668 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3669   else
3670     gcc_cv_prog_makeinfo_modern=no
3671   fi
3672   if test $gcc_cv_prog_makeinfo_modern = no; then
3673     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3674   fi
3675
3676
3677
3678 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3679   BUILD_INFO_TRUE=
3680   BUILD_INFO_FALSE='#'
3681 else
3682   BUILD_INFO_TRUE='#'
3683   BUILD_INFO_FALSE=
3684 fi
3685
3686
3687
3688 # Configure libtool
3689
3690
3691 macro_version='2.1a'
3692 macro_revision='1.2435'
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705 ltmain="$ac_aux_dir/ltmain.sh"
3706
3707 # Set options
3708
3709 enable_dlopen=no
3710
3711
3712 enable_win32_dll=no
3713
3714
3715 # Check whether --enable-shared or --disable-shared was given.
3716 if test "${enable_shared+set}" = set; then
3717   enableval="$enable_shared"
3718   p=${PACKAGE-default}
3719     case $enableval in
3720     yes) enable_shared=yes ;;
3721     no) enable_shared=no ;;
3722     *)
3723       enable_shared=no
3724       # Look at the argument we got.  We use all the common list separators.
3725       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3726       for pkg in $enableval; do
3727         IFS="$lt_save_ifs"
3728         if test "X$pkg" = "X$p"; then
3729           enable_shared=yes
3730         fi
3731       done
3732       IFS="$lt_save_ifs"
3733       ;;
3734     esac
3735 else
3736   enable_shared=yes
3737 fi;
3738
3739
3740
3741
3742
3743
3744
3745
3746 # Check whether --enable-static or --disable-static was given.
3747 if test "${enable_static+set}" = set; then
3748   enableval="$enable_static"
3749   p=${PACKAGE-default}
3750     case $enableval in
3751     yes) enable_static=yes ;;
3752     no) enable_static=no ;;
3753     *)
3754      enable_static=no
3755       # Look at the argument we got.  We use all the common list separators.
3756       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3757       for pkg in $enableval; do
3758         IFS="$lt_save_ifs"
3759         if test "X$pkg" = "X$p"; then
3760           enable_static=yes
3761         fi
3762       done
3763       IFS="$lt_save_ifs"
3764       ;;
3765     esac
3766 else
3767   enable_static=yes
3768 fi;
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778 # Check whether --with-pic or --without-pic was given.
3779 if test "${with_pic+set}" = set; then
3780   withval="$with_pic"
3781   pic_mode="$withval"
3782 else
3783   pic_mode=default
3784 fi;
3785
3786 test -z "$pic_mode" && pic_mode=default
3787
3788
3789
3790
3791
3792
3793
3794 # Check whether --enable-fast-install or --disable-fast-install was given.
3795 if test "${enable_fast_install+set}" = set; then
3796   enableval="$enable_fast_install"
3797   p=${PACKAGE-default}
3798     case $enableval in
3799     yes) enable_fast_install=yes ;;
3800     no) enable_fast_install=no ;;
3801     *)
3802       enable_fast_install=no
3803       # Look at the argument we got.  We use all the common list separators.
3804       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3805       for pkg in $enableval; do
3806         IFS="$lt_save_ifs"
3807         if test "X$pkg" = "X$p"; then
3808           enable_fast_install=yes
3809         fi
3810       done
3811       IFS="$lt_save_ifs"
3812       ;;
3813     esac
3814 else
3815   enable_fast_install=yes
3816 fi;
3817
3818
3819
3820
3821
3822
3823
3824
3825 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3826 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3827 if test "${lt_cv_path_SED+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   # Loop through the user's path and test for sed and gsed.
3831 # Then use that list of sed's as ones to test for truncation.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   for lt_ac_prog in sed gsed; do
3838     for ac_exec_ext in '' $ac_executable_extensions; do
3839       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3840         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3841       fi
3842     done
3843   done
3844 done
3845 IFS=$as_save_IFS
3846 lt_ac_max=0
3847 lt_ac_count=0
3848 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3849 # along with /bin/sed that truncates output.
3850 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3851   test ! -f $lt_ac_sed && continue
3852   cat /dev/null > conftest.in
3853   lt_ac_count=0
3854   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3855   # Check for GNU sed and select it if it is found.
3856   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3857     lt_cv_path_SED=$lt_ac_sed
3858     break
3859   fi
3860   while true; do
3861     cat conftest.in conftest.in >conftest.tmp
3862     mv conftest.tmp conftest.in
3863     cp conftest.in conftest.nl
3864     echo >>conftest.nl
3865     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3866     cmp -s conftest.out conftest.nl || break
3867     # 10000 chars as input seems more than enough
3868     test $lt_ac_count -gt 10 && break
3869     lt_ac_count=`expr $lt_ac_count + 1`
3870     if test $lt_ac_count -gt $lt_ac_max; then
3871       lt_ac_max=$lt_ac_count
3872       lt_cv_path_SED=$lt_ac_sed
3873     fi
3874   done
3875 done
3876
3877 fi
3878
3879 SED=$lt_cv_path_SED
3880
3881 echo "$as_me:$LINENO: result: $SED" >&5
3882 echo "${ECHO_T}$SED" >&6
3883
3884 test -z "$SED" && SED=sed
3885 Xsed="$SED -e 1s/^X//"
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897 echo "$as_me:$LINENO: checking for egrep" >&5
3898 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3899 if test "${ac_cv_prog_egrep+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3903     then ac_cv_prog_egrep='grep -E'
3904     else ac_cv_prog_egrep='egrep'
3905     fi
3906 fi
3907 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3908 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3909  EGREP=$ac_cv_prog_egrep
3910
3911
3912 echo "$as_me:$LINENO: checking for fgrep" >&5
3913 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3914 if test "${ac_cv_prog_fgrep+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3918     then ac_cv_prog_fgrep='grep -F'
3919     else ac_cv_prog_fgrep='fgrep'
3920     fi
3921 fi
3922 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3923 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3924  FGREP=$ac_cv_prog_fgrep
3925
3926
3927 test -z "$GREP" && GREP=grep
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3948 if test "${with_gnu_ld+set}" = set; then
3949   withval="$with_gnu_ld"
3950   test "$withval" = no || with_gnu_ld=yes
3951 else
3952   with_gnu_ld=no
3953 fi;
3954 ac_prog=ld
3955 if test "$GCC" = yes; then
3956   # Check if gcc -print-prog-name=ld gives a path.
3957   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3958 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3959   case $host in
3960   *-*-mingw*)
3961     # gcc leaves a trailing carriage return which upsets mingw
3962     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3963   *)
3964     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3965   esac
3966   case $ac_prog in
3967     # Accept absolute paths.
3968     [\\/]* | ?:[\\/]*)
3969       re_direlt='/[^/][^/]*/\.\./'
3970       # Canonicalize the pathname of ld
3971       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3972       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3973         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3974       done
3975       test -z "$LD" && LD="$ac_prog"
3976       ;;
3977   "")
3978     # If it fails, then pretend we aren't using GCC.
3979     ac_prog=ld
3980     ;;
3981   *)
3982     # If it is relative, then search for the first ld in PATH.
3983     with_gnu_ld=unknown
3984     ;;
3985   esac
3986 elif test "$with_gnu_ld" = yes; then
3987   echo "$as_me:$LINENO: checking for GNU ld" >&5
3988 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3989 else
3990   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3991 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3992 fi
3993 if test "${lt_cv_path_LD+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if test -z "$LD"; then
3997   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3998   for ac_dir in $PATH; do
3999     IFS="$lt_save_ifs"
4000     test -z "$ac_dir" && ac_dir=.
4001     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4002       lt_cv_path_LD="$ac_dir/$ac_prog"
4003       # Check to see if the program is GNU ld.  I'd rather use --version,
4004       # but apparently some variants of GNU ld only accept -v.
4005       # Break only if it was the GNU/non-GNU ld that we prefer.
4006       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4007       *GNU* | *'with BFD'*)
4008         test "$with_gnu_ld" != no && break
4009         ;;
4010       *)
4011         test "$with_gnu_ld" != yes && break
4012         ;;
4013       esac
4014     fi
4015   done
4016   IFS="$lt_save_ifs"
4017 else
4018   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4019 fi
4020 fi
4021
4022 LD="$lt_cv_path_LD"
4023 if test -n "$LD"; then
4024   echo "$as_me:$LINENO: result: $LD" >&5
4025 echo "${ECHO_T}$LD" >&6
4026 else
4027   echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4029 fi
4030 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4031 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4032    { (exit 1); exit 1; }; }
4033 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4034 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4035 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4039 case `$LD -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041   lt_cv_prog_gnu_ld=yes
4042   ;;
4043 *)
4044   lt_cv_prog_gnu_ld=no
4045   ;;
4046 esac
4047 fi
4048 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4050 with_gnu_ld=$lt_cv_prog_gnu_ld
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4062 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4063 if test "${lt_cv_path_NM+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   if test -n "$NM"; then
4067   # Let the user override the test.
4068   lt_cv_path_NM="$NM"
4069 else
4070   lt_nm_to_check="${ac_tool_prefix}nm"
4071   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4072     lt_nm_to_check="$lt_nm_to_check nm"
4073   fi
4074   for lt_tmp_nm in $lt_nm_to_check; do
4075     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4076     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4077       IFS="$lt_save_ifs"
4078       test -z "$ac_dir" && ac_dir=.
4079       tmp_nm="$ac_dir/$lt_tmp_nm"
4080       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4081         # Check to see if the nm accepts a BSD-compat flag.
4082         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4083         #   nm: unknown option "B" ignored
4084         # Tru64's nm complains that /dev/null is an invalid object file
4085         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4086         */dev/null* | *'Invalid file or object type'*)
4087           lt_cv_path_NM="$tmp_nm -B"
4088           break
4089           ;;
4090         *)
4091           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4092           */dev/null*)
4093             lt_cv_path_NM="$tmp_nm -p"
4094             break
4095             ;;
4096           *)
4097             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4098             continue # so that we can try to find one that supports BSD flags
4099             ;;
4100           esac
4101           ;;
4102         esac
4103       fi
4104     done
4105     IFS="$lt_save_ifs"
4106   done
4107   : ${lt_cv_path_NM=no}
4108 fi
4109 fi
4110 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4111 echo "${ECHO_T}$lt_cv_path_NM" >&6
4112 if test "$lt_cv_path_NM" != "no"; then
4113   NM="$lt_cv_path_NM"
4114 else
4115   # Didn't find any BSD compatible name lister, look for dumpbin.
4116   if test -n "$ac_tool_prefix"; then
4117   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4118   do
4119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   if test -n "$DUMPBIN"; then
4127   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134   for ac_exec_ext in '' $ac_executable_extensions; do
4135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138     break 2
4139   fi
4140 done
4141 done
4142
4143 fi
4144 fi
4145 DUMPBIN=$ac_cv_prog_DUMPBIN
4146 if test -n "$DUMPBIN"; then
4147   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4148 echo "${ECHO_T}$DUMPBIN" >&6
4149 else
4150   echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 fi
4153
4154     test -n "$DUMPBIN" && break
4155   done
4156 fi
4157 if test -z "$DUMPBIN"; then
4158   ac_ct_DUMPBIN=$DUMPBIN
4159   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4160 do
4161   # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   if test -n "$ac_ct_DUMPBIN"; then
4169   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176   for ac_exec_ext in '' $ac_executable_extensions; do
4177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183 done
4184
4185 fi
4186 fi
4187 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4188 if test -n "$ac_ct_DUMPBIN"; then
4189   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4190 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4191 else
4192   echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196   test -n "$ac_ct_DUMPBIN" && break
4197 done
4198 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4199
4200   DUMPBIN=$ac_ct_DUMPBIN
4201 fi
4202
4203
4204   if test "$DUMPBIN" != ":"; then
4205     NM="$DUMPBIN"
4206   fi
4207 fi
4208 test -z "$NM" && NM=nm
4209
4210
4211
4212
4213
4214
4215 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4216 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4217 if test "${lt_cv_nm_interface+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   lt_cv_nm_interface="BSD nm"
4221   echo "int some_variable = 0;" > conftest.$ac_ext
4222   (eval echo "\"\$as_me:4222: $ac_compile\"" >&5)
4223   (eval "$ac_compile" 2>conftest.err)
4224   cat conftest.err >&5
4225   (eval echo "\"\$as_me:4225: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4226   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4227   cat conftest.err >&5
4228   (eval echo "\"\$as_me:4228: output\"" >&5)
4229   cat conftest.out >&5
4230   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4231     lt_cv_nm_interface="MS dumpbin"
4232   fi
4233   rm -f conftest*
4234 fi
4235 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4236 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4237
4238 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4239 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4240 LN_S=$as_ln_s
4241 if test "$LN_S" = "ln -s"; then
4242   echo "$as_me:$LINENO: result: yes" >&5
4243 echo "${ECHO_T}yes" >&6
4244 else
4245   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4246 echo "${ECHO_T}no, using $LN_S" >&6
4247 fi
4248
4249 # find the maximum length of command line arguments
4250 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4251 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4252 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255     i=0
4256   teststring="ABCD"
4257
4258   case $build_os in
4259   msdosdjgpp*)
4260     # On DJGPP, this test can blow up pretty badly due to problems in libc
4261     # (any single argument exceeding 2000 bytes causes a buffer overrun
4262     # during glob expansion).  Even if it were fixed, the result of this
4263     # check would be larger than it should be.
4264     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4265     ;;
4266
4267   gnu*)
4268     # Under GNU Hurd, this test is not required because there is
4269     # no limit to the length of command line arguments.
4270     # Libtool will interpret -1 as no limit whatsoever
4271     lt_cv_sys_max_cmd_len=-1;
4272     ;;
4273
4274   cygwin* | mingw*)
4275     # On Win9x/ME, this test blows up -- it succeeds, but takes
4276     # about 5 minutes as the teststring grows exponentially.
4277     # Worse, since 9x/ME are not pre-emptively multitasking,
4278     # you end up with a "frozen" computer, even though with patience
4279     # the test eventually succeeds (with a max line length of 256k).
4280     # Instead, let's just punt: use the minimum linelength reported by
4281     # all of the supported platforms: 8192 (on NT/2K/XP).
4282     lt_cv_sys_max_cmd_len=8192;
4283     ;;
4284
4285   amigaos*)
4286     # On AmigaOS with pdksh, this test takes hours, literally.
4287     # So we just punt and use a minimum line length of 8192.
4288     lt_cv_sys_max_cmd_len=8192;
4289     ;;
4290
4291   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4292     # This has been around since 386BSD, at least.  Likely further.
4293     if test -x /sbin/sysctl; then
4294       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4295     elif test -x /usr/sbin/sysctl; then
4296       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4297     else
4298       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4299     fi
4300     # And add a safety zone
4301     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4302     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4303     ;;
4304
4305   interix*)
4306     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4307     lt_cv_sys_max_cmd_len=196608
4308     ;;
4309
4310   osf*)
4311     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4312     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4313     # nice to cause kernel panics so lets avoid the loop below.
4314     # First set a reasonable default.
4315     lt_cv_sys_max_cmd_len=16384
4316     #
4317     if test -x /sbin/sysconfig; then
4318       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4319         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4320       esac
4321     fi
4322     ;;
4323   sco3.2v5*)
4324     lt_cv_sys_max_cmd_len=102400
4325     ;;
4326   sysv5* | sco5v6* | sysv4.2uw2*)
4327     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4328     if test -n "$kargmax"; then
4329       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4330     else
4331       lt_cv_sys_max_cmd_len=32768
4332     fi
4333     ;;
4334   *)
4335     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4336     if test -n $lt_cv_sys_max_cmd_len; then
4337       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4338       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4339     else
4340       # Make teststring a little bigger before we do anything with it.
4341       # a 1K string should be a reasonable start.
4342       for i in 1 2 3 4 5 6 7 8 ; do
4343         teststring=$teststring$teststring
4344       done
4345       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4346       # If test is not a shell built-in, we'll probably end up computing a
4347       # maximum length that is only half of the actual maximum length, but
4348       # we can't tell.
4349       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4350                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4351               test $i != 17 # 1/2 MB should be enough
4352       do
4353         i=`expr $i + 1`
4354         teststring=$teststring$teststring
4355       done
4356       # Only check the string length outside the loop.
4357       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4358       teststring=
4359       # Add a significant safety factor because C++ compilers can tack on
4360       # massive amounts of additional arguments before passing them to the
4361       # linker.  It appears as though 1/2 is a usable value.
4362       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4363     fi
4364     ;;
4365   esac
4366
4367 fi
4368
4369 if test -n $lt_cv_sys_max_cmd_len ; then
4370   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4371 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4372 else
4373   echo "$as_me:$LINENO: result: none" >&5
4374 echo "${ECHO_T}none" >&6
4375 fi
4376 max_cmd_len=$lt_cv_sys_max_cmd_len
4377
4378
4379
4380
4381
4382
4383
4384 : ${CP="cp -f"}
4385 : ${MV="mv -f"}
4386 : ${RM="rm -f"}
4387
4388 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4389 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4390 # Try some XSI features
4391 xsi_shell=no
4392 ( _lt_dummy="a/b/c"
4393   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4394       = c,a/b,, ) >/dev/null 2>&1 \
4395   && xsi_shell=yes
4396 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4397 echo "${ECHO_T}$xsi_shell" >&6
4398
4399
4400 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4401 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4402 lt_shell_append=no
4403 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4404     >/dev/null 2>&1 \
4405   && lt_shell_append=yes
4406 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4407 echo "${ECHO_T}$lt_shell_append" >&6
4408
4409
4410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4411   lt_unset=unset
4412 else
4413   lt_unset=false
4414 fi
4415
4416
4417
4418
4419
4420 # test EBCDIC or ASCII
4421 case `echo X|tr X '\101'` in
4422  A) # ASCII based system
4423     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4424   lt_SP2NL='tr \040 \012'
4425   lt_NL2SP='tr \015\012 \040\040'
4426   ;;
4427  *) # EBCDIC based system
4428   lt_SP2NL='tr \100 \n'
4429   lt_NL2SP='tr \r\n \100\100'
4430   ;;
4431 esac
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4442 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4443 if test "${lt_cv_ld_reload_flag+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   lt_cv_ld_reload_flag='-r'
4447 fi
4448 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4449 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4450 reload_flag=$lt_cv_ld_reload_flag
4451 case $reload_flag in
4452 "" | " "*) ;;
4453 *) reload_flag=" $reload_flag" ;;
4454 esac
4455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4456 case $host_os in
4457   darwin*)
4458     if test "$GCC" = yes; then
4459       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4460     else
4461       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4462     fi
4463     ;;
4464 esac
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4476 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4477 if test "${lt_cv_deplibs_check_method+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   lt_cv_file_magic_cmd='$MAGIC_CMD'
4481 lt_cv_file_magic_test_file=
4482 lt_cv_deplibs_check_method='unknown'
4483 # Need to set the preceding variable on all platforms that support
4484 # interlibrary dependencies.
4485 # 'none' -- dependencies not supported.
4486 # `unknown' -- same as none, but documents that we really don't know.
4487 # 'pass_all' -- all dependencies passed with no checks.
4488 # 'test_compile' -- check by making test program.
4489 # 'file_magic [[regex]]' -- check by looking for files in library path
4490 # which responds to the $file_magic_cmd with a given extended regex.
4491 # If you have `file' or equivalent on your system and you're not sure
4492 # whether `pass_all' will *always* work, you probably want this one.
4493
4494 case $host_os in
4495 aix[4-9]*)
4496   lt_cv_deplibs_check_method=pass_all
4497   ;;
4498
4499 beos*)
4500   lt_cv_deplibs_check_method=pass_all
4501   ;;
4502
4503 bsdi[45]*)
4504   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4505   lt_cv_file_magic_cmd='/usr/bin/file -L'
4506   lt_cv_file_magic_test_file=/shlib/libc.so
4507   ;;
4508
4509 cygwin*)
4510   # func_win32_libid is a shell function defined in ltmain.sh
4511   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4512   lt_cv_file_magic_cmd='func_win32_libid'
4513   ;;
4514
4515 mingw* | pw32*)
4516   # Base MSYS/MinGW do not provide the 'file' command needed by
4517   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4518   # unless we find 'file', for example because we are cross-compiling.
4519   if ( file / ) >/dev/null 2>&1; then
4520     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4521     lt_cv_file_magic_cmd='func_win32_libid'
4522   else
4523     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4524     lt_cv_file_magic_cmd='$OBJDUMP -f'
4525   fi
4526   ;;
4527
4528 darwin* | rhapsody*)
4529   lt_cv_deplibs_check_method=pass_all
4530   ;;
4531
4532 freebsd* | dragonfly*)
4533   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4534     case $host_cpu in
4535     i*86 )
4536       # Not sure whether the presence of OpenBSD here was a mistake.
4537       # Let's accept both of them until this is cleared up.
4538       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4539       lt_cv_file_magic_cmd=/usr/bin/file
4540       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4541       ;;
4542     esac
4543   else
4544     lt_cv_deplibs_check_method=pass_all
4545   fi
4546   ;;
4547
4548 gnu*)
4549   lt_cv_deplibs_check_method=pass_all
4550   ;;
4551
4552 hpux10.20* | hpux11*)
4553   lt_cv_file_magic_cmd=/usr/bin/file
4554   case $host_cpu in
4555   ia64*)
4556     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4557     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4558     ;;
4559   hppa*64*)
4560     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]'
4561     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4562     ;;
4563   *)
4564     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4565     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4566     ;;
4567   esac
4568   ;;
4569
4570 interix[3-9]*)
4571   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4572   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4573   ;;
4574
4575 irix5* | irix6* | nonstopux*)
4576   case $LD in
4577   *-32|*"-32 ") libmagic=32-bit;;
4578   *-n32|*"-n32 ") libmagic=N32;;
4579   *-64|*"-64 ") libmagic=64-bit;;
4580   *) libmagic=never-match;;
4581   esac
4582   lt_cv_deplibs_check_method=pass_all
4583   ;;
4584
4585 # This must be Linux ELF.
4586 linux* | k*bsd*-gnu)
4587   lt_cv_deplibs_check_method=pass_all
4588   ;;
4589
4590 netbsd*)
4591   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4593   else
4594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4595   fi
4596   ;;
4597
4598 newos6*)
4599   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4600   lt_cv_file_magic_cmd=/usr/bin/file
4601   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4602   ;;
4603
4604 *nto* | *qnx*)
4605   lt_cv_deplibs_check_method=pass_all
4606   ;;
4607
4608 openbsd*)
4609   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4610     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4611   else
4612     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4613   fi
4614   ;;
4615
4616 osf3* | osf4* | osf5*)
4617   lt_cv_deplibs_check_method=pass_all
4618   ;;
4619
4620 rdos*)
4621   lt_cv_deplibs_check_method=pass_all
4622   ;;
4623
4624 solaris*)
4625   lt_cv_deplibs_check_method=pass_all
4626   ;;
4627
4628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4629   lt_cv_deplibs_check_method=pass_all
4630   ;;
4631
4632 sysv4 | sysv4.3*)
4633   case $host_vendor in
4634   motorola)
4635     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]'
4636     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4637     ;;
4638   ncr)
4639     lt_cv_deplibs_check_method=pass_all
4640     ;;
4641   sequent)
4642     lt_cv_file_magic_cmd='/bin/file'
4643     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4644     ;;
4645   sni)
4646     lt_cv_file_magic_cmd='/bin/file'
4647     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4648     lt_cv_file_magic_test_file=/lib/libc.so
4649     ;;
4650   siemens)
4651     lt_cv_deplibs_check_method=pass_all
4652     ;;
4653   pc)
4654     lt_cv_deplibs_check_method=pass_all
4655     ;;
4656   esac
4657   ;;
4658
4659 tpf*)
4660   lt_cv_deplibs_check_method=pass_all
4661   ;;
4662 esac
4663
4664 fi
4665 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4666 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4667 file_magic_cmd=$lt_cv_file_magic_cmd
4668 deplibs_check_method=$lt_cv_deplibs_check_method
4669 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 if test -n "$ac_tool_prefix"; then
4683   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}ar; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_prog_AR+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   if test -n "$AR"; then
4691   ac_cv_prog_AR="$AR" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698   for ac_exec_ext in '' $ac_executable_extensions; do
4699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700     ac_cv_prog_AR="${ac_tool_prefix}ar"
4701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705 done
4706
4707 fi
4708 fi
4709 AR=$ac_cv_prog_AR
4710 if test -n "$AR"; then
4711   echo "$as_me:$LINENO: result: $AR" >&5
4712 echo "${ECHO_T}$AR" >&6
4713 else
4714   echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4716 fi
4717
4718 fi
4719 if test -z "$ac_cv_prog_AR"; then
4720   ac_ct_AR=$AR
4721   # Extract the first word of "ar", so it can be a program name with args.
4722 set dummy ar; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   if test -n "$ac_ct_AR"; then
4729   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738     ac_cv_prog_ac_ct_AR="ar"
4739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743 done
4744
4745   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4746 fi
4747 fi
4748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4749 if test -n "$ac_ct_AR"; then
4750   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4751 echo "${ECHO_T}$ac_ct_AR" >&6
4752 else
4753   echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6
4755 fi
4756
4757   AR=$ac_ct_AR
4758 else
4759   AR="$ac_cv_prog_AR"
4760 fi
4761
4762 test -z "$AR" && AR=ar
4763 test -z "$AR_FLAGS" && AR_FLAGS=cru
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 if test -n "$ac_tool_prefix"; then
4776   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4777 set dummy ${ac_tool_prefix}strip; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_STRIP+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   if test -n "$STRIP"; then
4784   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791   for ac_exec_ext in '' $ac_executable_extensions; do
4792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799
4800 fi
4801 fi
4802 STRIP=$ac_cv_prog_STRIP
4803 if test -n "$STRIP"; then
4804   echo "$as_me:$LINENO: result: $STRIP" >&5
4805 echo "${ECHO_T}$STRIP" >&6
4806 else
4807   echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4809 fi
4810
4811 fi
4812 if test -z "$ac_cv_prog_STRIP"; then
4813   ac_ct_STRIP=$STRIP
4814   # Extract the first word of "strip", so it can be a program name with args.
4815 set dummy strip; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   if test -n "$ac_ct_STRIP"; then
4822   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829   for ac_exec_ext in '' $ac_executable_extensions; do
4830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831     ac_cv_prog_ac_ct_STRIP="strip"
4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836 done
4837
4838   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4839 fi
4840 fi
4841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4842 if test -n "$ac_ct_STRIP"; then
4843   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4844 echo "${ECHO_T}$ac_ct_STRIP" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850   STRIP=$ac_ct_STRIP
4851 else
4852   STRIP="$ac_cv_prog_STRIP"
4853 fi
4854
4855 test -z "$STRIP" && STRIP=:
4856
4857
4858
4859
4860
4861
4862 if test -n "$ac_tool_prefix"; then
4863   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   if test -n "$RANLIB"; then
4871   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 fi
4888 fi
4889 RANLIB=$ac_cv_prog_RANLIB
4890 if test -n "$RANLIB"; then
4891   echo "$as_me:$LINENO: result: $RANLIB" >&5
4892 echo "${ECHO_T}$RANLIB" >&6
4893 else
4894   echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4896 fi
4897
4898 fi
4899 if test -z "$ac_cv_prog_RANLIB"; then
4900   ac_ct_RANLIB=$RANLIB
4901   # Extract the first word of "ranlib", so it can be a program name with args.
4902 set dummy ranlib; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   if test -n "$ac_ct_RANLIB"; then
4909   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918     ac_cv_prog_ac_ct_RANLIB="ranlib"
4919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923 done
4924
4925   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4926 fi
4927 fi
4928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4929 if test -n "$ac_ct_RANLIB"; then
4930   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4931 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937   RANLIB=$ac_ct_RANLIB
4938 else
4939   RANLIB="$ac_cv_prog_RANLIB"
4940 fi
4941
4942 test -z "$RANLIB" && RANLIB=:
4943
4944
4945
4946
4947
4948
4949 # Determine commands to create old-style static archives.
4950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4951 old_postinstall_cmds='chmod 644 $oldlib'
4952 old_postuninstall_cmds=
4953
4954 if test -n "$RANLIB"; then
4955   case $host_os in
4956   openbsd*)
4957     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4958     ;;
4959   *)
4960     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4961     ;;
4962   esac
4963   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4964 fi
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 # If no C compiler was specified, use CC.
5000 LTCC=${LTCC-"$CC"}
5001
5002 # If no C compiler flags were specified, use CFLAGS.
5003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5004
5005 # Allow CC to be a program name with arguments.
5006 compiler=$CC
5007
5008
5009 # Check for command to grab the raw symbol name followed by C symbol from nm.
5010 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5011 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5012 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015
5016 # These are sane defaults that work on at least a few old systems.
5017 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5018
5019 # Character class describing NM global symbol codes.
5020 symcode='[BCDEGRST]'
5021
5022 # Regexp to match symbols that can be accessed directly from C.
5023 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5024
5025 # Define system-specific variables.
5026 case $host_os in
5027 aix*)
5028   symcode='[BCDT]'
5029   ;;
5030 cygwin* | mingw* | pw32*)
5031   symcode='[ABCDGISTW]'
5032   ;;
5033 hpux*)
5034   if test "$host_cpu" = ia64; then
5035     symcode='[ABCDEGRST]'
5036   fi
5037   ;;
5038 irix* | nonstopux*)
5039   symcode='[BCDEGRST]'
5040   ;;
5041 osf*)
5042   symcode='[BCDEGQRST]'
5043   ;;
5044 solaris*)
5045   symcode='[BDRT]'
5046   ;;
5047 sco3.2v5*)
5048   symcode='[DT]'
5049   ;;
5050 sysv4.2uw2*)
5051   symcode='[DT]'
5052   ;;
5053 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5054   symcode='[ABDT]'
5055   ;;
5056 sysv4)
5057   symcode='[DFNSTU]'
5058   ;;
5059 esac
5060
5061 # If we're using GNU nm, then use its standard symbol codes.
5062 case `$NM -V 2>&1` in
5063 *GNU* | *'with BFD'*)
5064   symcode='[ABCDGIRSTW]' ;;
5065 esac
5066
5067 # Transform an extracted symbol line into a proper C declaration.
5068 # Some systems (esp. on ia64) link data and code symbols differently,
5069 # so use this general approach.
5070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5071
5072 # Transform an extracted symbol line into symbol name and symbol address
5073 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5074
5075 # Handle CRLF in mingw tool chain
5076 opt_cr=
5077 case $build_os in
5078 mingw*)
5079   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5080   ;;
5081 esac
5082
5083 # Try without a prefix underscore, then with it.
5084 for ac_symprfx in "" "_"; do
5085
5086   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5087   symxfrm="\\1 $ac_symprfx\\2 \\2"
5088
5089   # Write the raw and C identifiers.
5090   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5091     # Fake it for dumpbin and say T for any non-static function
5092     # and D for any global variable.
5093     # Also find C++ and __fastcall symbols from MSVC++,
5094     # which start with @ or ?.
5095     lt_cv_sys_global_symbol_pipe="$AWK '"\
5096 "     {last_section=section; section=\$ 3};"\
5097 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5098 "     \$ 0!~/External *\|/{next};"\
5099 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5100 "     {if(hide[section]) next};"\
5101 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5102 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5103 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5104 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5105 "     ' prfx=^$ac_symprfx"
5106   else
5107     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5108   fi
5109
5110   # Check to see that the pipe works correctly.
5111   pipe_works=no
5112
5113   rm -f conftest*
5114   cat > conftest.$ac_ext <<_LT_EOF
5115 #ifdef __cplusplus
5116 extern "C" {
5117 #endif
5118 char nm_test_var;
5119 void nm_test_func(void);
5120 void nm_test_func(void){}
5121 #ifdef __cplusplus
5122 }
5123 #endif
5124 int main(){nm_test_var='a';nm_test_func();return(0);}
5125 _LT_EOF
5126
5127   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128   (eval $ac_compile) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; then
5132     # Now try to grab the symbols.
5133     nlist=conftest.nm
5134     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5135   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } && test -s "$nlist"; then
5139       # Try sorting and uniquifying the output.
5140       if sort "$nlist" | uniq > "$nlist"T; then
5141         mv -f "$nlist"T "$nlist"
5142       else
5143         rm -f "$nlist"T
5144       fi
5145
5146       # Make sure that we snagged all the symbols we need.
5147       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5148         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5149           cat <<_LT_EOF > conftest.$ac_ext
5150 #ifdef __cplusplus
5151 extern "C" {
5152 #endif
5153
5154 _LT_EOF
5155           # Now generate the symbol file.
5156           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5157
5158           cat <<_LT_EOF >> conftest.$ac_ext
5159
5160 /* The mapping between symbol names and symbols.  */
5161 const struct {
5162   const char *name;
5163   void       *address;
5164 }
5165 lt__PROGRAM__LTX_preloaded_symbols[] =
5166 {
5167   { "@PROGRAM@", (void *) 0 },
5168 _LT_EOF
5169           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5170           cat <<\_LT_EOF >> conftest.$ac_ext
5171   {0, (void *) 0}
5172 };
5173
5174 /* This works around a problem in FreeBSD linker */
5175 #ifdef FREEBSD_WORKAROUND
5176 static const void *lt_preloaded_setup() {
5177   return lt__PROGRAM__LTX_preloaded_symbols;
5178 }
5179 #endif
5180
5181 #ifdef __cplusplus
5182 }
5183 #endif
5184 _LT_EOF
5185           # Now try linking the two files.
5186           mv conftest.$ac_objext conftstm.$ac_objext
5187           lt_save_LIBS="$LIBS"
5188           lt_save_CFLAGS="$CFLAGS"
5189           LIBS="conftstm.$ac_objext"
5190           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5191           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192   (eval $ac_link) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5196             pipe_works=yes
5197           fi
5198           LIBS="$lt_save_LIBS"
5199           CFLAGS="$lt_save_CFLAGS"
5200         else
5201           echo "cannot find nm_test_func in $nlist" >&5
5202         fi
5203       else
5204         echo "cannot find nm_test_var in $nlist" >&5
5205       fi
5206     else
5207       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5208     fi
5209   else
5210     echo "$progname: failed program was:" >&5
5211     cat conftest.$ac_ext >&5
5212   fi
5213   rm -f conftest* conftst*
5214
5215   # Do not use the global_symbol_pipe unless it works.
5216   if test "$pipe_works" = yes; then
5217     break
5218   else
5219     lt_cv_sys_global_symbol_pipe=
5220   fi
5221 done
5222
5223 fi
5224
5225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5226   lt_cv_sys_global_symbol_to_cdecl=
5227 fi
5228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5229   echo "$as_me:$LINENO: result: failed" >&5
5230 echo "${ECHO_T}failed" >&6
5231 else
5232   echo "$as_me:$LINENO: result: ok" >&5
5233 echo "${ECHO_T}ok" >&6
5234 fi
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5254 if test "${enable_libtool_lock+set}" = set; then
5255   enableval="$enable_libtool_lock"
5256
5257 fi;
5258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5259
5260 # Some flags need to be propagated to the compiler or linker for good
5261 # libtool support.
5262 case $host in
5263 ia64-*-hpux*)
5264   # Find out which ABI we are using.
5265   echo 'int i;' > conftest.$ac_ext
5266   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267   (eval $ac_compile) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }; then
5271     case `/usr/bin/file conftest.$ac_objext` in
5272       *ELF-32*)
5273         HPUX_IA64_MODE="32"
5274         ;;
5275       *ELF-64*)
5276         HPUX_IA64_MODE="64"
5277         ;;
5278     esac
5279   fi
5280   rm -rf conftest*
5281   ;;
5282 *-*-irix6*)
5283   # Find out which ABI we are using.
5284   echo '#line 5284 "configure"' > conftest.$ac_ext
5285   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286   (eval $ac_compile) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; then
5290     if test "$lt_cv_prog_gnu_ld" = yes; then
5291       case `/usr/bin/file conftest.$ac_objext` in
5292         *32-bit*)
5293           LD="${LD-ld} -melf32bsmip"
5294           ;;
5295         *N32*)
5296           LD="${LD-ld} -melf32bmipn32"
5297           ;;
5298         *64-bit*)
5299           LD="${LD-ld} -melf64bmip"
5300         ;;
5301       esac
5302     else
5303       case `/usr/bin/file conftest.$ac_objext` in
5304         *32-bit*)
5305           LD="${LD-ld} -32"
5306           ;;
5307         *N32*)
5308           LD="${LD-ld} -n32"
5309           ;;
5310         *64-bit*)
5311           LD="${LD-ld} -64"
5312           ;;
5313       esac
5314     fi
5315   fi
5316   rm -rf conftest*
5317   ;;
5318
5319 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5320 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5321   # Find out which ABI we are using.
5322   echo 'int i;' > conftest.$ac_ext
5323   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324   (eval $ac_compile) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }; then
5328     case `/usr/bin/file conftest.o` in
5329       *32-bit*)
5330         case $host in
5331           x86_64-*kfreebsd*-gnu)
5332             LD="${LD-ld} -m elf_i386_fbsd"
5333             ;;
5334           x86_64-*linux*)
5335             LD="${LD-ld} -m elf_i386"
5336             ;;
5337           ppc64-*linux*|powerpc64-*linux*)
5338             LD="${LD-ld} -m elf32ppclinux"
5339             ;;
5340           s390x-*linux*)
5341             LD="${LD-ld} -m elf_s390"
5342             ;;
5343           sparc64-*linux*)
5344             LD="${LD-ld} -m elf32_sparc"
5345             ;;
5346         esac
5347         ;;
5348       *64-bit*)
5349         case $host in
5350           x86_64-*kfreebsd*-gnu)
5351             LD="${LD-ld} -m elf_x86_64_fbsd"
5352             ;;
5353           x86_64-*linux*)
5354             LD="${LD-ld} -m elf_x86_64"
5355             ;;
5356           ppc*-*linux*|powerpc*-*linux*)
5357             LD="${LD-ld} -m elf64ppc"
5358             ;;
5359           s390*-*linux*|s390*-*tpf*)
5360             LD="${LD-ld} -m elf64_s390"
5361             ;;
5362           sparc*-*linux*)
5363             LD="${LD-ld} -m elf64_sparc"
5364             ;;
5365         esac
5366         ;;
5367     esac
5368   fi
5369   rm -rf conftest*
5370   ;;
5371
5372 *-*-sco3.2v5*)
5373   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5374   SAVE_CFLAGS="$CFLAGS"
5375   CFLAGS="$CFLAGS -belf"
5376   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5377 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5378 if test "${lt_cv_cc_needs_belf+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   ac_ext=c
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386
5387      cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h.  */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h.  */
5393
5394 int
5395 main ()
5396 {
5397
5398   ;
5399   return 0;
5400 }
5401 _ACEOF
5402 rm -f conftest.$ac_objext conftest$ac_exeext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5404   (eval $ac_link) 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
5408   cat conftest.err >&5
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); } &&
5411          { ac_try='test -z "$ac_c_werror_flag"
5412                          || test ! -s conftest.err'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; } &&
5418          { ac_try='test -s conftest$ac_exeext'
5419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420   (eval $ac_try) 2>&5
5421   ac_status=$?
5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); }; }; then
5424   lt_cv_cc_needs_belf=yes
5425 else
5426   echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429 lt_cv_cc_needs_belf=no
5430 fi
5431 rm -f conftest.err conftest.$ac_objext \
5432       conftest$ac_exeext conftest.$ac_ext
5433      ac_ext=c
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438
5439 fi
5440 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5441 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5442   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5443     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5444     CFLAGS="$SAVE_CFLAGS"
5445   fi
5446   ;;
5447 sparc*-*solaris*)
5448   # Find out which ABI we are using.
5449   echo 'int i;' > conftest.$ac_ext
5450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451   (eval $ac_compile) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); }; then
5455     case `/usr/bin/file conftest.o` in
5456     *64-bit*)
5457       case $lt_cv_prog_gnu_ld in
5458       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5459       *)    LD="${LD-ld} -64" ;;
5460       esac
5461       ;;
5462     esac
5463   fi
5464   rm -rf conftest*
5465   ;;
5466 esac
5467
5468 need_locks="$enable_libtool_lock"
5469
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5476 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5477 # On Suns, sometimes $CPP names a directory.
5478 if test -n "$CPP" && test -d "$CPP"; then
5479   CPP=
5480 fi
5481 if test -z "$CPP"; then
5482   if test "${ac_cv_prog_CPP+set}" = set; then
5483   echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485       # Double quotes because CPP needs to be expanded
5486     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5487     do
5488       ac_preproc_ok=false
5489 for ac_c_preproc_warn_flag in '' yes
5490 do
5491   # Use a header file that comes with gcc, so configuring glibc
5492   # with a fresh cross-compiler works.
5493   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5494   # <limits.h> exists even on freestanding compilers.
5495   # On the NeXT, cc -E runs the code through the compiler's parser,
5496   # not just through cpp. "Syntax error" is here to catch this case.
5497   cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5503 #ifdef __STDC__
5504 # include <limits.h>
5505 #else
5506 # include <assert.h>
5507 #endif
5508                      Syntax error
5509 _ACEOF
5510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5511   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5512   ac_status=$?
5513   grep -v '^ *+' conftest.er1 >conftest.err
5514   rm -f conftest.er1
5515   cat conftest.err >&5
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); } >/dev/null; then
5518   if test -s conftest.err; then
5519     ac_cpp_err=$ac_c_preproc_warn_flag
5520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5521   else
5522     ac_cpp_err=
5523   fi
5524 else
5525   ac_cpp_err=yes
5526 fi
5527 if test -z "$ac_cpp_err"; then
5528   :
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533   # Broken: fails on valid input.
5534 continue
5535 fi
5536 rm -f conftest.err conftest.$ac_ext
5537
5538   # OK, works on sane cases.  Now check whether non-existent headers
5539   # can be detected and how.
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 #include <ac_nonexistent.h>
5547 _ACEOF
5548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5550   ac_status=$?
5551   grep -v '^ *+' conftest.er1 >conftest.err
5552   rm -f conftest.er1
5553   cat conftest.err >&5
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } >/dev/null; then
5556   if test -s conftest.err; then
5557     ac_cpp_err=$ac_c_preproc_warn_flag
5558     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559   else
5560     ac_cpp_err=
5561   fi
5562 else
5563   ac_cpp_err=yes
5564 fi
5565 if test -z "$ac_cpp_err"; then
5566   # Broken: success on invalid input.
5567 continue
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572   # Passes both tests.
5573 ac_preproc_ok=:
5574 break
5575 fi
5576 rm -f conftest.err conftest.$ac_ext
5577
5578 done
5579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5580 rm -f conftest.err conftest.$ac_ext
5581 if $ac_preproc_ok; then
5582   break
5583 fi
5584
5585     done
5586     ac_cv_prog_CPP=$CPP
5587
5588 fi
5589   CPP=$ac_cv_prog_CPP
5590 else
5591   ac_cv_prog_CPP=$CPP
5592 fi
5593 echo "$as_me:$LINENO: result: $CPP" >&5
5594 echo "${ECHO_T}$CPP" >&6
5595 ac_preproc_ok=false
5596 for ac_c_preproc_warn_flag in '' yes
5597 do
5598   # Use a header file that comes with gcc, so configuring glibc
5599   # with a fresh cross-compiler works.
5600   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5601   # <limits.h> exists even on freestanding compilers.
5602   # On the NeXT, cc -E runs the code through the compiler's parser,
5603   # not just through cpp. "Syntax error" is here to catch this case.
5604   cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h.  */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h.  */
5610 #ifdef __STDC__
5611 # include <limits.h>
5612 #else
5613 # include <assert.h>
5614 #endif
5615                      Syntax error
5616 _ACEOF
5617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5619   ac_status=$?
5620   grep -v '^ *+' conftest.er1 >conftest.err
5621   rm -f conftest.er1
5622   cat conftest.err >&5
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } >/dev/null; then
5625   if test -s conftest.err; then
5626     ac_cpp_err=$ac_c_preproc_warn_flag
5627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5628   else
5629     ac_cpp_err=
5630   fi
5631 else
5632   ac_cpp_err=yes
5633 fi
5634 if test -z "$ac_cpp_err"; then
5635   :
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640   # Broken: fails on valid input.
5641 continue
5642 fi
5643 rm -f conftest.err conftest.$ac_ext
5644
5645   # OK, works on sane cases.  Now check whether non-existent headers
5646   # can be detected and how.
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5657   ac_status=$?
5658   grep -v '^ *+' conftest.er1 >conftest.err
5659   rm -f conftest.er1
5660   cat conftest.err >&5
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); } >/dev/null; then
5663   if test -s conftest.err; then
5664     ac_cpp_err=$ac_c_preproc_warn_flag
5665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5666   else
5667     ac_cpp_err=
5668   fi
5669 else
5670   ac_cpp_err=yes
5671 fi
5672 if test -z "$ac_cpp_err"; then
5673   # Broken: success on invalid input.
5674 continue
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679   # Passes both tests.
5680 ac_preproc_ok=:
5681 break
5682 fi
5683 rm -f conftest.err conftest.$ac_ext
5684
5685 done
5686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5687 rm -f conftest.err conftest.$ac_ext
5688 if $ac_preproc_ok; then
5689   :
5690 else
5691   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5692 See \`config.log' for more details." >&5
5693 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5694 See \`config.log' for more details." >&2;}
5695    { (exit 1); exit 1; }; }
5696 fi
5697
5698 ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704
5705 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5706 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5707 if test "${ac_cv_header_stdc+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716 #include <stdlib.h>
5717 #include <stdarg.h>
5718 #include <string.h>
5719 #include <float.h>
5720
5721 int
5722 main ()
5723 {
5724
5725   ;
5726   return 0;
5727 }
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731   (eval $ac_compile) 2>conftest.er1
5732   ac_status=$?
5733   grep -v '^ *+' conftest.er1 >conftest.err
5734   rm -f conftest.er1
5735   cat conftest.err >&5
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } &&
5738          { ac_try='test -z "$ac_c_werror_flag"
5739                          || test ! -s conftest.err'
5740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741   (eval $ac_try) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; } &&
5745          { ac_try='test -s conftest.$ac_objext'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }; then
5751   ac_cv_header_stdc=yes
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_cv_header_stdc=no
5757 fi
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759
5760 if test $ac_cv_header_stdc = yes; then
5761   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5762   cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h.  */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h.  */
5768 #include <string.h>
5769
5770 _ACEOF
5771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5772   $EGREP "memchr" >/dev/null 2>&1; then
5773   :
5774 else
5775   ac_cv_header_stdc=no
5776 fi
5777 rm -f conftest*
5778
5779 fi
5780
5781 if test $ac_cv_header_stdc = yes; then
5782   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5783   cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789 #include <stdlib.h>
5790
5791 _ACEOF
5792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5793   $EGREP "free" >/dev/null 2>&1; then
5794   :
5795 else
5796   ac_cv_header_stdc=no
5797 fi
5798 rm -f conftest*
5799
5800 fi
5801
5802 if test $ac_cv_header_stdc = yes; then
5803   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5804   if test "$cross_compiling" = yes; then
5805   :
5806 else
5807   cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813 #include <ctype.h>
5814 #if ((' ' & 0x0FF) == 0x020)
5815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5817 #else
5818 # define ISLOWER(c) \
5819                    (('a' <= (c) && (c) <= 'i') \
5820                      || ('j' <= (c) && (c) <= 'r') \
5821                      || ('s' <= (c) && (c) <= 'z'))
5822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5823 #endif
5824
5825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5826 int
5827 main ()
5828 {
5829   int i;
5830   for (i = 0; i < 256; i++)
5831     if (XOR (islower (i), ISLOWER (i))
5832         || toupper (i) != TOUPPER (i))
5833       exit(2);
5834   exit (0);
5835 }
5836 _ACEOF
5837 rm -f conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839   (eval $ac_link) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   :
5849 else
5850   echo "$as_me: program exited with status $ac_status" >&5
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ( exit $ac_status )
5855 ac_cv_header_stdc=no
5856 fi
5857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5858 fi
5859 fi
5860 fi
5861 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5862 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5863 if test $ac_cv_header_stdc = yes; then
5864
5865 cat >>confdefs.h <<\_ACEOF
5866 #define STDC_HEADERS 1
5867 _ACEOF
5868
5869 fi
5870
5871 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5882                   inttypes.h stdint.h unistd.h
5883 do
5884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885 echo "$as_me:$LINENO: checking for $ac_header" >&5
5886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 $ac_includes_default
5897
5898 #include <$ac_header>
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902   (eval $ac_compile) 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } &&
5909          { ac_try='test -z "$ac_c_werror_flag"
5910                          || test ! -s conftest.err'
5911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912   (eval $ac_try) 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; } &&
5916          { ac_try='test -s conftest.$ac_objext'
5917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918   (eval $ac_try) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; }; then
5922   eval "$as_ac_Header=yes"
5923 else
5924   echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 eval "$as_ac_Header=no"
5928 fi
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5930 fi
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5934   cat >>confdefs.h <<_ACEOF
5935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5936 _ACEOF
5937
5938 fi
5939
5940 done
5941
5942
5943
5944 for ac_header in dlfcn.h
5945 do
5946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 echo "$as_me:$LINENO: checking for $ac_header" >&5
5948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h.  */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h.  */
5958 $ac_includes_default
5959
5960 #include <$ac_header>
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964   (eval $ac_compile) 2>conftest.er1
5965   ac_status=$?
5966   grep -v '^ *+' conftest.er1 >conftest.err
5967   rm -f conftest.er1
5968   cat conftest.err >&5
5969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970   (exit $ac_status); } &&
5971          { ac_try='test -z "$ac_c_werror_flag"
5972                          || test ! -s conftest.err'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; } &&
5978          { ac_try='test -s conftest.$ac_objext'
5979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980   (eval $ac_try) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }; }; then
5984   eval "$as_ac_Header=yes"
5985 else
5986   echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 eval "$as_ac_Header=no"
5990 fi
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992 fi
5993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5996   cat >>confdefs.h <<_ACEOF
5997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5998 _ACEOF
5999
6000 fi
6001
6002 done
6003
6004
6005
6006 # This can be used to rebuild libtool when needed
6007 LIBTOOL_DEPS="$ltmain"
6008
6009 # Always use our own libtool.
6010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 test -z "$LN_S" && LN_S="ln -s"
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051 if test -n "${ZSH_VERSION+set}" ; then
6052    setopt NO_GLOB_SUBST
6053 fi
6054
6055 echo "$as_me:$LINENO: checking for objdir" >&5
6056 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6057 if test "${lt_cv_objdir+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   rm -f .libs 2>/dev/null
6061 mkdir .libs 2>/dev/null
6062 if test -d .libs; then
6063   lt_cv_objdir=.libs
6064 else
6065   # MS-DOS does not allow filenames that begin with a dot.
6066   lt_cv_objdir=_libs
6067 fi
6068 rmdir .libs 2>/dev/null
6069 fi
6070 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6071 echo "${ECHO_T}$lt_cv_objdir" >&6
6072 objdir=$lt_cv_objdir
6073
6074
6075
6076
6077
6078 cat >>confdefs.h <<_ACEOF
6079 #define LT_OBJDIR "$lt_cv_objdir/"
6080 _ACEOF
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 case $host_os in
6099 aix3*)
6100   # AIX sometimes has problems with the GCC collect2 program.  For some
6101   # reason, if we set the COLLECT_NAMES environment variable, the problems
6102   # vanish in a puff of smoke.
6103   if test "X${COLLECT_NAMES+set}" != Xset; then
6104     COLLECT_NAMES=
6105     export COLLECT_NAMES
6106   fi
6107   ;;
6108 esac
6109
6110 # Sed substitution that helps us do robust quoting.  It backslashifies
6111 # metacharacters that are still active within double-quoted strings.
6112 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6113
6114 # Same as above, but do not quote variable references.
6115 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6116
6117 # Sed substitution to delay expansion of an escaped shell variable in a
6118 # double_quote_subst'ed string.
6119 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6120
6121 # Sed substitution to delay expansion of an escaped single quote.
6122 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6123
6124 # Sed substitution to avoid accidental globbing in evaled expressions
6125 no_glob_subst='s/\*/\\\*/g'
6126
6127 # Global variables:
6128 ofile=libtool
6129 can_build_shared=yes
6130
6131 # All known linkers require a `.a' archive for static linking (except MSVC,
6132 # which needs '.lib').
6133 libext=a
6134
6135 with_gnu_ld="$lt_cv_prog_gnu_ld"
6136
6137 old_CC="$CC"
6138 old_CFLAGS="$CFLAGS"
6139
6140 # Set sane defaults for various variables
6141 test -z "$CC" && CC=cc
6142 test -z "$LTCC" && LTCC=$CC
6143 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6144 test -z "$LD" && LD=ld
6145 test -z "$ac_objext" && ac_objext=o
6146
6147 for cc_temp in $compiler""; do
6148   case $cc_temp in
6149     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6150     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6151     \-*) ;;
6152     *) break;;
6153   esac
6154 done
6155 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6156
6157
6158 # Only perform the check for file, if the check method requires it
6159 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6160 case $deplibs_check_method in
6161 file_magic*)
6162   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6163     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6164 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   case $MAGIC_CMD in
6169 [\\/*] |  ?:[\\/]*)
6170   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6171   ;;
6172 *)
6173   lt_save_MAGIC_CMD="$MAGIC_CMD"
6174   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176   for ac_dir in $ac_dummy; do
6177     IFS="$lt_save_ifs"
6178     test -z "$ac_dir" && ac_dir=.
6179     if test -f $ac_dir/${ac_tool_prefix}file; then
6180       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6181       if test -n "$file_magic_test_file"; then
6182         case $deplibs_check_method in
6183         "file_magic "*)
6184           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6185           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187             $EGREP "$file_magic_regex" > /dev/null; then
6188             :
6189           else
6190             cat <<_LT_EOF 1>&2
6191
6192 *** Warning: the command libtool uses to detect shared libraries,
6193 *** $file_magic_cmd, produces output that libtool cannot recognize.
6194 *** The result is that libtool may fail to recognize shared libraries
6195 *** as such.  This will affect the creation of libtool libraries that
6196 *** depend on shared libraries, but programs linked with such libtool
6197 *** libraries will work regardless of this problem.  Nevertheless, you
6198 *** may want to report the problem to your system manager and/or to
6199 *** bug-libtool@gnu.org
6200
6201 _LT_EOF
6202           fi ;;
6203         esac
6204       fi
6205       break
6206     fi
6207   done
6208   IFS="$lt_save_ifs"
6209   MAGIC_CMD="$lt_save_MAGIC_CMD"
6210   ;;
6211 esac
6212 fi
6213
6214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215 if test -n "$MAGIC_CMD"; then
6216   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217 echo "${ECHO_T}$MAGIC_CMD" >&6
6218 else
6219   echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6221 fi
6222
6223
6224
6225
6226
6227 if test -z "$lt_cv_path_MAGIC_CMD"; then
6228   if test -n "$ac_tool_prefix"; then
6229     echo "$as_me:$LINENO: checking for file" >&5
6230 echo $ECHO_N "checking for file... $ECHO_C" >&6
6231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   case $MAGIC_CMD in
6235 [\\/*] |  ?:[\\/]*)
6236   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6237   ;;
6238 *)
6239   lt_save_MAGIC_CMD="$MAGIC_CMD"
6240   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6241   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6242   for ac_dir in $ac_dummy; do
6243     IFS="$lt_save_ifs"
6244     test -z "$ac_dir" && ac_dir=.
6245     if test -f $ac_dir/file; then
6246       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6247       if test -n "$file_magic_test_file"; then
6248         case $deplibs_check_method in
6249         "file_magic "*)
6250           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6251           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6252           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6253             $EGREP "$file_magic_regex" > /dev/null; then
6254             :
6255           else
6256             cat <<_LT_EOF 1>&2
6257
6258 *** Warning: the command libtool uses to detect shared libraries,
6259 *** $file_magic_cmd, produces output that libtool cannot recognize.
6260 *** The result is that libtool may fail to recognize shared libraries
6261 *** as such.  This will affect the creation of libtool libraries that
6262 *** depend on shared libraries, but programs linked with such libtool
6263 *** libraries will work regardless of this problem.  Nevertheless, you
6264 *** may want to report the problem to your system manager and/or to
6265 *** bug-libtool@gnu.org
6266
6267 _LT_EOF
6268           fi ;;
6269         esac
6270       fi
6271       break
6272     fi
6273   done
6274   IFS="$lt_save_ifs"
6275   MAGIC_CMD="$lt_save_MAGIC_CMD"
6276   ;;
6277 esac
6278 fi
6279
6280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6281 if test -n "$MAGIC_CMD"; then
6282   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6283 echo "${ECHO_T}$MAGIC_CMD" >&6
6284 else
6285   echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6
6287 fi
6288
6289
6290   else
6291     MAGIC_CMD=:
6292   fi
6293 fi
6294
6295   fi
6296   ;;
6297 esac
6298
6299 # Use C for the default configuration in the libtool script
6300
6301 lt_save_CC="$CC"
6302 ac_ext=c
6303 ac_cpp='$CPP $CPPFLAGS'
6304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307
6308
6309 # Source file extension for C test sources.
6310 ac_ext=c
6311
6312 # Object file extension for compiled C test sources.
6313 objext=o
6314 objext=$objext
6315
6316 # Code to be used in simple compile tests
6317 lt_simple_compile_test_code="int some_variable = 0;"
6318
6319 # Code to be used in simple link tests
6320 lt_simple_link_test_code='int main(){return(0);}'
6321
6322
6323
6324
6325
6326
6327
6328 # If no C compiler was specified, use CC.
6329 LTCC=${LTCC-"$CC"}
6330
6331 # If no C compiler flags were specified, use CFLAGS.
6332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6333
6334 # Allow CC to be a program name with arguments.
6335 compiler=$CC
6336
6337 # Save the default compiler, since it gets overwritten when the other
6338 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6339 compiler_DEFAULT=$CC
6340
6341 # save warnings/boilerplate of simple test code
6342 ac_outfile=conftest.$ac_objext
6343 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6344 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6345 _lt_compiler_boilerplate=`cat conftest.err`
6346 $RM conftest*
6347
6348 ac_outfile=conftest.$ac_objext
6349 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6350 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6351 _lt_linker_boilerplate=`cat conftest.err`
6352 $RM conftest*
6353
6354
6355 ## CAVEAT EMPTOR:
6356 ## There is no encapsulation within the following macros, do not change
6357 ## the running order or otherwise move them around unless you know exactly
6358 ## what you are doing...
6359 if test -n "$compiler"; then
6360
6361 lt_prog_compiler_no_builtin_flag=
6362
6363 if test "$GCC" = yes; then
6364   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6365
6366   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6367 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6368 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   lt_cv_prog_compiler_rtti_exceptions=no
6372    ac_outfile=conftest.$ac_objext
6373    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6374    lt_compiler_flag="-fno-rtti -fno-exceptions"
6375    # Insert the option either (1) after the last *FLAGS variable, or
6376    # (2) before a word containing "conftest.", or (3) at the end.
6377    # Note that $ac_compile itself does not contain backslashes and begins
6378    # with a dollar sign (not a hyphen), so the echo should work correctly.
6379    # The option is referenced via a variable to avoid confusing sed.
6380    lt_compile=`echo "$ac_compile" | $SED \
6381    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6383    -e 's:$: $lt_compiler_flag:'`
6384    (eval echo "\"\$as_me:6384: $lt_compile\"" >&5)
6385    (eval "$lt_compile" 2>conftest.err)
6386    ac_status=$?
6387    cat conftest.err >&5
6388    echo "$as_me:6388: \$? = $ac_status" >&5
6389    if (exit $ac_status) && test -s "$ac_outfile"; then
6390      # The compiler can only warn and ignore the option if not recognized
6391      # So say no if there are warnings other than the usual output.
6392      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6393      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6394      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6395        lt_cv_prog_compiler_rtti_exceptions=yes
6396      fi
6397    fi
6398    $RM conftest*
6399
6400 fi
6401 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6402 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6403
6404 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6405     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6406 else
6407     :
6408 fi
6409
6410 fi
6411
6412
6413
6414
6415
6416
6417   lt_prog_compiler_wl=
6418 lt_prog_compiler_pic=
6419 lt_prog_compiler_static=
6420
6421 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6422 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6423
6424   if test "$GCC" = yes; then
6425     lt_prog_compiler_wl='-Wl,'
6426     lt_prog_compiler_static='-static'
6427
6428     case $host_os in
6429       aix*)
6430       # All AIX code is PIC.
6431       if test "$host_cpu" = ia64; then
6432         # AIX 5 now supports IA64 processor
6433         lt_prog_compiler_static='-Bstatic'
6434       fi
6435       ;;
6436
6437     amigaos*)
6438       if test "$host_cpu" = m68k; then
6439         # FIXME: we need at least 68020 code to build shared libraries, but
6440         # adding the `-m68020' flag to GCC prevents building anything better,
6441         # like `-m68040'.
6442         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6443       fi
6444       ;;
6445
6446     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6447       # PIC is the default for these OSes.
6448       ;;
6449
6450     mingw* | cygwin* | pw32* | os2*)
6451       # This hack is so that the source file can tell whether it is being
6452       # built for inclusion in a dll (and should export symbols for example).
6453       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6454       # (--disable-auto-import) libraries
6455       lt_prog_compiler_pic='-DDLL_EXPORT'
6456       ;;
6457
6458     darwin* | rhapsody*)
6459       # PIC is the default on this platform
6460       # Common symbols not allowed in MH_DYLIB files
6461       lt_prog_compiler_pic='-fno-common'
6462       ;;
6463
6464     hpux*)
6465       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6466       # not for PA HP-UX.
6467       case $host_cpu in
6468       hppa*64*|ia64*)
6469         # +Z the default
6470         ;;
6471       *)
6472         lt_prog_compiler_pic='-fPIC'
6473         ;;
6474       esac
6475       ;;
6476
6477     interix[3-9]*)
6478       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6479       # Instead, we relocate shared libraries at runtime.
6480       ;;
6481
6482     msdosdjgpp*)
6483       # Just because we use GCC doesn't mean we suddenly get shared libraries
6484       # on systems that don't support them.
6485       lt_prog_compiler_can_build_shared=no
6486       enable_shared=no
6487       ;;
6488
6489     *nto* | *qnx*)
6490       # QNX uses GNU C++, but need to define -shared option too, otherwise
6491       # it will coredump.
6492       lt_prog_compiler_pic='-fPIC -shared'
6493       ;;
6494
6495     sysv4*MP*)
6496       if test -d /usr/nec; then
6497         lt_prog_compiler_pic=-Kconform_pic
6498       fi
6499       ;;
6500
6501     *)
6502       lt_prog_compiler_pic='-fPIC'
6503       ;;
6504     esac
6505   else
6506     # PORTME Check for flag to pass linker flags through the system compiler.
6507     case $host_os in
6508     aix*)
6509       lt_prog_compiler_wl='-Wl,'
6510       if test "$host_cpu" = ia64; then
6511         # AIX 5 now supports IA64 processor
6512         lt_prog_compiler_static='-Bstatic'
6513       else
6514         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6515       fi
6516       ;;
6517     darwin*)
6518       # PIC is the default on this platform
6519       # Common symbols not allowed in MH_DYLIB files
6520       case $cc_basename in
6521       xlc*)
6522         lt_prog_compiler_pic='-qnocommon'
6523         lt_prog_compiler_wl='-Wl,'
6524         ;;
6525       esac
6526       ;;
6527
6528     mingw* | cygwin* | pw32* | os2*)
6529       # This hack is so that the source file can tell whether it is being
6530       # built for inclusion in a dll (and should export symbols for example).
6531       lt_prog_compiler_pic='-DDLL_EXPORT'
6532       ;;
6533
6534     hpux9* | hpux10* | hpux11*)
6535       lt_prog_compiler_wl='-Wl,'
6536       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6537       # not for PA HP-UX.
6538       case $host_cpu in
6539       hppa*64*|ia64*)
6540         # +Z the default
6541         ;;
6542       *)
6543         lt_prog_compiler_pic='+Z'
6544         ;;
6545       esac
6546       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6547       lt_prog_compiler_static='${wl}-a ${wl}archive'
6548       ;;
6549
6550     irix5* | irix6* | nonstopux*)
6551       lt_prog_compiler_wl='-Wl,'
6552       # PIC (with -KPIC) is the default.
6553       lt_prog_compiler_static='-non_shared'
6554       ;;
6555
6556     linux* | k*bsd*-gnu)
6557       case $cc_basename in
6558       icc* | ecc*)
6559         lt_prog_compiler_wl='-Wl,'
6560         lt_prog_compiler_pic='-KPIC'
6561         lt_prog_compiler_static='-static'
6562         ;;
6563       pgcc* | pgf77* | pgf90* | pgf95*)
6564         # Portland Group compilers (*not* the Pentium gcc compiler,
6565         # which looks to be a dead project)
6566         lt_prog_compiler_wl='-Wl,'
6567         lt_prog_compiler_pic='-fpic'
6568         lt_prog_compiler_static='-Bstatic'
6569         ;;
6570       ccc*)
6571         lt_prog_compiler_wl='-Wl,'
6572         # All Alpha code is PIC.
6573         lt_prog_compiler_static='-non_shared'
6574         ;;
6575       *)
6576         case `$CC -V 2>&1 | sed 5q` in
6577         *Sun\ C*)
6578           # Sun C 5.9
6579           lt_prog_compiler_pic='-KPIC'
6580           lt_prog_compiler_static='-Bstatic'
6581           lt_prog_compiler_wl='-Wl,'
6582           ;;
6583         *Sun\ F*)
6584           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6585           lt_prog_compiler_pic='-KPIC'
6586           lt_prog_compiler_static='-Bstatic'
6587           lt_prog_compiler_wl=''
6588           ;;
6589         esac
6590         ;;
6591       esac
6592       ;;
6593
6594     newsos6)
6595       lt_prog_compiler_pic='-KPIC'
6596       lt_prog_compiler_static='-Bstatic'
6597       ;;
6598
6599     *nto* | *qnx*)
6600       # QNX uses GNU C++, but need to define -shared option too, otherwise
6601       # it will coredump.
6602       lt_prog_compiler_pic='-fPIC -shared'
6603       ;;
6604
6605     osf3* | osf4* | osf5*)
6606       lt_prog_compiler_wl='-Wl,'
6607       # All OSF/1 code is PIC.
6608       lt_prog_compiler_static='-non_shared'
6609       ;;
6610
6611     rdos*)
6612       lt_prog_compiler_static='-non_shared'
6613       ;;
6614
6615     solaris*)
6616       lt_prog_compiler_pic='-KPIC'
6617       lt_prog_compiler_static='-Bstatic'
6618       case $cc_basename in
6619       f77* | f90* | f95*)
6620         lt_prog_compiler_wl='-Qoption ld ';;
6621       *)
6622         lt_prog_compiler_wl='-Wl,';;
6623       esac
6624       ;;
6625
6626     sunos4*)
6627       lt_prog_compiler_wl='-Qoption ld '
6628       lt_prog_compiler_pic='-PIC'
6629       lt_prog_compiler_static='-Bstatic'
6630       ;;
6631
6632     sysv4 | sysv4.2uw2* | sysv4.3*)
6633       lt_prog_compiler_wl='-Wl,'
6634       lt_prog_compiler_pic='-KPIC'
6635       lt_prog_compiler_static='-Bstatic'
6636       ;;
6637
6638     sysv4*MP*)
6639       if test -d /usr/nec ;then
6640         lt_prog_compiler_pic='-Kconform_pic'
6641         lt_prog_compiler_static='-Bstatic'
6642       fi
6643       ;;
6644
6645     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6646       lt_prog_compiler_wl='-Wl,'
6647       lt_prog_compiler_pic='-KPIC'
6648       lt_prog_compiler_static='-Bstatic'
6649       ;;
6650
6651     unicos*)
6652       lt_prog_compiler_wl='-Wl,'
6653       lt_prog_compiler_can_build_shared=no
6654       ;;
6655
6656     uts4*)
6657       lt_prog_compiler_pic='-pic'
6658       lt_prog_compiler_static='-Bstatic'
6659       ;;
6660
6661     *)
6662       lt_prog_compiler_can_build_shared=no
6663       ;;
6664     esac
6665   fi
6666
6667 case $host_os in
6668   # For platforms which do not support PIC, -DPIC is meaningless:
6669   *djgpp*)
6670     lt_prog_compiler_pic=
6671     ;;
6672   *)
6673     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6674     ;;
6675 esac
6676 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6677 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6678
6679
6680
6681
6682
6683
6684 #
6685 # Check to make sure the PIC flag actually works.
6686 #
6687 if test -n "$lt_prog_compiler_pic"; then
6688   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6690 if test "${lt_prog_compiler_pic_works+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   lt_prog_compiler_pic_works=no
6694    ac_outfile=conftest.$ac_objext
6695    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6696    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6697    # Insert the option either (1) after the last *FLAGS variable, or
6698    # (2) before a word containing "conftest.", or (3) at the end.
6699    # Note that $ac_compile itself does not contain backslashes and begins
6700    # with a dollar sign (not a hyphen), so the echo should work correctly.
6701    # The option is referenced via a variable to avoid confusing sed.
6702    lt_compile=`echo "$ac_compile" | $SED \
6703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6705    -e 's:$: $lt_compiler_flag:'`
6706    (eval echo "\"\$as_me:6706: $lt_compile\"" >&5)
6707    (eval "$lt_compile" 2>conftest.err)
6708    ac_status=$?
6709    cat conftest.err >&5
6710    echo "$as_me:6710: \$? = $ac_status" >&5
6711    if (exit $ac_status) && test -s "$ac_outfile"; then
6712      # The compiler can only warn and ignore the option if not recognized
6713      # So say no if there are warnings other than the usual output.
6714      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6715      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6716      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6717        lt_prog_compiler_pic_works=yes
6718      fi
6719    fi
6720    $RM conftest*
6721
6722 fi
6723 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6724 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6725
6726 if test x"$lt_prog_compiler_pic_works" = xyes; then
6727     case $lt_prog_compiler_pic in
6728      "" | " "*) ;;
6729      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6730      esac
6731 else
6732     lt_prog_compiler_pic=
6733      lt_prog_compiler_can_build_shared=no
6734 fi
6735
6736 fi
6737
6738
6739
6740
6741
6742
6743 #
6744 # Check to make sure the static flag actually works.
6745 #
6746 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6747 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6749 if test "${lt_prog_compiler_static_works+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   lt_prog_compiler_static_works=no
6753    save_LDFLAGS="$LDFLAGS"
6754    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6755    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6756    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6757      # The linker can only warn and ignore the option if not recognized
6758      # So say no if there are warnings
6759      if test -s conftest.err; then
6760        # Append any errors to the config.log.
6761        cat conftest.err 1>&5
6762        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6763        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6764        if diff conftest.exp conftest.er2 >/dev/null; then
6765          lt_prog_compiler_static_works=yes
6766        fi
6767      else
6768        lt_prog_compiler_static_works=yes
6769      fi
6770    fi
6771    $RM conftest*
6772    LDFLAGS="$save_LDFLAGS"
6773
6774 fi
6775 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6776 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6777
6778 if test x"$lt_prog_compiler_static_works" = xyes; then
6779     :
6780 else
6781     lt_prog_compiler_static=
6782 fi
6783
6784
6785
6786
6787
6788
6789
6790   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   lt_cv_prog_compiler_c_o=no
6796    $RM -r conftest 2>/dev/null
6797    mkdir conftest
6798    cd conftest
6799    mkdir out
6800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6801
6802    lt_compiler_flag="-o out/conftest2.$ac_objext"
6803    # Insert the option either (1) after the last *FLAGS variable, or
6804    # (2) before a word containing "conftest.", or (3) at the end.
6805    # Note that $ac_compile itself does not contain backslashes and begins
6806    # with a dollar sign (not a hyphen), so the echo should work correctly.
6807    lt_compile=`echo "$ac_compile" | $SED \
6808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6810    -e 's:$: $lt_compiler_flag:'`
6811    (eval echo "\"\$as_me:6811: $lt_compile\"" >&5)
6812    (eval "$lt_compile" 2>out/conftest.err)
6813    ac_status=$?
6814    cat out/conftest.err >&5
6815    echo "$as_me:6815: \$? = $ac_status" >&5
6816    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6817    then
6818      # The compiler can only warn and ignore the option if not recognized
6819      # So say no if there are warnings
6820      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6821      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6822      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6823        lt_cv_prog_compiler_c_o=yes
6824      fi
6825    fi
6826    chmod u+w . 2>&5
6827    $RM conftest*
6828    # SGI C++ compiler will create directory out/ii_files/ for
6829    # template instantiation
6830    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6831    $RM out/* && rmdir out
6832    cd ..
6833    $RM -r conftest
6834    $RM conftest*
6835
6836 fi
6837 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6839
6840
6841
6842
6843
6844
6845   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6846 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   lt_cv_prog_compiler_c_o=no
6851    $RM -r conftest 2>/dev/null
6852    mkdir conftest
6853    cd conftest
6854    mkdir out
6855    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6856
6857    lt_compiler_flag="-o out/conftest2.$ac_objext"
6858    # Insert the option either (1) after the last *FLAGS variable, or
6859    # (2) before a word containing "conftest.", or (3) at the end.
6860    # Note that $ac_compile itself does not contain backslashes and begins
6861    # with a dollar sign (not a hyphen), so the echo should work correctly.
6862    lt_compile=`echo "$ac_compile" | $SED \
6863    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6865    -e 's:$: $lt_compiler_flag:'`
6866    (eval echo "\"\$as_me:6866: $lt_compile\"" >&5)
6867    (eval "$lt_compile" 2>out/conftest.err)
6868    ac_status=$?
6869    cat out/conftest.err >&5
6870    echo "$as_me:6870: \$? = $ac_status" >&5
6871    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6872    then
6873      # The compiler can only warn and ignore the option if not recognized
6874      # So say no if there are warnings
6875      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6876      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6877      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6878        lt_cv_prog_compiler_c_o=yes
6879      fi
6880    fi
6881    chmod u+w . 2>&5
6882    $RM conftest*
6883    # SGI C++ compiler will create directory out/ii_files/ for
6884    # template instantiation
6885    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6886    $RM out/* && rmdir out
6887    cd ..
6888    $RM -r conftest
6889    $RM conftest*
6890
6891 fi
6892 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6893 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6894
6895
6896
6897
6898 hard_links="nottested"
6899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6900   # do not overwrite the value of need_locks provided by the user
6901   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6903   hard_links=yes
6904   $RM conftest*
6905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6906   touch conftest.a
6907   ln conftest.a conftest.b 2>&5 || hard_links=no
6908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6909   echo "$as_me:$LINENO: result: $hard_links" >&5
6910 echo "${ECHO_T}$hard_links" >&6
6911   if test "$hard_links" = no; then
6912     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6914     need_locks=warn
6915   fi
6916 else
6917   need_locks=no
6918 fi
6919
6920
6921
6922
6923
6924
6925   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6927
6928   runpath_var=
6929   allow_undefined_flag=
6930   always_export_symbols=no
6931   archive_cmds=
6932   archive_expsym_cmds=
6933   compiler_needs_object=no
6934   enable_shared_with_static_runtimes=no
6935   export_dynamic_flag_spec=
6936   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6937   hardcode_automatic=no
6938   hardcode_direct=no
6939   hardcode_direct_absolute=no
6940   hardcode_libdir_flag_spec=
6941   hardcode_libdir_flag_spec_ld=
6942   hardcode_libdir_separator=
6943   hardcode_minus_L=no
6944   hardcode_shlibpath_var=unsupported
6945   inherit_rpath=no
6946   link_all_deplibs=unknown
6947   module_cmds=
6948   module_expsym_cmds=
6949   old_archive_from_new_cmds=
6950   old_archive_from_expsyms_cmds=
6951   thread_safe_flag_spec=
6952   whole_archive_flag_spec=
6953   # include_expsyms should be a list of space-separated symbols to be *always*
6954   # included in the symbol list
6955   include_expsyms=
6956   # exclude_expsyms can be an extended regexp of symbols to exclude
6957   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6958   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6959   # as well as any symbol that contains `d'.
6960   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6961   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6962   # platforms (ab)use it in PIC code, but their linkers get confused if
6963   # the symbol is explicitly referenced.  Since portable code cannot
6964   # rely on this symbol name, it's probably fine to never include it in
6965   # preloaded symbol tables.
6966   extract_expsyms_cmds=
6967
6968   case $host_os in
6969   cygwin* | mingw* | pw32*)
6970     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6971     # When not using gcc, we currently assume that we are using
6972     # Microsoft Visual C++.
6973     if test "$GCC" != yes; then
6974       with_gnu_ld=no
6975     fi
6976     ;;
6977   interix*)
6978     # we just hope/assume this is gcc and not c89 (= MSVC++)
6979     with_gnu_ld=yes
6980     ;;
6981   openbsd*)
6982     with_gnu_ld=no
6983     ;;
6984   esac
6985
6986   ld_shlibs=yes
6987   if test "$with_gnu_ld" = yes; then
6988     # If archive_cmds runs LD, not CC, wlarc should be empty
6989     wlarc='${wl}'
6990
6991     # Set some defaults for GNU ld with shared library support. These
6992     # are reset later if shared libraries are not supported. Putting them
6993     # here allows them to be overridden if necessary.
6994     runpath_var=LD_RUN_PATH
6995     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6996     export_dynamic_flag_spec='${wl}--export-dynamic'
6997     # ancient GNU ld didn't support --whole-archive et. al.
6998     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6999       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7000     else
7001       whole_archive_flag_spec=
7002     fi
7003     supports_anon_versioning=no
7004     case `$LD -v 2>&1` in
7005       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7006       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7007       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7008       *\ 2.11.*) ;; # other 2.11 versions
7009       *) supports_anon_versioning=yes ;;
7010     esac
7011
7012     # See if GNU ld supports shared libraries.
7013     case $host_os in
7014     aix[3-9]*)
7015       # On AIX/PPC, the GNU linker is very broken
7016       if test "$host_cpu" != ia64; then
7017         ld_shlibs=no
7018         cat <<_LT_EOF 1>&2
7019
7020 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7021 *** to be unable to reliably create shared libraries on AIX.
7022 *** Therefore, libtool is disabling shared libraries support.  If you
7023 *** really care for shared libraries, you may want to modify your PATH
7024 *** so that a non-GNU linker is found, and then restart.
7025
7026 _LT_EOF
7027       fi
7028       ;;
7029
7030     amigaos*)
7031       if test "$host_cpu" = m68k; then
7032         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)'
7033         hardcode_libdir_flag_spec='-L$libdir'
7034         hardcode_minus_L=yes
7035       fi
7036
7037       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7038       # that the semantics of dynamic libraries on AmigaOS, at least up
7039       # to version 4, is to share data among multiple programs linked
7040       # with the same dynamic library.  Since this doesn't match the
7041       # behavior of shared libraries on other platforms, we can't use
7042       # them.
7043       ld_shlibs=no
7044       ;;
7045
7046     beos*)
7047       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7048         allow_undefined_flag=unsupported
7049         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7050         # support --undefined.  This deserves some investigation.  FIXME
7051         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7052       else
7053         ld_shlibs=no
7054       fi
7055       ;;
7056
7057     cygwin* | mingw* | pw32*)
7058       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7059       # as there is no search path for DLLs.
7060       hardcode_libdir_flag_spec='-L$libdir'
7061       allow_undefined_flag=unsupported
7062       always_export_symbols=no
7063       enable_shared_with_static_runtimes=yes
7064       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7065
7066       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7067         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7068         # If the export-symbols file already is a .def file (1st line
7069         # is EXPORTS), use it as is; otherwise, prepend...
7070         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7071           cp $export_symbols $output_objdir/$soname.def;
7072         else
7073           echo EXPORTS > $output_objdir/$soname.def;
7074           cat $export_symbols >> $output_objdir/$soname.def;
7075         fi~
7076         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7077       else
7078         ld_shlibs=no
7079       fi
7080       ;;
7081
7082     interix[3-9]*)
7083       hardcode_direct=no
7084       hardcode_shlibpath_var=no
7085       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7086       export_dynamic_flag_spec='${wl}-E'
7087       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7088       # Instead, shared libraries are loaded at an image base (0x10000000 by
7089       # default) and relocated if they conflict, which is a slow very memory
7090       # consuming and fragmenting process.  To avoid this, we pick a random,
7091       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7092       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7093       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7094       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'
7095       ;;
7096
7097     gnu* | linux* | tpf* | k*bsd*-gnu)
7098       tmp_diet=no
7099       if test "$host_os" = linux-dietlibc; then
7100         case $cc_basename in
7101           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7102         esac
7103       fi
7104       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7105          && test "$tmp_diet" = no
7106       then
7107         tmp_addflag=
7108         case $cc_basename,$host_cpu in
7109         pgcc*)                          # Portland Group C compiler
7110           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'
7111           tmp_addflag=' $pic_flag'
7112           ;;
7113         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7114           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'
7115           tmp_addflag=' $pic_flag -Mnomain' ;;
7116         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7117           tmp_addflag=' -i_dynamic' ;;
7118         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7119           tmp_addflag=' -i_dynamic -nofor_main' ;;
7120         ifc* | ifort*)                  # Intel Fortran compiler
7121           tmp_addflag=' -nofor_main' ;;
7122         esac
7123         case `$CC -V 2>&1 | sed 5q` in
7124         *Sun\ C*)                       # Sun C 5.9
7125           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'
7126           compiler_needs_object=yes
7127           tmp_sharedflag='-G' ;;
7128         *Sun\ F*)                       # Sun Fortran 8.3
7129           tmp_sharedflag='-G' ;;
7130         *)
7131           tmp_sharedflag='-shared' ;;
7132         esac
7133         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7134
7135         if test "x$supports_anon_versioning" = xyes; then
7136           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7137             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7138             echo "local: *; };" >> $output_objdir/$libname.ver~
7139             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7140         fi
7141       else
7142         ld_shlibs=no
7143       fi
7144       ;;
7145
7146     netbsd*)
7147       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7148         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7149         wlarc=
7150       else
7151         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7152         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7153       fi
7154       ;;
7155
7156     solaris*)
7157       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7158         ld_shlibs=no
7159         cat <<_LT_EOF 1>&2
7160
7161 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7162 *** create shared libraries on Solaris systems.  Therefore, libtool
7163 *** is disabling shared libraries support.  We urge you to upgrade GNU
7164 *** binutils to release 2.9.1 or newer.  Another option is to modify
7165 *** your PATH or compiler configuration so that the native linker is
7166 *** used, and then restart.
7167
7168 _LT_EOF
7169       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7170         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7171         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7172       else
7173         ld_shlibs=no
7174       fi
7175       ;;
7176
7177     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7178       case `$LD -v 2>&1` in
7179         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7180         ld_shlibs=no
7181         cat <<_LT_EOF 1>&2
7182
7183 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7184 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7185 *** is disabling shared libraries support.  We urge you to upgrade GNU
7186 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7187 *** your PATH or compiler configuration so that the native linker is
7188 *** used, and then restart.
7189
7190 _LT_EOF
7191         ;;
7192         *)
7193           # For security reasons, it is highly recommended that you always
7194           # use absolute paths for naming shared libraries, and exclude the
7195           # DT_RUNPATH tag from executables and libraries.  But doing so
7196           # requires that you compile everything twice, which is a pain.
7197           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7198             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7200             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7201           else
7202             ld_shlibs=no
7203           fi
7204         ;;
7205       esac
7206       ;;
7207
7208     sunos4*)
7209       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7210       wlarc=
7211       hardcode_direct=yes
7212       hardcode_shlibpath_var=no
7213       ;;
7214
7215     *)
7216       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7218         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7219       else
7220         ld_shlibs=no
7221       fi
7222       ;;
7223     esac
7224
7225     if test "$ld_shlibs" = no; then
7226       runpath_var=
7227       hardcode_libdir_flag_spec=
7228       export_dynamic_flag_spec=
7229       whole_archive_flag_spec=
7230     fi
7231   else
7232     # PORTME fill in a description of your system's linker (not GNU ld)
7233     case $host_os in
7234     aix3*)
7235       allow_undefined_flag=unsupported
7236       always_export_symbols=yes
7237       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'
7238       # Note: this linker hardcodes the directories in LIBPATH if there
7239       # are no directories specified by -L.
7240       hardcode_minus_L=yes
7241       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7242         # Neither direct hardcoding nor static linking is supported with a
7243         # broken collect2.
7244         hardcode_direct=unsupported
7245       fi
7246       ;;
7247
7248     aix[4-9]*)
7249       if test "$host_cpu" = ia64; then
7250         # On IA64, the linker does run time linking by default, so we don't
7251         # have to do anything special.
7252         aix_use_runtimelinking=no
7253         exp_sym_flag='-Bexport'
7254         no_entry_flag=""
7255       else
7256         # If we're using GNU nm, then we don't want the "-C" option.
7257         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7258         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7259           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'
7260         else
7261           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'
7262         fi
7263         aix_use_runtimelinking=no
7264
7265         # Test if we are trying to use run time linking or normal
7266         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7267         # need to do runtime linking.
7268         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7269           for ld_flag in $LDFLAGS; do
7270           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7271             aix_use_runtimelinking=yes
7272             break
7273           fi
7274           done
7275           ;;
7276         esac
7277
7278         exp_sym_flag='-bexport'
7279         no_entry_flag='-bnoentry'
7280       fi
7281
7282       # When large executables or shared objects are built, AIX ld can
7283       # have problems creating the table of contents.  If linking a library
7284       # or program results in "error TOC overflow" add -mminimal-toc to
7285       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7286       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7287
7288       archive_cmds=''
7289       hardcode_direct=yes
7290       hardcode_direct_absolute=yes
7291       hardcode_libdir_separator=':'
7292       link_all_deplibs=yes
7293       file_list_spec='${wl}-f,'
7294
7295       if test "$GCC" = yes; then
7296         case $host_os in aix4.[012]|aix4.[012].*)
7297         # We only want to do this on AIX 4.2 and lower, the check
7298         # below for broken collect2 doesn't work under 4.3+
7299           collect2name=`${CC} -print-prog-name=collect2`
7300           if test -f "$collect2name" &&
7301            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7302           then
7303           # We have reworked collect2
7304           :
7305           else
7306           # We have old collect2
7307           hardcode_direct=unsupported
7308           # It fails to find uninstalled libraries when the uninstalled
7309           # path is not listed in the libpath.  Setting hardcode_minus_L
7310           # to unsupported forces relinking
7311           hardcode_minus_L=yes
7312           hardcode_libdir_flag_spec='-L$libdir'
7313           hardcode_libdir_separator=
7314           fi
7315           ;;
7316         esac
7317         shared_flag='-shared'
7318         if test "$aix_use_runtimelinking" = yes; then
7319           shared_flag="$shared_flag "'${wl}-G'
7320         fi
7321       else
7322         # not using gcc
7323         if test "$host_cpu" = ia64; then
7324         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7325         # chokes on -Wl,-G. The following line is correct:
7326           shared_flag='-G'
7327         else
7328           if test "$aix_use_runtimelinking" = yes; then
7329             shared_flag='${wl}-G'
7330           else
7331             shared_flag='${wl}-bM:SRE'
7332           fi
7333         fi
7334       fi
7335
7336       # It seems that -bexpall does not export symbols beginning with
7337       # underscore (_), so it is better to generate a list of symbols to export.
7338       always_export_symbols=yes
7339       if test "$aix_use_runtimelinking" = yes; then
7340         # Warning - without using the other runtime loading flags (-brtl),
7341         # -berok will link without error, but may produce a broken library.
7342         allow_undefined_flag='-berok'
7343         # Determine the default libpath from the value encoded in an
7344         # empty executable.
7345         cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h.  */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h.  */
7351
7352 int
7353 main ()
7354 {
7355
7356   ;
7357   return 0;
7358 }
7359 _ACEOF
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362   (eval $ac_link) 2>conftest.er1
7363   ac_status=$?
7364   grep -v '^ *+' conftest.er1 >conftest.err
7365   rm -f conftest.er1
7366   cat conftest.err >&5
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); } &&
7369          { ac_try='test -z "$ac_c_werror_flag"
7370                          || test ! -s conftest.err'
7371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372   (eval $ac_try) 2>&5
7373   ac_status=$?
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); }; } &&
7376          { ac_try='test -s conftest$ac_exeext'
7377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378   (eval $ac_try) 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); }; }; then
7382
7383 lt_aix_libpath_sed='
7384     /Import File Strings/,/^$/ {
7385         /^0/ {
7386             s/^0  *\(.*\)$/\1/
7387             p
7388         }
7389     }'
7390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7391 # Check for a 64-bit object if we didn't find anything.
7392 if test -z "$aix_libpath"; then
7393   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7394 fi
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 fi
7400 rm -f conftest.err conftest.$ac_objext \
7401       conftest$ac_exeext conftest.$ac_ext
7402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7403
7404         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7405         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"
7406       else
7407         if test "$host_cpu" = ia64; then
7408           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7409           allow_undefined_flag="-z nodefs"
7410           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"
7411         else
7412          # Determine the default libpath from the value encoded in an
7413          # empty executable.
7414          cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420
7421 int
7422 main ()
7423 {
7424
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext conftest$ac_exeext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431   (eval $ac_link) 2>conftest.er1
7432   ac_status=$?
7433   grep -v '^ *+' conftest.er1 >conftest.err
7434   rm -f conftest.er1
7435   cat conftest.err >&5
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); } &&
7438          { ac_try='test -z "$ac_c_werror_flag"
7439                          || test ! -s conftest.err'
7440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441   (eval $ac_try) 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); }; } &&
7445          { ac_try='test -s conftest$ac_exeext'
7446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447   (eval $ac_try) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); }; }; then
7451
7452 lt_aix_libpath_sed='
7453     /Import File Strings/,/^$/ {
7454         /^0/ {
7455             s/^0  *\(.*\)$/\1/
7456             p
7457         }
7458     }'
7459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7460 # Check for a 64-bit object if we didn't find anything.
7461 if test -z "$aix_libpath"; then
7462   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7463 fi
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 fi
7469 rm -f conftest.err conftest.$ac_objext \
7470       conftest$ac_exeext conftest.$ac_ext
7471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7472
7473          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7474           # Warning - without using the other run time loading flags,
7475           # -berok will link without error, but may produce a broken library.
7476           no_undefined_flag=' ${wl}-bernotok'
7477           allow_undefined_flag=' ${wl}-berok'
7478           # Exported symbols can be pulled into shared objects from archives
7479           whole_archive_flag_spec='$convenience'
7480           archive_cmds_need_lc=yes
7481           # This is similar to how AIX traditionally builds its shared libraries.
7482           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'
7483         fi
7484       fi
7485       ;;
7486
7487     amigaos*)
7488       if test "$host_cpu" = m68k; then
7489         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)'
7490         hardcode_libdir_flag_spec='-L$libdir'
7491         hardcode_minus_L=yes
7492       fi
7493       # see comment about different semantics on the GNU ld section
7494       ld_shlibs=no
7495       ;;
7496
7497     bsdi[45]*)
7498       export_dynamic_flag_spec=-rdynamic
7499       ;;
7500
7501     cygwin* | mingw* | pw32*)
7502       # When not using gcc, we currently assume that we are using
7503       # Microsoft Visual C++.
7504       # hardcode_libdir_flag_spec is actually meaningless, as there is
7505       # no search path for DLLs.
7506       hardcode_libdir_flag_spec=' '
7507       allow_undefined_flag=unsupported
7508       # Tell ltmain to make .lib files, not .a files.
7509       libext=lib
7510       # Tell ltmain to make .dll files, not .so files.
7511       shrext_cmds=".dll"
7512       # FIXME: Setting linknames here is a bad hack.
7513       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7514       # The linker will automatically build a .lib file if we build a DLL.
7515       old_archive_from_new_cmds='true'
7516       # FIXME: Should let the user specify the lib program.
7517       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7518       fix_srcfile_path='`cygpath -w "$srcfile"`'
7519       enable_shared_with_static_runtimes=yes
7520       ;;
7521
7522     darwin* | rhapsody*)
7523       case $host_os in
7524       rhapsody* | darwin1.[012])
7525         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7526         ;;
7527       *) # Darwin 1.3 on
7528         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7529         10.[012])
7530           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7531           ;;
7532         10.*)
7533           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7534           ;;
7535         esac
7536         ;;
7537       esac
7538       archive_cmds_need_lc=no
7539       hardcode_direct=no
7540       hardcode_automatic=yes
7541       hardcode_shlibpath_var=unsupported
7542       whole_archive_flag_spec=''
7543       link_all_deplibs=yes
7544       if test "$GCC" = yes ; then
7545         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   lt_cv_apple_cc_single_mod=no
7549         if test -z "${LT_MULTI_MODULE}"; then
7550           # By default we will add the -single_module flag. You can override
7551           # by either setting the environment variable LT_MULTI_MODULE
7552           # non-empty at configure time, or by adding -multi-module to the
7553           # link flags.
7554           echo "int foo(void){return 1;}" > conftest.c
7555           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7556               -dynamiclib ${wl}-single_module conftest.c
7557           if test -f libconftest.dylib; then
7558               lt_cv_apple_cc_single_mod=yes
7559               rm libconftest.dylib
7560           fi
7561           rm conftest.$ac_ext
7562         fi
7563 fi
7564
7565         output_verbose_link_cmd=echo
7566         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7567           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7568           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}'
7569         else
7570           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7571           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}'
7572         fi
7573         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7574         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}'
7575       else
7576         case $cc_basename in
7577         xlc*)
7578           output_verbose_link_cmd=echo
7579           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7580           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7581           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7582           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}'
7583           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}'
7584           ;;
7585         *)
7586           ld_shlibs=no
7587           ;;
7588         esac
7589       fi
7590       ;;
7591
7592     dgux*)
7593       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594       hardcode_libdir_flag_spec='-L$libdir'
7595       hardcode_shlibpath_var=no
7596       ;;
7597
7598     freebsd1*)
7599       ld_shlibs=no
7600       ;;
7601
7602     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7603     # support.  Future versions do this automatically, but an explicit c++rt0.o
7604     # does not break anything, and helps significantly (at the cost of a little
7605     # extra space).
7606     freebsd2.2*)
7607       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7608       hardcode_libdir_flag_spec='-R$libdir'
7609       hardcode_direct=yes
7610       hardcode_shlibpath_var=no
7611       ;;
7612
7613     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7614     freebsd2*)
7615       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7616       hardcode_direct=yes
7617       hardcode_minus_L=yes
7618       hardcode_shlibpath_var=no
7619       ;;
7620
7621     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7622     freebsd* | dragonfly*)
7623       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7624       hardcode_libdir_flag_spec='-R$libdir'
7625       hardcode_direct=yes
7626       hardcode_shlibpath_var=no
7627       ;;
7628
7629     hpux9*)
7630       if test "$GCC" = yes; then
7631         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'
7632       else
7633         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'
7634       fi
7635       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7636       hardcode_libdir_separator=:
7637       hardcode_direct=yes
7638
7639       # hardcode_minus_L: Not really in the search PATH,
7640       # but as the default location of the library.
7641       hardcode_minus_L=yes
7642       export_dynamic_flag_spec='${wl}-E'
7643       ;;
7644
7645     hpux10*)
7646       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7647         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7648       else
7649         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7650       fi
7651       if test "$with_gnu_ld" = no; then
7652         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7653         hardcode_libdir_flag_spec_ld='+b $libdir'
7654         hardcode_libdir_separator=:
7655         hardcode_direct=yes
7656         hardcode_direct_absolute=yes
7657         export_dynamic_flag_spec='${wl}-E'
7658         # hardcode_minus_L: Not really in the search PATH,
7659         # but as the default location of the library.
7660         hardcode_minus_L=yes
7661       fi
7662       ;;
7663
7664     hpux11*)
7665       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7666         case $host_cpu in
7667         hppa*64*)
7668           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7669           ;;
7670         ia64*)
7671           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7672           ;;
7673         *)
7674           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7675           ;;
7676         esac
7677       else
7678         case $host_cpu in
7679         hppa*64*)
7680           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7681           ;;
7682         ia64*)
7683           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7684           ;;
7685         *)
7686           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7687           ;;
7688         esac
7689       fi
7690       if test "$with_gnu_ld" = no; then
7691         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7692         hardcode_libdir_separator=:
7693
7694         case $host_cpu in
7695         hppa*64*|ia64*)
7696           hardcode_direct=no
7697           hardcode_shlibpath_var=no
7698           ;;
7699         *)
7700           hardcode_direct=yes
7701           hardcode_direct_absolute=yes
7702           export_dynamic_flag_spec='${wl}-E'
7703
7704           # hardcode_minus_L: Not really in the search PATH,
7705           # but as the default location of the library.
7706           hardcode_minus_L=yes
7707           ;;
7708         esac
7709       fi
7710       ;;
7711
7712     irix5* | irix6* | nonstopux*)
7713       if test "$GCC" = yes; then
7714         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'
7715         # Try to use the -exported_symbol ld option, if it does not
7716         # work, assume that -exports_file does not work either and
7717         # implicitly export all symbols.
7718         save_LDFLAGS="$LDFLAGS"
7719         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7720         cat >conftest.$ac_ext <<_ACEOF
7721 int foo(void) {}
7722 _ACEOF
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725   (eval $ac_link) 2>conftest.er1
7726   ac_status=$?
7727   grep -v '^ *+' conftest.er1 >conftest.err
7728   rm -f conftest.er1
7729   cat conftest.err >&5
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); } &&
7732          { ac_try='test -z "$ac_c_werror_flag"
7733                          || test ! -s conftest.err'
7734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735   (eval $ac_try) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); }; } &&
7739          { ac_try='test -s conftest$ac_exeext'
7740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741   (eval $ac_try) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; }; then
7745   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'
7746
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 fi
7752 rm -f conftest.err conftest.$ac_objext \
7753       conftest$ac_exeext conftest.$ac_ext
7754         LDFLAGS="$save_LDFLAGS"
7755       else
7756         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'
7757         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'
7758       fi
7759       archive_cmds_need_lc='no'
7760       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7761       hardcode_libdir_separator=:
7762       inherit_rpath=yes
7763       link_all_deplibs=yes
7764       ;;
7765
7766     netbsd*)
7767       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7768         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7769       else
7770         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7771       fi
7772       hardcode_libdir_flag_spec='-R$libdir'
7773       hardcode_direct=yes
7774       hardcode_shlibpath_var=no
7775       ;;
7776
7777     newsos6)
7778       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7779       hardcode_direct=yes
7780       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7781       hardcode_libdir_separator=:
7782       hardcode_shlibpath_var=no
7783       ;;
7784
7785     *nto* | *qnx*)
7786       ;;
7787
7788     openbsd*)
7789       hardcode_direct=yes
7790       hardcode_shlibpath_var=no
7791       hardcode_direct_absolute=yes
7792       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7793         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7794         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7795         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7796         export_dynamic_flag_spec='${wl}-E'
7797       else
7798         case $host_os in
7799         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7800           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7801           hardcode_libdir_flag_spec='-R$libdir'
7802           ;;
7803         *)
7804           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7805           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7806           ;;
7807         esac
7808       fi
7809       ;;
7810
7811     os2*)
7812       hardcode_libdir_flag_spec='-L$libdir'
7813       hardcode_minus_L=yes
7814       allow_undefined_flag=unsupported
7815       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'
7816       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7817       ;;
7818
7819     osf3*)
7820       if test "$GCC" = yes; then
7821         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7822         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'
7823       else
7824         allow_undefined_flag=' -expect_unresolved \*'
7825         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'
7826       fi
7827       archive_cmds_need_lc='no'
7828       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7829       hardcode_libdir_separator=:
7830       ;;
7831
7832     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7833       if test "$GCC" = yes; then
7834         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7835         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'
7836         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7837       else
7838         allow_undefined_flag=' -expect_unresolved \*'
7839         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'
7840         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~
7841         $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'
7842
7843         # Both c and cxx compiler support -rpath directly
7844         hardcode_libdir_flag_spec='-rpath $libdir'
7845       fi
7846       archive_cmds_need_lc='no'
7847       hardcode_libdir_separator=:
7848       ;;
7849
7850     solaris*)
7851       no_undefined_flag=' -z defs'
7852       if test "$GCC" = yes; then
7853         wlarc='${wl}'
7854         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7855         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7856           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7857       else
7858         case `$CC -V 2>&1` in
7859         *"Compilers 5.0"*)
7860           wlarc=''
7861           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7862           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7863           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7864           ;;
7865         *)
7866           wlarc='${wl}'
7867           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7868           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7869           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7870           ;;
7871         esac
7872       fi
7873       hardcode_libdir_flag_spec='-R$libdir'
7874       hardcode_shlibpath_var=no
7875       case $host_os in
7876       solaris2.[0-5] | solaris2.[0-5].*) ;;
7877       *)
7878         # The compiler driver will combine and reorder linker options,
7879         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7880         # but is careful enough not to reorder.
7881         # Supported since Solaris 2.6 (maybe 2.5.1?)
7882         if test "$GCC" = yes; then
7883           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7884         else
7885           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7886         fi
7887         ;;
7888       esac
7889       link_all_deplibs=yes
7890       ;;
7891
7892     sunos4*)
7893       if test "x$host_vendor" = xsequent; then
7894         # Use $CC to link under sequent, because it throws in some extra .o
7895         # files that make .init and .fini sections work.
7896         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7897       else
7898         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7899       fi
7900       hardcode_libdir_flag_spec='-L$libdir'
7901       hardcode_direct=yes
7902       hardcode_minus_L=yes
7903       hardcode_shlibpath_var=no
7904       ;;
7905
7906     sysv4)
7907       case $host_vendor in
7908         sni)
7909           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7910           hardcode_direct=yes # is this really true???
7911         ;;
7912         siemens)
7913           ## LD is ld it makes a PLAMLIB
7914           ## CC just makes a GrossModule.
7915           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7916           reload_cmds='$CC -r -o $output$reload_objs'
7917           hardcode_direct=no
7918         ;;
7919         motorola)
7920           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7921           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7922         ;;
7923       esac
7924       runpath_var='LD_RUN_PATH'
7925       hardcode_shlibpath_var=no
7926       ;;
7927
7928     sysv4.3*)
7929       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7930       hardcode_shlibpath_var=no
7931       export_dynamic_flag_spec='-Bexport'
7932       ;;
7933
7934     sysv4*MP*)
7935       if test -d /usr/nec; then
7936         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7937         hardcode_shlibpath_var=no
7938         runpath_var=LD_RUN_PATH
7939         hardcode_runpath_var=yes
7940         ld_shlibs=yes
7941       fi
7942       ;;
7943
7944     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7945       no_undefined_flag='${wl}-z,text'
7946       archive_cmds_need_lc=no
7947       hardcode_shlibpath_var=no
7948       runpath_var='LD_RUN_PATH'
7949
7950       if test "$GCC" = yes; then
7951         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7952         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7953       else
7954         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7955         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7956       fi
7957       ;;
7958
7959     sysv5* | sco3.2v5* | sco5v6*)
7960       # Note: We can NOT use -z defs as we might desire, because we do not
7961       # link with -lc, and that would cause any symbols used from libc to
7962       # always be unresolved, which means just about no library would
7963       # ever link correctly.  If we're not using GNU ld we use -z text
7964       # though, which does catch some bad symbols but isn't as heavy-handed
7965       # as -z defs.
7966       no_undefined_flag='${wl}-z,text'
7967       allow_undefined_flag='${wl}-z,nodefs'
7968       archive_cmds_need_lc=no
7969       hardcode_shlibpath_var=no
7970       hardcode_libdir_flag_spec='${wl}-R,$libdir'
7971       hardcode_libdir_separator=':'
7972       link_all_deplibs=yes
7973       export_dynamic_flag_spec='${wl}-Bexport'
7974       runpath_var='LD_RUN_PATH'
7975
7976       if test "$GCC" = yes; then
7977         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7978         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7979       else
7980         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7981         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7982       fi
7983       ;;
7984
7985     uts4*)
7986       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7987       hardcode_libdir_flag_spec='-L$libdir'
7988       hardcode_shlibpath_var=no
7989       ;;
7990
7991     *)
7992       ld_shlibs=no
7993       ;;
7994     esac
7995
7996     if test x$host_vendor = xsni; then
7997       case $host in
7998       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7999         export_dynamic_flag_spec='${wl}-Blargedynsym'
8000         ;;
8001       esac
8002     fi
8003   fi
8004
8005 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8006 echo "${ECHO_T}$ld_shlibs" >&6
8007 test "$ld_shlibs" = no && can_build_shared=no
8008
8009 with_gnu_ld=$with_gnu_ld
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 #
8026 # Do we need to explicitly link libc?
8027 #
8028 case "x$archive_cmds_need_lc" in
8029 x|xyes)
8030   # Assume -lc should be added
8031   archive_cmds_need_lc=yes
8032
8033   if test "$enable_shared" = yes && test "$GCC" = yes; then
8034     case $archive_cmds in
8035     *'~'*)
8036       # FIXME: we may have to deal with multi-command sequences.
8037       ;;
8038     '$CC '*)
8039       # Test whether the compiler implicitly links with -lc since on some
8040       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8041       # to ld, don't add -lc before -lgcc.
8042       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8044       $RM conftest*
8045       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8046
8047       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048   (eval $ac_compile) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } 2>conftest.err; then
8052         soname=conftest
8053         lib=conftest
8054         libobjs=conftest.$ac_objext
8055         deplibs=
8056         wl=$lt_prog_compiler_wl
8057         pic_flag=$lt_prog_compiler_pic
8058         compiler_flags=-v
8059         linker_flags=-v
8060         verstring=
8061         output_objdir=.
8062         libname=conftest
8063         lt_save_allow_undefined_flag=$allow_undefined_flag
8064         allow_undefined_flag=
8065         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8066   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }
8070         then
8071           archive_cmds_need_lc=no
8072         else
8073           archive_cmds_need_lc=yes
8074         fi
8075         allow_undefined_flag=$lt_save_allow_undefined_flag
8076       else
8077         cat conftest.err 1>&5
8078       fi
8079       $RM conftest*
8080       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8081 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8082       ;;
8083     esac
8084   fi
8085   ;;
8086 esac
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8246 withGCC=$GCC
8247 if test "$withGCC" = yes; then
8248   case $host_os in
8249     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8250     *) lt_awk_arg="/^libraries:/" ;;
8251   esac
8252   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8253   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8254     # if the path contains ";" then we assume it to be the separator
8255     # otherwise default to the standard path separator (i.e. ":") - it is
8256     # assumed that no part of a normal pathname contains ";" but that should
8257     # okay in the real world where ";" in dirpaths is itself problematic.
8258     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8259   else
8260     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8261   fi
8262   # Ok, now we have the path, separated by spaces, we can step through it
8263   # and add multilib dir if necessary.
8264   lt_tmp_lt_search_path_spec=
8265   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8266   for lt_sys_path in $lt_search_path_spec; do
8267     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8268       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8269     else
8270       test -d "$lt_sys_path" && \
8271         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8272     fi
8273   done
8274   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8275 BEGIN {RS=" "; FS="/|\n";} {
8276   lt_foo="";
8277   lt_count=0;
8278   for (lt_i = NF; lt_i > 0; lt_i--) {
8279     if ($lt_i != "" && $lt_i != ".") {
8280       if ($lt_i == "..") {
8281         lt_count++;
8282       } else {
8283         if (lt_count == 0) {
8284           lt_foo="/" $lt_i lt_foo;
8285         } else {
8286           lt_count--;
8287         }
8288       }
8289     }
8290   }
8291   if (lt_foo != "") { lt_freq[lt_foo]++; }
8292   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8293 }'`
8294   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8295 else
8296   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8297 fi
8298 library_names_spec=
8299 libname_spec='lib$name'
8300 soname_spec=
8301 shrext_cmds=".so"
8302 postinstall_cmds=
8303 postuninstall_cmds=
8304 finish_cmds=
8305 finish_eval=
8306 shlibpath_var=
8307 shlibpath_overrides_runpath=unknown
8308 version_type=none
8309 dynamic_linker="$host_os ld.so"
8310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8311 need_lib_prefix=unknown
8312 hardcode_into_libs=no
8313
8314 # when you set need_version to no, make sure it does not cause -set_version
8315 # flags to be left without arguments
8316 need_version=unknown
8317
8318 case $host_os in
8319 aix3*)
8320   version_type=linux
8321   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8322   shlibpath_var=LIBPATH
8323
8324   # AIX 3 has no versioning support, so we append a major version to the name.
8325   soname_spec='${libname}${release}${shared_ext}$major'
8326   ;;
8327
8328 aix[4-9]*)
8329   version_type=linux
8330   need_lib_prefix=no
8331   need_version=no
8332   hardcode_into_libs=yes
8333   if test "$host_cpu" = ia64; then
8334     # AIX 5 supports IA64
8335     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8336     shlibpath_var=LD_LIBRARY_PATH
8337   else
8338     # With GCC up to 2.95.x, collect2 would create an import file
8339     # for dependence libraries.  The import file would start with
8340     # the line `#! .'.  This would cause the generated library to
8341     # depend on `.', always an invalid library.  This was fixed in
8342     # development snapshots of GCC prior to 3.0.
8343     case $host_os in
8344       aix4 | aix4.[01] | aix4.[01].*)
8345       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8346            echo ' yes '
8347            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8348         :
8349       else
8350         can_build_shared=no
8351       fi
8352       ;;
8353     esac
8354     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8355     # soname into executable. Probably we can add versioning support to
8356     # collect2, so additional links can be useful in future.
8357     if test "$aix_use_runtimelinking" = yes; then
8358       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8359       # instead of lib<name>.a to let people know that these are not
8360       # typical AIX shared libraries.
8361       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362     else
8363       # We preserve .a as extension for shared libraries through AIX4.2
8364       # and later when we are not doing run time linking.
8365       library_names_spec='${libname}${release}.a $libname.a'
8366       soname_spec='${libname}${release}${shared_ext}$major'
8367     fi
8368     shlibpath_var=LIBPATH
8369   fi
8370   ;;
8371
8372 amigaos*)
8373   if test "$host_cpu" = m68k; then
8374     library_names_spec='$libname.ixlibrary $libname.a'
8375     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8376     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'
8377   else
8378     dynamic_linker=no
8379   fi
8380   ;;
8381
8382 beos*)
8383   library_names_spec='${libname}${shared_ext}'
8384   dynamic_linker="$host_os ld.so"
8385   shlibpath_var=LIBRARY_PATH
8386   ;;
8387
8388 bsdi[45]*)
8389   version_type=linux
8390   need_version=no
8391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392   soname_spec='${libname}${release}${shared_ext}$major'
8393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8394   shlibpath_var=LD_LIBRARY_PATH
8395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8397   # the default ld.so.conf also contains /usr/contrib/lib and
8398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8399   # libtool to hard-code these into programs
8400   ;;
8401
8402 cygwin* | mingw* | pw32*)
8403   version_type=windows
8404   shrext_cmds=".dll"
8405   need_version=no
8406   need_lib_prefix=no
8407
8408   case $withGCC,$host_os in
8409   yes,cygwin* | yes,mingw* | yes,pw32*)
8410     library_names_spec='$libname.dll.a'
8411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8412     postinstall_cmds='base_file=`basename \${file}`~
8413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8414       dldir=$destdir/`dirname \$dlpath`~
8415       test -d \$dldir || mkdir -p \$dldir~
8416       $install_prog $dir/$dlname \$dldir/$dlname~
8417       chmod a+x \$dldir/$dlname~
8418       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8419         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8420       fi'
8421     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8422       dlpath=$dir/\$dldll~
8423        $RM \$dlpath'
8424     shlibpath_overrides_runpath=yes
8425
8426     case $host_os in
8427     cygwin*)
8428       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8429       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8430       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8431       ;;
8432     mingw*)
8433       # MinGW DLLs use traditional 'lib' prefix
8434       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8435       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8436       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8437         # It is most probably a Windows format PATH printed by
8438         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8439         # path with ; separators, and with drive letters. We can handle the
8440         # drive letters (cygwin fileutils understands them), so leave them,
8441         # especially as we might pass files found there to a mingw objdump,
8442         # which wouldn't understand a cygwinified path. Ahh.
8443         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8444       else
8445         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8446       fi
8447       ;;
8448     pw32*)
8449       # pw32 DLLs use 'pw' prefix rather than 'lib'
8450       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8451       ;;
8452     esac
8453     ;;
8454
8455   *)
8456     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8457     ;;
8458   esac
8459   dynamic_linker='Win32 ld.exe'
8460   # FIXME: first we should search . and the directory the executable is in
8461   shlibpath_var=PATH
8462   ;;
8463
8464 darwin* | rhapsody*)
8465   dynamic_linker="$host_os dyld"
8466   version_type=darwin
8467   need_lib_prefix=no
8468   need_version=no
8469   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8470   soname_spec='${libname}${release}${major}$shared_ext'
8471   shlibpath_overrides_runpath=yes
8472   shlibpath_var=DYLD_LIBRARY_PATH
8473   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8474
8475   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8476   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8477   ;;
8478
8479 dgux*)
8480   version_type=linux
8481   need_lib_prefix=no
8482   need_version=no
8483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8484   soname_spec='${libname}${release}${shared_ext}$major'
8485   shlibpath_var=LD_LIBRARY_PATH
8486   ;;
8487
8488 freebsd1*)
8489   dynamic_linker=no
8490   ;;
8491
8492 freebsd* | dragonfly*)
8493   # DragonFly does not have aout.  When/if they implement a new
8494   # versioning mechanism, adjust this.
8495   if test -x /usr/bin/objformat; then
8496     objformat=`/usr/bin/objformat`
8497   else
8498     case $host_os in
8499     freebsd[123]*) objformat=aout ;;
8500     *) objformat=elf ;;
8501     esac
8502   fi
8503   version_type=freebsd-$objformat
8504   case $version_type in
8505     freebsd-elf*)
8506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8507       need_version=no
8508       need_lib_prefix=no
8509       ;;
8510     freebsd-*)
8511       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8512       need_version=yes
8513       ;;
8514   esac
8515   shlibpath_var=LD_LIBRARY_PATH
8516   case $host_os in
8517   freebsd2*)
8518     shlibpath_overrides_runpath=yes
8519     ;;
8520   freebsd3.[01]* | freebsdelf3.[01]*)
8521     shlibpath_overrides_runpath=yes
8522     hardcode_into_libs=yes
8523     ;;
8524   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8525   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8526     shlibpath_overrides_runpath=no
8527     hardcode_into_libs=yes
8528     ;;
8529   *) # from 4.6 on, and DragonFly
8530     shlibpath_overrides_runpath=yes
8531     hardcode_into_libs=yes
8532     ;;
8533   esac
8534   ;;
8535
8536 gnu*)
8537   version_type=linux
8538   need_lib_prefix=no
8539   need_version=no
8540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8541   soname_spec='${libname}${release}${shared_ext}$major'
8542   shlibpath_var=LD_LIBRARY_PATH
8543   hardcode_into_libs=yes
8544   ;;
8545
8546 hpux9* | hpux10* | hpux11*)
8547   # Give a soname corresponding to the major version so that dld.sl refuses to
8548   # link against other versions.
8549   version_type=sunos
8550   need_lib_prefix=no
8551   need_version=no
8552   case $host_cpu in
8553   ia64*)
8554     shrext_cmds='.so'
8555     hardcode_into_libs=yes
8556     dynamic_linker="$host_os dld.so"
8557     shlibpath_var=LD_LIBRARY_PATH
8558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560     soname_spec='${libname}${release}${shared_ext}$major'
8561     if test "X$HPUX_IA64_MODE" = X32; then
8562       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8563     else
8564       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8565     fi
8566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8567     ;;
8568   hppa*64*)
8569     shrext_cmds='.sl'
8570     hardcode_into_libs=yes
8571     dynamic_linker="$host_os dld.sl"
8572     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8575     soname_spec='${libname}${release}${shared_ext}$major'
8576     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8577     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8578     ;;
8579   *)
8580     shrext_cmds='.sl'
8581     dynamic_linker="$host_os dld.sl"
8582     shlibpath_var=SHLIB_PATH
8583     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8585     soname_spec='${libname}${release}${shared_ext}$major'
8586     ;;
8587   esac
8588   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8589   postinstall_cmds='chmod 555 $lib'
8590   ;;
8591
8592 interix[3-9]*)
8593   version_type=linux
8594   need_lib_prefix=no
8595   need_version=no
8596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8597   soname_spec='${libname}${release}${shared_ext}$major'
8598   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8599   shlibpath_var=LD_LIBRARY_PATH
8600   shlibpath_overrides_runpath=no
8601   hardcode_into_libs=yes
8602   ;;
8603
8604 irix5* | irix6* | nonstopux*)
8605   case $host_os in
8606     nonstopux*) version_type=nonstopux ;;
8607     *)
8608         if test "$lt_cv_prog_gnu_ld" = yes; then
8609                 version_type=linux
8610         else
8611                 version_type=irix
8612         fi ;;
8613   esac
8614   need_lib_prefix=no
8615   need_version=no
8616   soname_spec='${libname}${release}${shared_ext}$major'
8617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8618   case $host_os in
8619   irix5* | nonstopux*)
8620     libsuff= shlibsuff=
8621     ;;
8622   *)
8623     case $LD in # libtool.m4 will add one of these switches to LD
8624     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8625       libsuff= shlibsuff= libmagic=32-bit;;
8626     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8627       libsuff=32 shlibsuff=N32 libmagic=N32;;
8628     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8629       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8630     *) libsuff= shlibsuff= libmagic=never-match;;
8631     esac
8632     ;;
8633   esac
8634   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8635   shlibpath_overrides_runpath=no
8636   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8637   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8638   hardcode_into_libs=yes
8639   ;;
8640
8641 # No shared lib support for Linux oldld, aout, or coff.
8642 linux*oldld* | linux*aout* | linux*coff*)
8643   dynamic_linker=no
8644   ;;
8645
8646 # This must be Linux ELF.
8647 linux* | k*bsd*-gnu)
8648   version_type=linux
8649   need_lib_prefix=no
8650   need_version=no
8651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652   soname_spec='${libname}${release}${shared_ext}$major'
8653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8654   shlibpath_var=LD_LIBRARY_PATH
8655   shlibpath_overrides_runpath=no
8656   # Some binutils ld are patched to set DT_RUNPATH
8657   save_LDFLAGS=$LDFLAGS
8658   save_libdir=$libdir
8659   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8660        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8661   cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667
8668 int
8669 main ()
8670 {
8671
8672   ;
8673   return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678   (eval $ac_link) 2>conftest.er1
8679   ac_status=$?
8680   grep -v '^ *+' conftest.er1 >conftest.err
8681   rm -f conftest.er1
8682   cat conftest.err >&5
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); } &&
8685          { ac_try='test -z "$ac_c_werror_flag"
8686                          || test ! -s conftest.err'
8687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688   (eval $ac_try) 2>&5
8689   ac_status=$?
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); }; } &&
8692          { ac_try='test -s conftest$ac_exeext'
8693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694   (eval $ac_try) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }; }; then
8698   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8699   shlibpath_overrides_runpath=yes
8700 fi
8701
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706 fi
8707 rm -f conftest.err conftest.$ac_objext \
8708       conftest$ac_exeext conftest.$ac_ext
8709   LDFLAGS=$save_LDFLAGS
8710   libdir=$save_libdir
8711
8712   # This implies no fast_install, which is unacceptable.
8713   # Some rework will be needed to allow for fast_install
8714   # before this can be enabled.
8715   hardcode_into_libs=yes
8716
8717   # Append ld.so.conf contents to the search path
8718   if test -f /etc/ld.so.conf; then
8719     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' ' '`
8720     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8721   fi
8722
8723   # We used to test for /lib/ld.so.1 and disable shared libraries on
8724   # powerpc, because MkLinux only supported shared libraries with the
8725   # GNU dynamic linker.  Since this was broken with cross compilers,
8726   # most powerpc-linux boxes support dynamic linking these days and
8727   # people can always --disable-shared, the test was removed, and we
8728   # assume the GNU/Linux dynamic linker is in use.
8729   dynamic_linker='GNU/Linux ld.so'
8730   ;;
8731
8732 netbsd*)
8733   version_type=sunos
8734   need_lib_prefix=no
8735   need_version=no
8736   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8738     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8739     dynamic_linker='NetBSD (a.out) ld.so'
8740   else
8741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8742     soname_spec='${libname}${release}${shared_ext}$major'
8743     dynamic_linker='NetBSD ld.elf_so'
8744   fi
8745   shlibpath_var=LD_LIBRARY_PATH
8746   shlibpath_overrides_runpath=yes
8747   hardcode_into_libs=yes
8748   ;;
8749
8750 newsos6)
8751   version_type=linux
8752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753   shlibpath_var=LD_LIBRARY_PATH
8754   shlibpath_overrides_runpath=yes
8755   ;;
8756
8757 *nto* | *qnx*)
8758   version_type=qnx
8759   need_lib_prefix=no
8760   need_version=no
8761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8762   soname_spec='${libname}${release}${shared_ext}$major'
8763   shlibpath_var=LD_LIBRARY_PATH
8764   shlibpath_overrides_runpath=no
8765   hardcode_into_libs=yes
8766   dynamic_linker='ldqnx.so'
8767   ;;
8768
8769 openbsd*)
8770   version_type=sunos
8771   sys_lib_dlsearch_path_spec="/usr/lib"
8772   need_lib_prefix=no
8773   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8774   case $host_os in
8775     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8776     *)                          need_version=no  ;;
8777   esac
8778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8779   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8780   shlibpath_var=LD_LIBRARY_PATH
8781   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8782     case $host_os in
8783       openbsd2.[89] | openbsd2.[89].*)
8784         shlibpath_overrides_runpath=no
8785         ;;
8786       *)
8787         shlibpath_overrides_runpath=yes
8788         ;;
8789       esac
8790   else
8791     shlibpath_overrides_runpath=yes
8792   fi
8793   ;;
8794
8795 os2*)
8796   libname_spec='$name'
8797   shrext_cmds=".dll"
8798   need_lib_prefix=no
8799   library_names_spec='$libname${shared_ext} $libname.a'
8800   dynamic_linker='OS/2 ld.exe'
8801   shlibpath_var=LIBPATH
8802   ;;
8803
8804 osf3* | osf4* | osf5*)
8805   version_type=osf
8806   need_lib_prefix=no
8807   need_version=no
8808   soname_spec='${libname}${release}${shared_ext}$major'
8809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810   shlibpath_var=LD_LIBRARY_PATH
8811   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8812   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8813   ;;
8814
8815 rdos*)
8816   dynamic_linker=no
8817   ;;
8818
8819 solaris*)
8820   version_type=linux
8821   need_lib_prefix=no
8822   need_version=no
8823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824   soname_spec='${libname}${release}${shared_ext}$major'
8825   shlibpath_var=LD_LIBRARY_PATH
8826   shlibpath_overrides_runpath=yes
8827   hardcode_into_libs=yes
8828   # ldd complains unless libraries are executable
8829   postinstall_cmds='chmod +x $lib'
8830   ;;
8831
8832 sunos4*)
8833   version_type=sunos
8834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8835   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8836   shlibpath_var=LD_LIBRARY_PATH
8837   shlibpath_overrides_runpath=yes
8838   if test "$with_gnu_ld" = yes; then
8839     need_lib_prefix=no
8840   fi
8841   need_version=yes
8842   ;;
8843
8844 sysv4 | sysv4.3*)
8845   version_type=linux
8846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847   soname_spec='${libname}${release}${shared_ext}$major'
8848   shlibpath_var=LD_LIBRARY_PATH
8849   case $host_vendor in
8850     sni)
8851       shlibpath_overrides_runpath=no
8852       need_lib_prefix=no
8853       runpath_var=LD_RUN_PATH
8854       ;;
8855     siemens)
8856       need_lib_prefix=no
8857       ;;
8858     motorola)
8859       need_lib_prefix=no
8860       need_version=no
8861       shlibpath_overrides_runpath=no
8862       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8863       ;;
8864   esac
8865   ;;
8866
8867 sysv4*MP*)
8868   if test -d /usr/nec ;then
8869     version_type=linux
8870     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8871     soname_spec='$libname${shared_ext}.$major'
8872     shlibpath_var=LD_LIBRARY_PATH
8873   fi
8874   ;;
8875
8876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8877   version_type=freebsd-elf
8878   need_lib_prefix=no
8879   need_version=no
8880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8881   soname_spec='${libname}${release}${shared_ext}$major'
8882   shlibpath_var=LD_LIBRARY_PATH
8883   shlibpath_overrides_runpath=yes
8884   hardcode_into_libs=yes
8885   if test "$with_gnu_ld" = yes; then
8886     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8887   else
8888     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8889     case $host_os in
8890       sco3.2v5*)
8891         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8892         ;;
8893     esac
8894   fi
8895   sys_lib_dlsearch_path_spec='/usr/lib'
8896   ;;
8897
8898 tpf*)
8899   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8900   version_type=linux
8901   need_lib_prefix=no
8902   need_version=no
8903   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904   shlibpath_var=LD_LIBRARY_PATH
8905   shlibpath_overrides_runpath=no
8906   hardcode_into_libs=yes
8907   ;;
8908
8909 uts4*)
8910   version_type=linux
8911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912   soname_spec='${libname}${release}${shared_ext}$major'
8913   shlibpath_var=LD_LIBRARY_PATH
8914   ;;
8915
8916 *)
8917   dynamic_linker=no
8918   ;;
8919 esac
8920 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8921 echo "${ECHO_T}$dynamic_linker" >&6
8922 test "$dynamic_linker" = no && can_build_shared=no
8923
8924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8925 if test "$GCC" = yes; then
8926   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8927 fi
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9016 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9017 hardcode_action=
9018 if test -n "$hardcode_libdir_flag_spec" ||
9019    test -n "$runpath_var" ||
9020    test "X$hardcode_automatic" = "Xyes" ; then
9021
9022   # We can hardcode non-existent directories.
9023   if test "$hardcode_direct" != no &&
9024      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9025      # have to relink, otherwise we might link with an installed library
9026      # when we should be linking with a yet-to-be-installed one
9027      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9028      test "$hardcode_minus_L" != no; then
9029     # Linking always hardcodes the temporary library directory.
9030     hardcode_action=relink
9031   else
9032     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9033     hardcode_action=immediate
9034   fi
9035 else
9036   # We cannot hardcode anything, or else we can only hardcode existing
9037   # directories.
9038   hardcode_action=unsupported
9039 fi
9040 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9041 echo "${ECHO_T}$hardcode_action" >&6
9042
9043 if test "$hardcode_action" = relink ||
9044    test "$inherit_rpath" = yes; then
9045   # Fast installation is not supported
9046   enable_fast_install=no
9047 elif test "$shlibpath_overrides_runpath" = yes ||
9048      test "$enable_shared" = no; then
9049   # Fast installation is not necessary
9050   enable_fast_install=needless
9051 fi
9052
9053
9054
9055
9056
9057
9058   if test "x$enable_dlopen" != xyes; then
9059   enable_dlopen=unknown
9060   enable_dlopen_self=unknown
9061   enable_dlopen_self_static=unknown
9062 else
9063   lt_cv_dlopen=no
9064   lt_cv_dlopen_libs=
9065
9066   case $host_os in
9067   beos*)
9068     lt_cv_dlopen="load_add_on"
9069     lt_cv_dlopen_libs=
9070     lt_cv_dlopen_self=yes
9071     ;;
9072
9073   mingw* | pw32*)
9074     lt_cv_dlopen="LoadLibrary"
9075     lt_cv_dlopen_libs=
9076     ;;
9077
9078   cygwin*)
9079     lt_cv_dlopen="dlopen"
9080     lt_cv_dlopen_libs=
9081     ;;
9082
9083   darwin*)
9084   # if libdl is installed we need to link against it
9085     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090   ac_check_lib_save_LIBS=$LIBS
9091 LIBS="-ldl  $LIBS"
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098
9099 /* Override any gcc2 internal prototype to avoid an error.  */
9100 #ifdef __cplusplus
9101 extern "C"
9102 #endif
9103 /* We use char because int might match the return type of a gcc2
9104    builtin and then its argument prototype would still apply.  */
9105 char dlopen ();
9106 int
9107 main ()
9108 {
9109 dlopen ();
9110   ;
9111   return 0;
9112 }
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116   (eval $ac_link) 2>conftest.er1
9117   ac_status=$?
9118   grep -v '^ *+' conftest.er1 >conftest.err
9119   rm -f conftest.er1
9120   cat conftest.err >&5
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); } &&
9123          { ac_try='test -z "$ac_c_werror_flag"
9124                          || test ! -s conftest.err'
9125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126   (eval $ac_try) 2>&5
9127   ac_status=$?
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); }; } &&
9130          { ac_try='test -s conftest$ac_exeext'
9131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132   (eval $ac_try) 2>&5
9133   ac_status=$?
9134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); }; }; then
9136   ac_cv_lib_dl_dlopen=yes
9137 else
9138   echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141 ac_cv_lib_dl_dlopen=no
9142 fi
9143 rm -f conftest.err conftest.$ac_objext \
9144       conftest$ac_exeext conftest.$ac_ext
9145 LIBS=$ac_check_lib_save_LIBS
9146 fi
9147 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9149 if test $ac_cv_lib_dl_dlopen = yes; then
9150   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9151 else
9152
9153     lt_cv_dlopen="dyld"
9154     lt_cv_dlopen_libs=
9155     lt_cv_dlopen_self=yes
9156
9157 fi
9158
9159     ;;
9160
9161   *)
9162     echo "$as_me:$LINENO: checking for shl_load" >&5
9163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9164 if test "${ac_cv_func_shl_load+set}" = set; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h.  */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h.  */
9173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9175 #define shl_load innocuous_shl_load
9176
9177 /* System header to define __stub macros and hopefully few prototypes,
9178     which can conflict with char shl_load (); below.
9179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9180     <limits.h> exists even on freestanding compilers.  */
9181
9182 #ifdef __STDC__
9183 # include <limits.h>
9184 #else
9185 # include <assert.h>
9186 #endif
9187
9188 #undef shl_load
9189
9190 /* Override any gcc2 internal prototype to avoid an error.  */
9191 #ifdef __cplusplus
9192 extern "C"
9193 {
9194 #endif
9195 /* We use char because int might match the return type of a gcc2
9196    builtin and then its argument prototype would still apply.  */
9197 char shl_load ();
9198 /* The GNU C library defines this for functions which it implements
9199     to always fail with ENOSYS.  Some functions are actually named
9200     something starting with __ and the normal name is an alias.  */
9201 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9202 choke me
9203 #else
9204 char (*f) () = shl_load;
9205 #endif
9206 #ifdef __cplusplus
9207 }
9208 #endif
9209
9210 int
9211 main ()
9212 {
9213 return f != shl_load;
9214   ;
9215   return 0;
9216 }
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220   (eval $ac_link) 2>conftest.er1
9221   ac_status=$?
9222   grep -v '^ *+' conftest.er1 >conftest.err
9223   rm -f conftest.er1
9224   cat conftest.err >&5
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } &&
9227          { ac_try='test -z "$ac_c_werror_flag"
9228                          || test ! -s conftest.err'
9229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230   (eval $ac_try) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; } &&
9234          { ac_try='test -s conftest$ac_exeext'
9235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236   (eval $ac_try) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; }; then
9240   ac_cv_func_shl_load=yes
9241 else
9242   echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 ac_cv_func_shl_load=no
9246 fi
9247 rm -f conftest.err conftest.$ac_objext \
9248       conftest$ac_exeext conftest.$ac_ext
9249 fi
9250 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9251 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9252 if test $ac_cv_func_shl_load = yes; then
9253   lt_cv_dlopen="shl_load"
9254 else
9255   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9256 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9257 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9258   echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260   ac_check_lib_save_LIBS=$LIBS
9261 LIBS="-ldld  $LIBS"
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268
9269 /* Override any gcc2 internal prototype to avoid an error.  */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274    builtin and then its argument prototype would still apply.  */
9275 char shl_load ();
9276 int
9277 main ()
9278 {
9279 shl_load ();
9280   ;
9281   return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286   (eval $ac_link) 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } &&
9293          { ac_try='test -z "$ac_c_werror_flag"
9294                          || test ! -s conftest.err'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; } &&
9300          { ac_try='test -s conftest$ac_exeext'
9301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302   (eval $ac_try) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); }; }; then
9306   ac_cv_lib_dld_shl_load=yes
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_cv_lib_dld_shl_load=no
9312 fi
9313 rm -f conftest.err conftest.$ac_objext \
9314       conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9316 fi
9317 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9318 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9319 if test $ac_cv_lib_dld_shl_load = yes; then
9320   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9321 else
9322   echo "$as_me:$LINENO: checking for dlopen" >&5
9323 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9324 if test "${ac_cv_func_dlopen+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h.  */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h.  */
9333 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9335 #define dlopen innocuous_dlopen
9336
9337 /* System header to define __stub macros and hopefully few prototypes,
9338     which can conflict with char dlopen (); below.
9339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9340     <limits.h> exists even on freestanding compilers.  */
9341
9342 #ifdef __STDC__
9343 # include <limits.h>
9344 #else
9345 # include <assert.h>
9346 #endif
9347
9348 #undef dlopen
9349
9350 /* Override any gcc2 internal prototype to avoid an error.  */
9351 #ifdef __cplusplus
9352 extern "C"
9353 {
9354 #endif
9355 /* We use char because int might match the return type of a gcc2
9356    builtin and then its argument prototype would still apply.  */
9357 char dlopen ();
9358 /* The GNU C library defines this for functions which it implements
9359     to always fail with ENOSYS.  Some functions are actually named
9360     something starting with __ and the normal name is an alias.  */
9361 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9362 choke me
9363 #else
9364 char (*f) () = dlopen;
9365 #endif
9366 #ifdef __cplusplus
9367 }
9368 #endif
9369
9370 int
9371 main ()
9372 {
9373 return f != dlopen;
9374   ;
9375   return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380   (eval $ac_link) 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } &&
9387          { ac_try='test -z "$ac_c_werror_flag"
9388                          || test ! -s conftest.err'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; } &&
9394          { ac_try='test -s conftest$ac_exeext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   ac_cv_func_dlopen=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405 ac_cv_func_dlopen=no
9406 fi
9407 rm -f conftest.err conftest.$ac_objext \
9408       conftest$ac_exeext conftest.$ac_ext
9409 fi
9410 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9412 if test $ac_cv_func_dlopen = yes; then
9413   lt_cv_dlopen="dlopen"
9414 else
9415   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   ac_check_lib_save_LIBS=$LIBS
9421 LIBS="-ldl  $LIBS"
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9428
9429 /* Override any gcc2 internal prototype to avoid an error.  */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 /* We use char because int might match the return type of a gcc2
9434    builtin and then its argument prototype would still apply.  */
9435 char dlopen ();
9436 int
9437 main ()
9438 {
9439 dlopen ();
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446   (eval $ac_link) 2>conftest.er1
9447   ac_status=$?
9448   grep -v '^ *+' conftest.er1 >conftest.err
9449   rm -f conftest.er1
9450   cat conftest.err >&5
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } &&
9453          { ac_try='test -z "$ac_c_werror_flag"
9454                          || test ! -s conftest.err'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; } &&
9460          { ac_try='test -s conftest$ac_exeext'
9461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462   (eval $ac_try) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   ac_cv_lib_dl_dlopen=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 ac_cv_lib_dl_dlopen=no
9472 fi
9473 rm -f conftest.err conftest.$ac_objext \
9474       conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_lib_save_LIBS
9476 fi
9477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9479 if test $ac_cv_lib_dl_dlopen = yes; then
9480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9481 else
9482   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9483 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9484 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   ac_check_lib_save_LIBS=$LIBS
9488 LIBS="-lsvld  $LIBS"
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495
9496 /* Override any gcc2 internal prototype to avoid an error.  */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 /* We use char because int might match the return type of a gcc2
9501    builtin and then its argument prototype would still apply.  */
9502 char dlopen ();
9503 int
9504 main ()
9505 {
9506 dlopen ();
9507   ;
9508   return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513   (eval $ac_link) 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } &&
9520          { ac_try='test -z "$ac_c_werror_flag"
9521                          || test ! -s conftest.err'
9522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523   (eval $ac_try) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; } &&
9527          { ac_try='test -s conftest$ac_exeext'
9528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529   (eval $ac_try) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); }; }; then
9533   ac_cv_lib_svld_dlopen=yes
9534 else
9535   echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538 ac_cv_lib_svld_dlopen=no
9539 fi
9540 rm -f conftest.err conftest.$ac_objext \
9541       conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9543 fi
9544 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9545 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9546 if test $ac_cv_lib_svld_dlopen = yes; then
9547   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9548 else
9549   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9550 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9551 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   ac_check_lib_save_LIBS=$LIBS
9555 LIBS="-ldld  $LIBS"
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562
9563 /* Override any gcc2 internal prototype to avoid an error.  */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 /* We use char because int might match the return type of a gcc2
9568    builtin and then its argument prototype would still apply.  */
9569 char dld_link ();
9570 int
9571 main ()
9572 {
9573 dld_link ();
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9580   (eval $ac_link) 2>conftest.er1
9581   ac_status=$?
9582   grep -v '^ *+' conftest.er1 >conftest.err
9583   rm -f conftest.er1
9584   cat conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } &&
9587          { ac_try='test -z "$ac_c_werror_flag"
9588                          || test ! -s conftest.err'
9589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590   (eval $ac_try) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; } &&
9594          { ac_try='test -s conftest$ac_exeext'
9595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596   (eval $ac_try) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; }; then
9600   ac_cv_lib_dld_dld_link=yes
9601 else
9602   echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 ac_cv_lib_dld_dld_link=no
9606 fi
9607 rm -f conftest.err conftest.$ac_objext \
9608       conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9610 fi
9611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9612 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9613 if test $ac_cv_lib_dld_dld_link = yes; then
9614   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9615 fi
9616
9617
9618 fi
9619
9620
9621 fi
9622
9623
9624 fi
9625
9626
9627 fi
9628
9629
9630 fi
9631
9632     ;;
9633   esac
9634
9635   if test "x$lt_cv_dlopen" != xno; then
9636     enable_dlopen=yes
9637   else
9638     enable_dlopen=no
9639   fi
9640
9641   case $lt_cv_dlopen in
9642   dlopen)
9643     save_CPPFLAGS="$CPPFLAGS"
9644     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9645
9646     save_LDFLAGS="$LDFLAGS"
9647     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9648
9649     save_LIBS="$LIBS"
9650     LIBS="$lt_cv_dlopen_libs $LIBS"
9651
9652     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9653 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9654 if test "${lt_cv_dlopen_self+set}" = set; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657           if test "$cross_compiling" = yes; then :
9658   lt_cv_dlopen_self=cross
9659 else
9660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9661   lt_status=$lt_dlunknown
9662   cat > conftest.$ac_ext <<_LT_EOF
9663 #line 9663 "configure"
9664 #include "confdefs.h"
9665
9666 #if HAVE_DLFCN_H
9667 #include <dlfcn.h>
9668 #endif
9669
9670 #include <stdio.h>
9671
9672 #ifdef RTLD_GLOBAL
9673 #  define LT_DLGLOBAL           RTLD_GLOBAL
9674 #else
9675 #  ifdef DL_GLOBAL
9676 #    define LT_DLGLOBAL         DL_GLOBAL
9677 #  else
9678 #    define LT_DLGLOBAL         0
9679 #  endif
9680 #endif
9681
9682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9683    find out it does not work in some platform. */
9684 #ifndef LT_DLLAZY_OR_NOW
9685 #  ifdef RTLD_LAZY
9686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9687 #  else
9688 #    ifdef DL_LAZY
9689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9690 #    else
9691 #      ifdef RTLD_NOW
9692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9693 #      else
9694 #        ifdef DL_NOW
9695 #          define LT_DLLAZY_OR_NOW      DL_NOW
9696 #        else
9697 #          define LT_DLLAZY_OR_NOW      0
9698 #        endif
9699 #      endif
9700 #    endif
9701 #  endif
9702 #endif
9703
9704 #ifdef __cplusplus
9705 extern "C" void exit (int);
9706 #endif
9707
9708 void fnord() { int i=42;}
9709 int main ()
9710 {
9711   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9712   int status = $lt_dlunknown;
9713
9714   if (self)
9715     {
9716       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9717       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9718       /* dlclose (self); */
9719     }
9720   else
9721     puts (dlerror ());
9722
9723     exit (status);
9724 }
9725 _LT_EOF
9726   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727   (eval $ac_link) 2>&5
9728   ac_status=$?
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9731     (./conftest; exit; ) >&5 2>/dev/null
9732     lt_status=$?
9733     case x$lt_status in
9734       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9735       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9736       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9737     esac
9738   else :
9739     # compilation failed
9740     lt_cv_dlopen_self=no
9741   fi
9742 fi
9743 rm -fr conftest*
9744
9745
9746 fi
9747 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9748 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9749
9750     if test "x$lt_cv_dlopen_self" = xyes; then
9751       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9752       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9753 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9754 if test "${lt_cv_dlopen_self_static+set}" = set; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757           if test "$cross_compiling" = yes; then :
9758   lt_cv_dlopen_self_static=cross
9759 else
9760   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9761   lt_status=$lt_dlunknown
9762   cat > conftest.$ac_ext <<_LT_EOF
9763 #line 9763 "configure"
9764 #include "confdefs.h"
9765
9766 #if HAVE_DLFCN_H
9767 #include <dlfcn.h>
9768 #endif
9769
9770 #include <stdio.h>
9771
9772 #ifdef RTLD_GLOBAL
9773 #  define LT_DLGLOBAL           RTLD_GLOBAL
9774 #else
9775 #  ifdef DL_GLOBAL
9776 #    define LT_DLGLOBAL         DL_GLOBAL
9777 #  else
9778 #    define LT_DLGLOBAL         0
9779 #  endif
9780 #endif
9781
9782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9783    find out it does not work in some platform. */
9784 #ifndef LT_DLLAZY_OR_NOW
9785 #  ifdef RTLD_LAZY
9786 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9787 #  else
9788 #    ifdef DL_LAZY
9789 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9790 #    else
9791 #      ifdef RTLD_NOW
9792 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9793 #      else
9794 #        ifdef DL_NOW
9795 #          define LT_DLLAZY_OR_NOW      DL_NOW
9796 #        else
9797 #          define LT_DLLAZY_OR_NOW      0
9798 #        endif
9799 #      endif
9800 #    endif
9801 #  endif
9802 #endif
9803
9804 #ifdef __cplusplus
9805 extern "C" void exit (int);
9806 #endif
9807
9808 void fnord() { int i=42;}
9809 int main ()
9810 {
9811   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9812   int status = $lt_dlunknown;
9813
9814   if (self)
9815     {
9816       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9817       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9818       /* dlclose (self); */
9819     }
9820   else
9821     puts (dlerror ());
9822
9823     exit (status);
9824 }
9825 _LT_EOF
9826   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827   (eval $ac_link) 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9831     (./conftest; exit; ) >&5 2>/dev/null
9832     lt_status=$?
9833     case x$lt_status in
9834       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9835       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9836       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9837     esac
9838   else :
9839     # compilation failed
9840     lt_cv_dlopen_self_static=no
9841   fi
9842 fi
9843 rm -fr conftest*
9844
9845
9846 fi
9847 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9848 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9849     fi
9850
9851     CPPFLAGS="$save_CPPFLAGS"
9852     LDFLAGS="$save_LDFLAGS"
9853     LIBS="$save_LIBS"
9854     ;;
9855   esac
9856
9857   case $lt_cv_dlopen_self in
9858   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9859   *) enable_dlopen_self=unknown ;;
9860   esac
9861
9862   case $lt_cv_dlopen_self_static in
9863   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9864   *) enable_dlopen_self_static=unknown ;;
9865   esac
9866 fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884 striplib=
9885 old_striplib=
9886 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9888 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9889   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9890   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9891   echo "$as_me:$LINENO: result: yes" >&5
9892 echo "${ECHO_T}yes" >&6
9893 else
9894 # FIXME - insert some real tests, host_os isn't really good enough
9895   case $host_os in
9896   darwin*)
9897     if test -n "$STRIP" ; then
9898       striplib="$STRIP -x"
9899       old_striplib="$STRIP -S"
9900       echo "$as_me:$LINENO: result: yes" >&5
9901 echo "${ECHO_T}yes" >&6
9902     else
9903       echo "$as_me:$LINENO: result: no" >&5
9904 echo "${ECHO_T}no" >&6
9905     fi
9906     ;;
9907   *)
9908     echo "$as_me:$LINENO: result: no" >&5
9909 echo "${ECHO_T}no" >&6
9910     ;;
9911   esac
9912 fi
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925   # Report which library types will actually be built
9926   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9927 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9928   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9929 echo "${ECHO_T}$can_build_shared" >&6
9930
9931   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9932 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9933   test "$can_build_shared" = "no" && enable_shared=no
9934
9935   # On AIX, shared libraries and static libraries use the same namespace, and
9936   # are all built from PIC.
9937   case $host_os in
9938   aix3*)
9939     test "$enable_shared" = yes && enable_static=no
9940     if test -n "$RANLIB"; then
9941       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9942       postinstall_cmds='$RANLIB $lib'
9943     fi
9944     ;;
9945
9946   aix[4-9]*)
9947     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9948       test "$enable_shared" = yes && enable_static=no
9949     fi
9950     ;;
9951   esac
9952   echo "$as_me:$LINENO: result: $enable_shared" >&5
9953 echo "${ECHO_T}$enable_shared" >&6
9954
9955   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9956 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9957   # Make sure either enable_shared or enable_static is yes.
9958   test "$enable_shared" = yes || enable_static=yes
9959   echo "$as_me:$LINENO: result: $enable_static" >&5
9960 echo "${ECHO_T}$enable_static" >&6
9961
9962
9963
9964
9965 fi
9966 ac_ext=c
9967 ac_cpp='$CPP $CPPFLAGS'
9968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9971
9972 CC="$lt_save_CC"
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986                   ac_config_commands="$ac_config_commands libtool"
9987
9988
9989
9990
9991 # Only expand once:
9992
9993
9994
9995
9996
9997 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9998 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9999     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10000 if test "${enable_maintainer_mode+set}" = set; then
10001   enableval="$enable_maintainer_mode"
10002   USE_MAINTAINER_MODE=$enableval
10003 else
10004   USE_MAINTAINER_MODE=no
10005 fi;
10006   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10007 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10008
10009
10010 if test $USE_MAINTAINER_MODE = yes; then
10011   MAINTAINER_MODE_TRUE=
10012   MAINTAINER_MODE_FALSE='#'
10013 else
10014   MAINTAINER_MODE_TRUE='#'
10015   MAINTAINER_MODE_FALSE=
10016 fi
10017
10018   MAINT=$MAINTAINER_MODE_TRUE
10019
10020
10021
10022 # We need gfortran to compile parts of the library
10023 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10024 #AC_PROG_FC(gfortran)
10025 FC="$GFORTRAN"
10026 ac_ext=${FC_SRCEXT-f}
10027 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10028 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10029 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10030 if test -n "$ac_tool_prefix"; then
10031   for ac_prog in gfortran
10032   do
10033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10035 echo "$as_me:$LINENO: checking for $ac_word" >&5
10036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10037 if test "${ac_cv_prog_FC+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   if test -n "$FC"; then
10041   ac_cv_prog_FC="$FC" # Let the user override the test.
10042 else
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046   IFS=$as_save_IFS
10047   test -z "$as_dir" && as_dir=.
10048   for ac_exec_ext in '' $ac_executable_extensions; do
10049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10052     break 2
10053   fi
10054 done
10055 done
10056
10057 fi
10058 fi
10059 FC=$ac_cv_prog_FC
10060 if test -n "$FC"; then
10061   echo "$as_me:$LINENO: result: $FC" >&5
10062 echo "${ECHO_T}$FC" >&6
10063 else
10064   echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6
10066 fi
10067
10068     test -n "$FC" && break
10069   done
10070 fi
10071 if test -z "$FC"; then
10072   ac_ct_FC=$FC
10073   for ac_prog in gfortran
10074 do
10075   # Extract the first word of "$ac_prog", so it can be a program name with args.
10076 set dummy $ac_prog; ac_word=$2
10077 echo "$as_me:$LINENO: checking for $ac_word" >&5
10078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10079 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   if test -n "$ac_ct_FC"; then
10083   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10084 else
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10087 do
10088   IFS=$as_save_IFS
10089   test -z "$as_dir" && as_dir=.
10090   for ac_exec_ext in '' $ac_executable_extensions; do
10091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092     ac_cv_prog_ac_ct_FC="$ac_prog"
10093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10094     break 2
10095   fi
10096 done
10097 done
10098
10099 fi
10100 fi
10101 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10102 if test -n "$ac_ct_FC"; then
10103   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10104 echo "${ECHO_T}$ac_ct_FC" >&6
10105 else
10106   echo "$as_me:$LINENO: result: no" >&5
10107 echo "${ECHO_T}no" >&6
10108 fi
10109
10110   test -n "$ac_ct_FC" && break
10111 done
10112
10113   FC=$ac_ct_FC
10114 fi
10115
10116
10117 # Provide some information about the compiler.
10118 echo "$as_me:10118:" \
10119      "checking for Fortran compiler version" >&5
10120 ac_compiler=`set X $ac_compile; echo $2`
10121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10122   (eval $ac_compiler --version </dev/null >&5) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }
10126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10127   (eval $ac_compiler -v </dev/null >&5) 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }
10131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10132   (eval $ac_compiler -V </dev/null >&5) 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }
10136 rm -f a.out
10137
10138 # If we don't use `.F' as extension, the preprocessor is not run on the
10139 # input file.  (Note that this only needs to work for GNU compilers.)
10140 ac_save_ext=$ac_ext
10141 ac_ext=F
10142 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10143 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10144 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   cat >conftest.$ac_ext <<_ACEOF
10148       program main
10149 #ifndef __GNUC__
10150        choke me
10151 #endif
10152
10153       end
10154 _ACEOF
10155 rm -f conftest.$ac_objext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10157   (eval $ac_compile) 2>conftest.er1
10158   ac_status=$?
10159   grep -v '^ *+' conftest.er1 >conftest.err
10160   rm -f conftest.er1
10161   cat conftest.err >&5
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); } &&
10164          { ac_try='test -z "$ac_fc_werror_flag"
10165                          || test ! -s conftest.err'
10166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167   (eval $ac_try) 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); }; } &&
10171          { ac_try='test -s conftest.$ac_objext'
10172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173   (eval $ac_try) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }; }; then
10177   ac_compiler_gnu=yes
10178 else
10179   echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 ac_compiler_gnu=no
10183 fi
10184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10185 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10186
10187 fi
10188 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10189 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10190 ac_ext=$ac_save_ext
10191 ac_test_FFLAGS=${FCFLAGS+set}
10192 ac_save_FFLAGS=$FCFLAGS
10193 FCFLAGS=
10194 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10195 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10196 if test "${ac_cv_prog_fc_g+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199   FCFLAGS=-g
10200 cat >conftest.$ac_ext <<_ACEOF
10201       program main
10202
10203       end
10204 _ACEOF
10205 rm -f conftest.$ac_objext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10207   (eval $ac_compile) 2>conftest.er1
10208   ac_status=$?
10209   grep -v '^ *+' conftest.er1 >conftest.err
10210   rm -f conftest.er1
10211   cat conftest.err >&5
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } &&
10214          { ac_try='test -z "$ac_fc_werror_flag"
10215                          || test ! -s conftest.err'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; } &&
10221          { ac_try='test -s conftest.$ac_objext'
10222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223   (eval $ac_try) 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); }; }; then
10227   ac_cv_prog_fc_g=yes
10228 else
10229   echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ac_cv_prog_fc_g=no
10233 fi
10234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10235
10236 fi
10237 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10238 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10239 if test "$ac_test_FFLAGS" = set; then
10240   FCFLAGS=$ac_save_FFLAGS
10241 elif test $ac_cv_prog_fc_g = yes; then
10242   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10243     FCFLAGS="-g -O2"
10244   else
10245     FCFLAGS="-g"
10246   fi
10247 else
10248   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10249     FCFLAGS="-O2"
10250   else
10251     FCFLAGS=
10252   fi
10253 fi
10254
10255 ac_ext=c
10256 ac_cpp='$CPP $CPPFLAGS'
10257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10260
10261
10262 ac_ext=${FC_SRCEXT-f}
10263 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10264 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10265 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10266 if test -n "$ac_tool_prefix"; then
10267   for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10268   do
10269     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10271 echo "$as_me:$LINENO: checking for $ac_word" >&5
10272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10273 if test "${ac_cv_prog_FC+set}" = set; then
10274   echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276   if test -n "$FC"; then
10277   ac_cv_prog_FC="$FC" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10281 do
10282   IFS=$as_save_IFS
10283   test -z "$as_dir" && as_dir=.
10284   for ac_exec_ext in '' $ac_executable_extensions; do
10285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10288     break 2
10289   fi
10290 done
10291 done
10292
10293 fi
10294 fi
10295 FC=$ac_cv_prog_FC
10296 if test -n "$FC"; then
10297   echo "$as_me:$LINENO: result: $FC" >&5
10298 echo "${ECHO_T}$FC" >&6
10299 else
10300   echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6
10302 fi
10303
10304     test -n "$FC" && break
10305   done
10306 fi
10307 if test -z "$FC"; then
10308   ac_ct_FC=$FC
10309   for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10310 do
10311   # Extract the first word of "$ac_prog", so it can be a program name with args.
10312 set dummy $ac_prog; ac_word=$2
10313 echo "$as_me:$LINENO: checking for $ac_word" >&5
10314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10315 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   if test -n "$ac_ct_FC"; then
10319   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10323 do
10324   IFS=$as_save_IFS
10325   test -z "$as_dir" && as_dir=.
10326   for ac_exec_ext in '' $ac_executable_extensions; do
10327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328     ac_cv_prog_ac_ct_FC="$ac_prog"
10329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330     break 2
10331   fi
10332 done
10333 done
10334
10335 fi
10336 fi
10337 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10338 if test -n "$ac_ct_FC"; then
10339   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10340 echo "${ECHO_T}$ac_ct_FC" >&6
10341 else
10342   echo "$as_me:$LINENO: result: no" >&5
10343 echo "${ECHO_T}no" >&6
10344 fi
10345
10346   test -n "$ac_ct_FC" && break
10347 done
10348
10349   FC=$ac_ct_FC
10350 fi
10351
10352
10353 # Provide some information about the compiler.
10354 echo "$as_me:10354:" \
10355      "checking for Fortran compiler version" >&5
10356 ac_compiler=`set X $ac_compile; echo $2`
10357 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10358   (eval $ac_compiler --version </dev/null >&5) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }
10362 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10363   (eval $ac_compiler -v </dev/null >&5) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }
10367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10368   (eval $ac_compiler -V </dev/null >&5) 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); }
10372 rm -f a.out
10373
10374 # If we don't use `.F' as extension, the preprocessor is not run on the
10375 # input file.  (Note that this only needs to work for GNU compilers.)
10376 ac_save_ext=$ac_ext
10377 ac_ext=F
10378 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10379 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10380 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10381   echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383   cat >conftest.$ac_ext <<_ACEOF
10384       program main
10385 #ifndef __GNUC__
10386        choke me
10387 #endif
10388
10389       end
10390 _ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393   (eval $ac_compile) 2>conftest.er1
10394   ac_status=$?
10395   grep -v '^ *+' conftest.er1 >conftest.err
10396   rm -f conftest.er1
10397   cat conftest.err >&5
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); } &&
10400          { ac_try='test -z "$ac_fc_werror_flag"
10401                          || test ! -s conftest.err'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; } &&
10407          { ac_try='test -s conftest.$ac_objext'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413   ac_compiler_gnu=yes
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_compiler_gnu=no
10419 fi
10420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10421 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10422
10423 fi
10424 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10425 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10426 ac_ext=$ac_save_ext
10427 ac_test_FFLAGS=${FCFLAGS+set}
10428 ac_save_FFLAGS=$FCFLAGS
10429 FCFLAGS=
10430 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10431 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10432 if test "${ac_cv_prog_fc_g+set}" = set; then
10433   echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435   FCFLAGS=-g
10436 cat >conftest.$ac_ext <<_ACEOF
10437       program main
10438
10439       end
10440 _ACEOF
10441 rm -f conftest.$ac_objext
10442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10443   (eval $ac_compile) 2>conftest.er1
10444   ac_status=$?
10445   grep -v '^ *+' conftest.er1 >conftest.err
10446   rm -f conftest.er1
10447   cat conftest.err >&5
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); } &&
10450          { ac_try='test -z "$ac_fc_werror_flag"
10451                          || test ! -s conftest.err'
10452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453   (eval $ac_try) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; } &&
10457          { ac_try='test -s conftest.$ac_objext'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_cv_prog_fc_g=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 ac_cv_prog_fc_g=no
10469 fi
10470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10471
10472 fi
10473 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10474 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10475 if test "$ac_test_FFLAGS" = set; then
10476   FCFLAGS=$ac_save_FFLAGS
10477 elif test $ac_cv_prog_fc_g = yes; then
10478   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10479     FCFLAGS="-g -O2"
10480   else
10481     FCFLAGS="-g"
10482   fi
10483 else
10484   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10485     FCFLAGS="-O2"
10486   else
10487     FCFLAGS=
10488   fi
10489 fi
10490
10491 ac_ext=c
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496
10497 if test -z "$FC" || test "X$FC" = "Xno"; then
10498   _lt_disable_FC=yes
10499 fi
10500
10501
10502
10503       ac_ext=${FC_SRCEXT-f}
10504 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10505 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10506 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10507
10508
10509 archive_cmds_need_lc_FC=no
10510 allow_undefined_flag_FC=
10511 always_export_symbols_FC=no
10512 archive_expsym_cmds_FC=
10513 export_dynamic_flag_spec_FC=
10514 hardcode_direct_FC=no
10515 hardcode_direct_absolute_FC=no
10516 hardcode_libdir_flag_spec_FC=
10517 hardcode_libdir_flag_spec_ld_FC=
10518 hardcode_libdir_separator_FC=
10519 hardcode_minus_L_FC=no
10520 hardcode_automatic_FC=no
10521 inherit_rpath_FC=no
10522 module_cmds_FC=
10523 module_expsym_cmds_FC=
10524 link_all_deplibs_FC=unknown
10525 old_archive_cmds_FC=$old_archive_cmds
10526 no_undefined_flag_FC=
10527 whole_archive_flag_spec_FC=
10528 enable_shared_with_static_runtimes_FC=no
10529
10530 # Source file extension for fc test sources.
10531 ac_ext=${ac_fc_srcext-f}
10532
10533 # Object file extension for compiled fc test sources.
10534 objext=o
10535 objext_FC=$objext
10536
10537 # No sense in running all these tests if we already determined that
10538 # the FC compiler isn't working.  Some variables (like enable_shared)
10539 # are currently assumed to apply to all compilers on this platform,
10540 # and will be corrupted by setting them based on a non-working compiler.
10541 if test "$_lt_disable_FC" != yes; then
10542   # Code to be used in simple compile tests
10543   lt_simple_compile_test_code="\
10544       subroutine t
10545       return
10546       end
10547 "
10548
10549   # Code to be used in simple link tests
10550   lt_simple_link_test_code="\
10551       program t
10552       end
10553 "
10554
10555   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10556
10557
10558
10559
10560
10561
10562 # If no C compiler was specified, use CC.
10563 LTCC=${LTCC-"$CC"}
10564
10565 # If no C compiler flags were specified, use CFLAGS.
10566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10567
10568 # Allow CC to be a program name with arguments.
10569 compiler=$CC
10570
10571
10572   # save warnings/boilerplate of simple test code
10573   ac_outfile=conftest.$ac_objext
10574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10576 _lt_compiler_boilerplate=`cat conftest.err`
10577 $RM conftest*
10578
10579   ac_outfile=conftest.$ac_objext
10580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10582 _lt_linker_boilerplate=`cat conftest.err`
10583 $RM conftest*
10584
10585
10586   # Allow CC to be a program name with arguments.
10587   lt_save_CC="$CC"
10588   CC=${FC-"f95"}
10589   compiler=$CC
10590   compiler_FC=$CC
10591   for cc_temp in $compiler""; do
10592   case $cc_temp in
10593     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10594     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10595     \-*) ;;
10596     *) break;;
10597   esac
10598 done
10599 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10600
10601
10602   if test -n "$compiler"; then
10603     echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10604 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10605     echo "$as_me:$LINENO: result: $can_build_shared" >&5
10606 echo "${ECHO_T}$can_build_shared" >&6
10607
10608     echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10609 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10610     test "$can_build_shared" = "no" && enable_shared=no
10611
10612     # On AIX, shared libraries and static libraries use the same namespace, and
10613     # are all built from PIC.
10614     case $host_os in
10615       aix3*)
10616         test "$enable_shared" = yes && enable_static=no
10617         if test -n "$RANLIB"; then
10618           archive_cmds="$archive_cmds~\$RANLIB \$lib"
10619           postinstall_cmds='$RANLIB $lib'
10620         fi
10621         ;;
10622       aix[4-9]*)
10623         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10624           test "$enable_shared" = yes && enable_static=no
10625         fi
10626         ;;
10627     esac
10628     echo "$as_me:$LINENO: result: $enable_shared" >&5
10629 echo "${ECHO_T}$enable_shared" >&6
10630
10631     echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10632 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10633     # Make sure either enable_shared or enable_static is yes.
10634     test "$enable_shared" = yes || enable_static=yes
10635     echo "$as_me:$LINENO: result: $enable_static" >&5
10636 echo "${ECHO_T}$enable_static" >&6
10637
10638     GCC_FC="$ac_cv_fc_compiler_gnu"
10639     LD_FC="$LD"
10640
10641     ## CAVEAT EMPTOR:
10642     ## There is no encapsulation within the following macros, do not change
10643     ## the running order or otherwise move them around unless you know exactly
10644     ## what you are doing...
10645     # Dependencies to place before and after the object being linked:
10646 predep_objects_FC=
10647 postdep_objects_FC=
10648 predeps_FC=
10649 postdeps_FC=
10650 compiler_lib_search_path_FC=
10651
10652 cat > conftest.$ac_ext <<_LT_EOF
10653       subroutine foo
10654       implicit none
10655       integer a
10656       a=0
10657       return
10658       end
10659 _LT_EOF
10660
10661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662   (eval $ac_compile) 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); }; then
10666   # Parse the compiler output and extract the necessary
10667   # objects, libraries and library flags.
10668
10669   # Sentinel used to keep track of whether or not we are before
10670   # the conftest object file.
10671   pre_test_object_deps_done=no
10672
10673   # The `*' in the case matches for architectures that use `case' in
10674   # $output_verbose_cmd can trigger glob expansion during the loop
10675   # eval without this substitution.
10676   output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10677
10678   for p in `eval $output_verbose_link_cmd`; do
10679     case $p in
10680
10681     -L* | -R* | -l*)
10682        # Some compilers place space between "-{L,R}" and the path.
10683        # Remove the space.
10684        if test $p = "-L" ||
10685           test $p = "-R"; then
10686          prev=$p
10687          continue
10688        else
10689          prev=
10690        fi
10691
10692        if test "$pre_test_object_deps_done" = no; then
10693          case $p in
10694          -L* | -R*)
10695            # Internal compiler library paths should come after those
10696            # provided the user.  The postdeps already come after the
10697            # user supplied libs so there is no need to process them.
10698            if test -z "$compiler_lib_search_path_FC"; then
10699              compiler_lib_search_path_FC="${prev}${p}"
10700            else
10701              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10702            fi
10703            ;;
10704          # The "-l" case would never come before the object being
10705          # linked, so don't bother handling this case.
10706          esac
10707        else
10708          if test -z "$postdeps_FC"; then
10709            postdeps_FC="${prev}${p}"
10710          else
10711            postdeps_FC="${postdeps_FC} ${prev}${p}"
10712          fi
10713        fi
10714        ;;
10715
10716     *.$objext)
10717        # This assumes that the test object file only shows up
10718        # once in the compiler output.
10719        if test "$p" = "conftest.$objext"; then
10720          pre_test_object_deps_done=yes
10721          continue
10722        fi
10723
10724        if test "$pre_test_object_deps_done" = no; then
10725          if test -z "$predep_objects_FC"; then
10726            predep_objects_FC="$p"
10727          else
10728            predep_objects_FC="$predep_objects_FC $p"
10729          fi
10730        else
10731          if test -z "$postdep_objects_FC"; then
10732            postdep_objects_FC="$p"
10733          else
10734            postdep_objects_FC="$postdep_objects_FC $p"
10735          fi
10736        fi
10737        ;;
10738
10739     *) ;; # Ignore the rest.
10740
10741     esac
10742   done
10743
10744   # Clean up.
10745   rm -f a.out a.exe
10746 else
10747   echo "libtool.m4: error: problem compiling FC test program"
10748 fi
10749
10750 $RM -f confest.$objext
10751
10752 # PORTME: override above test on systems where it is broken
10753
10754
10755 case " $postdeps_FC " in
10756 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10757 esac
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784     lt_prog_compiler_wl_FC=
10785 lt_prog_compiler_pic_FC=
10786 lt_prog_compiler_static_FC=
10787
10788 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10789 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10790
10791   if test "$GCC" = yes; then
10792     lt_prog_compiler_wl_FC='-Wl,'
10793     lt_prog_compiler_static_FC='-static'
10794
10795     case $host_os in
10796       aix*)
10797       # All AIX code is PIC.
10798       if test "$host_cpu" = ia64; then
10799         # AIX 5 now supports IA64 processor
10800         lt_prog_compiler_static_FC='-Bstatic'
10801       fi
10802       ;;
10803
10804     amigaos*)
10805       if test "$host_cpu" = m68k; then
10806         # FIXME: we need at least 68020 code to build shared libraries, but
10807         # adding the `-m68020' flag to GCC prevents building anything better,
10808         # like `-m68040'.
10809         lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10810       fi
10811       ;;
10812
10813     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10814       # PIC is the default for these OSes.
10815       ;;
10816
10817     mingw* | cygwin* | pw32* | os2*)
10818       # This hack is so that the source file can tell whether it is being
10819       # built for inclusion in a dll (and should export symbols for example).
10820       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10821       # (--disable-auto-import) libraries
10822       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10823       ;;
10824
10825     darwin* | rhapsody*)
10826       # PIC is the default on this platform
10827       # Common symbols not allowed in MH_DYLIB files
10828       lt_prog_compiler_pic_FC='-fno-common'
10829       ;;
10830
10831     hpux*)
10832       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10833       # not for PA HP-UX.
10834       case $host_cpu in
10835       hppa*64*|ia64*)
10836         # +Z the default
10837         ;;
10838       *)
10839         lt_prog_compiler_pic_FC='-fPIC'
10840         ;;
10841       esac
10842       ;;
10843
10844     interix[3-9]*)
10845       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10846       # Instead, we relocate shared libraries at runtime.
10847       ;;
10848
10849     msdosdjgpp*)
10850       # Just because we use GCC doesn't mean we suddenly get shared libraries
10851       # on systems that don't support them.
10852       lt_prog_compiler_can_build_shared_FC=no
10853       enable_shared=no
10854       ;;
10855
10856     *nto* | *qnx*)
10857       # QNX uses GNU C++, but need to define -shared option too, otherwise
10858       # it will coredump.
10859       lt_prog_compiler_pic_FC='-fPIC -shared'
10860       ;;
10861
10862     sysv4*MP*)
10863       if test -d /usr/nec; then
10864         lt_prog_compiler_pic_FC=-Kconform_pic
10865       fi
10866       ;;
10867
10868     *)
10869       lt_prog_compiler_pic_FC='-fPIC'
10870       ;;
10871     esac
10872   else
10873     # PORTME Check for flag to pass linker flags through the system compiler.
10874     case $host_os in
10875     aix*)
10876       lt_prog_compiler_wl_FC='-Wl,'
10877       if test "$host_cpu" = ia64; then
10878         # AIX 5 now supports IA64 processor
10879         lt_prog_compiler_static_FC='-Bstatic'
10880       else
10881         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10882       fi
10883       ;;
10884     darwin*)
10885       # PIC is the default on this platform
10886       # Common symbols not allowed in MH_DYLIB files
10887       case $cc_basename in
10888       xlc*)
10889         lt_prog_compiler_pic_FC='-qnocommon'
10890         lt_prog_compiler_wl_FC='-Wl,'
10891         ;;
10892       esac
10893       ;;
10894
10895     mingw* | cygwin* | pw32* | os2*)
10896       # This hack is so that the source file can tell whether it is being
10897       # built for inclusion in a dll (and should export symbols for example).
10898       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10899       ;;
10900
10901     hpux9* | hpux10* | hpux11*)
10902       lt_prog_compiler_wl_FC='-Wl,'
10903       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10904       # not for PA HP-UX.
10905       case $host_cpu in
10906       hppa*64*|ia64*)
10907         # +Z the default
10908         ;;
10909       *)
10910         lt_prog_compiler_pic_FC='+Z'
10911         ;;
10912       esac
10913       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10914       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10915       ;;
10916
10917     irix5* | irix6* | nonstopux*)
10918       lt_prog_compiler_wl_FC='-Wl,'
10919       # PIC (with -KPIC) is the default.
10920       lt_prog_compiler_static_FC='-non_shared'
10921       ;;
10922
10923     linux* | k*bsd*-gnu)
10924       case $cc_basename in
10925       icc* | ecc*)
10926         lt_prog_compiler_wl_FC='-Wl,'
10927         lt_prog_compiler_pic_FC='-KPIC'
10928         lt_prog_compiler_static_FC='-static'
10929         ;;
10930       pgcc* | pgf77* | pgf90* | pgf95*)
10931         # Portland Group compilers (*not* the Pentium gcc compiler,
10932         # which looks to be a dead project)
10933         lt_prog_compiler_wl_FC='-Wl,'
10934         lt_prog_compiler_pic_FC='-fpic'
10935         lt_prog_compiler_static_FC='-Bstatic'
10936         ;;
10937       ccc*)
10938         lt_prog_compiler_wl_FC='-Wl,'
10939         # All Alpha code is PIC.
10940         lt_prog_compiler_static_FC='-non_shared'
10941         ;;
10942       *)
10943         case `$CC -V 2>&1 | sed 5q` in
10944         *Sun\ C*)
10945           # Sun C 5.9
10946           lt_prog_compiler_pic_FC='-KPIC'
10947           lt_prog_compiler_static_FC='-Bstatic'
10948           lt_prog_compiler_wl_FC='-Wl,'
10949           ;;
10950         *Sun\ F*)
10951           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10952           lt_prog_compiler_pic_FC='-KPIC'
10953           lt_prog_compiler_static_FC='-Bstatic'
10954           lt_prog_compiler_wl_FC=''
10955           ;;
10956         esac
10957         ;;
10958       esac
10959       ;;
10960
10961     newsos6)
10962       lt_prog_compiler_pic_FC='-KPIC'
10963       lt_prog_compiler_static_FC='-Bstatic'
10964       ;;
10965
10966     *nto* | *qnx*)
10967       # QNX uses GNU C++, but need to define -shared option too, otherwise
10968       # it will coredump.
10969       lt_prog_compiler_pic_FC='-fPIC -shared'
10970       ;;
10971
10972     osf3* | osf4* | osf5*)
10973       lt_prog_compiler_wl_FC='-Wl,'
10974       # All OSF/1 code is PIC.
10975       lt_prog_compiler_static_FC='-non_shared'
10976       ;;
10977
10978     rdos*)
10979       lt_prog_compiler_static_FC='-non_shared'
10980       ;;
10981
10982     solaris*)
10983       lt_prog_compiler_pic_FC='-KPIC'
10984       lt_prog_compiler_static_FC='-Bstatic'
10985       case $cc_basename in
10986       f77* | f90* | f95*)
10987         lt_prog_compiler_wl_FC='-Qoption ld ';;
10988       *)
10989         lt_prog_compiler_wl_FC='-Wl,';;
10990       esac
10991       ;;
10992
10993     sunos4*)
10994       lt_prog_compiler_wl_FC='-Qoption ld '
10995       lt_prog_compiler_pic_FC='-PIC'
10996       lt_prog_compiler_static_FC='-Bstatic'
10997       ;;
10998
10999     sysv4 | sysv4.2uw2* | sysv4.3*)
11000       lt_prog_compiler_wl_FC='-Wl,'
11001       lt_prog_compiler_pic_FC='-KPIC'
11002       lt_prog_compiler_static_FC='-Bstatic'
11003       ;;
11004
11005     sysv4*MP*)
11006       if test -d /usr/nec ;then
11007         lt_prog_compiler_pic_FC='-Kconform_pic'
11008         lt_prog_compiler_static_FC='-Bstatic'
11009       fi
11010       ;;
11011
11012     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11013       lt_prog_compiler_wl_FC='-Wl,'
11014       lt_prog_compiler_pic_FC='-KPIC'
11015       lt_prog_compiler_static_FC='-Bstatic'
11016       ;;
11017
11018     unicos*)
11019       lt_prog_compiler_wl_FC='-Wl,'
11020       lt_prog_compiler_can_build_shared_FC=no
11021       ;;
11022
11023     uts4*)
11024       lt_prog_compiler_pic_FC='-pic'
11025       lt_prog_compiler_static_FC='-Bstatic'
11026       ;;
11027
11028     *)
11029       lt_prog_compiler_can_build_shared_FC=no
11030       ;;
11031     esac
11032   fi
11033
11034 case $host_os in
11035   # For platforms which do not support PIC, -DPIC is meaningless:
11036   *djgpp*)
11037     lt_prog_compiler_pic_FC=
11038     ;;
11039   *)
11040     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11041     ;;
11042 esac
11043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11044 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11045
11046
11047
11048 #
11049 # Check to make sure the PIC flag actually works.
11050 #
11051 if test -n "$lt_prog_compiler_pic_FC"; then
11052   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11054 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11055   echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057   lt_prog_compiler_pic_works_FC=no
11058    ac_outfile=conftest.$ac_objext
11059    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11060    lt_compiler_flag="$lt_prog_compiler_pic_FC"
11061    # Insert the option either (1) after the last *FLAGS variable, or
11062    # (2) before a word containing "conftest.", or (3) at the end.
11063    # Note that $ac_compile itself does not contain backslashes and begins
11064    # with a dollar sign (not a hyphen), so the echo should work correctly.
11065    # The option is referenced via a variable to avoid confusing sed.
11066    lt_compile=`echo "$ac_compile" | $SED \
11067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11069    -e 's:$: $lt_compiler_flag:'`
11070    (eval echo "\"\$as_me:11070: $lt_compile\"" >&5)
11071    (eval "$lt_compile" 2>conftest.err)
11072    ac_status=$?
11073    cat conftest.err >&5
11074    echo "$as_me:11074: \$? = $ac_status" >&5
11075    if (exit $ac_status) && test -s "$ac_outfile"; then
11076      # The compiler can only warn and ignore the option if not recognized
11077      # So say no if there are warnings other than the usual output.
11078      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11079      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11080      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11081        lt_prog_compiler_pic_works_FC=yes
11082      fi
11083    fi
11084    $RM conftest*
11085
11086 fi
11087 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11088 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11089
11090 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11091     case $lt_prog_compiler_pic_FC in
11092      "" | " "*) ;;
11093      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11094      esac
11095 else
11096     lt_prog_compiler_pic_FC=
11097      lt_prog_compiler_can_build_shared_FC=no
11098 fi
11099
11100 fi
11101
11102
11103
11104 #
11105 # Check to make sure the static flag actually works.
11106 #
11107 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11108 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11109 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11110 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11111   echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113   lt_prog_compiler_static_works_FC=no
11114    save_LDFLAGS="$LDFLAGS"
11115    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11116    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11117    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11118      # The linker can only warn and ignore the option if not recognized
11119      # So say no if there are warnings
11120      if test -s conftest.err; then
11121        # Append any errors to the config.log.
11122        cat conftest.err 1>&5
11123        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11124        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11125        if diff conftest.exp conftest.er2 >/dev/null; then
11126          lt_prog_compiler_static_works_FC=yes
11127        fi
11128      else
11129        lt_prog_compiler_static_works_FC=yes
11130      fi
11131    fi
11132    $RM conftest*
11133    LDFLAGS="$save_LDFLAGS"
11134
11135 fi
11136 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11137 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11138
11139 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11140     :
11141 else
11142     lt_prog_compiler_static_FC=
11143 fi
11144
11145
11146
11147
11148     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11150 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11151   echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153   lt_cv_prog_compiler_c_o_FC=no
11154    $RM -r conftest 2>/dev/null
11155    mkdir conftest
11156    cd conftest
11157    mkdir out
11158    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11159
11160    lt_compiler_flag="-o out/conftest2.$ac_objext"
11161    # Insert the option either (1) after the last *FLAGS variable, or
11162    # (2) before a word containing "conftest.", or (3) at the end.
11163    # Note that $ac_compile itself does not contain backslashes and begins
11164    # with a dollar sign (not a hyphen), so the echo should work correctly.
11165    lt_compile=`echo "$ac_compile" | $SED \
11166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11168    -e 's:$: $lt_compiler_flag:'`
11169    (eval echo "\"\$as_me:11169: $lt_compile\"" >&5)
11170    (eval "$lt_compile" 2>out/conftest.err)
11171    ac_status=$?
11172    cat out/conftest.err >&5
11173    echo "$as_me:11173: \$? = $ac_status" >&5
11174    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11175    then
11176      # The compiler can only warn and ignore the option if not recognized
11177      # So say no if there are warnings
11178      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11179      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11180      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11181        lt_cv_prog_compiler_c_o_FC=yes
11182      fi
11183    fi
11184    chmod u+w . 2>&5
11185    $RM conftest*
11186    # SGI C++ compiler will create directory out/ii_files/ for
11187    # template instantiation
11188    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11189    $RM out/* && rmdir out
11190    cd ..
11191    $RM -r conftest
11192    $RM conftest*
11193
11194 fi
11195 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11196 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11197
11198
11199
11200     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11202 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11203   echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205   lt_cv_prog_compiler_c_o_FC=no
11206    $RM -r conftest 2>/dev/null
11207    mkdir conftest
11208    cd conftest
11209    mkdir out
11210    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11211
11212    lt_compiler_flag="-o out/conftest2.$ac_objext"
11213    # Insert the option either (1) after the last *FLAGS variable, or
11214    # (2) before a word containing "conftest.", or (3) at the end.
11215    # Note that $ac_compile itself does not contain backslashes and begins
11216    # with a dollar sign (not a hyphen), so the echo should work correctly.
11217    lt_compile=`echo "$ac_compile" | $SED \
11218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11220    -e 's:$: $lt_compiler_flag:'`
11221    (eval echo "\"\$as_me:11221: $lt_compile\"" >&5)
11222    (eval "$lt_compile" 2>out/conftest.err)
11223    ac_status=$?
11224    cat out/conftest.err >&5
11225    echo "$as_me:11225: \$? = $ac_status" >&5
11226    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11227    then
11228      # The compiler can only warn and ignore the option if not recognized
11229      # So say no if there are warnings
11230      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11231      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11232      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11233        lt_cv_prog_compiler_c_o_FC=yes
11234      fi
11235    fi
11236    chmod u+w . 2>&5
11237    $RM conftest*
11238    # SGI C++ compiler will create directory out/ii_files/ for
11239    # template instantiation
11240    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11241    $RM out/* && rmdir out
11242    cd ..
11243    $RM -r conftest
11244    $RM conftest*
11245
11246 fi
11247 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11249
11250
11251
11252
11253 hard_links="nottested"
11254 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11255   # do not overwrite the value of need_locks provided by the user
11256   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11257 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11258   hard_links=yes
11259   $RM conftest*
11260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11261   touch conftest.a
11262   ln conftest.a conftest.b 2>&5 || hard_links=no
11263   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11264   echo "$as_me:$LINENO: result: $hard_links" >&5
11265 echo "${ECHO_T}$hard_links" >&6
11266   if test "$hard_links" = no; then
11267     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11268 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11269     need_locks=warn
11270   fi
11271 else
11272   need_locks=no
11273 fi
11274
11275
11276
11277     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11279
11280   runpath_var=
11281   allow_undefined_flag_FC=
11282   always_export_symbols_FC=no
11283   archive_cmds_FC=
11284   archive_expsym_cmds_FC=
11285   compiler_needs_object_FC=no
11286   enable_shared_with_static_runtimes_FC=no
11287   export_dynamic_flag_spec_FC=
11288   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11289   hardcode_automatic_FC=no
11290   hardcode_direct_FC=no
11291   hardcode_direct_absolute_FC=no
11292   hardcode_libdir_flag_spec_FC=
11293   hardcode_libdir_flag_spec_ld_FC=
11294   hardcode_libdir_separator_FC=
11295   hardcode_minus_L_FC=no
11296   hardcode_shlibpath_var_FC=unsupported
11297   inherit_rpath_FC=no
11298   link_all_deplibs_FC=unknown
11299   module_cmds_FC=
11300   module_expsym_cmds_FC=
11301   old_archive_from_new_cmds_FC=
11302   old_archive_from_expsyms_cmds_FC=
11303   thread_safe_flag_spec_FC=
11304   whole_archive_flag_spec_FC=
11305   # include_expsyms should be a list of space-separated symbols to be *always*
11306   # included in the symbol list
11307   include_expsyms_FC=
11308   # exclude_expsyms can be an extended regexp of symbols to exclude
11309   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11310   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11311   # as well as any symbol that contains `d'.
11312   exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11313   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11314   # platforms (ab)use it in PIC code, but their linkers get confused if
11315   # the symbol is explicitly referenced.  Since portable code cannot
11316   # rely on this symbol name, it's probably fine to never include it in
11317   # preloaded symbol tables.
11318   extract_expsyms_cmds=
11319
11320   case $host_os in
11321   cygwin* | mingw* | pw32*)
11322     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11323     # When not using gcc, we currently assume that we are using
11324     # Microsoft Visual C++.
11325     if test "$GCC" != yes; then
11326       with_gnu_ld=no
11327     fi
11328     ;;
11329   interix*)
11330     # we just hope/assume this is gcc and not c89 (= MSVC++)
11331     with_gnu_ld=yes
11332     ;;
11333   openbsd*)
11334     with_gnu_ld=no
11335     ;;
11336   esac
11337
11338   ld_shlibs_FC=yes
11339   if test "$with_gnu_ld" = yes; then
11340     # If archive_cmds runs LD, not CC, wlarc should be empty
11341     wlarc='${wl}'
11342
11343     # Set some defaults for GNU ld with shared library support. These
11344     # are reset later if shared libraries are not supported. Putting them
11345     # here allows them to be overridden if necessary.
11346     runpath_var=LD_RUN_PATH
11347     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11348     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11349     # ancient GNU ld didn't support --whole-archive et. al.
11350     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11351       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11352     else
11353       whole_archive_flag_spec_FC=
11354     fi
11355     supports_anon_versioning=no
11356     case `$LD -v 2>&1` in
11357       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11358       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11359       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11360       *\ 2.11.*) ;; # other 2.11 versions
11361       *) supports_anon_versioning=yes ;;
11362     esac
11363
11364     # See if GNU ld supports shared libraries.
11365     case $host_os in
11366     aix[3-9]*)
11367       # On AIX/PPC, the GNU linker is very broken
11368       if test "$host_cpu" != ia64; then
11369         ld_shlibs_FC=no
11370         cat <<_LT_EOF 1>&2
11371
11372 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11373 *** to be unable to reliably create shared libraries on AIX.
11374 *** Therefore, libtool is disabling shared libraries support.  If you
11375 *** really care for shared libraries, you may want to modify your PATH
11376 *** so that a non-GNU linker is found, and then restart.
11377
11378 _LT_EOF
11379       fi
11380       ;;
11381
11382     amigaos*)
11383       if test "$host_cpu" = m68k; then
11384         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)'
11385         hardcode_libdir_flag_spec_FC='-L$libdir'
11386         hardcode_minus_L_FC=yes
11387       fi
11388
11389       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11390       # that the semantics of dynamic libraries on AmigaOS, at least up
11391       # to version 4, is to share data among multiple programs linked
11392       # with the same dynamic library.  Since this doesn't match the
11393       # behavior of shared libraries on other platforms, we can't use
11394       # them.
11395       ld_shlibs_FC=no
11396       ;;
11397
11398     beos*)
11399       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11400         allow_undefined_flag_FC=unsupported
11401         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11402         # support --undefined.  This deserves some investigation.  FIXME
11403         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11404       else
11405         ld_shlibs_FC=no
11406       fi
11407       ;;
11408
11409     cygwin* | mingw* | pw32*)
11410       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11411       # as there is no search path for DLLs.
11412       hardcode_libdir_flag_spec_FC='-L$libdir'
11413       allow_undefined_flag_FC=unsupported
11414       always_export_symbols_FC=no
11415       enable_shared_with_static_runtimes_FC=yes
11416       export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11417
11418       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11419         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11420         # If the export-symbols file already is a .def file (1st line
11421         # is EXPORTS), use it as is; otherwise, prepend...
11422         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11423           cp $export_symbols $output_objdir/$soname.def;
11424         else
11425           echo EXPORTS > $output_objdir/$soname.def;
11426           cat $export_symbols >> $output_objdir/$soname.def;
11427         fi~
11428         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11429       else
11430         ld_shlibs_FC=no
11431       fi
11432       ;;
11433
11434     interix[3-9]*)
11435       hardcode_direct_FC=no
11436       hardcode_shlibpath_var_FC=no
11437       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11438       export_dynamic_flag_spec_FC='${wl}-E'
11439       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440       # Instead, shared libraries are loaded at an image base (0x10000000 by
11441       # default) and relocated if they conflict, which is a slow very memory
11442       # consuming and fragmenting process.  To avoid this, we pick a random,
11443       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11445       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'
11446       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'
11447       ;;
11448
11449     gnu* | linux* | tpf* | k*bsd*-gnu)
11450       tmp_diet=no
11451       if test "$host_os" = linux-dietlibc; then
11452         case $cc_basename in
11453           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11454         esac
11455       fi
11456       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11457          && test "$tmp_diet" = no
11458       then
11459         tmp_addflag=
11460         case $cc_basename,$host_cpu in
11461         pgcc*)                          # Portland Group C compiler
11462           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'
11463           tmp_addflag=' $pic_flag'
11464           ;;
11465         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11466           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'
11467           tmp_addflag=' $pic_flag -Mnomain' ;;
11468         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11469           tmp_addflag=' -i_dynamic' ;;
11470         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11471           tmp_addflag=' -i_dynamic -nofor_main' ;;
11472         ifc* | ifort*)                  # Intel Fortran compiler
11473           tmp_addflag=' -nofor_main' ;;
11474         esac
11475         case `$CC -V 2>&1 | sed 5q` in
11476         *Sun\ C*)                       # Sun C 5.9
11477           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'
11478           compiler_needs_object_FC=yes
11479           tmp_sharedflag='-G' ;;
11480         *Sun\ F*)                       # Sun Fortran 8.3
11481           tmp_sharedflag='-G' ;;
11482         *)
11483           tmp_sharedflag='-shared' ;;
11484         esac
11485         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11486
11487         if test "x$supports_anon_versioning" = xyes; then
11488           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11489             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11490             echo "local: *; };" >> $output_objdir/$libname.ver~
11491             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11492         fi
11493       else
11494         ld_shlibs_FC=no
11495       fi
11496       ;;
11497
11498     netbsd*)
11499       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11500         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11501         wlarc=
11502       else
11503         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11505       fi
11506       ;;
11507
11508     solaris*)
11509       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11510         ld_shlibs_FC=no
11511         cat <<_LT_EOF 1>&2
11512
11513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11514 *** create shared libraries on Solaris systems.  Therefore, libtool
11515 *** is disabling shared libraries support.  We urge you to upgrade GNU
11516 *** binutils to release 2.9.1 or newer.  Another option is to modify
11517 *** your PATH or compiler configuration so that the native linker is
11518 *** used, and then restart.
11519
11520 _LT_EOF
11521       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11522         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11523         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11524       else
11525         ld_shlibs_FC=no
11526       fi
11527       ;;
11528
11529     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11530       case `$LD -v 2>&1` in
11531         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11532         ld_shlibs_FC=no
11533         cat <<_LT_EOF 1>&2
11534
11535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11536 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11537 *** is disabling shared libraries support.  We urge you to upgrade GNU
11538 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11539 *** your PATH or compiler configuration so that the native linker is
11540 *** used, and then restart.
11541
11542 _LT_EOF
11543         ;;
11544         *)
11545           # For security reasons, it is highly recommended that you always
11546           # use absolute paths for naming shared libraries, and exclude the
11547           # DT_RUNPATH tag from executables and libraries.  But doing so
11548           # requires that you compile everything twice, which is a pain.
11549           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11550             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11551             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11552             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11553           else
11554             ld_shlibs_FC=no
11555           fi
11556         ;;
11557       esac
11558       ;;
11559
11560     sunos4*)
11561       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11562       wlarc=
11563       hardcode_direct_FC=yes
11564       hardcode_shlibpath_var_FC=no
11565       ;;
11566
11567     *)
11568       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11569         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11570         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11571       else
11572         ld_shlibs_FC=no
11573       fi
11574       ;;
11575     esac
11576
11577     if test "$ld_shlibs_FC" = no; then
11578       runpath_var=
11579       hardcode_libdir_flag_spec_FC=
11580       export_dynamic_flag_spec_FC=
11581       whole_archive_flag_spec_FC=
11582     fi
11583   else
11584     # PORTME fill in a description of your system's linker (not GNU ld)
11585     case $host_os in
11586     aix3*)
11587       allow_undefined_flag_FC=unsupported
11588       always_export_symbols_FC=yes
11589       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'
11590       # Note: this linker hardcodes the directories in LIBPATH if there
11591       # are no directories specified by -L.
11592       hardcode_minus_L_FC=yes
11593       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11594         # Neither direct hardcoding nor static linking is supported with a
11595         # broken collect2.
11596         hardcode_direct_FC=unsupported
11597       fi
11598       ;;
11599
11600     aix[4-9]*)
11601       if test "$host_cpu" = ia64; then
11602         # On IA64, the linker does run time linking by default, so we don't
11603         # have to do anything special.
11604         aix_use_runtimelinking=no
11605         exp_sym_flag='-Bexport'
11606         no_entry_flag=""
11607       else
11608         # If we're using GNU nm, then we don't want the "-C" option.
11609         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11610         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11611           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'
11612         else
11613           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'
11614         fi
11615         aix_use_runtimelinking=no
11616
11617         # Test if we are trying to use run time linking or normal
11618         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11619         # need to do runtime linking.
11620         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11621           for ld_flag in $LDFLAGS; do
11622           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11623             aix_use_runtimelinking=yes
11624             break
11625           fi
11626           done
11627           ;;
11628         esac
11629
11630         exp_sym_flag='-bexport'
11631         no_entry_flag='-bnoentry'
11632       fi
11633
11634       # When large executables or shared objects are built, AIX ld can
11635       # have problems creating the table of contents.  If linking a library
11636       # or program results in "error TOC overflow" add -mminimal-toc to
11637       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11638       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11639
11640       archive_cmds_FC=''
11641       hardcode_direct_FC=yes
11642       hardcode_direct_absolute_FC=yes
11643       hardcode_libdir_separator_FC=':'
11644       link_all_deplibs_FC=yes
11645       file_list_spec_FC='${wl}-f,'
11646
11647       if test "$GCC" = yes; then
11648         case $host_os in aix4.[012]|aix4.[012].*)
11649         # We only want to do this on AIX 4.2 and lower, the check
11650         # below for broken collect2 doesn't work under 4.3+
11651           collect2name=`${CC} -print-prog-name=collect2`
11652           if test -f "$collect2name" &&
11653            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11654           then
11655           # We have reworked collect2
11656           :
11657           else
11658           # We have old collect2
11659           hardcode_direct_FC=unsupported
11660           # It fails to find uninstalled libraries when the uninstalled
11661           # path is not listed in the libpath.  Setting hardcode_minus_L
11662           # to unsupported forces relinking
11663           hardcode_minus_L_FC=yes
11664           hardcode_libdir_flag_spec_FC='-L$libdir'
11665           hardcode_libdir_separator_FC=
11666           fi
11667           ;;
11668         esac
11669         shared_flag='-shared'
11670         if test "$aix_use_runtimelinking" = yes; then
11671           shared_flag="$shared_flag "'${wl}-G'
11672         fi
11673       else
11674         # not using gcc
11675         if test "$host_cpu" = ia64; then
11676         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11677         # chokes on -Wl,-G. The following line is correct:
11678           shared_flag='-G'
11679         else
11680           if test "$aix_use_runtimelinking" = yes; then
11681             shared_flag='${wl}-G'
11682           else
11683             shared_flag='${wl}-bM:SRE'
11684           fi
11685         fi
11686       fi
11687
11688       # It seems that -bexpall does not export symbols beginning with
11689       # underscore (_), so it is better to generate a list of symbols to export.
11690       always_export_symbols_FC=yes
11691       if test "$aix_use_runtimelinking" = yes; then
11692         # Warning - without using the other runtime loading flags (-brtl),
11693         # -berok will link without error, but may produce a broken library.
11694         allow_undefined_flag_FC='-berok'
11695         # Determine the default libpath from the value encoded in an
11696         # empty executable.
11697         cat >conftest.$ac_ext <<_ACEOF
11698       program main
11699
11700       end
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704   (eval $ac_link) 2>conftest.er1
11705   ac_status=$?
11706   grep -v '^ *+' conftest.er1 >conftest.err
11707   rm -f conftest.er1
11708   cat conftest.err >&5
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } &&
11711          { ac_try='test -z "$ac_fc_werror_flag"
11712                          || test ! -s conftest.err'
11713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714   (eval $ac_try) 2>&5
11715   ac_status=$?
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); }; } &&
11718          { ac_try='test -s conftest$ac_exeext'
11719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720   (eval $ac_try) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }; }; then
11724
11725 lt_aix_libpath_sed='
11726     /Import File Strings/,/^$/ {
11727         /^0/ {
11728             s/^0  *\(.*\)$/\1/
11729             p
11730         }
11731     }'
11732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11733 # Check for a 64-bit object if we didn't find anything.
11734 if test -z "$aix_libpath"; then
11735   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736 fi
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 fi
11742 rm -f conftest.err conftest.$ac_objext \
11743       conftest$ac_exeext conftest.$ac_ext
11744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11745
11746         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11747         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"
11748       else
11749         if test "$host_cpu" = ia64; then
11750           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11751           allow_undefined_flag_FC="-z nodefs"
11752           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"
11753         else
11754          # Determine the default libpath from the value encoded in an
11755          # empty executable.
11756          cat >conftest.$ac_ext <<_ACEOF
11757       program main
11758
11759       end
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763   (eval $ac_link) 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } &&
11770          { ac_try='test -z "$ac_fc_werror_flag"
11771                          || test ! -s conftest.err'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; } &&
11777          { ac_try='test -s conftest$ac_exeext'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783
11784 lt_aix_libpath_sed='
11785     /Import File Strings/,/^$/ {
11786         /^0/ {
11787             s/^0  *\(.*\)$/\1/
11788             p
11789         }
11790     }'
11791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11792 # Check for a 64-bit object if we didn't find anything.
11793 if test -z "$aix_libpath"; then
11794   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11795 fi
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 fi
11801 rm -f conftest.err conftest.$ac_objext \
11802       conftest$ac_exeext conftest.$ac_ext
11803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11804
11805          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11806           # Warning - without using the other run time loading flags,
11807           # -berok will link without error, but may produce a broken library.
11808           no_undefined_flag_FC=' ${wl}-bernotok'
11809           allow_undefined_flag_FC=' ${wl}-berok'
11810           # Exported symbols can be pulled into shared objects from archives
11811           whole_archive_flag_spec_FC='$convenience'
11812           archive_cmds_need_lc_FC=yes
11813           # This is similar to how AIX traditionally builds its shared libraries.
11814           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'
11815         fi
11816       fi
11817       ;;
11818
11819     amigaos*)
11820       if test "$host_cpu" = m68k; then
11821         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)'
11822         hardcode_libdir_flag_spec_FC='-L$libdir'
11823         hardcode_minus_L_FC=yes
11824       fi
11825       # see comment about different semantics on the GNU ld section
11826       ld_shlibs_FC=no
11827       ;;
11828
11829     bsdi[45]*)
11830       export_dynamic_flag_spec_FC=-rdynamic
11831       ;;
11832
11833     cygwin* | mingw* | pw32*)
11834       # When not using gcc, we currently assume that we are using
11835       # Microsoft Visual C++.
11836       # hardcode_libdir_flag_spec is actually meaningless, as there is
11837       # no search path for DLLs.
11838       hardcode_libdir_flag_spec_FC=' '
11839       allow_undefined_flag_FC=unsupported
11840       # Tell ltmain to make .lib files, not .a files.
11841       libext=lib
11842       # Tell ltmain to make .dll files, not .so files.
11843       shrext_cmds=".dll"
11844       # FIXME: Setting linknames here is a bad hack.
11845       archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11846       # The linker will automatically build a .lib file if we build a DLL.
11847       old_archive_from_new_cmds_FC='true'
11848       # FIXME: Should let the user specify the lib program.
11849       old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11850       fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11851       enable_shared_with_static_runtimes_FC=yes
11852       ;;
11853
11854     darwin* | rhapsody*)
11855       case $host_os in
11856       rhapsody* | darwin1.[012])
11857         allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11858         ;;
11859       *) # Darwin 1.3 on
11860         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11861         10.[012])
11862           allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11863           ;;
11864         10.*)
11865           allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11866           ;;
11867         esac
11868         ;;
11869       esac
11870       archive_cmds_need_lc_FC=no
11871       hardcode_direct_FC=no
11872       hardcode_automatic_FC=yes
11873       hardcode_shlibpath_var_FC=unsupported
11874       whole_archive_flag_spec_FC=''
11875       link_all_deplibs_FC=yes
11876       if test "$GCC" = yes ; then
11877         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   lt_cv_apple_cc_single_mod=no
11881         if test -z "${LT_MULTI_MODULE}"; then
11882           # By default we will add the -single_module flag. You can override
11883           # by either setting the environment variable LT_MULTI_MODULE
11884           # non-empty at configure time, or by adding -multi-module to the
11885           # link flags.
11886           echo "int foo(void){return 1;}" > conftest.c
11887           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11888               -dynamiclib ${wl}-single_module conftest.c
11889           if test -f libconftest.dylib; then
11890               lt_cv_apple_cc_single_mod=yes
11891               rm libconftest.dylib
11892           fi
11893           rm conftest.$ac_ext
11894         fi
11895 fi
11896
11897         output_verbose_link_cmd=echo
11898         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11899           archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11900           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}'
11901         else
11902           archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11903           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}'
11904         fi
11905         module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11906         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}'
11907       else
11908         case $cc_basename in
11909         xlc*)
11910           output_verbose_link_cmd=echo
11911           archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11912           module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11913           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11914           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}'
11915           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}'
11916           ;;
11917         *)
11918           ld_shlibs_FC=no
11919           ;;
11920         esac
11921       fi
11922       ;;
11923
11924     dgux*)
11925       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11926       hardcode_libdir_flag_spec_FC='-L$libdir'
11927       hardcode_shlibpath_var_FC=no
11928       ;;
11929
11930     freebsd1*)
11931       ld_shlibs_FC=no
11932       ;;
11933
11934     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11935     # support.  Future versions do this automatically, but an explicit c++rt0.o
11936     # does not break anything, and helps significantly (at the cost of a little
11937     # extra space).
11938     freebsd2.2*)
11939       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11940       hardcode_libdir_flag_spec_FC='-R$libdir'
11941       hardcode_direct_FC=yes
11942       hardcode_shlibpath_var_FC=no
11943       ;;
11944
11945     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11946     freebsd2*)
11947       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11948       hardcode_direct_FC=yes
11949       hardcode_minus_L_FC=yes
11950       hardcode_shlibpath_var_FC=no
11951       ;;
11952
11953     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11954     freebsd* | dragonfly*)
11955       archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11956       hardcode_libdir_flag_spec_FC='-R$libdir'
11957       hardcode_direct_FC=yes
11958       hardcode_shlibpath_var_FC=no
11959       ;;
11960
11961     hpux9*)
11962       if test "$GCC" = yes; then
11963         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'
11964       else
11965         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'
11966       fi
11967       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11968       hardcode_libdir_separator_FC=:
11969       hardcode_direct_FC=yes
11970
11971       # hardcode_minus_L: Not really in the search PATH,
11972       # but as the default location of the library.
11973       hardcode_minus_L_FC=yes
11974       export_dynamic_flag_spec_FC='${wl}-E'
11975       ;;
11976
11977     hpux10*)
11978       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11979         archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11980       else
11981         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11982       fi
11983       if test "$with_gnu_ld" = no; then
11984         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11985         hardcode_libdir_flag_spec_ld_FC='+b $libdir'
11986         hardcode_libdir_separator_FC=:
11987         hardcode_direct_FC=yes
11988         hardcode_direct_absolute_FC=yes
11989         export_dynamic_flag_spec_FC='${wl}-E'
11990         # hardcode_minus_L: Not really in the search PATH,
11991         # but as the default location of the library.
11992         hardcode_minus_L_FC=yes
11993       fi
11994       ;;
11995
11996     hpux11*)
11997       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11998         case $host_cpu in
11999         hppa*64*)
12000           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12001           ;;
12002         ia64*)
12003           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12004           ;;
12005         *)
12006           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12007           ;;
12008         esac
12009       else
12010         case $host_cpu in
12011         hppa*64*)
12012           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12013           ;;
12014         ia64*)
12015           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12016           ;;
12017         *)
12018           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12019           ;;
12020         esac
12021       fi
12022       if test "$with_gnu_ld" = no; then
12023         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12024         hardcode_libdir_separator_FC=:
12025
12026         case $host_cpu in
12027         hppa*64*|ia64*)
12028           hardcode_direct_FC=no
12029           hardcode_shlibpath_var_FC=no
12030           ;;
12031         *)
12032           hardcode_direct_FC=yes
12033           hardcode_direct_absolute_FC=yes
12034           export_dynamic_flag_spec_FC='${wl}-E'
12035
12036           # hardcode_minus_L: Not really in the search PATH,
12037           # but as the default location of the library.
12038           hardcode_minus_L_FC=yes
12039           ;;
12040         esac
12041       fi
12042       ;;
12043
12044     irix5* | irix6* | nonstopux*)
12045       if test "$GCC" = yes; then
12046         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'
12047         # Try to use the -exported_symbol ld option, if it does not
12048         # work, assume that -exports_file does not work either and
12049         # implicitly export all symbols.
12050         save_LDFLAGS="$LDFLAGS"
12051         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12052         cat >conftest.$ac_ext <<_ACEOF
12053 int foo(void) {}
12054 _ACEOF
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057   (eval $ac_link) 2>conftest.er1
12058   ac_status=$?
12059   grep -v '^ *+' conftest.er1 >conftest.err
12060   rm -f conftest.er1
12061   cat conftest.err >&5
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); } &&
12064          { ac_try='test -z "$ac_fc_werror_flag"
12065                          || test ! -s conftest.err'
12066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067   (eval $ac_try) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); }; } &&
12071          { ac_try='test -s conftest$ac_exeext'
12072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073   (eval $ac_try) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; }; then
12077   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'
12078
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 fi
12084 rm -f conftest.err conftest.$ac_objext \
12085       conftest$ac_exeext conftest.$ac_ext
12086         LDFLAGS="$save_LDFLAGS"
12087       else
12088         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'
12089         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'
12090       fi
12091       archive_cmds_need_lc_FC='no'
12092       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12093       hardcode_libdir_separator_FC=:
12094       inherit_rpath_FC=yes
12095       link_all_deplibs_FC=yes
12096       ;;
12097
12098     netbsd*)
12099       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12100         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12101       else
12102         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12103       fi
12104       hardcode_libdir_flag_spec_FC='-R$libdir'
12105       hardcode_direct_FC=yes
12106       hardcode_shlibpath_var_FC=no
12107       ;;
12108
12109     newsos6)
12110       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111       hardcode_direct_FC=yes
12112       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12113       hardcode_libdir_separator_FC=:
12114       hardcode_shlibpath_var_FC=no
12115       ;;
12116
12117     *nto* | *qnx*)
12118       ;;
12119
12120     openbsd*)
12121       hardcode_direct_FC=yes
12122       hardcode_shlibpath_var_FC=no
12123       hardcode_direct_absolute_FC=yes
12124       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12125         archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12126         archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12127         hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12128         export_dynamic_flag_spec_FC='${wl}-E'
12129       else
12130         case $host_os in
12131         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12132           archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12133           hardcode_libdir_flag_spec_FC='-R$libdir'
12134           ;;
12135         *)
12136           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12137           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12138           ;;
12139         esac
12140       fi
12141       ;;
12142
12143     os2*)
12144       hardcode_libdir_flag_spec_FC='-L$libdir'
12145       hardcode_minus_L_FC=yes
12146       allow_undefined_flag_FC=unsupported
12147       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'
12148       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12149       ;;
12150
12151     osf3*)
12152       if test "$GCC" = yes; then
12153         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12154         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'
12155       else
12156         allow_undefined_flag_FC=' -expect_unresolved \*'
12157         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'
12158       fi
12159       archive_cmds_need_lc_FC='no'
12160       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12161       hardcode_libdir_separator_FC=:
12162       ;;
12163
12164     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12165       if test "$GCC" = yes; then
12166         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12167         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'
12168         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12169       else
12170         allow_undefined_flag_FC=' -expect_unresolved \*'
12171         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'
12172         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~
12173         $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'
12174
12175         # Both c and cxx compiler support -rpath directly
12176         hardcode_libdir_flag_spec_FC='-rpath $libdir'
12177       fi
12178       archive_cmds_need_lc_FC='no'
12179       hardcode_libdir_separator_FC=:
12180       ;;
12181
12182     solaris*)
12183       no_undefined_flag_FC=' -z defs'
12184       if test "$GCC" = yes; then
12185         wlarc='${wl}'
12186         archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12187         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12188           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12189       else
12190         case `$CC -V 2>&1` in
12191         *"Compilers 5.0"*)
12192           wlarc=''
12193           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12194           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12195           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12196           ;;
12197         *)
12198           wlarc='${wl}'
12199           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12200           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12201           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12202           ;;
12203         esac
12204       fi
12205       hardcode_libdir_flag_spec_FC='-R$libdir'
12206       hardcode_shlibpath_var_FC=no
12207       case $host_os in
12208       solaris2.[0-5] | solaris2.[0-5].*) ;;
12209       *)
12210         # The compiler driver will combine and reorder linker options,
12211         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12212         # but is careful enough not to reorder.
12213         # Supported since Solaris 2.6 (maybe 2.5.1?)
12214         if test "$GCC" = yes; then
12215           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12216         else
12217           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12218         fi
12219         ;;
12220       esac
12221       link_all_deplibs_FC=yes
12222       ;;
12223
12224     sunos4*)
12225       if test "x$host_vendor" = xsequent; then
12226         # Use $CC to link under sequent, because it throws in some extra .o
12227         # files that make .init and .fini sections work.
12228         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12229       else
12230         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12231       fi
12232       hardcode_libdir_flag_spec_FC='-L$libdir'
12233       hardcode_direct_FC=yes
12234       hardcode_minus_L_FC=yes
12235       hardcode_shlibpath_var_FC=no
12236       ;;
12237
12238     sysv4)
12239       case $host_vendor in
12240         sni)
12241           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12242           hardcode_direct_FC=yes # is this really true???
12243         ;;
12244         siemens)
12245           ## LD is ld it makes a PLAMLIB
12246           ## CC just makes a GrossModule.
12247           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12248           reload_cmds_FC='$CC -r -o $output$reload_objs'
12249           hardcode_direct_FC=no
12250         ;;
12251         motorola)
12252           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12253           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12254         ;;
12255       esac
12256       runpath_var='LD_RUN_PATH'
12257       hardcode_shlibpath_var_FC=no
12258       ;;
12259
12260     sysv4.3*)
12261       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12262       hardcode_shlibpath_var_FC=no
12263       export_dynamic_flag_spec_FC='-Bexport'
12264       ;;
12265
12266     sysv4*MP*)
12267       if test -d /usr/nec; then
12268         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12269         hardcode_shlibpath_var_FC=no
12270         runpath_var=LD_RUN_PATH
12271         hardcode_runpath_var=yes
12272         ld_shlibs_FC=yes
12273       fi
12274       ;;
12275
12276     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12277       no_undefined_flag_FC='${wl}-z,text'
12278       archive_cmds_need_lc_FC=no
12279       hardcode_shlibpath_var_FC=no
12280       runpath_var='LD_RUN_PATH'
12281
12282       if test "$GCC" = yes; then
12283         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285       else
12286         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288       fi
12289       ;;
12290
12291     sysv5* | sco3.2v5* | sco5v6*)
12292       # Note: We can NOT use -z defs as we might desire, because we do not
12293       # link with -lc, and that would cause any symbols used from libc to
12294       # always be unresolved, which means just about no library would
12295       # ever link correctly.  If we're not using GNU ld we use -z text
12296       # though, which does catch some bad symbols but isn't as heavy-handed
12297       # as -z defs.
12298       no_undefined_flag_FC='${wl}-z,text'
12299       allow_undefined_flag_FC='${wl}-z,nodefs'
12300       archive_cmds_need_lc_FC=no
12301       hardcode_shlibpath_var_FC=no
12302       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12303       hardcode_libdir_separator_FC=':'
12304       link_all_deplibs_FC=yes
12305       export_dynamic_flag_spec_FC='${wl}-Bexport'
12306       runpath_var='LD_RUN_PATH'
12307
12308       if test "$GCC" = yes; then
12309         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311       else
12312         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314       fi
12315       ;;
12316
12317     uts4*)
12318       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12319       hardcode_libdir_flag_spec_FC='-L$libdir'
12320       hardcode_shlibpath_var_FC=no
12321       ;;
12322
12323     *)
12324       ld_shlibs_FC=no
12325       ;;
12326     esac
12327
12328     if test x$host_vendor = xsni; then
12329       case $host in
12330       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12331         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12332         ;;
12333       esac
12334     fi
12335   fi
12336
12337 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12338 echo "${ECHO_T}$ld_shlibs_FC" >&6
12339 test "$ld_shlibs_FC" = no && can_build_shared=no
12340
12341 with_gnu_ld_FC=$with_gnu_ld
12342
12343
12344
12345
12346
12347
12348 #
12349 # Do we need to explicitly link libc?
12350 #
12351 case "x$archive_cmds_need_lc_FC" in
12352 x|xyes)
12353   # Assume -lc should be added
12354   archive_cmds_need_lc_FC=yes
12355
12356   if test "$enable_shared" = yes && test "$GCC" = yes; then
12357     case $archive_cmds_FC in
12358     *'~'*)
12359       # FIXME: we may have to deal with multi-command sequences.
12360       ;;
12361     '$CC '*)
12362       # Test whether the compiler implicitly links with -lc since on some
12363       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12364       # to ld, don't add -lc before -lgcc.
12365       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12366 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12367       $RM conftest*
12368       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12369
12370       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371   (eval $ac_compile) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } 2>conftest.err; then
12375         soname=conftest
12376         lib=conftest
12377         libobjs=conftest.$ac_objext
12378         deplibs=
12379         wl=$lt_prog_compiler_wl_FC
12380         pic_flag=$lt_prog_compiler_pic_FC
12381         compiler_flags=-v
12382         linker_flags=-v
12383         verstring=
12384         output_objdir=.
12385         libname=conftest
12386         lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12387         allow_undefined_flag_FC=
12388         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12389   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }
12393         then
12394           archive_cmds_need_lc_FC=no
12395         else
12396           archive_cmds_need_lc_FC=yes
12397         fi
12398         allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12399       else
12400         cat conftest.err 1>&5
12401       fi
12402       $RM conftest*
12403       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12404 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12405       ;;
12406     esac
12407   fi
12408   ;;
12409 esac
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12476 withGCC=$ac_cv_fc_compiler_gnu
12477 library_names_spec=
12478 libname_spec='lib$name'
12479 soname_spec=
12480 shrext_cmds=".so"
12481 postinstall_cmds=
12482 postuninstall_cmds=
12483 finish_cmds=
12484 finish_eval=
12485 shlibpath_var=
12486 shlibpath_overrides_runpath=unknown
12487 version_type=none
12488 dynamic_linker="$host_os ld.so"
12489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12490 need_lib_prefix=unknown
12491 hardcode_into_libs=no
12492
12493 # when you set need_version to no, make sure it does not cause -set_version
12494 # flags to be left without arguments
12495 need_version=unknown
12496
12497 case $host_os in
12498 aix3*)
12499   version_type=linux
12500   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12501   shlibpath_var=LIBPATH
12502
12503   # AIX 3 has no versioning support, so we append a major version to the name.
12504   soname_spec='${libname}${release}${shared_ext}$major'
12505   ;;
12506
12507 aix[4-9]*)
12508   version_type=linux
12509   need_lib_prefix=no
12510   need_version=no
12511   hardcode_into_libs=yes
12512   if test "$host_cpu" = ia64; then
12513     # AIX 5 supports IA64
12514     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12515     shlibpath_var=LD_LIBRARY_PATH
12516   else
12517     # With GCC up to 2.95.x, collect2 would create an import file
12518     # for dependence libraries.  The import file would start with
12519     # the line `#! .'.  This would cause the generated library to
12520     # depend on `.', always an invalid library.  This was fixed in
12521     # development snapshots of GCC prior to 3.0.
12522     case $host_os in
12523       aix4 | aix4.[01] | aix4.[01].*)
12524       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12525            echo ' yes '
12526            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12527         :
12528       else
12529         can_build_shared=no
12530       fi
12531       ;;
12532     esac
12533     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12534     # soname into executable. Probably we can add versioning support to
12535     # collect2, so additional links can be useful in future.
12536     if test "$aix_use_runtimelinking" = yes; then
12537       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12538       # instead of lib<name>.a to let people know that these are not
12539       # typical AIX shared libraries.
12540       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12541     else
12542       # We preserve .a as extension for shared libraries through AIX4.2
12543       # and later when we are not doing run time linking.
12544       library_names_spec='${libname}${release}.a $libname.a'
12545       soname_spec='${libname}${release}${shared_ext}$major'
12546     fi
12547     shlibpath_var=LIBPATH
12548   fi
12549   ;;
12550
12551 amigaos*)
12552   if test "$host_cpu" = m68k; then
12553     library_names_spec='$libname.ixlibrary $libname.a'
12554     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12555     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'
12556   else
12557     dynamic_linker=no
12558   fi
12559   ;;
12560
12561 beos*)
12562   library_names_spec='${libname}${shared_ext}'
12563   dynamic_linker="$host_os ld.so"
12564   shlibpath_var=LIBRARY_PATH
12565   ;;
12566
12567 bsdi[45]*)
12568   version_type=linux
12569   need_version=no
12570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571   soname_spec='${libname}${release}${shared_ext}$major'
12572   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12573   shlibpath_var=LD_LIBRARY_PATH
12574   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12575   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12576   # the default ld.so.conf also contains /usr/contrib/lib and
12577   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12578   # libtool to hard-code these into programs
12579   ;;
12580
12581 cygwin* | mingw* | pw32*)
12582   version_type=windows
12583   shrext_cmds=".dll"
12584   need_version=no
12585   need_lib_prefix=no
12586
12587   case $withGCC,$host_os in
12588   yes,cygwin* | yes,mingw* | yes,pw32*)
12589     library_names_spec='$libname.dll.a'
12590     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12591     postinstall_cmds='base_file=`basename \${file}`~
12592       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12593       dldir=$destdir/`dirname \$dlpath`~
12594       test -d \$dldir || mkdir -p \$dldir~
12595       $install_prog $dir/$dlname \$dldir/$dlname~
12596       chmod a+x \$dldir/$dlname~
12597       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12598         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12599       fi'
12600     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12601       dlpath=$dir/\$dldll~
12602        $RM \$dlpath'
12603     shlibpath_overrides_runpath=yes
12604
12605     case $host_os in
12606     cygwin*)
12607       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12608       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12609       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12610       ;;
12611     mingw*)
12612       # MinGW DLLs use traditional 'lib' prefix
12613       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12614       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12615       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12616         # It is most probably a Windows format PATH printed by
12617         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12618         # path with ; separators, and with drive letters. We can handle the
12619         # drive letters (cygwin fileutils understands them), so leave them,
12620         # especially as we might pass files found there to a mingw objdump,
12621         # which wouldn't understand a cygwinified path. Ahh.
12622         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12623       else
12624         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12625       fi
12626       ;;
12627     pw32*)
12628       # pw32 DLLs use 'pw' prefix rather than 'lib'
12629       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12630       ;;
12631     esac
12632     ;;
12633
12634   *)
12635     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12636     ;;
12637   esac
12638   dynamic_linker='Win32 ld.exe'
12639   # FIXME: first we should search . and the directory the executable is in
12640   shlibpath_var=PATH
12641   ;;
12642
12643 darwin* | rhapsody*)
12644   dynamic_linker="$host_os dyld"
12645   version_type=darwin
12646   need_lib_prefix=no
12647   need_version=no
12648   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12649   soname_spec='${libname}${release}${major}$shared_ext'
12650   shlibpath_overrides_runpath=yes
12651   shlibpath_var=DYLD_LIBRARY_PATH
12652   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12653
12654   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12655   ;;
12656
12657 dgux*)
12658   version_type=linux
12659   need_lib_prefix=no
12660   need_version=no
12661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12662   soname_spec='${libname}${release}${shared_ext}$major'
12663   shlibpath_var=LD_LIBRARY_PATH
12664   ;;
12665
12666 freebsd1*)
12667   dynamic_linker=no
12668   ;;
12669
12670 freebsd* | dragonfly*)
12671   # DragonFly does not have aout.  When/if they implement a new
12672   # versioning mechanism, adjust this.
12673   if test -x /usr/bin/objformat; then
12674     objformat=`/usr/bin/objformat`
12675   else
12676     case $host_os in
12677     freebsd[123]*) objformat=aout ;;
12678     *) objformat=elf ;;
12679     esac
12680   fi
12681   version_type=freebsd-$objformat
12682   case $version_type in
12683     freebsd-elf*)
12684       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12685       need_version=no
12686       need_lib_prefix=no
12687       ;;
12688     freebsd-*)
12689       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12690       need_version=yes
12691       ;;
12692   esac
12693   shlibpath_var=LD_LIBRARY_PATH
12694   case $host_os in
12695   freebsd2*)
12696     shlibpath_overrides_runpath=yes
12697     ;;
12698   freebsd3.[01]* | freebsdelf3.[01]*)
12699     shlibpath_overrides_runpath=yes
12700     hardcode_into_libs=yes
12701     ;;
12702   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12703   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12704     shlibpath_overrides_runpath=no
12705     hardcode_into_libs=yes
12706     ;;
12707   *) # from 4.6 on, and DragonFly
12708     shlibpath_overrides_runpath=yes
12709     hardcode_into_libs=yes
12710     ;;
12711   esac
12712   ;;
12713
12714 gnu*)
12715   version_type=linux
12716   need_lib_prefix=no
12717   need_version=no
12718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12719   soname_spec='${libname}${release}${shared_ext}$major'
12720   shlibpath_var=LD_LIBRARY_PATH
12721   hardcode_into_libs=yes
12722   ;;
12723
12724 hpux9* | hpux10* | hpux11*)
12725   # Give a soname corresponding to the major version so that dld.sl refuses to
12726   # link against other versions.
12727   version_type=sunos
12728   need_lib_prefix=no
12729   need_version=no
12730   case $host_cpu in
12731   ia64*)
12732     shrext_cmds='.so'
12733     hardcode_into_libs=yes
12734     dynamic_linker="$host_os dld.so"
12735     shlibpath_var=LD_LIBRARY_PATH
12736     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738     soname_spec='${libname}${release}${shared_ext}$major'
12739     if test "X$HPUX_IA64_MODE" = X32; then
12740       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12741     else
12742       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12743     fi
12744     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12745     ;;
12746   hppa*64*)
12747     shrext_cmds='.sl'
12748     hardcode_into_libs=yes
12749     dynamic_linker="$host_os dld.sl"
12750     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12751     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12753     soname_spec='${libname}${release}${shared_ext}$major'
12754     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12755     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12756     ;;
12757   *)
12758     shrext_cmds='.sl'
12759     dynamic_linker="$host_os dld.sl"
12760     shlibpath_var=SHLIB_PATH
12761     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763     soname_spec='${libname}${release}${shared_ext}$major'
12764     ;;
12765   esac
12766   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12767   postinstall_cmds='chmod 555 $lib'
12768   ;;
12769
12770 interix[3-9]*)
12771   version_type=linux
12772   need_lib_prefix=no
12773   need_version=no
12774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12775   soname_spec='${libname}${release}${shared_ext}$major'
12776   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12777   shlibpath_var=LD_LIBRARY_PATH
12778   shlibpath_overrides_runpath=no
12779   hardcode_into_libs=yes
12780   ;;
12781
12782 irix5* | irix6* | nonstopux*)
12783   case $host_os in
12784     nonstopux*) version_type=nonstopux ;;
12785     *)
12786         if test "$lt_cv_prog_gnu_ld" = yes; then
12787                 version_type=linux
12788         else
12789                 version_type=irix
12790         fi ;;
12791   esac
12792   need_lib_prefix=no
12793   need_version=no
12794   soname_spec='${libname}${release}${shared_ext}$major'
12795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12796   case $host_os in
12797   irix5* | nonstopux*)
12798     libsuff= shlibsuff=
12799     ;;
12800   *)
12801     case $LD in # libtool.m4 will add one of these switches to LD
12802     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12803       libsuff= shlibsuff= libmagic=32-bit;;
12804     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12805       libsuff=32 shlibsuff=N32 libmagic=N32;;
12806     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12807       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12808     *) libsuff= shlibsuff= libmagic=never-match;;
12809     esac
12810     ;;
12811   esac
12812   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12813   shlibpath_overrides_runpath=no
12814   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12815   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12816   hardcode_into_libs=yes
12817   ;;
12818
12819 # No shared lib support for Linux oldld, aout, or coff.
12820 linux*oldld* | linux*aout* | linux*coff*)
12821   dynamic_linker=no
12822   ;;
12823
12824 # This must be Linux ELF.
12825 linux* | k*bsd*-gnu)
12826   version_type=linux
12827   need_lib_prefix=no
12828   need_version=no
12829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830   soname_spec='${libname}${release}${shared_ext}$major'
12831   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12832   shlibpath_var=LD_LIBRARY_PATH
12833   shlibpath_overrides_runpath=no
12834   # Some binutils ld are patched to set DT_RUNPATH
12835   save_LDFLAGS=$LDFLAGS
12836   save_libdir=$libdir
12837   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12838        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12839   cat >conftest.$ac_ext <<_ACEOF
12840       program main
12841
12842       end
12843 _ACEOF
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846   (eval $ac_link) 2>conftest.er1
12847   ac_status=$?
12848   grep -v '^ *+' conftest.er1 >conftest.err
12849   rm -f conftest.er1
12850   cat conftest.err >&5
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); } &&
12853          { ac_try='test -z "$ac_fc_werror_flag"
12854                          || test ! -s conftest.err'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; } &&
12860          { ac_try='test -s conftest$ac_exeext'
12861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862   (eval $ac_try) 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; }; then
12866   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12867   shlibpath_overrides_runpath=yes
12868 fi
12869
12870 else
12871   echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874 fi
12875 rm -f conftest.err conftest.$ac_objext \
12876       conftest$ac_exeext conftest.$ac_ext
12877   LDFLAGS=$save_LDFLAGS
12878   libdir=$save_libdir
12879
12880   # This implies no fast_install, which is unacceptable.
12881   # Some rework will be needed to allow for fast_install
12882   # before this can be enabled.
12883   hardcode_into_libs=yes
12884
12885   # Append ld.so.conf contents to the search path
12886   if test -f /etc/ld.so.conf; then
12887     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' ' '`
12888     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12889   fi
12890
12891   # We used to test for /lib/ld.so.1 and disable shared libraries on
12892   # powerpc, because MkLinux only supported shared libraries with the
12893   # GNU dynamic linker.  Since this was broken with cross compilers,
12894   # most powerpc-linux boxes support dynamic linking these days and
12895   # people can always --disable-shared, the test was removed, and we
12896   # assume the GNU/Linux dynamic linker is in use.
12897   dynamic_linker='GNU/Linux ld.so'
12898   ;;
12899
12900 netbsd*)
12901   version_type=sunos
12902   need_lib_prefix=no
12903   need_version=no
12904   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12906     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12907     dynamic_linker='NetBSD (a.out) ld.so'
12908   else
12909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12910     soname_spec='${libname}${release}${shared_ext}$major'
12911     dynamic_linker='NetBSD ld.elf_so'
12912   fi
12913   shlibpath_var=LD_LIBRARY_PATH
12914   shlibpath_overrides_runpath=yes
12915   hardcode_into_libs=yes
12916   ;;
12917
12918 newsos6)
12919   version_type=linux
12920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921   shlibpath_var=LD_LIBRARY_PATH
12922   shlibpath_overrides_runpath=yes
12923   ;;
12924
12925 *nto* | *qnx*)
12926   version_type=qnx
12927   need_lib_prefix=no
12928   need_version=no
12929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12930   soname_spec='${libname}${release}${shared_ext}$major'
12931   shlibpath_var=LD_LIBRARY_PATH
12932   shlibpath_overrides_runpath=no
12933   hardcode_into_libs=yes
12934   dynamic_linker='ldqnx.so'
12935   ;;
12936
12937 openbsd*)
12938   version_type=sunos
12939   sys_lib_dlsearch_path_spec="/usr/lib"
12940   need_lib_prefix=no
12941   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12942   case $host_os in
12943     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12944     *)                          need_version=no  ;;
12945   esac
12946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12947   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12948   shlibpath_var=LD_LIBRARY_PATH
12949   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12950     case $host_os in
12951       openbsd2.[89] | openbsd2.[89].*)
12952         shlibpath_overrides_runpath=no
12953         ;;
12954       *)
12955         shlibpath_overrides_runpath=yes
12956         ;;
12957       esac
12958   else
12959     shlibpath_overrides_runpath=yes
12960   fi
12961   ;;
12962
12963 os2*)
12964   libname_spec='$name'
12965   shrext_cmds=".dll"
12966   need_lib_prefix=no
12967   library_names_spec='$libname${shared_ext} $libname.a'
12968   dynamic_linker='OS/2 ld.exe'
12969   shlibpath_var=LIBPATH
12970   ;;
12971
12972 osf3* | osf4* | osf5*)
12973   version_type=osf
12974   need_lib_prefix=no
12975   need_version=no
12976   soname_spec='${libname}${release}${shared_ext}$major'
12977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978   shlibpath_var=LD_LIBRARY_PATH
12979   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12980   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12981   ;;
12982
12983 rdos*)
12984   dynamic_linker=no
12985   ;;
12986
12987 solaris*)
12988   version_type=linux
12989   need_lib_prefix=no
12990   need_version=no
12991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992   soname_spec='${libname}${release}${shared_ext}$major'
12993   shlibpath_var=LD_LIBRARY_PATH
12994   shlibpath_overrides_runpath=yes
12995   hardcode_into_libs=yes
12996   # ldd complains unless libraries are executable
12997   postinstall_cmds='chmod +x $lib'
12998   ;;
12999
13000 sunos4*)
13001   version_type=sunos
13002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13003   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13004   shlibpath_var=LD_LIBRARY_PATH
13005   shlibpath_overrides_runpath=yes
13006   if test "$with_gnu_ld" = yes; then
13007     need_lib_prefix=no
13008   fi
13009   need_version=yes
13010   ;;
13011
13012 sysv4 | sysv4.3*)
13013   version_type=linux
13014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015   soname_spec='${libname}${release}${shared_ext}$major'
13016   shlibpath_var=LD_LIBRARY_PATH
13017   case $host_vendor in
13018     sni)
13019       shlibpath_overrides_runpath=no
13020       need_lib_prefix=no
13021       runpath_var=LD_RUN_PATH
13022       ;;
13023     siemens)
13024       need_lib_prefix=no
13025       ;;
13026     motorola)
13027       need_lib_prefix=no
13028       need_version=no
13029       shlibpath_overrides_runpath=no
13030       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13031       ;;
13032   esac
13033   ;;
13034
13035 sysv4*MP*)
13036   if test -d /usr/nec ;then
13037     version_type=linux
13038     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13039     soname_spec='$libname${shared_ext}.$major'
13040     shlibpath_var=LD_LIBRARY_PATH
13041   fi
13042   ;;
13043
13044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13045   version_type=freebsd-elf
13046   need_lib_prefix=no
13047   need_version=no
13048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13049   soname_spec='${libname}${release}${shared_ext}$major'
13050   shlibpath_var=LD_LIBRARY_PATH
13051   shlibpath_overrides_runpath=yes
13052   hardcode_into_libs=yes
13053   if test "$with_gnu_ld" = yes; then
13054     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13055   else
13056     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13057     case $host_os in
13058       sco3.2v5*)
13059         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13060         ;;
13061     esac
13062   fi
13063   sys_lib_dlsearch_path_spec='/usr/lib'
13064   ;;
13065
13066 tpf*)
13067   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13068   version_type=linux
13069   need_lib_prefix=no
13070   need_version=no
13071   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13072   shlibpath_var=LD_LIBRARY_PATH
13073   shlibpath_overrides_runpath=no
13074   hardcode_into_libs=yes
13075   ;;
13076
13077 uts4*)
13078   version_type=linux
13079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080   soname_spec='${libname}${release}${shared_ext}$major'
13081   shlibpath_var=LD_LIBRARY_PATH
13082   ;;
13083
13084 *)
13085   dynamic_linker=no
13086   ;;
13087 esac
13088 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13089 echo "${ECHO_T}$dynamic_linker" >&6
13090 test "$dynamic_linker" = no && can_build_shared=no
13091
13092 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13093 if test "$GCC" = yes; then
13094   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13095 fi
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13134 hardcode_action_FC=
13135 if test -n "$hardcode_libdir_flag_spec_FC" ||
13136    test -n "$runpath_var_FC" ||
13137    test "X$hardcode_automatic_FC" = "Xyes" ; then
13138
13139   # We can hardcode non-existent directories.
13140   if test "$hardcode_direct_FC" != no &&
13141      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13142      # have to relink, otherwise we might link with an installed library
13143      # when we should be linking with a yet-to-be-installed one
13144      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13145      test "$hardcode_minus_L_FC" != no; then
13146     # Linking always hardcodes the temporary library directory.
13147     hardcode_action_FC=relink
13148   else
13149     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13150     hardcode_action_FC=immediate
13151   fi
13152 else
13153   # We cannot hardcode anything, or else we can only hardcode existing
13154   # directories.
13155   hardcode_action_FC=unsupported
13156 fi
13157 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13158 echo "${ECHO_T}$hardcode_action_FC" >&6
13159
13160 if test "$hardcode_action_FC" = relink ||
13161    test "$inherit_rpath_FC" = yes; then
13162   # Fast installation is not supported
13163   enable_fast_install=no
13164 elif test "$shlibpath_overrides_runpath" = yes ||
13165      test "$enable_shared" = no; then
13166   # Fast installation is not necessary
13167   enable_fast_install=needless
13168 fi
13169
13170
13171
13172
13173
13174
13175
13176   fi # test -n "$compiler"
13177
13178   CC="$lt_save_CC"
13179 fi # test "$_lt_disable_FC" != yes
13180
13181 ac_ext=c
13182 ac_cpp='$CPP $CPPFLAGS'
13183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
13187
13188 FCFLAGS="$FCFLAGS -Wall"
13189
13190 # For libtool versioning info, format is CURRENT:REVISION:AGE
13191 libtool_VERSION=1:0:0
13192
13193
13194 # Check header files.
13195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13197 if test "${ac_cv_header_stdc+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200   cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206 #include <stdlib.h>
13207 #include <stdarg.h>
13208 #include <string.h>
13209 #include <float.h>
13210
13211 int
13212 main ()
13213 {
13214
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13221   (eval $ac_compile) 2>conftest.er1
13222   ac_status=$?
13223   grep -v '^ *+' conftest.er1 >conftest.err
13224   rm -f conftest.er1
13225   cat conftest.err >&5
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); } &&
13228          { ac_try='test -z "$ac_c_werror_flag"
13229                          || test ! -s conftest.err'
13230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231   (eval $ac_try) 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; } &&
13235          { ac_try='test -s conftest.$ac_objext'
13236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237   (eval $ac_try) 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; }; then
13241   ac_cv_header_stdc=yes
13242 else
13243   echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246 ac_cv_header_stdc=no
13247 fi
13248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13249
13250 if test $ac_cv_header_stdc = yes; then
13251   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13252   cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h.  */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h.  */
13258 #include <string.h>
13259
13260 _ACEOF
13261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13262   $EGREP "memchr" >/dev/null 2>&1; then
13263   :
13264 else
13265   ac_cv_header_stdc=no
13266 fi
13267 rm -f conftest*
13268
13269 fi
13270
13271 if test $ac_cv_header_stdc = yes; then
13272   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13273   cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h.  */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h.  */
13279 #include <stdlib.h>
13280
13281 _ACEOF
13282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13283   $EGREP "free" >/dev/null 2>&1; then
13284   :
13285 else
13286   ac_cv_header_stdc=no
13287 fi
13288 rm -f conftest*
13289
13290 fi
13291
13292 if test $ac_cv_header_stdc = yes; then
13293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13294   if test "$cross_compiling" = yes; then
13295   :
13296 else
13297   cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303 #include <ctype.h>
13304 #if ((' ' & 0x0FF) == 0x020)
13305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13307 #else
13308 # define ISLOWER(c) \
13309                    (('a' <= (c) && (c) <= 'i') \
13310                      || ('j' <= (c) && (c) <= 'r') \
13311                      || ('s' <= (c) && (c) <= 'z'))
13312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13313 #endif
13314
13315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13316 int
13317 main ()
13318 {
13319   int i;
13320   for (i = 0; i < 256; i++)
13321     if (XOR (islower (i), ISLOWER (i))
13322         || toupper (i) != TOUPPER (i))
13323       exit(2);
13324   exit (0);
13325 }
13326 _ACEOF
13327 rm -f conftest$ac_exeext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13329   (eval $ac_link) 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334   (eval $ac_try) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; }; then
13338   :
13339 else
13340   echo "$as_me: program exited with status $ac_status" >&5
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 ( exit $ac_status )
13345 ac_cv_header_stdc=no
13346 fi
13347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 fi
13350 fi
13351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13353 if test $ac_cv_header_stdc = yes; then
13354
13355 cat >>confdefs.h <<\_ACEOF
13356 #define STDC_HEADERS 1
13357 _ACEOF
13358
13359 fi
13360
13361 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13362 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13363 if test "${ac_cv_header_time+set}" = set; then
13364   echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366   cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h.  */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h.  */
13372 #include <sys/types.h>
13373 #include <sys/time.h>
13374 #include <time.h>
13375
13376 int
13377 main ()
13378 {
13379 if ((struct tm *) 0)
13380 return 0;
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387   (eval $ac_compile) 2>conftest.er1
13388   ac_status=$?
13389   grep -v '^ *+' conftest.er1 >conftest.err
13390   rm -f conftest.er1
13391   cat conftest.err >&5
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } &&
13394          { ac_try='test -z "$ac_c_werror_flag"
13395                          || test ! -s conftest.err'
13396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397   (eval $ac_try) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; } &&
13401          { ac_try='test -s conftest.$ac_objext'
13402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403   (eval $ac_try) 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; }; then
13407   ac_cv_header_time=yes
13408 else
13409   echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_cv_header_time=no
13413 fi
13414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13415 fi
13416 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13417 echo "${ECHO_T}$ac_cv_header_time" >&6
13418 if test $ac_cv_header_time = yes; then
13419
13420 cat >>confdefs.h <<\_ACEOF
13421 #define TIME_WITH_SYS_TIME 1
13422 _ACEOF
13423
13424 fi
13425
13426 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13427 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13428 if test "${gcc_cv_header_string+set}" = set; then
13429   echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431   cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437 #include <string.h>
13438 #include <strings.h>
13439 int
13440 main ()
13441 {
13442
13443   ;
13444   return 0;
13445 }
13446 _ACEOF
13447 rm -f conftest.$ac_objext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13449   (eval $ac_compile) 2>conftest.er1
13450   ac_status=$?
13451   grep -v '^ *+' conftest.er1 >conftest.err
13452   rm -f conftest.er1
13453   cat conftest.err >&5
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } &&
13456          { ac_try='test -z "$ac_c_werror_flag"
13457                          || test ! -s conftest.err'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; } &&
13463          { ac_try='test -s conftest.$ac_objext'
13464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465   (eval $ac_try) 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; }; then
13469   gcc_cv_header_string=yes
13470 else
13471   echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474 gcc_cv_header_string=no
13475 fi
13476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13477 fi
13478 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13479 echo "${ECHO_T}$gcc_cv_header_string" >&6
13480 if test $gcc_cv_header_string = yes; then
13481
13482 cat >>confdefs.h <<\_ACEOF
13483 #define STRING_WITH_STRINGS 1
13484 _ACEOF
13485
13486 fi
13487
13488
13489
13490
13491
13492 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13493 do
13494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13496   echo "$as_me:$LINENO: checking for $ac_header" >&5
13497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 fi
13501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13503 else
13504   # Is the header compilable?
13505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h.  */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h.  */
13513 $ac_includes_default
13514 #include <$ac_header>
13515 _ACEOF
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518   (eval $ac_compile) 2>conftest.er1
13519   ac_status=$?
13520   grep -v '^ *+' conftest.er1 >conftest.err
13521   rm -f conftest.er1
13522   cat conftest.err >&5
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } &&
13525          { ac_try='test -z "$ac_c_werror_flag"
13526                          || test ! -s conftest.err'
13527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528   (eval $ac_try) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; } &&
13532          { ac_try='test -s conftest.$ac_objext'
13533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534   (eval $ac_try) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; }; then
13538   ac_header_compiler=yes
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ac_header_compiler=no
13544 fi
13545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13547 echo "${ECHO_T}$ac_header_compiler" >&6
13548
13549 # Is the header present?
13550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 #include <$ac_header>
13559 _ACEOF
13560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } >/dev/null; then
13568   if test -s conftest.err; then
13569     ac_cpp_err=$ac_c_preproc_warn_flag
13570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13571   else
13572     ac_cpp_err=
13573   fi
13574 else
13575   ac_cpp_err=yes
13576 fi
13577 if test -z "$ac_cpp_err"; then
13578   ac_header_preproc=yes
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583   ac_header_preproc=no
13584 fi
13585 rm -f conftest.err conftest.$ac_ext
13586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13587 echo "${ECHO_T}$ac_header_preproc" >&6
13588
13589 # So?  What about this header?
13590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13591   yes:no: )
13592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13596     ac_header_preproc=yes
13597     ;;
13598   no:yes:* )
13599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13611     (
13612       cat <<\_ASBOX
13613 ## ----------------------------------------------------- ##
13614 ## Report this to the GNU OpenMP Runtime Library lists.  ##
13615 ## ----------------------------------------------------- ##
13616 _ASBOX
13617     ) |
13618       sed "s/^/$as_me: WARNING:     /" >&2
13619     ;;
13620 esac
13621 echo "$as_me:$LINENO: checking for $ac_header" >&5
13622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13624   echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626   eval "$as_ac_Header=\$ac_header_preproc"
13627 fi
13628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13630
13631 fi
13632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13633   cat >>confdefs.h <<_ACEOF
13634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13635 _ACEOF
13636
13637 fi
13638
13639 done
13640
13641
13642
13643
13644 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
13645
13646 acx_cv_header_stdint=stddef.h
13647 acx_cv_header_stdint_kind="(already complete)"
13648 for i in stdint.h $inttype_headers; do
13649   unset ac_cv_type_uintptr_t
13650   unset ac_cv_type_uintmax_t
13651   unset ac_cv_type_int_least32_t
13652   unset ac_cv_type_int_fast32_t
13653   unset ac_cv_type_uint64_t
13654   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13655   echo "$as_me:$LINENO: checking for uintmax_t" >&5
13656 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13657 if test "${ac_cv_type_uintmax_t+set}" = set; then
13658   echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660   cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h.  */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h.  */
13666 #include <sys/types.h>
13667 #include <$i>
13668
13669 int
13670 main ()
13671 {
13672 if ((uintmax_t *) 0)
13673   return 0;
13674 if (sizeof (uintmax_t))
13675   return 0;
13676   ;
13677   return 0;
13678 }
13679 _ACEOF
13680 rm -f conftest.$ac_objext
13681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13682   (eval $ac_compile) 2>conftest.er1
13683   ac_status=$?
13684   grep -v '^ *+' conftest.er1 >conftest.err
13685   rm -f conftest.er1
13686   cat conftest.err >&5
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); } &&
13689          { ac_try='test -z "$ac_c_werror_flag"
13690                          || test ! -s conftest.err'
13691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692   (eval $ac_try) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; } &&
13696          { ac_try='test -s conftest.$ac_objext'
13697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698   (eval $ac_try) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); }; }; then
13702   ac_cv_type_uintmax_t=yes
13703 else
13704   echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13706
13707 ac_cv_type_uintmax_t=no
13708 fi
13709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13710 fi
13711 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13712 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13713 if test $ac_cv_type_uintmax_t = yes; then
13714   acx_cv_header_stdint=$i
13715 else
13716   continue
13717 fi
13718
13719   echo "$as_me:$LINENO: checking for uintptr_t" >&5
13720 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13721 if test "${ac_cv_type_uintptr_t+set}" = set; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724   cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730 #include <sys/types.h>
13731 #include <$i>
13732
13733 int
13734 main ()
13735 {
13736 if ((uintptr_t *) 0)
13737   return 0;
13738 if (sizeof (uintptr_t))
13739   return 0;
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest.$ac_objext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746   (eval $ac_compile) 2>conftest.er1
13747   ac_status=$?
13748   grep -v '^ *+' conftest.er1 >conftest.err
13749   rm -f conftest.er1
13750   cat conftest.err >&5
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -z "$ac_c_werror_flag"
13754                          || test ! -s conftest.err'
13755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756   (eval $ac_try) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; } &&
13760          { ac_try='test -s conftest.$ac_objext'
13761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762   (eval $ac_try) 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; }; then
13766   ac_cv_type_uintptr_t=yes
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 ac_cv_type_uintptr_t=no
13772 fi
13773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13774 fi
13775 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13776 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13777 if test $ac_cv_type_uintptr_t = yes; then
13778   :
13779 else
13780   acx_cv_header_stdint_kind="(mostly complete)"
13781 fi
13782
13783   echo "$as_me:$LINENO: checking for int_least32_t" >&5
13784 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13785 if test "${ac_cv_type_int_least32_t+set}" = set; then
13786   echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788   cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h.  */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h.  */
13794 #include <sys/types.h>
13795 #include <$i>
13796
13797 int
13798 main ()
13799 {
13800 if ((int_least32_t *) 0)
13801   return 0;
13802 if (sizeof (int_least32_t))
13803   return 0;
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810   (eval $ac_compile) 2>conftest.er1
13811   ac_status=$?
13812   grep -v '^ *+' conftest.er1 >conftest.err
13813   rm -f conftest.er1
13814   cat conftest.err >&5
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } &&
13817          { ac_try='test -z "$ac_c_werror_flag"
13818                          || test ! -s conftest.err'
13819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820   (eval $ac_try) 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; } &&
13824          { ac_try='test -s conftest.$ac_objext'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; }; then
13830   ac_cv_type_int_least32_t=yes
13831 else
13832   echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 ac_cv_type_int_least32_t=no
13836 fi
13837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13838 fi
13839 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13840 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13841 if test $ac_cv_type_int_least32_t = yes; then
13842   :
13843 else
13844   acx_cv_header_stdint_kind="(mostly complete)"
13845 fi
13846
13847   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13848 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13849 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858 #include <sys/types.h>
13859 #include <$i>
13860
13861 int
13862 main ()
13863 {
13864 if ((int_fast32_t *) 0)
13865   return 0;
13866 if (sizeof (int_fast32_t))
13867   return 0;
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 rm -f conftest.$ac_objext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874   (eval $ac_compile) 2>conftest.er1
13875   ac_status=$?
13876   grep -v '^ *+' conftest.er1 >conftest.err
13877   rm -f conftest.er1
13878   cat conftest.err >&5
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } &&
13881          { ac_try='test -z "$ac_c_werror_flag"
13882                          || test ! -s conftest.err'
13883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884   (eval $ac_try) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); }; } &&
13888          { ac_try='test -s conftest.$ac_objext'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   ac_cv_type_int_fast32_t=yes
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 ac_cv_type_int_fast32_t=no
13900 fi
13901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13902 fi
13903 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13904 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13905 if test $ac_cv_type_int_fast32_t = yes; then
13906   :
13907 else
13908   acx_cv_header_stdint_kind="(mostly complete)"
13909 fi
13910
13911   echo "$as_me:$LINENO: checking for uint64_t" >&5
13912 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13913 if test "${ac_cv_type_uint64_t+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h.  */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h.  */
13922 #include <sys/types.h>
13923 #include <$i>
13924
13925 int
13926 main ()
13927 {
13928 if ((uint64_t *) 0)
13929   return 0;
13930 if (sizeof (uint64_t))
13931   return 0;
13932   ;
13933   return 0;
13934 }
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938   (eval $ac_compile) 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } &&
13945          { ac_try='test -z "$ac_c_werror_flag"
13946                          || test ! -s conftest.err'
13947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948   (eval $ac_try) 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; } &&
13952          { ac_try='test -s conftest.$ac_objext'
13953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954   (eval $ac_try) 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); }; }; then
13958   ac_cv_type_uint64_t=yes
13959 else
13960   echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13962
13963 ac_cv_type_uint64_t=no
13964 fi
13965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13966 fi
13967 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13968 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13969 if test $ac_cv_type_uint64_t = yes; then
13970   :
13971 else
13972   acx_cv_header_stdint_kind="(lacks uint64_t)"
13973 fi
13974
13975   break
13976 done
13977 if test "$acx_cv_header_stdint" = stddef.h; then
13978   acx_cv_header_stdint_kind="(lacks uintmax_t)"
13979   for i in stdint.h $inttype_headers; do
13980     unset ac_cv_type_uintptr_t
13981     unset ac_cv_type_uint32_t
13982     unset ac_cv_type_uint64_t
13983     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13984     echo "$as_me:$LINENO: checking for uint32_t" >&5
13985 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13986 if test "${ac_cv_type_uint32_t+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989   cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995 #include <sys/types.h>
13996 #include <$i>
13997
13998 int
13999 main ()
14000 {
14001 if ((uint32_t *) 0)
14002   return 0;
14003 if (sizeof (uint32_t))
14004   return 0;
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011   (eval $ac_compile) 2>conftest.er1
14012   ac_status=$?
14013   grep -v '^ *+' conftest.er1 >conftest.err
14014   rm -f conftest.er1
14015   cat conftest.err >&5
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); } &&
14018          { ac_try='test -z "$ac_c_werror_flag"
14019                          || test ! -s conftest.err'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; } &&
14025          { ac_try='test -s conftest.$ac_objext'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031   ac_cv_type_uint32_t=yes
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 ac_cv_type_uint32_t=no
14037 fi
14038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14039 fi
14040 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14041 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14042 if test $ac_cv_type_uint32_t = yes; then
14043   acx_cv_header_stdint=$i
14044 else
14045   continue
14046 fi
14047
14048     echo "$as_me:$LINENO: checking for uint64_t" >&5
14049 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14050 if test "${ac_cv_type_uint64_t+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059 #include <sys/types.h>
14060 #include <$i>
14061
14062 int
14063 main ()
14064 {
14065 if ((uint64_t *) 0)
14066   return 0;
14067 if (sizeof (uint64_t))
14068   return 0;
14069   ;
14070   return 0;
14071 }
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075   (eval $ac_compile) 2>conftest.er1
14076   ac_status=$?
14077   grep -v '^ *+' conftest.er1 >conftest.err
14078   rm -f conftest.er1
14079   cat conftest.err >&5
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); } &&
14082          { ac_try='test -z "$ac_c_werror_flag"
14083                          || test ! -s conftest.err'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; } &&
14089          { ac_try='test -s conftest.$ac_objext'
14090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091   (eval $ac_try) 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; }; then
14095   ac_cv_type_uint64_t=yes
14096 else
14097   echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 ac_cv_type_uint64_t=no
14101 fi
14102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14103 fi
14104 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14105 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14106
14107     echo "$as_me:$LINENO: checking for uintptr_t" >&5
14108 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14109 if test "${ac_cv_type_uintptr_t+set}" = set; then
14110   echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112   cat >conftest.$ac_ext <<_ACEOF
14113 /* confdefs.h.  */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h.  */
14118 #include <sys/types.h>
14119 #include <$i>
14120
14121 int
14122 main ()
14123 {
14124 if ((uintptr_t *) 0)
14125   return 0;
14126 if (sizeof (uintptr_t))
14127   return 0;
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134   (eval $ac_compile) 2>conftest.er1
14135   ac_status=$?
14136   grep -v '^ *+' conftest.er1 >conftest.err
14137   rm -f conftest.er1
14138   cat conftest.err >&5
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -z "$ac_c_werror_flag"
14142                          || test ! -s conftest.err'
14143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144   (eval $ac_try) 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; } &&
14148          { ac_try='test -s conftest.$ac_objext'
14149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150   (eval $ac_try) 2>&5
14151   ac_status=$?
14152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153   (exit $ac_status); }; }; then
14154   ac_cv_type_uintptr_t=yes
14155 else
14156   echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159 ac_cv_type_uintptr_t=no
14160 fi
14161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14162 fi
14163 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14164 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14165
14166     break
14167   done
14168 fi
14169 if test "$acx_cv_header_stdint" = stddef.h; then
14170   acx_cv_header_stdint_kind="(u_intXX_t style)"
14171   for i in sys/types.h $inttype_headers; do
14172     unset ac_cv_type_u_int32_t
14173     unset ac_cv_type_u_int64_t
14174     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14175     echo "$as_me:$LINENO: checking for u_int32_t" >&5
14176 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14177 if test "${ac_cv_type_u_int32_t+set}" = set; then
14178   echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180   cat >conftest.$ac_ext <<_ACEOF
14181 /* confdefs.h.  */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h.  */
14186 #include <sys/types.h>
14187 #include <$i>
14188
14189 int
14190 main ()
14191 {
14192 if ((u_int32_t *) 0)
14193   return 0;
14194 if (sizeof (u_int32_t))
14195   return 0;
14196   ;
14197   return 0;
14198 }
14199 _ACEOF
14200 rm -f conftest.$ac_objext
14201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14202   (eval $ac_compile) 2>conftest.er1
14203   ac_status=$?
14204   grep -v '^ *+' conftest.er1 >conftest.err
14205   rm -f conftest.er1
14206   cat conftest.err >&5
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); } &&
14209          { ac_try='test -z "$ac_c_werror_flag"
14210                          || test ! -s conftest.err'
14211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212   (eval $ac_try) 2>&5
14213   ac_status=$?
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); }; } &&
14216          { ac_try='test -s conftest.$ac_objext'
14217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218   (eval $ac_try) 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; }; then
14222   ac_cv_type_u_int32_t=yes
14223 else
14224   echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 ac_cv_type_u_int32_t=no
14228 fi
14229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14230 fi
14231 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14232 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14233 if test $ac_cv_type_u_int32_t = yes; then
14234   acx_cv_header_stdint=$i
14235 else
14236   continue
14237 fi
14238
14239     echo "$as_me:$LINENO: checking for u_int64_t" >&5
14240 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14241 if test "${ac_cv_type_u_int64_t+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h.  */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h.  */
14250 #include <sys/types.h>
14251 #include <$i>
14252
14253 int
14254 main ()
14255 {
14256 if ((u_int64_t *) 0)
14257   return 0;
14258 if (sizeof (u_int64_t))
14259   return 0;
14260   ;
14261   return 0;
14262 }
14263 _ACEOF
14264 rm -f conftest.$ac_objext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266   (eval $ac_compile) 2>conftest.er1
14267   ac_status=$?
14268   grep -v '^ *+' conftest.er1 >conftest.err
14269   rm -f conftest.er1
14270   cat conftest.err >&5
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } &&
14273          { ac_try='test -z "$ac_c_werror_flag"
14274                          || test ! -s conftest.err'
14275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276   (eval $ac_try) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; } &&
14280          { ac_try='test -s conftest.$ac_objext'
14281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282   (eval $ac_try) 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; }; then
14286   ac_cv_type_u_int64_t=yes
14287 else
14288   echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14290
14291 ac_cv_type_u_int64_t=no
14292 fi
14293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14294 fi
14295 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14296 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14297
14298     break
14299   done
14300 fi
14301 if test "$acx_cv_header_stdint" = stddef.h; then
14302   acx_cv_header_stdint_kind="(using manual detection)"
14303 fi
14304
14305 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14306 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14307 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14308 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14309 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14310
14311 # ----------------- Summarize what we found so far
14312
14313 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14314 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14315
14316 case `$as_basename gstdint.h ||
14317 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14318          Xgstdint.h : 'X\(//\)$' \| \
14319          Xgstdint.h : 'X\(/\)$' \| \
14320          .     : '\(.\)' 2>/dev/null ||
14321 echo X/gstdint.h |
14322     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14323           /^X\/\(\/\/\)$/{ s//\1/; q; }
14324           /^X\/\(\/\).*/{ s//\1/; q; }
14325           s/.*/./; q'` in
14326   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14327 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14328   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14329 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14330   *) ;;
14331 esac
14332
14333 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14334 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14335
14336 # ----------------- done included file, check C basic types --------
14337
14338 # Lacking an uintptr_t?  Test size of void *
14339 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14340   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14341 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14342 if test "${ac_cv_type_void_p+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h.  */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h.  */
14351 $ac_includes_default
14352 int
14353 main ()
14354 {
14355 if ((void * *) 0)
14356   return 0;
14357 if (sizeof (void *))
14358   return 0;
14359   ;
14360   return 0;
14361 }
14362 _ACEOF
14363 rm -f conftest.$ac_objext
14364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14365   (eval $ac_compile) 2>conftest.er1
14366   ac_status=$?
14367   grep -v '^ *+' conftest.er1 >conftest.err
14368   rm -f conftest.er1
14369   cat conftest.err >&5
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); } &&
14372          { ac_try='test -z "$ac_c_werror_flag"
14373                          || test ! -s conftest.err'
14374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375   (eval $ac_try) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; } &&
14379          { ac_try='test -s conftest.$ac_objext'
14380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381   (eval $ac_try) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; }; then
14385   ac_cv_type_void_p=yes
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390 ac_cv_type_void_p=no
14391 fi
14392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14393 fi
14394 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14395 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14396
14397 echo "$as_me:$LINENO: checking size of void *" >&5
14398 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14399 if test "${ac_cv_sizeof_void_p+set}" = set; then
14400   echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402   if test "$ac_cv_type_void_p" = yes; then
14403   # The cast to unsigned long works around a bug in the HP C Compiler
14404   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14405   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14406   # This bug is HP SR number 8606223364.
14407   if test "$cross_compiling" = yes; then
14408   # Depending upon the size, compute the lo and hi bounds.
14409 cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h.  */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h.  */
14415 $ac_includes_default
14416 int
14417 main ()
14418 {
14419 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14420 test_array [0] = 0
14421
14422   ;
14423   return 0;
14424 }
14425 _ACEOF
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428   (eval $ac_compile) 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -z "$ac_c_werror_flag"
14436                          || test ! -s conftest.err'
14437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438   (eval $ac_try) 2>&5
14439   ac_status=$?
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); }; } &&
14442          { ac_try='test -s conftest.$ac_objext'
14443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444   (eval $ac_try) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; }; then
14448   ac_lo=0 ac_mid=0
14449   while :; do
14450     cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 $ac_includes_default
14457 int
14458 main ()
14459 {
14460 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14461 test_array [0] = 0
14462
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } &&
14476          { ac_try='test -z "$ac_c_werror_flag"
14477                          || test ! -s conftest.err'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; } &&
14483          { ac_try='test -s conftest.$ac_objext'
14484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485   (eval $ac_try) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; }; then
14489   ac_hi=$ac_mid; break
14490 else
14491   echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14493
14494 ac_lo=`expr $ac_mid + 1`
14495                     if test $ac_lo -le $ac_mid; then
14496                       ac_lo= ac_hi=
14497                       break
14498                     fi
14499                     ac_mid=`expr 2 '*' $ac_mid + 1`
14500 fi
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14502   done
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h.  */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h.  */
14513 $ac_includes_default
14514 int
14515 main ()
14516 {
14517 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14518 test_array [0] = 0
14519
14520   ;
14521   return 0;
14522 }
14523 _ACEOF
14524 rm -f conftest.$ac_objext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526   (eval $ac_compile) 2>conftest.er1
14527   ac_status=$?
14528   grep -v '^ *+' conftest.er1 >conftest.err
14529   rm -f conftest.er1
14530   cat conftest.err >&5
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); } &&
14533          { ac_try='test -z "$ac_c_werror_flag"
14534                          || test ! -s conftest.err'
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); }; } &&
14540          { ac_try='test -s conftest.$ac_objext'
14541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542   (eval $ac_try) 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; }; then
14546   ac_hi=-1 ac_mid=-1
14547   while :; do
14548     cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h.  */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h.  */
14554 $ac_includes_default
14555 int
14556 main ()
14557 {
14558 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14559 test_array [0] = 0
14560
14561   ;
14562   return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567   (eval $ac_compile) 2>conftest.er1
14568   ac_status=$?
14569   grep -v '^ *+' conftest.er1 >conftest.err
14570   rm -f conftest.er1
14571   cat conftest.err >&5
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); } &&
14574          { ac_try='test -z "$ac_c_werror_flag"
14575                          || test ! -s conftest.err'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; } &&
14581          { ac_try='test -s conftest.$ac_objext'
14582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583   (eval $ac_try) 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; }; then
14587   ac_lo=$ac_mid; break
14588 else
14589   echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 ac_hi=`expr '(' $ac_mid ')' - 1`
14593                        if test $ac_mid -le $ac_hi; then
14594                          ac_lo= ac_hi=
14595                          break
14596                        fi
14597                        ac_mid=`expr 2 '*' $ac_mid`
14598 fi
14599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14600   done
14601 else
14602   echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_lo= ac_hi=
14606 fi
14607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608 fi
14609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610 # Binary search between lo and hi bounds.
14611 while test "x$ac_lo" != "x$ac_hi"; do
14612   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14613   cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h.  */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h.  */
14619 $ac_includes_default
14620 int
14621 main ()
14622 {
14623 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14624 test_array [0] = 0
14625
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632   (eval $ac_compile) 2>conftest.er1
14633   ac_status=$?
14634   grep -v '^ *+' conftest.er1 >conftest.err
14635   rm -f conftest.er1
14636   cat conftest.err >&5
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } &&
14639          { ac_try='test -z "$ac_c_werror_flag"
14640                          || test ! -s conftest.err'
14641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642   (eval $ac_try) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; } &&
14646          { ac_try='test -s conftest.$ac_objext'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652   ac_hi=$ac_mid
14653 else
14654   echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 ac_lo=`expr '(' $ac_mid ')' + 1`
14658 fi
14659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14660 done
14661 case $ac_lo in
14662 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14663 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14664 See \`config.log' for more details." >&5
14665 echo "$as_me: error: cannot compute sizeof (void *), 77
14666 See \`config.log' for more details." >&2;}
14667    { (exit 1); exit 1; }; } ;;
14668 esac
14669 else
14670   if test "$cross_compiling" = yes; then
14671   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14672 See \`config.log' for more details." >&5
14673 echo "$as_me: error: cannot run test program while cross compiling
14674 See \`config.log' for more details." >&2;}
14675    { (exit 1); exit 1; }; }
14676 else
14677   cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h.  */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h.  */
14683 $ac_includes_default
14684 long longval () { return (long) (sizeof (void *)); }
14685 unsigned long ulongval () { return (long) (sizeof (void *)); }
14686 #include <stdio.h>
14687 #include <stdlib.h>
14688 int
14689 main ()
14690 {
14691
14692   FILE *f = fopen ("conftest.val", "w");
14693   if (! f)
14694     exit (1);
14695   if (((long) (sizeof (void *))) < 0)
14696     {
14697       long i = longval ();
14698       if (i != ((long) (sizeof (void *))))
14699         exit (1);
14700       fprintf (f, "%ld\n", i);
14701     }
14702   else
14703     {
14704       unsigned long i = ulongval ();
14705       if (i != ((long) (sizeof (void *))))
14706         exit (1);
14707       fprintf (f, "%lu\n", i);
14708     }
14709   exit (ferror (f) || fclose (f) != 0);
14710
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest$ac_exeext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14717   (eval $ac_link) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ac_cv_sizeof_void_p=`cat conftest.val`
14727 else
14728   echo "$as_me: program exited with status $ac_status" >&5
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14731
14732 ( exit $ac_status )
14733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14734 See \`config.log' for more details." >&5
14735 echo "$as_me: error: cannot compute sizeof (void *), 77
14736 See \`config.log' for more details." >&2;}
14737    { (exit 1); exit 1; }; }
14738 fi
14739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14740 fi
14741 fi
14742 rm -f conftest.val
14743 else
14744   ac_cv_sizeof_void_p=0
14745 fi
14746 fi
14747 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14748 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14749 cat >>confdefs.h <<_ACEOF
14750 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14751 _ACEOF
14752
14753  ;;
14754 esac
14755
14756 # Lacking an uint64_t?  Test size of long
14757 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14758   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14759 echo $ECHO_N "checking for long... $ECHO_C" >&6
14760 if test "${ac_cv_type_long+set}" = set; then
14761   echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763   cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769 $ac_includes_default
14770 int
14771 main ()
14772 {
14773 if ((long *) 0)
14774   return 0;
14775 if (sizeof (long))
14776   return 0;
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783   (eval $ac_compile) 2>conftest.er1
14784   ac_status=$?
14785   grep -v '^ *+' conftest.er1 >conftest.err
14786   rm -f conftest.er1
14787   cat conftest.err >&5
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); } &&
14790          { ac_try='test -z "$ac_c_werror_flag"
14791                          || test ! -s conftest.err'
14792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793   (eval $ac_try) 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; } &&
14797          { ac_try='test -s conftest.$ac_objext'
14798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799   (eval $ac_try) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; }; then
14803   ac_cv_type_long=yes
14804 else
14805   echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_cv_type_long=no
14809 fi
14810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14811 fi
14812 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14813 echo "${ECHO_T}$ac_cv_type_long" >&6
14814
14815 echo "$as_me:$LINENO: checking size of long" >&5
14816 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14817 if test "${ac_cv_sizeof_long+set}" = set; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   if test "$ac_cv_type_long" = yes; then
14821   # The cast to unsigned long works around a bug in the HP C Compiler
14822   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14823   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14824   # This bug is HP SR number 8606223364.
14825   if test "$cross_compiling" = yes; then
14826   # Depending upon the size, compute the lo and hi bounds.
14827 cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h.  */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h.  */
14833 $ac_includes_default
14834 int
14835 main ()
14836 {
14837 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14838 test_array [0] = 0
14839
14840   ;
14841   return 0;
14842 }
14843 _ACEOF
14844 rm -f conftest.$ac_objext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14846   (eval $ac_compile) 2>conftest.er1
14847   ac_status=$?
14848   grep -v '^ *+' conftest.er1 >conftest.err
14849   rm -f conftest.er1
14850   cat conftest.err >&5
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } &&
14853          { ac_try='test -z "$ac_c_werror_flag"
14854                          || test ! -s conftest.err'
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); }; } &&
14860          { ac_try='test -s conftest.$ac_objext'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; }; then
14866   ac_lo=0 ac_mid=0
14867   while :; do
14868     cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h.  */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h.  */
14874 $ac_includes_default
14875 int
14876 main ()
14877 {
14878 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14879 test_array [0] = 0
14880
14881   ;
14882   return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887   (eval $ac_compile) 2>conftest.er1
14888   ac_status=$?
14889   grep -v '^ *+' conftest.er1 >conftest.err
14890   rm -f conftest.er1
14891   cat conftest.err >&5
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } &&
14894          { ac_try='test -z "$ac_c_werror_flag"
14895                          || test ! -s conftest.err'
14896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897   (eval $ac_try) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; } &&
14901          { ac_try='test -s conftest.$ac_objext'
14902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903   (eval $ac_try) 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; }; then
14907   ac_hi=$ac_mid; break
14908 else
14909   echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912 ac_lo=`expr $ac_mid + 1`
14913                     if test $ac_lo -le $ac_mid; then
14914                       ac_lo= ac_hi=
14915                       break
14916                     fi
14917                     ac_mid=`expr 2 '*' $ac_mid + 1`
14918 fi
14919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14920   done
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
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))) < 0)];
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=-1 ac_mid=-1
14965   while :; do
14966     cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h.  */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h.  */
14972 $ac_includes_default
14973 int
14974 main ()
14975 {
14976 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14977 test_array [0] = 0
14978
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985   (eval $ac_compile) 2>conftest.er1
14986   ac_status=$?
14987   grep -v '^ *+' conftest.er1 >conftest.err
14988   rm -f conftest.er1
14989   cat conftest.err >&5
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } &&
14992          { ac_try='test -z "$ac_c_werror_flag"
14993                          || test ! -s conftest.err'
14994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995   (eval $ac_try) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; } &&
14999          { ac_try='test -s conftest.$ac_objext'
15000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001   (eval $ac_try) 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005   ac_lo=$ac_mid; break
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 ac_hi=`expr '(' $ac_mid ')' - 1`
15011                        if test $ac_mid -le $ac_hi; then
15012                          ac_lo= ac_hi=
15013                          break
15014                        fi
15015                        ac_mid=`expr 2 '*' $ac_mid`
15016 fi
15017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15018   done
15019 else
15020   echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023 ac_lo= ac_hi=
15024 fi
15025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15026 fi
15027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15028 # Binary search between lo and hi bounds.
15029 while test "x$ac_lo" != "x$ac_hi"; do
15030   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15031   cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h.  */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h.  */
15037 $ac_includes_default
15038 int
15039 main ()
15040 {
15041 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15042 test_array [0] = 0
15043
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050   (eval $ac_compile) 2>conftest.er1
15051   ac_status=$?
15052   grep -v '^ *+' conftest.er1 >conftest.err
15053   rm -f conftest.er1
15054   cat conftest.err >&5
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); } &&
15057          { ac_try='test -z "$ac_c_werror_flag"
15058                          || test ! -s conftest.err'
15059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060   (eval $ac_try) 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); }; } &&
15064          { ac_try='test -s conftest.$ac_objext'
15065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066   (eval $ac_try) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }; }; then
15070   ac_hi=$ac_mid
15071 else
15072   echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15074
15075 ac_lo=`expr '(' $ac_mid ')' + 1`
15076 fi
15077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15078 done
15079 case $ac_lo in
15080 ?*) ac_cv_sizeof_long=$ac_lo;;
15081 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15082 See \`config.log' for more details." >&5
15083 echo "$as_me: error: cannot compute sizeof (long), 77
15084 See \`config.log' for more details." >&2;}
15085    { (exit 1); exit 1; }; } ;;
15086 esac
15087 else
15088   if test "$cross_compiling" = yes; then
15089   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15090 See \`config.log' for more details." >&5
15091 echo "$as_me: error: cannot run test program while cross compiling
15092 See \`config.log' for more details." >&2;}
15093    { (exit 1); exit 1; }; }
15094 else
15095   cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h.  */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h.  */
15101 $ac_includes_default
15102 long longval () { return (long) (sizeof (long)); }
15103 unsigned long ulongval () { return (long) (sizeof (long)); }
15104 #include <stdio.h>
15105 #include <stdlib.h>
15106 int
15107 main ()
15108 {
15109
15110   FILE *f = fopen ("conftest.val", "w");
15111   if (! f)
15112     exit (1);
15113   if (((long) (sizeof (long))) < 0)
15114     {
15115       long i = longval ();
15116       if (i != ((long) (sizeof (long))))
15117         exit (1);
15118       fprintf (f, "%ld\n", i);
15119     }
15120   else
15121     {
15122       unsigned long i = ulongval ();
15123       if (i != ((long) (sizeof (long))))
15124         exit (1);
15125       fprintf (f, "%lu\n", i);
15126     }
15127   exit (ferror (f) || fclose (f) != 0);
15128
15129   ;
15130   return 0;
15131 }
15132 _ACEOF
15133 rm -f conftest$ac_exeext
15134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15135   (eval $ac_link) 2>&5
15136   ac_status=$?
15137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140   (eval $ac_try) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; }; then
15144   ac_cv_sizeof_long=`cat conftest.val`
15145 else
15146   echo "$as_me: program exited with status $ac_status" >&5
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150 ( exit $ac_status )
15151 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15152 See \`config.log' for more details." >&5
15153 echo "$as_me: error: cannot compute sizeof (long), 77
15154 See \`config.log' for more details." >&2;}
15155    { (exit 1); exit 1; }; }
15156 fi
15157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15158 fi
15159 fi
15160 rm -f conftest.val
15161 else
15162   ac_cv_sizeof_long=0
15163 fi
15164 fi
15165 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15166 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15167 cat >>confdefs.h <<_ACEOF
15168 #define SIZEOF_LONG $ac_cv_sizeof_long
15169 _ACEOF
15170
15171  ;;
15172 esac
15173
15174 if test $acx_cv_header_stdint = stddef.h; then
15175   # Lacking a good header?  Test size of everything and deduce all types.
15176   echo "$as_me:$LINENO: checking for int" >&5
15177 echo $ECHO_N "checking for int... $ECHO_C" >&6
15178 if test "${ac_cv_type_int+set}" = set; then
15179   echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181   cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h.  */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h.  */
15187 $ac_includes_default
15188 int
15189 main ()
15190 {
15191 if ((int *) 0)
15192   return 0;
15193 if (sizeof (int))
15194   return 0;
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201   (eval $ac_compile) 2>conftest.er1
15202   ac_status=$?
15203   grep -v '^ *+' conftest.er1 >conftest.err
15204   rm -f conftest.er1
15205   cat conftest.err >&5
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } &&
15208          { ac_try='test -z "$ac_c_werror_flag"
15209                          || test ! -s conftest.err'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; } &&
15215          { ac_try='test -s conftest.$ac_objext'
15216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217   (eval $ac_try) 2>&5
15218   ac_status=$?
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); }; }; then
15221   ac_cv_type_int=yes
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 ac_cv_type_int=no
15227 fi
15228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15229 fi
15230 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15231 echo "${ECHO_T}$ac_cv_type_int" >&6
15232
15233 echo "$as_me:$LINENO: checking size of int" >&5
15234 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15235 if test "${ac_cv_sizeof_int+set}" = set; then
15236   echo $ECHO_N "(cached) $ECHO_C" >&6
15237 else
15238   if test "$ac_cv_type_int" = yes; then
15239   # The cast to unsigned long works around a bug in the HP C Compiler
15240   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15241   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15242   # This bug is HP SR number 8606223364.
15243   if test "$cross_compiling" = yes; then
15244   # Depending upon the size, compute the lo and hi bounds.
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h.  */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h.  */
15251 $ac_includes_default
15252 int
15253 main ()
15254 {
15255 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15256 test_array [0] = 0
15257
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_lo=0 ac_mid=0
15285   while :; do
15286     cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292 $ac_includes_default
15293 int
15294 main ()
15295 {
15296 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15297 test_array [0] = 0
15298
15299   ;
15300   return 0;
15301 }
15302 _ACEOF
15303 rm -f conftest.$ac_objext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15305   (eval $ac_compile) 2>conftest.er1
15306   ac_status=$?
15307   grep -v '^ *+' conftest.er1 >conftest.err
15308   rm -f conftest.er1
15309   cat conftest.err >&5
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } &&
15312          { ac_try='test -z "$ac_c_werror_flag"
15313                          || test ! -s conftest.err'
15314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315   (eval $ac_try) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; } &&
15319          { ac_try='test -s conftest.$ac_objext'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; }; then
15325   ac_hi=$ac_mid; break
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330 ac_lo=`expr $ac_mid + 1`
15331                     if test $ac_lo -le $ac_mid; then
15332                       ac_lo= ac_hi=
15333                       break
15334                     fi
15335                     ac_mid=`expr 2 '*' $ac_mid + 1`
15336 fi
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338   done
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343 cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h.  */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h.  */
15349 $ac_includes_default
15350 int
15351 main ()
15352 {
15353 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15354 test_array [0] = 0
15355
15356   ;
15357   return 0;
15358 }
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362   (eval $ac_compile) 2>conftest.er1
15363   ac_status=$?
15364   grep -v '^ *+' conftest.er1 >conftest.err
15365   rm -f conftest.er1
15366   cat conftest.err >&5
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); } &&
15369          { ac_try='test -z "$ac_c_werror_flag"
15370                          || test ! -s conftest.err'
15371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372   (eval $ac_try) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; } &&
15376          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15382   ac_hi=-1 ac_mid=-1
15383   while :; do
15384     cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h.  */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h.  */
15390 $ac_includes_default
15391 int
15392 main ()
15393 {
15394 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15395 test_array [0] = 0
15396
15397   ;
15398   return 0;
15399 }
15400 _ACEOF
15401 rm -f conftest.$ac_objext
15402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15403   (eval $ac_compile) 2>conftest.er1
15404   ac_status=$?
15405   grep -v '^ *+' conftest.er1 >conftest.err
15406   rm -f conftest.er1
15407   cat conftest.err >&5
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); } &&
15410          { ac_try='test -z "$ac_c_werror_flag"
15411                          || test ! -s conftest.err'
15412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413   (eval $ac_try) 2>&5
15414   ac_status=$?
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); }; } &&
15417          { ac_try='test -s conftest.$ac_objext'
15418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419   (eval $ac_try) 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); }; }; then
15423   ac_lo=$ac_mid; break
15424 else
15425   echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428 ac_hi=`expr '(' $ac_mid ')' - 1`
15429                        if test $ac_mid -le $ac_hi; then
15430                          ac_lo= ac_hi=
15431                          break
15432                        fi
15433                        ac_mid=`expr 2 '*' $ac_mid`
15434 fi
15435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15436   done
15437 else
15438   echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441 ac_lo= ac_hi=
15442 fi
15443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15444 fi
15445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15446 # Binary search between lo and hi bounds.
15447 while test "x$ac_lo" != "x$ac_hi"; do
15448   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15449   cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h.  */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h.  */
15455 $ac_includes_default
15456 int
15457 main ()
15458 {
15459 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15460 test_array [0] = 0
15461
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468   (eval $ac_compile) 2>conftest.er1
15469   ac_status=$?
15470   grep -v '^ *+' conftest.er1 >conftest.err
15471   rm -f conftest.er1
15472   cat conftest.err >&5
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); } &&
15475          { ac_try='test -z "$ac_c_werror_flag"
15476                          || test ! -s conftest.err'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; } &&
15482          { ac_try='test -s conftest.$ac_objext'
15483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484   (eval $ac_try) 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   ac_hi=$ac_mid
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 ac_lo=`expr '(' $ac_mid ')' + 1`
15494 fi
15495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15496 done
15497 case $ac_lo in
15498 ?*) ac_cv_sizeof_int=$ac_lo;;
15499 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15500 See \`config.log' for more details." >&5
15501 echo "$as_me: error: cannot compute sizeof (int), 77
15502 See \`config.log' for more details." >&2;}
15503    { (exit 1); exit 1; }; } ;;
15504 esac
15505 else
15506   if test "$cross_compiling" = yes; then
15507   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15508 See \`config.log' for more details." >&5
15509 echo "$as_me: error: cannot run test program while cross compiling
15510 See \`config.log' for more details." >&2;}
15511    { (exit 1); exit 1; }; }
15512 else
15513   cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h.  */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h.  */
15519 $ac_includes_default
15520 long longval () { return (long) (sizeof (int)); }
15521 unsigned long ulongval () { return (long) (sizeof (int)); }
15522 #include <stdio.h>
15523 #include <stdlib.h>
15524 int
15525 main ()
15526 {
15527
15528   FILE *f = fopen ("conftest.val", "w");
15529   if (! f)
15530     exit (1);
15531   if (((long) (sizeof (int))) < 0)
15532     {
15533       long i = longval ();
15534       if (i != ((long) (sizeof (int))))
15535         exit (1);
15536       fprintf (f, "%ld\n", i);
15537     }
15538   else
15539     {
15540       unsigned long i = ulongval ();
15541       if (i != ((long) (sizeof (int))))
15542         exit (1);
15543       fprintf (f, "%lu\n", i);
15544     }
15545   exit (ferror (f) || fclose (f) != 0);
15546
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest$ac_exeext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15553   (eval $ac_link) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558   (eval $ac_try) 2>&5
15559   ac_status=$?
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); }; }; then
15562   ac_cv_sizeof_int=`cat conftest.val`
15563 else
15564   echo "$as_me: program exited with status $ac_status" >&5
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15567
15568 ( exit $ac_status )
15569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15570 See \`config.log' for more details." >&5
15571 echo "$as_me: error: cannot compute sizeof (int), 77
15572 See \`config.log' for more details." >&2;}
15573    { (exit 1); exit 1; }; }
15574 fi
15575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15576 fi
15577 fi
15578 rm -f conftest.val
15579 else
15580   ac_cv_sizeof_int=0
15581 fi
15582 fi
15583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15584 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15585 cat >>confdefs.h <<_ACEOF
15586 #define SIZEOF_INT $ac_cv_sizeof_int
15587 _ACEOF
15588
15589
15590   echo "$as_me:$LINENO: checking for short" >&5
15591 echo $ECHO_N "checking for short... $ECHO_C" >&6
15592 if test "${ac_cv_type_short+set}" = set; then
15593   echo $ECHO_N "(cached) $ECHO_C" >&6
15594 else
15595   cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601 $ac_includes_default
15602 int
15603 main ()
15604 {
15605 if ((short *) 0)
15606   return 0;
15607 if (sizeof (short))
15608   return 0;
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15615   (eval $ac_compile) 2>conftest.er1
15616   ac_status=$?
15617   grep -v '^ *+' conftest.er1 >conftest.err
15618   rm -f conftest.er1
15619   cat conftest.err >&5
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); } &&
15622          { ac_try='test -z "$ac_c_werror_flag"
15623                          || test ! -s conftest.err'
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); }; } &&
15629          { ac_try='test -s conftest.$ac_objext'
15630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631   (eval $ac_try) 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); }; }; then
15635   ac_cv_type_short=yes
15636 else
15637   echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640 ac_cv_type_short=no
15641 fi
15642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15643 fi
15644 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15645 echo "${ECHO_T}$ac_cv_type_short" >&6
15646
15647 echo "$as_me:$LINENO: checking size of short" >&5
15648 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15649 if test "${ac_cv_sizeof_short+set}" = set; then
15650   echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652   if test "$ac_cv_type_short" = yes; then
15653   # The cast to unsigned long works around a bug in the HP C Compiler
15654   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15655   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15656   # This bug is HP SR number 8606223364.
15657   if test "$cross_compiling" = yes; then
15658   # Depending upon the size, compute the lo and hi bounds.
15659 cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665 $ac_includes_default
15666 int
15667 main ()
15668 {
15669 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15670 test_array [0] = 0
15671
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678   (eval $ac_compile) 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } &&
15685          { ac_try='test -z "$ac_c_werror_flag"
15686                          || test ! -s conftest.err'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; } &&
15692          { ac_try='test -s conftest.$ac_objext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   ac_lo=0 ac_mid=0
15699   while :; do
15700     cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706 $ac_includes_default
15707 int
15708 main ()
15709 {
15710 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15711 test_array [0] = 0
15712
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15719   (eval $ac_compile) 2>conftest.er1
15720   ac_status=$?
15721   grep -v '^ *+' conftest.er1 >conftest.err
15722   rm -f conftest.er1
15723   cat conftest.err >&5
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); } &&
15726          { ac_try='test -z "$ac_c_werror_flag"
15727                          || test ! -s conftest.err'
15728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729   (eval $ac_try) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; } &&
15733          { ac_try='test -s conftest.$ac_objext'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   ac_hi=$ac_mid; break
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 ac_lo=`expr $ac_mid + 1`
15745                     if test $ac_lo -le $ac_mid; then
15746                       ac_lo= ac_hi=
15747                       break
15748                     fi
15749                     ac_mid=`expr 2 '*' $ac_mid + 1`
15750 fi
15751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15752   done
15753 else
15754   echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763 $ac_includes_default
15764 int
15765 main ()
15766 {
15767 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15768 test_array [0] = 0
15769
15770   ;
15771   return 0;
15772 }
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776   (eval $ac_compile) 2>conftest.er1
15777   ac_status=$?
15778   grep -v '^ *+' conftest.er1 >conftest.err
15779   rm -f conftest.er1
15780   cat conftest.err >&5
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); } &&
15783          { ac_try='test -z "$ac_c_werror_flag"
15784                          || test ! -s conftest.err'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; } &&
15790          { ac_try='test -s conftest.$ac_objext'
15791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792   (eval $ac_try) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; }; then
15796   ac_hi=-1 ac_mid=-1
15797   while :; do
15798     cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h.  */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h.  */
15804 $ac_includes_default
15805 int
15806 main ()
15807 {
15808 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15809 test_array [0] = 0
15810
15811   ;
15812   return 0;
15813 }
15814 _ACEOF
15815 rm -f conftest.$ac_objext
15816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15817   (eval $ac_compile) 2>conftest.er1
15818   ac_status=$?
15819   grep -v '^ *+' conftest.er1 >conftest.err
15820   rm -f conftest.er1
15821   cat conftest.err >&5
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); } &&
15824          { ac_try='test -z "$ac_c_werror_flag"
15825                          || test ! -s conftest.err'
15826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827   (eval $ac_try) 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); }; } &&
15831          { ac_try='test -s conftest.$ac_objext'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; }; then
15837   ac_lo=$ac_mid; break
15838 else
15839   echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 ac_hi=`expr '(' $ac_mid ')' - 1`
15843                        if test $ac_mid -le $ac_hi; then
15844                          ac_lo= ac_hi=
15845                          break
15846                        fi
15847                        ac_mid=`expr 2 '*' $ac_mid`
15848 fi
15849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15850   done
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855 ac_lo= ac_hi=
15856 fi
15857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15858 fi
15859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15860 # Binary search between lo and hi bounds.
15861 while test "x$ac_lo" != "x$ac_hi"; do
15862   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15863   cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h.  */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h.  */
15869 $ac_includes_default
15870 int
15871 main ()
15872 {
15873 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15874 test_array [0] = 0
15875
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882   (eval $ac_compile) 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -z "$ac_c_werror_flag"
15890                          || test ! -s conftest.err'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; } &&
15896          { ac_try='test -s conftest.$ac_objext'
15897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898   (eval $ac_try) 2>&5
15899   ac_status=$?
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); }; }; then
15902   ac_hi=$ac_mid
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 ac_lo=`expr '(' $ac_mid ')' + 1`
15908 fi
15909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15910 done
15911 case $ac_lo in
15912 ?*) ac_cv_sizeof_short=$ac_lo;;
15913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15914 See \`config.log' for more details." >&5
15915 echo "$as_me: error: cannot compute sizeof (short), 77
15916 See \`config.log' for more details." >&2;}
15917    { (exit 1); exit 1; }; } ;;
15918 esac
15919 else
15920   if test "$cross_compiling" = yes; then
15921   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15922 See \`config.log' for more details." >&5
15923 echo "$as_me: error: cannot run test program while cross compiling
15924 See \`config.log' for more details." >&2;}
15925    { (exit 1); exit 1; }; }
15926 else
15927   cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 $ac_includes_default
15934 long longval () { return (long) (sizeof (short)); }
15935 unsigned long ulongval () { return (long) (sizeof (short)); }
15936 #include <stdio.h>
15937 #include <stdlib.h>
15938 int
15939 main ()
15940 {
15941
15942   FILE *f = fopen ("conftest.val", "w");
15943   if (! f)
15944     exit (1);
15945   if (((long) (sizeof (short))) < 0)
15946     {
15947       long i = longval ();
15948       if (i != ((long) (sizeof (short))))
15949         exit (1);
15950       fprintf (f, "%ld\n", i);
15951     }
15952   else
15953     {
15954       unsigned long i = ulongval ();
15955       if (i != ((long) (sizeof (short))))
15956         exit (1);
15957       fprintf (f, "%lu\n", i);
15958     }
15959   exit (ferror (f) || fclose (f) != 0);
15960
15961   ;
15962   return 0;
15963 }
15964 _ACEOF
15965 rm -f conftest$ac_exeext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15967   (eval $ac_link) 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972   (eval $ac_try) 2>&5
15973   ac_status=$?
15974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); }; }; then
15976   ac_cv_sizeof_short=`cat conftest.val`
15977 else
15978   echo "$as_me: program exited with status $ac_status" >&5
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982 ( exit $ac_status )
15983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15984 See \`config.log' for more details." >&5
15985 echo "$as_me: error: cannot compute sizeof (short), 77
15986 See \`config.log' for more details." >&2;}
15987    { (exit 1); exit 1; }; }
15988 fi
15989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15990 fi
15991 fi
15992 rm -f conftest.val
15993 else
15994   ac_cv_sizeof_short=0
15995 fi
15996 fi
15997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15998 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15999 cat >>confdefs.h <<_ACEOF
16000 #define SIZEOF_SHORT $ac_cv_sizeof_short
16001 _ACEOF
16002
16003
16004   echo "$as_me:$LINENO: checking for char" >&5
16005 echo $ECHO_N "checking for char... $ECHO_C" >&6
16006 if test "${ac_cv_type_char+set}" = set; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009   cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 $ac_includes_default
16016 int
16017 main ()
16018 {
16019 if ((char *) 0)
16020   return 0;
16021 if (sizeof (char))
16022   return 0;
16023   ;
16024   return 0;
16025 }
16026 _ACEOF
16027 rm -f conftest.$ac_objext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029   (eval $ac_compile) 2>conftest.er1
16030   ac_status=$?
16031   grep -v '^ *+' conftest.er1 >conftest.err
16032   rm -f conftest.er1
16033   cat conftest.err >&5
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); } &&
16036          { ac_try='test -z "$ac_c_werror_flag"
16037                          || test ! -s conftest.err'
16038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039   (eval $ac_try) 2>&5
16040   ac_status=$?
16041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); }; } &&
16043          { ac_try='test -s conftest.$ac_objext'
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_type_char=yes
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054 ac_cv_type_char=no
16055 fi
16056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16057 fi
16058 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16059 echo "${ECHO_T}$ac_cv_type_char" >&6
16060
16061 echo "$as_me:$LINENO: checking size of char" >&5
16062 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16063 if test "${ac_cv_sizeof_char+set}" = set; then
16064   echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066   if test "$ac_cv_type_char" = yes; then
16067   # The cast to unsigned long works around a bug in the HP C Compiler
16068   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16069   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16070   # This bug is HP SR number 8606223364.
16071   if test "$cross_compiling" = yes; then
16072   # Depending upon the size, compute the lo and hi bounds.
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 $ac_includes_default
16080 int
16081 main ()
16082 {
16083 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16084 test_array [0] = 0
16085
16086   ;
16087   return 0;
16088 }
16089 _ACEOF
16090 rm -f conftest.$ac_objext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16092   (eval $ac_compile) 2>conftest.er1
16093   ac_status=$?
16094   grep -v '^ *+' conftest.er1 >conftest.err
16095   rm -f conftest.er1
16096   cat conftest.err >&5
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); } &&
16099          { ac_try='test -z "$ac_c_werror_flag"
16100                          || test ! -s conftest.err'
16101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102   (eval $ac_try) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; } &&
16106          { ac_try='test -s conftest.$ac_objext'
16107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108   (eval $ac_try) 2>&5
16109   ac_status=$?
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); }; }; then
16112   ac_lo=0 ac_mid=0
16113   while :; do
16114     cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 $ac_includes_default
16121 int
16122 main ()
16123 {
16124 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16125 test_array [0] = 0
16126
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 rm -f conftest.$ac_objext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16133   (eval $ac_compile) 2>conftest.er1
16134   ac_status=$?
16135   grep -v '^ *+' conftest.er1 >conftest.err
16136   rm -f conftest.er1
16137   cat conftest.err >&5
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); } &&
16140          { ac_try='test -z "$ac_c_werror_flag"
16141                          || test ! -s conftest.err'
16142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143   (eval $ac_try) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); }; } &&
16147          { ac_try='test -s conftest.$ac_objext'
16148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149   (eval $ac_try) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); }; }; then
16153   ac_hi=$ac_mid; break
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 ac_lo=`expr $ac_mid + 1`
16159                     if test $ac_lo -le $ac_mid; then
16160                       ac_lo= ac_hi=
16161                       break
16162                     fi
16163                     ac_mid=`expr 2 '*' $ac_mid + 1`
16164 fi
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16166   done
16167 else
16168   echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16170
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h.  */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h.  */
16177 $ac_includes_default
16178 int
16179 main ()
16180 {
16181 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16182 test_array [0] = 0
16183
16184   ;
16185   return 0;
16186 }
16187 _ACEOF
16188 rm -f conftest.$ac_objext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16190   (eval $ac_compile) 2>conftest.er1
16191   ac_status=$?
16192   grep -v '^ *+' conftest.er1 >conftest.err
16193   rm -f conftest.er1
16194   cat conftest.err >&5
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); } &&
16197          { ac_try='test -z "$ac_c_werror_flag"
16198                          || test ! -s conftest.err'
16199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200   (eval $ac_try) 2>&5
16201   ac_status=$?
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); }; } &&
16204          { ac_try='test -s conftest.$ac_objext'
16205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206   (eval $ac_try) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; }; then
16210   ac_hi=-1 ac_mid=-1
16211   while :; do
16212     cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h.  */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h.  */
16218 $ac_includes_default
16219 int
16220 main ()
16221 {
16222 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16223 test_array [0] = 0
16224
16225   ;
16226   return 0;
16227 }
16228 _ACEOF
16229 rm -f conftest.$ac_objext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231   (eval $ac_compile) 2>conftest.er1
16232   ac_status=$?
16233   grep -v '^ *+' conftest.er1 >conftest.err
16234   rm -f conftest.er1
16235   cat conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } &&
16238          { ac_try='test -z "$ac_c_werror_flag"
16239                          || test ! -s conftest.err'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; } &&
16245          { ac_try='test -s conftest.$ac_objext'
16246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247   (eval $ac_try) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; }; then
16251   ac_lo=$ac_mid; break
16252 else
16253   echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16255
16256 ac_hi=`expr '(' $ac_mid ')' - 1`
16257                        if test $ac_mid -le $ac_hi; then
16258                          ac_lo= ac_hi=
16259                          break
16260                        fi
16261                        ac_mid=`expr 2 '*' $ac_mid`
16262 fi
16263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16264   done
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 ac_lo= ac_hi=
16270 fi
16271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16272 fi
16273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16274 # Binary search between lo and hi bounds.
16275 while test "x$ac_lo" != "x$ac_hi"; do
16276   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16277   cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h.  */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h.  */
16283 $ac_includes_default
16284 int
16285 main ()
16286 {
16287 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16288 test_array [0] = 0
16289
16290   ;
16291   return 0;
16292 }
16293 _ACEOF
16294 rm -f conftest.$ac_objext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296   (eval $ac_compile) 2>conftest.er1
16297   ac_status=$?
16298   grep -v '^ *+' conftest.er1 >conftest.err
16299   rm -f conftest.er1
16300   cat conftest.err >&5
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); } &&
16303          { ac_try='test -z "$ac_c_werror_flag"
16304                          || test ! -s conftest.err'
16305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306   (eval $ac_try) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; } &&
16310          { ac_try='test -s conftest.$ac_objext'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; }; then
16316   ac_hi=$ac_mid
16317 else
16318   echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321 ac_lo=`expr '(' $ac_mid ')' + 1`
16322 fi
16323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16324 done
16325 case $ac_lo in
16326 ?*) ac_cv_sizeof_char=$ac_lo;;
16327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16328 See \`config.log' for more details." >&5
16329 echo "$as_me: error: cannot compute sizeof (char), 77
16330 See \`config.log' for more details." >&2;}
16331    { (exit 1); exit 1; }; } ;;
16332 esac
16333 else
16334   if test "$cross_compiling" = yes; then
16335   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16336 See \`config.log' for more details." >&5
16337 echo "$as_me: error: cannot run test program while cross compiling
16338 See \`config.log' for more details." >&2;}
16339    { (exit 1); exit 1; }; }
16340 else
16341   cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 $ac_includes_default
16348 long longval () { return (long) (sizeof (char)); }
16349 unsigned long ulongval () { return (long) (sizeof (char)); }
16350 #include <stdio.h>
16351 #include <stdlib.h>
16352 int
16353 main ()
16354 {
16355
16356   FILE *f = fopen ("conftest.val", "w");
16357   if (! f)
16358     exit (1);
16359   if (((long) (sizeof (char))) < 0)
16360     {
16361       long i = longval ();
16362       if (i != ((long) (sizeof (char))))
16363         exit (1);
16364       fprintf (f, "%ld\n", i);
16365     }
16366   else
16367     {
16368       unsigned long i = ulongval ();
16369       if (i != ((long) (sizeof (char))))
16370         exit (1);
16371       fprintf (f, "%lu\n", i);
16372     }
16373   exit (ferror (f) || fclose (f) != 0);
16374
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381   (eval $ac_link) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386   (eval $ac_try) 2>&5
16387   ac_status=$?
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); }; }; then
16390   ac_cv_sizeof_char=`cat conftest.val`
16391 else
16392   echo "$as_me: program exited with status $ac_status" >&5
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 ( exit $ac_status )
16397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16398 See \`config.log' for more details." >&5
16399 echo "$as_me: error: cannot compute sizeof (char), 77
16400 See \`config.log' for more details." >&2;}
16401    { (exit 1); exit 1; }; }
16402 fi
16403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16404 fi
16405 fi
16406 rm -f conftest.val
16407 else
16408   ac_cv_sizeof_char=0
16409 fi
16410 fi
16411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16412 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16413 cat >>confdefs.h <<_ACEOF
16414 #define SIZEOF_CHAR $ac_cv_sizeof_char
16415 _ACEOF
16416
16417
16418
16419   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16420 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16421   case "$ac_cv_sizeof_char" in
16422     1) acx_cv_type_int8_t=char ;;
16423     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16424 echo "$as_me: error: no 8-bit type" >&2;}
16425    { (exit please report a bug); exit please report a bug; }; }
16426   esac
16427   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16428 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16429
16430   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16431 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16432   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16433     2:*) acx_cv_type_int16_t=int ;;
16434     *:2) acx_cv_type_int16_t=short ;;
16435     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16436 echo "$as_me: error: no 16-bit type" >&2;}
16437    { (exit please report a bug); exit please report a bug; }; }
16438   esac
16439   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16440 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16441
16442   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16443 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16444   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16445     4:*) acx_cv_type_int32_t=int ;;
16446     *:4) acx_cv_type_int32_t=long ;;
16447     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16448 echo "$as_me: error: no 32-bit type" >&2;}
16449    { (exit please report a bug); exit please report a bug; }; }
16450   esac
16451   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16452 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16453 fi
16454
16455 # These tests are here to make the output prettier
16456
16457 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16458   case "$ac_cv_sizeof_long" in
16459     8) acx_cv_type_int64_t=long ;;
16460   esac
16461   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16462 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16463   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16464 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16465 fi
16466
16467 # Now we can use the above types
16468
16469 if test "$ac_cv_type_uintptr_t" != yes; then
16470   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16471 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16472   case $ac_cv_sizeof_void_p in
16473     2) acx_cv_type_intptr_t=int16_t ;;
16474     4) acx_cv_type_intptr_t=int32_t ;;
16475     8) acx_cv_type_intptr_t=int64_t ;;
16476     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16477 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16478    { (exit please report a bug); exit please report a bug; }; }
16479   esac
16480   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16481 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16482 fi
16483
16484 # ----------------- done all checks, emit header -------------
16485           ac_config_commands="$ac_config_commands gstdint.h"
16486
16487
16488
16489
16490 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
16491 # In case the pthread.h system header is not found, this test will fail.
16492 XPCFLAGS=""
16493 CFLAGS="$CFLAGS -pthread"
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h.  */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h.  */
16500 #include <pthread.h>
16501    void *g(void *d) { return NULL; }
16502 int
16503 main ()
16504 {
16505 pthread_t t; pthread_create(&t,NULL,g,NULL);
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512   (eval $ac_link) 2>conftest.er1
16513   ac_status=$?
16514   grep -v '^ *+' conftest.er1 >conftest.err
16515   rm -f conftest.er1
16516   cat conftest.err >&5
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); } &&
16519          { ac_try='test -z "$ac_c_werror_flag"
16520                          || test ! -s conftest.err'
16521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522   (eval $ac_try) 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); }; } &&
16526          { ac_try='test -s conftest$ac_exeext'
16527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528   (eval $ac_try) 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532   XPCFLAGS=" -Wc,-pthread"
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16538   cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544 #include <pthread.h>
16545      void *g(void *d) { return NULL; }
16546 int
16547 main ()
16548 {
16549 pthread_t t; pthread_create(&t,NULL,g,NULL);
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556   (eval $ac_link) 2>conftest.er1
16557   ac_status=$?
16558   grep -v '^ *+' conftest.er1 >conftest.err
16559   rm -f conftest.er1
16560   cat conftest.err >&5
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } &&
16563          { ac_try='test -z "$ac_c_werror_flag"
16564                          || test ! -s conftest.err'
16565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566   (eval $ac_try) 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; } &&
16570          { ac_try='test -s conftest$ac_exeext'
16571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572   (eval $ac_try) 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; }; then
16576   :
16577 else
16578   echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16580
16581 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16582 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16583    { (exit 1); exit 1; }; }
16584 fi
16585 rm -f conftest.err conftest.$ac_objext \
16586       conftest$ac_exeext conftest.$ac_ext
16587 fi
16588 rm -f conftest.err conftest.$ac_objext \
16589       conftest$ac_exeext conftest.$ac_ext
16590
16591 # Check for functions needed.
16592
16593
16594 for ac_func in getloadavg clock_gettime
16595 do
16596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16597 echo "$as_me:$LINENO: checking for $ac_func" >&5
16598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16599 if eval "test \"\${$as_ac_var+set}\" = set"; then
16600   echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602   cat >conftest.$ac_ext <<_ACEOF
16603 /* confdefs.h.  */
16604 _ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h.  */
16608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16610 #define $ac_func innocuous_$ac_func
16611
16612 /* System header to define __stub macros and hopefully few prototypes,
16613     which can conflict with char $ac_func (); below.
16614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16615     <limits.h> exists even on freestanding compilers.  */
16616
16617 #ifdef __STDC__
16618 # include <limits.h>
16619 #else
16620 # include <assert.h>
16621 #endif
16622
16623 #undef $ac_func
16624
16625 /* Override any gcc2 internal prototype to avoid an error.  */
16626 #ifdef __cplusplus
16627 extern "C"
16628 {
16629 #endif
16630 /* We use char because int might match the return type of a gcc2
16631    builtin and then its argument prototype would still apply.  */
16632 char $ac_func ();
16633 /* The GNU C library defines this for functions which it implements
16634     to always fail with ENOSYS.  Some functions are actually named
16635     something starting with __ and the normal name is an alias.  */
16636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16637 choke me
16638 #else
16639 char (*f) () = $ac_func;
16640 #endif
16641 #ifdef __cplusplus
16642 }
16643 #endif
16644
16645 int
16646 main ()
16647 {
16648 return f != $ac_func;
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 rm -f conftest.$ac_objext conftest$ac_exeext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16655   (eval $ac_link) 2>conftest.er1
16656   ac_status=$?
16657   grep -v '^ *+' conftest.er1 >conftest.err
16658   rm -f conftest.er1
16659   cat conftest.err >&5
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); } &&
16662          { ac_try='test -z "$ac_c_werror_flag"
16663                          || test ! -s conftest.err'
16664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665   (eval $ac_try) 2>&5
16666   ac_status=$?
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); }; } &&
16669          { ac_try='test -s conftest$ac_exeext'
16670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671   (eval $ac_try) 2>&5
16672   ac_status=$?
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); }; }; then
16675   eval "$as_ac_var=yes"
16676 else
16677   echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16679
16680 eval "$as_ac_var=no"
16681 fi
16682 rm -f conftest.err conftest.$ac_objext \
16683       conftest$ac_exeext conftest.$ac_ext
16684 fi
16685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688   cat >>confdefs.h <<_ACEOF
16689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16690 _ACEOF
16691
16692 fi
16693 done
16694
16695
16696 # Check for broken semaphore implementation on darwin.
16697 # sem_init returns: sem_init error: Function not implemented.
16698 case "$host" in
16699   *-darwin*)
16700
16701 cat >>confdefs.h <<\_ACEOF
16702 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16703 _ACEOF
16704
16705     ;;
16706 esac
16707
16708  # Check whether --enable-linux-futex or --disable-linux-futex was given.
16709 if test "${enable_linux_futex+set}" = set; then
16710   enableval="$enable_linux_futex"
16711
16712       case "$enableval" in
16713        yes|no|default) ;;
16714        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16715 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16716    { (exit 1); exit 1; }; } ;;
16717                           esac
16718
16719 else
16720   enable_linux_futex=default
16721 fi;
16722
16723 case "$target" in
16724   *-linux*)
16725     case "$enable_linux_futex" in
16726       default)
16727         # If headers don't have gettid/futex syscalls definition, then
16728         # default to no, otherwise there will be compile time failures.
16729         # Otherwise, default to yes.  If we don't detect we are
16730         # compiled/linked against NPTL and not cross-compiling, check
16731         # if programs are run by default against NPTL and if not, issue
16732         # a warning.
16733         enable_linux_futex=no
16734         cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740 #include <sys/syscall.h>
16741            int lk;
16742 int
16743 main ()
16744 {
16745 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16746   ;
16747   return 0;
16748 }
16749 _ACEOF
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16752   (eval $ac_link) 2>conftest.er1
16753   ac_status=$?
16754   grep -v '^ *+' conftest.er1 >conftest.err
16755   rm -f conftest.er1
16756   cat conftest.err >&5
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); } &&
16759          { ac_try='test -z "$ac_c_werror_flag"
16760                          || test ! -s conftest.err'
16761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762   (eval $ac_try) 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; } &&
16766          { ac_try='test -s conftest$ac_exeext'
16767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768   (eval $ac_try) 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); }; }; then
16772   save_LIBS="$LIBS"
16773            LIBS="-lpthread $LIBS"
16774            cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h.  */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h.  */
16780 #ifndef _GNU_SOURCE
16781              #define _GNU_SOURCE 1
16782              #endif
16783              #include <pthread.h>
16784              pthread_t th; void *status;
16785 int
16786 main ()
16787 {
16788 pthread_tryjoin_np (th, &status);
16789   ;
16790   return 0;
16791 }
16792 _ACEOF
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795   (eval $ac_link) 2>conftest.er1
16796   ac_status=$?
16797   grep -v '^ *+' conftest.er1 >conftest.err
16798   rm -f conftest.er1
16799   cat conftest.err >&5
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } &&
16802          { ac_try='test -z "$ac_c_werror_flag"
16803                          || test ! -s conftest.err'
16804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805   (eval $ac_try) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; } &&
16809          { ac_try='test -s conftest$ac_exeext'
16810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811   (eval $ac_try) 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   enable_linux_futex=yes
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 if test x$cross_compiling = xno; then
16821                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16822                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16823                  { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16824 If so, please configure with --disable-linux-futex" >&5
16825 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16826 If so, please configure with --disable-linux-futex" >&2;}
16827                fi
16828              fi
16829              enable_linux_futex=yes
16830 fi
16831 rm -f conftest.err conftest.$ac_objext \
16832       conftest$ac_exeext conftest.$ac_ext
16833            LIBS="$save_LIBS"
16834 else
16835   echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838 fi
16839 rm -f conftest.err conftest.$ac_objext \
16840       conftest$ac_exeext conftest.$ac_ext
16841         ;;
16842       yes)
16843         cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849 #include <sys/syscall.h>
16850            int lk;
16851 int
16852 main ()
16853 {
16854 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16855   ;
16856   return 0;
16857 }
16858 _ACEOF
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861   (eval $ac_link) 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -z "$ac_c_werror_flag"
16869                          || test ! -s conftest.err'
16870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871   (eval $ac_try) 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; } &&
16875          { ac_try='test -s conftest$ac_exeext'
16876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877   (eval $ac_try) 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); }; }; then
16881   :
16882 else
16883   echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16885
16886 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16887 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16888    { (exit 1); exit 1; }; }
16889 fi
16890 rm -f conftest.err conftest.$ac_objext \
16891       conftest$ac_exeext conftest.$ac_ext
16892         ;;
16893     esac
16894     ;;
16895   *)
16896     enable_linux_futex=no
16897     ;;
16898 esac
16899 if test x$enable_linux_futex = xyes; then
16900   :
16901 fi
16902
16903
16904 # Check for pthread_{,attr_}[sg]etaffinity_np.
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911 #define _GNU_SOURCE
16912    #include <pthread.h>
16913 int
16914 main ()
16915 {
16916 cpu_set_t cpuset;
16917    pthread_attr_t attr;
16918    pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16919    if (CPU_ISSET (0, &cpuset))
16920      CPU_SET (1, &cpuset);
16921    else
16922      CPU_ZERO (&cpuset);
16923    pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16924    pthread_attr_init (&attr);
16925    pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16926    pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933   (eval $ac_link) 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } &&
16940          { ac_try='test -z "$ac_c_werror_flag"
16941                          || test ! -s conftest.err'
16942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943   (eval $ac_try) 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; } &&
16947          { ac_try='test -s conftest$ac_exeext'
16948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949   (eval $ac_try) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; }; then
16953
16954 cat >>confdefs.h <<\_ACEOF
16955 #define HAVE_PTHREAD_AFFINITY_NP 1
16956 _ACEOF
16957
16958 else
16959   echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 fi
16963 rm -f conftest.err conftest.$ac_objext \
16964       conftest$ac_exeext conftest.$ac_ext
16965
16966 # At least for glibc, clock_gettime is in librt.  But don't pull that
16967 # in if it still doesn't give us the function we want.
16968 if test $ac_cv_func_clock_gettime = no; then
16969   echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16970 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16971 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   ac_check_lib_save_LIBS=$LIBS
16975 LIBS="-lrt  $LIBS"
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h.  */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h.  */
16982
16983 /* Override any gcc2 internal prototype to avoid an error.  */
16984 #ifdef __cplusplus
16985 extern "C"
16986 #endif
16987 /* We use char because int might match the return type of a gcc2
16988    builtin and then its argument prototype would still apply.  */
16989 char clock_gettime ();
16990 int
16991 main ()
16992 {
16993 clock_gettime ();
16994   ;
16995   return 0;
16996 }
16997 _ACEOF
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000   (eval $ac_link) 2>conftest.er1
17001   ac_status=$?
17002   grep -v '^ *+' conftest.er1 >conftest.err
17003   rm -f conftest.er1
17004   cat conftest.err >&5
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); } &&
17007          { ac_try='test -z "$ac_c_werror_flag"
17008                          || test ! -s conftest.err'
17009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010   (eval $ac_try) 2>&5
17011   ac_status=$?
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); }; } &&
17014          { ac_try='test -s conftest$ac_exeext'
17015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016   (eval $ac_try) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); }; }; then
17020   ac_cv_lib_rt_clock_gettime=yes
17021 else
17022   echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025 ac_cv_lib_rt_clock_gettime=no
17026 fi
17027 rm -f conftest.err conftest.$ac_objext \
17028       conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17030 fi
17031 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17032 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17033 if test $ac_cv_lib_rt_clock_gettime = yes; then
17034   LIBS="-lrt $LIBS"
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_CLOCK_GETTIME 1
17038 _ACEOF
17039
17040 fi
17041
17042 fi
17043
17044 # See if we support thread-local storage.
17045
17046    # Check whether --enable-tls or --disable-tls was given.
17047 if test "${enable_tls+set}" = set; then
17048   enableval="$enable_tls"
17049
17050       case "$enableval" in
17051        yes|no) ;;
17052        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17053 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17054    { (exit 1); exit 1; }; } ;;
17055       esac
17056
17057 else
17058   enable_tls=yes
17059 fi;
17060
17061   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17062 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17063 if test "${gcc_cv_have_tls+set}" = set; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066
17067     if test "$cross_compiling" = yes; then
17068                 cat >conftest.$ac_ext <<_ACEOF
17069 __thread int a; int b; int main() { return a = b; }
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17073   (eval $ac_link) 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } &&
17080          { ac_try='test -z "$ac_c_werror_flag"
17081                          || test ! -s conftest.err'
17082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083   (eval $ac_try) 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; } &&
17087          { ac_try='test -s conftest$ac_exeext'
17088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089   (eval $ac_try) 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); }; }; then
17093   gcc_cv_have_tls=yes
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098 gcc_cv_have_tls=no
17099 fi
17100 rm -f conftest.err conftest.$ac_objext \
17101       conftest$ac_exeext conftest.$ac_ext
17102
17103
17104 else
17105   cat >conftest.$ac_ext <<_ACEOF
17106 __thread int a; int b; int main() { return a = b; }
17107 _ACEOF
17108 rm -f conftest$ac_exeext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17110   (eval $ac_link) 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115   (eval $ac_try) 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); }; }; then
17119                       chktls_save_LDFLAGS="$LDFLAGS"
17120       LDFLAGS="-static $LDFLAGS"
17121       cat >conftest.$ac_ext <<_ACEOF
17122 int main() { return 0; }
17123 _ACEOF
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126   (eval $ac_link) 2>conftest.er1
17127   ac_status=$?
17128   grep -v '^ *+' conftest.er1 >conftest.err
17129   rm -f conftest.er1
17130   cat conftest.err >&5
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); } &&
17133          { ac_try='test -z "$ac_c_werror_flag"
17134                          || test ! -s conftest.err'
17135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136   (eval $ac_try) 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; } &&
17140          { ac_try='test -s conftest$ac_exeext'
17141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142   (eval $ac_try) 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); }; }; then
17146   if test "$cross_compiling" = yes; then
17147   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17148 See \`config.log' for more details." >&5
17149 echo "$as_me: error: cannot run test program while cross compiling
17150 See \`config.log' for more details." >&2;}
17151    { (exit 1); exit 1; }; }
17152 else
17153   cat >conftest.$ac_ext <<_ACEOF
17154 __thread int a; int b; int main() { return a = b; }
17155 _ACEOF
17156 rm -f conftest$ac_exeext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158   (eval $ac_link) 2>&5
17159   ac_status=$?
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163   (eval $ac_try) 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; }; then
17167   gcc_cv_have_tls=yes
17168 else
17169   echo "$as_me: program exited with status $ac_status" >&5
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ( exit $ac_status )
17174 gcc_cv_have_tls=no
17175 fi
17176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17177 fi
17178 else
17179   echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 gcc_cv_have_tls=yes
17183 fi
17184 rm -f conftest.err conftest.$ac_objext \
17185       conftest$ac_exeext conftest.$ac_ext
17186       LDFLAGS="$chktls_save_LDFLAGS"
17187       if test $gcc_cv_have_tls = yes; then
17188                                                 chktls_save_CFLAGS="$CFLAGS"
17189         thread_CFLAGS=failed
17190         for flag in '' '-pthread' '-lpthread'; do
17191           CFLAGS="$flag $chktls_save_CFLAGS"
17192           cat >conftest.$ac_ext <<_ACEOF
17193 /* confdefs.h.  */
17194 _ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h.  */
17198 #include <pthread.h>
17199                 void *g(void *d) { return NULL; }
17200 int
17201 main ()
17202 {
17203 pthread_t t; pthread_create(&t,NULL,g,NULL);
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17210   (eval $ac_link) 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_c_werror_flag"
17218                          || test ! -s conftest.err'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; } &&
17224          { ac_try='test -s conftest$ac_exeext'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   thread_CFLAGS="$flag"
17231 else
17232   echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 fi
17236 rm -f conftest.err conftest.$ac_objext \
17237       conftest$ac_exeext conftest.$ac_ext
17238           if test "X$thread_CFLAGS" != Xfailed; then
17239             break
17240           fi
17241         done
17242         CFLAGS="$chktls_save_CFLAGS"
17243         if test "X$thread_CFLAGS" != Xfailed; then
17244           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17245           if test "$cross_compiling" = yes; then
17246   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17247 See \`config.log' for more details." >&5
17248 echo "$as_me: error: cannot run test program while cross compiling
17249 See \`config.log' for more details." >&2;}
17250    { (exit 1); exit 1; }; }
17251 else
17252   cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258 #include <pthread.h>
17259                 __thread int a;
17260                 static int *a_in_other_thread;
17261                 static void *
17262                 thread_func (void *arg)
17263                 {
17264                   a_in_other_thread = &a;
17265                   return (void *)0;
17266                 }
17267 int
17268 main ()
17269 {
17270 pthread_t thread;
17271                 void *thread_retval;
17272                 int *a_in_main_thread;
17273                 if (pthread_create (&thread, (pthread_attr_t *)0,
17274                                     thread_func, (void *)0))
17275                   return 0;
17276                 a_in_main_thread = &a;
17277                 if (pthread_join (thread, &thread_retval))
17278                   return 0;
17279                 return (a_in_other_thread == a_in_main_thread);
17280   ;
17281   return 0;
17282 }
17283 _ACEOF
17284 rm -f conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286   (eval $ac_link) 2>&5
17287   ac_status=$?
17288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291   (eval $ac_try) 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; }; then
17295   gcc_cv_have_tls=yes
17296 else
17297   echo "$as_me: program exited with status $ac_status" >&5
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301 ( exit $ac_status )
17302 gcc_cv_have_tls=no
17303 fi
17304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17305 fi
17306           CFLAGS="$chktls_save_CFLAGS"
17307         fi
17308       fi
17309 else
17310   echo "$as_me: program exited with status $ac_status" >&5
17311 echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 ( exit $ac_status )
17315 gcc_cv_have_tls=no
17316 fi
17317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17318 fi
17319 fi
17320 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17321 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17322   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17323
17324 cat >>confdefs.h <<\_ACEOF
17325 #define HAVE_TLS 1
17326 _ACEOF
17327
17328   fi
17329
17330 # See what sort of export controls are availible.
17331
17332   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17333 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17334 if test "${have_attribute_visibility+set}" = set; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337
17338   save_CFLAGS="$CFLAGS"
17339   CFLAGS="$CFLAGS -Werror"
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 void __attribute__((visibility("hidden"))) foo(void) { }
17347 int
17348 main ()
17349 {
17350
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357   (eval $ac_compile) 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } &&
17364          { ac_try='test -z "$ac_c_werror_flag"
17365                          || test ! -s conftest.err'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; } &&
17371          { ac_try='test -s conftest.$ac_objext'
17372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373   (eval $ac_try) 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); }; }; then
17377   have_attribute_visibility=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 have_attribute_visibility=no
17383 fi
17384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17385   CFLAGS="$save_CFLAGS"
17386 fi
17387 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17388 echo "${ECHO_T}$have_attribute_visibility" >&6
17389   if test $have_attribute_visibility = yes; then
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_ATTRIBUTE_VISIBILITY 1
17393 _ACEOF
17394
17395   fi
17396
17397   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17398 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17399 if test "${have_attribute_dllexport+set}" = set; then
17400   echo $ECHO_N "(cached) $ECHO_C" >&6
17401 else
17402
17403   save_CFLAGS="$CFLAGS"
17404   CFLAGS="$CFLAGS -Werror"
17405   cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411 void __attribute__((dllexport)) foo(void) { }
17412 int
17413 main ()
17414 {
17415
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext
17421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17422   (eval $ac_compile) 2>conftest.er1
17423   ac_status=$?
17424   grep -v '^ *+' conftest.er1 >conftest.err
17425   rm -f conftest.er1
17426   cat conftest.err >&5
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } &&
17429          { ac_try='test -z "$ac_c_werror_flag"
17430                          || test ! -s conftest.err'
17431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432   (eval $ac_try) 2>&5
17433   ac_status=$?
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); }; } &&
17436          { ac_try='test -s conftest.$ac_objext'
17437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438   (eval $ac_try) 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); }; }; then
17442   have_attribute_dllexport=yes
17443 else
17444   echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17446
17447 have_attribute_dllexport=no
17448 fi
17449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17450   CFLAGS="$save_CFLAGS"
17451 fi
17452 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17453 echo "${ECHO_T}$have_attribute_dllexport" >&6
17454   if test $have_attribute_dllexport = yes; then
17455
17456 cat >>confdefs.h <<\_ACEOF
17457 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17458 _ACEOF
17459
17460   fi
17461
17462   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17463 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17464 if test "${have_attribute_alias+set}" = set; then
17465   echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467
17468   cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474
17475 void foo(void) { }
17476 extern void bar(void) __attribute__((alias("foo")));
17477 int
17478 main ()
17479 {
17480 bar();
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487   (eval $ac_link) 2>conftest.er1
17488   ac_status=$?
17489   grep -v '^ *+' conftest.er1 >conftest.err
17490   rm -f conftest.er1
17491   cat conftest.err >&5
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); } &&
17494          { ac_try='test -z "$ac_c_werror_flag"
17495                          || test ! -s conftest.err'
17496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497   (eval $ac_try) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; } &&
17501          { ac_try='test -s conftest$ac_exeext'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; }; then
17507   have_attribute_alias=yes
17508 else
17509   echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 have_attribute_alias=no
17513 fi
17514 rm -f conftest.err conftest.$ac_objext \
17515       conftest$ac_exeext conftest.$ac_ext
17516 fi
17517 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17518 echo "${ECHO_T}$have_attribute_alias" >&6
17519   if test $have_attribute_alias = yes; then
17520
17521 cat >>confdefs.h <<\_ACEOF
17522 #define HAVE_ATTRIBUTE_ALIAS 1
17523 _ACEOF
17524
17525   fi
17526
17527
17528 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17529 if test "${with_gnu_ld+set}" = set; then
17530   withval="$with_gnu_ld"
17531   test "$withval" = no || with_gnu_ld=yes
17532 else
17533   with_gnu_ld=no
17534 fi;
17535 ac_prog=ld
17536 if test "$GCC" = yes; then
17537   # Check if gcc -print-prog-name=ld gives a path.
17538   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17539 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17540   case $host in
17541   *-*-mingw*)
17542     # gcc leaves a trailing carriage return which upsets mingw
17543     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17544   *)
17545     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17546   esac
17547   case $ac_prog in
17548     # Accept absolute paths.
17549     [\\/]* | ?:[\\/]*)
17550       re_direlt='/[^/][^/]*/\.\./'
17551       # Canonicalize the pathname of ld
17552       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17553       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17554         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17555       done
17556       test -z "$LD" && LD="$ac_prog"
17557       ;;
17558   "")
17559     # If it fails, then pretend we aren't using GCC.
17560     ac_prog=ld
17561     ;;
17562   *)
17563     # If it is relative, then search for the first ld in PATH.
17564     with_gnu_ld=unknown
17565     ;;
17566   esac
17567 elif test "$with_gnu_ld" = yes; then
17568   echo "$as_me:$LINENO: checking for GNU ld" >&5
17569 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17570 else
17571   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17572 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17573 fi
17574 if test "${lt_cv_path_LD+set}" = set; then
17575   echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577   if test -z "$LD"; then
17578   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17579   for ac_dir in $PATH; do
17580     IFS="$lt_save_ifs"
17581     test -z "$ac_dir" && ac_dir=.
17582     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17583       lt_cv_path_LD="$ac_dir/$ac_prog"
17584       # Check to see if the program is GNU ld.  I'd rather use --version,
17585       # but apparently some variants of GNU ld only accept -v.
17586       # Break only if it was the GNU/non-GNU ld that we prefer.
17587       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17588       *GNU* | *'with BFD'*)
17589         test "$with_gnu_ld" != no && break
17590         ;;
17591       *)
17592         test "$with_gnu_ld" != yes && break
17593         ;;
17594       esac
17595     fi
17596   done
17597   IFS="$lt_save_ifs"
17598 else
17599   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17600 fi
17601 fi
17602
17603 LD="$lt_cv_path_LD"
17604 if test -n "$LD"; then
17605   echo "$as_me:$LINENO: result: $LD" >&5
17606 echo "${ECHO_T}$LD" >&6
17607 else
17608   echo "$as_me:$LINENO: result: no" >&5
17609 echo "${ECHO_T}no" >&6
17610 fi
17611 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17612 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17613    { (exit 1); exit 1; }; }
17614 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17615 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17616 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17617   echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17620 case `$LD -v 2>&1 </dev/null` in
17621 *GNU* | *'with BFD'*)
17622   lt_cv_prog_gnu_ld=yes
17623   ;;
17624 *)
17625   lt_cv_prog_gnu_ld=no
17626   ;;
17627 esac
17628 fi
17629 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17630 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17631 with_gnu_ld=$lt_cv_prog_gnu_ld
17632
17633
17634
17635
17636
17637
17638
17639   # If we're not using GNU ld, then there's no point in even trying these
17640   # tests.  Check for that first.  We should have already tested for gld
17641   # by now (in libtool), but require it now just to be safe...
17642   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17643   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17644
17645
17646
17647   # The name set by libtool depends on the version of libtool.  Shame on us
17648   # for depending on an impl detail, but c'est la vie.  Older versions used
17649   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17650   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17651   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
17652   # set (hence we're using an older libtool), then set it.
17653   if test x${with_gnu_ld+set} != xset; then
17654     if test x${ac_cv_prog_gnu_ld+set} != xset; then
17655       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
17656       with_gnu_ld=no
17657     else
17658       with_gnu_ld=$ac_cv_prog_gnu_ld
17659     fi
17660   fi
17661
17662   # Start by getting the version number.  I think the libtool test already
17663   # does some of this, but throws away the result.
17664
17665   ldver=`$LD --version 2>/dev/null | head -1 | \
17666          sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17667
17668   libgomp_gnu_ld_version=`echo $ldver | \
17669          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17670
17671   # Set --gc-sections.
17672   if test "$with_gnu_ld" = "notbroken"; then
17673     # GNU ld it is!  Joy and bunny rabbits!
17674
17675     # All these tests are for C++; save the language and the compiler flags.
17676     # Need to do this so that g++ won't try to link in libstdc++
17677     ac_test_CFLAGS="${CFLAGS+set}"
17678     ac_save_CFLAGS="$CFLAGS"
17679     CFLAGS='-x c++  -Wl,--gc-sections'
17680
17681     # Check for -Wl,--gc-sections
17682     # XXX This test is broken at the moment, as symbols required for linking
17683     # are now in libsupc++ (not built yet).  In addition, this test has
17684     # cored on solaris in the past.  In addition, --gc-sections doesn't
17685     # really work at the moment (keeps on discarding used sections, first
17686     # .eh_frame and now some of the glibc sections for iconv).
17687     # Bzzzzt.  Thanks for playing, maybe next time.
17688     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17689 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17690     if test "$cross_compiling" = yes; then
17691   ac_sectionLDflags=yes
17692 else
17693   cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699
17700      int main(void)
17701      {
17702        try { throw 1; }
17703        catch (...) { };
17704        return 0;
17705      }
17706
17707 _ACEOF
17708 rm -f conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710   (eval $ac_link) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; }; then
17719   ac_sectionLDflags=yes
17720 else
17721   echo "$as_me: program exited with status $ac_status" >&5
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 ( exit $ac_status )
17726 ac_sectionLDflags=no
17727 fi
17728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17729 fi
17730     if test "$ac_test_CFLAGS" = set; then
17731       CFLAGS="$ac_save_CFLAGS"
17732     else
17733       # this is the suspicious part
17734       CFLAGS=''
17735     fi
17736     if test "$ac_sectionLDflags" = "yes"; then
17737       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17738     fi
17739     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17740 echo "${ECHO_T}$ac_sectionLDflags" >&6
17741   fi
17742
17743   # Set linker optimization flags.
17744   if test x"$with_gnu_ld" = x"yes"; then
17745     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17746   fi
17747
17748
17749
17750
17751
17752
17753  # Check whether --enable-symvers or --disable-symvers was given.
17754 if test "${enable_symvers+set}" = set; then
17755   enableval="$enable_symvers"
17756
17757       case "$enableval" in
17758        yes|no|gnu) ;;
17759        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17760 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17761    { (exit 1); exit 1; }; } ;;
17762                           esac
17763
17764 else
17765   enable_symvers=yes
17766 fi;
17767
17768
17769 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17770 # don't know enough about $LD to do tricks...
17771
17772 # FIXME  The following test is too strict, in theory.
17773 if test $enable_shared = no ||
17774         test "x$LD" = x ||
17775         test x$libgomp_gnu_ld_version = x; then
17776   enable_symvers=no
17777 fi
17778
17779 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17780 if test $enable_symvers != no; then
17781   echo "$as_me:$LINENO: checking for shared libgcc" >&5
17782 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17783   ac_save_CFLAGS="$CFLAGS"
17784   CFLAGS=' -lgcc_s'
17785   cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h.  */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h.  */
17791
17792 int
17793 main ()
17794 {
17795 return 0;
17796   ;
17797   return 0;
17798 }
17799 _ACEOF
17800 rm -f conftest.$ac_objext conftest$ac_exeext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17802   (eval $ac_link) 2>conftest.er1
17803   ac_status=$?
17804   grep -v '^ *+' conftest.er1 >conftest.err
17805   rm -f conftest.er1
17806   cat conftest.err >&5
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); } &&
17809          { ac_try='test -z "$ac_c_werror_flag"
17810                          || test ! -s conftest.err'
17811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812   (eval $ac_try) 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; } &&
17816          { ac_try='test -s conftest$ac_exeext'
17817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818   (eval $ac_try) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; }; then
17822   libgomp_shared_libgcc=yes
17823 else
17824   echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827 libgomp_shared_libgcc=no
17828 fi
17829 rm -f conftest.err conftest.$ac_objext \
17830       conftest$ac_exeext conftest.$ac_ext
17831   CFLAGS="$ac_save_CFLAGS"
17832   if test $libgomp_shared_libgcc = no; then
17833     cat > conftest.c <<EOF
17834 int main (void) { return 0; }
17835 EOF
17836     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17837                              -shared -shared-libgcc -o conftest.so \
17838                              conftest.c -v 2>&1 >/dev/null \
17839                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17840     rm -f conftest.c conftest.so
17841     if test x${libgomp_libgcc_s_suffix+set} = xset; then
17842       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17843       cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849
17850 int
17851 main ()
17852 {
17853 return 0;
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17860   (eval $ac_link) 2>conftest.er1
17861   ac_status=$?
17862   grep -v '^ *+' conftest.er1 >conftest.err
17863   rm -f conftest.er1
17864   cat conftest.err >&5
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); } &&
17867          { ac_try='test -z "$ac_c_werror_flag"
17868                          || test ! -s conftest.err'
17869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870   (eval $ac_try) 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); }; } &&
17874          { ac_try='test -s conftest$ac_exeext'
17875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876   (eval $ac_try) 2>&5
17877   ac_status=$?
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); }; }; then
17880   libgomp_shared_libgcc=yes
17881 else
17882   echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 fi
17886 rm -f conftest.err conftest.$ac_objext \
17887       conftest$ac_exeext conftest.$ac_ext
17888       CFLAGS="$ac_save_CFLAGS"
17889     fi
17890   fi
17891   echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17892 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17893 fi
17894
17895 # For GNU ld, we need at least this version.  The format is described in
17896 # LIBGOMP_CHECK_LINKER_FEATURES above.
17897 libgomp_min_gnu_ld_version=21400
17898 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17899
17900 # Check to see if unspecified "yes" value can win, given results above.
17901 # Change "yes" into either "no" or a style name.
17902 if test $enable_symvers = yes; then
17903   if test $with_gnu_ld = yes &&
17904      test $libgomp_shared_libgcc = yes;
17905   then
17906     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17907       enable_symvers=gnu
17908     else
17909       # The right tools, the right setup, but too old.  Fallbacks?
17910       { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17911 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17912       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17913 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17914       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17915 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17916       { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17917 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17918       if test $libgomp_gnu_ld_version -ge 21200 ; then
17919         # Globbing fix is present, proper block support is not.
17920                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17921 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17922         enable_symvers=no
17923       else
17924         # 2.11 or older.
17925         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17926 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17927         enable_symvers=no
17928       fi
17929     fi
17930   else
17931     # just fail for now
17932     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17933 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17934     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17935 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17936     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17937 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17938     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17939 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17940     enable_symvers=no
17941   fi
17942 fi
17943
17944
17945
17946 if test $enable_symvers != no; then
17947   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17948   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17949 else
17950   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17951   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17952 fi
17953
17954 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17955 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17956
17957
17958 # Get target configury.
17959 . ${srcdir}/configure.tgt
17960 CFLAGS="$save_CFLAGS $XCFLAGS"
17961
17962 # Check for __sync_val_compare_and_swap, but only after the target has
17963 # had a chance to set XCFLAGS.
17964
17965   echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17966 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17967 if test "${have_sync_builtins+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970
17971   cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977
17978 int
17979 main ()
17980 {
17981 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17988   (eval $ac_link) 2>conftest.er1
17989   ac_status=$?
17990   grep -v '^ *+' conftest.er1 >conftest.err
17991   rm -f conftest.er1
17992   cat conftest.err >&5
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); } &&
17995          { ac_try='test -z "$ac_c_werror_flag"
17996                          || test ! -s conftest.err'
17997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998   (eval $ac_try) 2>&5
17999   ac_status=$?
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); }; } &&
18002          { ac_try='test -s conftest$ac_exeext'
18003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004   (eval $ac_try) 2>&5
18005   ac_status=$?
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); }; }; then
18008   have_sync_builtins=yes
18009 else
18010   echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18012
18013 have_sync_builtins=no
18014 fi
18015 rm -f conftest.err conftest.$ac_objext \
18016       conftest$ac_exeext conftest.$ac_ext
18017 fi
18018 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
18019 echo "${ECHO_T}$have_sync_builtins" >&6
18020   if test $have_sync_builtins = yes; then
18021
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE_SYNC_BUILTINS 1
18024 _ACEOF
18025
18026   fi
18027
18028 XCFLAGS="$XCFLAGS$XPCFLAGS"
18029
18030
18031
18032
18033
18034 # Cleanup and exit.
18035 CFLAGS="$save_CFLAGS"
18036 cat >confcache <<\_ACEOF
18037 # This file is a shell script that caches the results of configure
18038 # tests run on this system so they can be shared between configure
18039 # scripts and configure runs, see configure's option --config-cache.
18040 # It is not useful on other systems.  If it contains results you don't
18041 # want to keep, you may remove or edit it.
18042 #
18043 # config.status only pays attention to the cache file if you give it
18044 # the --recheck option to rerun configure.
18045 #
18046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18048 # following values.
18049
18050 _ACEOF
18051
18052 # The following way of writing the cache mishandles newlines in values,
18053 # but we know of no workaround that is simple, portable, and efficient.
18054 # So, don't put newlines in cache variables' values.
18055 # Ultrix sh set writes to stderr and can't be redirected directly,
18056 # and sets the high bit in the cache file unless we assign to the vars.
18057 {
18058   (set) 2>&1 |
18059     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18060     *ac_space=\ *)
18061       # `set' does not quote correctly, so add quotes (double-quote
18062       # substitution turns \\\\ into \\, and sed turns \\ into \).
18063       sed -n \
18064         "s/'/'\\\\''/g;
18065           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18066       ;;
18067     *)
18068       # `set' quotes correctly as required by POSIX, so do not add quotes.
18069       sed -n \
18070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18071       ;;
18072     esac;
18073 } |
18074   sed '
18075      t clear
18076      : clear
18077      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18078      t end
18079      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18080      : end' >>confcache
18081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18082   if test -w $cache_file; then
18083     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18084     cat confcache >$cache_file
18085   else
18086     echo "not updating unwritable cache $cache_file"
18087   fi
18088 fi
18089 rm -f confcache
18090
18091 if test ${multilib} = yes; then
18092   multilib_arg="--enable-multilib"
18093 else
18094   multilib_arg=
18095 fi
18096
18097 # Set up the set of libraries that we need to link against for libgomp.
18098 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18099 # which will force linkage against -lpthread (or equivalent for the system).
18100 # That's not 100% ideal, but about the best we can do easily.
18101 if test $enable_shared = yes; then
18102   link_gomp="-lgomp %{static: $LIBS}"
18103 else
18104   link_gomp="-lgomp $LIBS"
18105 fi
18106
18107
18108
18109
18110 if test "$ac_cv_fc_compiler_gnu" = yes; then
18111   USE_FORTRAN_TRUE=
18112   USE_FORTRAN_FALSE='#'
18113 else
18114   USE_FORTRAN_TRUE='#'
18115   USE_FORTRAN_FALSE=
18116 fi
18117
18118
18119 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18120 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
18121 # the underscore here and update the PREREQ.  If it doesn't, then we'll
18122 # need to copy this macro to our acinclude.m4.
18123 save_CFLAGS="$CFLAGS"
18124 for i in $config_path; do
18125   if test -f $srcdir/config/$i/omp-lock.h; then
18126     CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18127     break
18128   fi
18129 done
18130
18131 if test "$cross_compiling" = yes; then
18132   # Depending upon the size, compute the lo and hi bounds.
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h.  */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h.  */
18139
18140 int
18141 main ()
18142 {
18143 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18144 test_array [0] = 0
18145
18146   ;
18147   return 0;
18148 }
18149 _ACEOF
18150 rm -f conftest.$ac_objext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152   (eval $ac_compile) 2>conftest.er1
18153   ac_status=$?
18154   grep -v '^ *+' conftest.er1 >conftest.err
18155   rm -f conftest.er1
18156   cat conftest.err >&5
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); } &&
18159          { ac_try='test -z "$ac_c_werror_flag"
18160                          || test ! -s conftest.err'
18161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162   (eval $ac_try) 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; } &&
18166          { ac_try='test -s conftest.$ac_objext'
18167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168   (eval $ac_try) 2>&5
18169   ac_status=$?
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); }; }; then
18172   ac_lo=0 ac_mid=0
18173   while :; do
18174     cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180
18181 int
18182 main ()
18183 {
18184 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18185 test_array [0] = 0
18186
18187   ;
18188   return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18193   (eval $ac_compile) 2>conftest.er1
18194   ac_status=$?
18195   grep -v '^ *+' conftest.er1 >conftest.err
18196   rm -f conftest.er1
18197   cat conftest.err >&5
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); } &&
18200          { ac_try='test -z "$ac_c_werror_flag"
18201                          || test ! -s conftest.err'
18202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203   (eval $ac_try) 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; } &&
18207          { ac_try='test -s conftest.$ac_objext'
18208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209   (eval $ac_try) 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }; }; then
18213   ac_hi=$ac_mid; break
18214 else
18215   echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18217
18218 ac_lo=`expr $ac_mid + 1`
18219                     if test $ac_lo -le $ac_mid; then
18220                       ac_lo= ac_hi=
18221                       break
18222                     fi
18223                     ac_mid=`expr 2 '*' $ac_mid + 1`
18224 fi
18225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18226   done
18227 else
18228   echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18230
18231 cat >conftest.$ac_ext <<_ACEOF
18232 /* confdefs.h.  */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h.  */
18237
18238 int
18239 main ()
18240 {
18241 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18242 test_array [0] = 0
18243
18244   ;
18245   return 0;
18246 }
18247 _ACEOF
18248 rm -f conftest.$ac_objext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18250   (eval $ac_compile) 2>conftest.er1
18251   ac_status=$?
18252   grep -v '^ *+' conftest.er1 >conftest.err
18253   rm -f conftest.er1
18254   cat conftest.err >&5
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); } &&
18257          { ac_try='test -z "$ac_c_werror_flag"
18258                          || test ! -s conftest.err'
18259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260   (eval $ac_try) 2>&5
18261   ac_status=$?
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); }; } &&
18264          { ac_try='test -s conftest.$ac_objext'
18265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266   (eval $ac_try) 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); }; }; then
18270   ac_hi=-1 ac_mid=-1
18271   while :; do
18272     cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278
18279 int
18280 main ()
18281 {
18282 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18283 test_array [0] = 0
18284
18285   ;
18286   return 0;
18287 }
18288 _ACEOF
18289 rm -f conftest.$ac_objext
18290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18291   (eval $ac_compile) 2>conftest.er1
18292   ac_status=$?
18293   grep -v '^ *+' conftest.er1 >conftest.err
18294   rm -f conftest.er1
18295   cat conftest.err >&5
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); } &&
18298          { ac_try='test -z "$ac_c_werror_flag"
18299                          || test ! -s conftest.err'
18300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301   (eval $ac_try) 2>&5
18302   ac_status=$?
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); }; } &&
18305          { ac_try='test -s conftest.$ac_objext'
18306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307   (eval $ac_try) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); }; }; then
18311   ac_lo=$ac_mid; break
18312 else
18313   echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18315
18316 ac_hi=`expr '(' $ac_mid ')' - 1`
18317                        if test $ac_mid -le $ac_hi; then
18318                          ac_lo= ac_hi=
18319                          break
18320                        fi
18321                        ac_mid=`expr 2 '*' $ac_mid`
18322 fi
18323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18324   done
18325 else
18326   echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18328
18329 ac_lo= ac_hi=
18330 fi
18331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18332 fi
18333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18334 # Binary search between lo and hi bounds.
18335 while test "x$ac_lo" != "x$ac_hi"; do
18336   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18337   cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343
18344 int
18345 main ()
18346 {
18347 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18348 test_array [0] = 0
18349
18350   ;
18351   return 0;
18352 }
18353 _ACEOF
18354 rm -f conftest.$ac_objext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18356   (eval $ac_compile) 2>conftest.er1
18357   ac_status=$?
18358   grep -v '^ *+' conftest.er1 >conftest.err
18359   rm -f conftest.er1
18360   cat conftest.err >&5
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); } &&
18363          { ac_try='test -z "$ac_c_werror_flag"
18364                          || test ! -s conftest.err'
18365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366   (eval $ac_try) 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); }; } &&
18370          { ac_try='test -s conftest.$ac_objext'
18371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372   (eval $ac_try) 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   ac_hi=$ac_mid
18377 else
18378   echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381 ac_lo=`expr '(' $ac_mid ')' + 1`
18382 fi
18383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18384 done
18385 case $ac_lo in
18386 ?*) OMP_LOCK_SIZE=$ac_lo;;
18387 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18388 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18389    { (exit 1); exit 1; }; } ;;
18390 esac
18391 else
18392   if test "$cross_compiling" = yes; then
18393   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18394 See \`config.log' for more details." >&5
18395 echo "$as_me: error: cannot run test program while cross compiling
18396 See \`config.log' for more details." >&2;}
18397    { (exit 1); exit 1; }; }
18398 else
18399   cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h.  */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h.  */
18405
18406 long longval () { return sizeof (omp_lock_t); }
18407 unsigned long ulongval () { return sizeof (omp_lock_t); }
18408 #include <stdio.h>
18409 #include <stdlib.h>
18410 int
18411 main ()
18412 {
18413
18414   FILE *f = fopen ("conftest.val", "w");
18415   if (! f)
18416     exit (1);
18417   if ((sizeof (omp_lock_t)) < 0)
18418     {
18419       long i = longval ();
18420       if (i != (sizeof (omp_lock_t)))
18421         exit (1);
18422       fprintf (f, "%ld\n", i);
18423     }
18424   else
18425     {
18426       unsigned long i = ulongval ();
18427       if (i != (sizeof (omp_lock_t)))
18428         exit (1);
18429       fprintf (f, "%lu\n", i);
18430     }
18431   exit (ferror (f) || fclose (f) != 0);
18432
18433   ;
18434   return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest$ac_exeext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439   (eval $ac_link) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444   (eval $ac_try) 2>&5
18445   ac_status=$?
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); }; }; then
18448   OMP_LOCK_SIZE=`cat conftest.val`
18449 else
18450   echo "$as_me: program exited with status $ac_status" >&5
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18453
18454 ( exit $ac_status )
18455 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18456 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18457    { (exit 1); exit 1; }; }
18458 fi
18459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18460 fi
18461 fi
18462 rm -f conftest.val
18463 if test "$cross_compiling" = yes; then
18464   # Depending upon the size, compute the lo and hi bounds.
18465 cat >conftest.$ac_ext <<_ACEOF
18466 /* confdefs.h.  */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h.  */
18471
18472 int
18473 main ()
18474 {
18475 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18476 test_array [0] = 0
18477
18478   ;
18479   return 0;
18480 }
18481 _ACEOF
18482 rm -f conftest.$ac_objext
18483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18484   (eval $ac_compile) 2>conftest.er1
18485   ac_status=$?
18486   grep -v '^ *+' conftest.er1 >conftest.err
18487   rm -f conftest.er1
18488   cat conftest.err >&5
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); } &&
18491          { ac_try='test -z "$ac_c_werror_flag"
18492                          || test ! -s conftest.err'
18493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494   (eval $ac_try) 2>&5
18495   ac_status=$?
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); }; } &&
18498          { ac_try='test -s conftest.$ac_objext'
18499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500   (eval $ac_try) 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; }; then
18504   ac_lo=0 ac_mid=0
18505   while :; do
18506     cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512
18513 int
18514 main ()
18515 {
18516 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18517 test_array [0] = 0
18518
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18525   (eval $ac_compile) 2>conftest.er1
18526   ac_status=$?
18527   grep -v '^ *+' conftest.er1 >conftest.err
18528   rm -f conftest.er1
18529   cat conftest.err >&5
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); } &&
18532          { ac_try='test -z "$ac_c_werror_flag"
18533                          || test ! -s conftest.err'
18534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535   (eval $ac_try) 2>&5
18536   ac_status=$?
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); }; } &&
18539          { ac_try='test -s conftest.$ac_objext'
18540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541   (eval $ac_try) 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); }; }; then
18545   ac_hi=$ac_mid; break
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 ac_lo=`expr $ac_mid + 1`
18551                     if test $ac_lo -le $ac_mid; then
18552                       ac_lo= ac_hi=
18553                       break
18554                     fi
18555                     ac_mid=`expr 2 '*' $ac_mid + 1`
18556 fi
18557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18558   done
18559 else
18560   echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h.  */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h.  */
18569
18570 int
18571 main ()
18572 {
18573 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18574 test_array [0] = 0
18575
18576   ;
18577   return 0;
18578 }
18579 _ACEOF
18580 rm -f conftest.$ac_objext
18581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18582   (eval $ac_compile) 2>conftest.er1
18583   ac_status=$?
18584   grep -v '^ *+' conftest.er1 >conftest.err
18585   rm -f conftest.er1
18586   cat conftest.err >&5
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); } &&
18589          { ac_try='test -z "$ac_c_werror_flag"
18590                          || test ! -s conftest.err'
18591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592   (eval $ac_try) 2>&5
18593   ac_status=$?
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); }; } &&
18596          { ac_try='test -s conftest.$ac_objext'
18597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598   (eval $ac_try) 2>&5
18599   ac_status=$?
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); }; }; then
18602   ac_hi=-1 ac_mid=-1
18603   while :; do
18604     cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h.  */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h.  */
18610
18611 int
18612 main ()
18613 {
18614 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18615 test_array [0] = 0
18616
18617   ;
18618   return 0;
18619 }
18620 _ACEOF
18621 rm -f conftest.$ac_objext
18622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18623   (eval $ac_compile) 2>conftest.er1
18624   ac_status=$?
18625   grep -v '^ *+' conftest.er1 >conftest.err
18626   rm -f conftest.er1
18627   cat conftest.err >&5
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); } &&
18630          { ac_try='test -z "$ac_c_werror_flag"
18631                          || test ! -s conftest.err'
18632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633   (eval $ac_try) 2>&5
18634   ac_status=$?
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); }; } &&
18637          { ac_try='test -s conftest.$ac_objext'
18638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639   (eval $ac_try) 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); }; }; then
18643   ac_lo=$ac_mid; break
18644 else
18645   echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18647
18648 ac_hi=`expr '(' $ac_mid ')' - 1`
18649                        if test $ac_mid -le $ac_hi; then
18650                          ac_lo= ac_hi=
18651                          break
18652                        fi
18653                        ac_mid=`expr 2 '*' $ac_mid`
18654 fi
18655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18656   done
18657 else
18658   echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18660
18661 ac_lo= ac_hi=
18662 fi
18663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18664 fi
18665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18666 # Binary search between lo and hi bounds.
18667 while test "x$ac_lo" != "x$ac_hi"; do
18668   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18669   cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h.  */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h.  */
18675
18676 int
18677 main ()
18678 {
18679 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18680 test_array [0] = 0
18681
18682   ;
18683   return 0;
18684 }
18685 _ACEOF
18686 rm -f conftest.$ac_objext
18687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18688   (eval $ac_compile) 2>conftest.er1
18689   ac_status=$?
18690   grep -v '^ *+' conftest.er1 >conftest.err
18691   rm -f conftest.er1
18692   cat conftest.err >&5
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); } &&
18695          { ac_try='test -z "$ac_c_werror_flag"
18696                          || test ! -s conftest.err'
18697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698   (eval $ac_try) 2>&5
18699   ac_status=$?
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); }; } &&
18702          { ac_try='test -s conftest.$ac_objext'
18703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704   (eval $ac_try) 2>&5
18705   ac_status=$?
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); }; }; then
18708   ac_hi=$ac_mid
18709 else
18710   echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713 ac_lo=`expr '(' $ac_mid ')' + 1`
18714 fi
18715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18716 done
18717 case $ac_lo in
18718 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18719 '')  ;;
18720 esac
18721 else
18722   if test "$cross_compiling" = yes; then
18723   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18724 See \`config.log' for more details." >&5
18725 echo "$as_me: error: cannot run test program while cross compiling
18726 See \`config.log' for more details." >&2;}
18727    { (exit 1); exit 1; }; }
18728 else
18729   cat >conftest.$ac_ext <<_ACEOF
18730 /* confdefs.h.  */
18731 _ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h.  */
18735
18736 long longval () { return __alignof (omp_lock_t); }
18737 unsigned long ulongval () { return __alignof (omp_lock_t); }
18738 #include <stdio.h>
18739 #include <stdlib.h>
18740 int
18741 main ()
18742 {
18743
18744   FILE *f = fopen ("conftest.val", "w");
18745   if (! f)
18746     exit (1);
18747   if ((__alignof (omp_lock_t)) < 0)
18748     {
18749       long i = longval ();
18750       if (i != (__alignof (omp_lock_t)))
18751         exit (1);
18752       fprintf (f, "%ld\n", i);
18753     }
18754   else
18755     {
18756       unsigned long i = ulongval ();
18757       if (i != (__alignof (omp_lock_t)))
18758         exit (1);
18759       fprintf (f, "%lu\n", i);
18760     }
18761   exit (ferror (f) || fclose (f) != 0);
18762
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest$ac_exeext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769   (eval $ac_link) 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774   (eval $ac_try) 2>&5
18775   ac_status=$?
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); }; }; then
18778   OMP_LOCK_ALIGN=`cat conftest.val`
18779 else
18780   echo "$as_me: program exited with status $ac_status" >&5
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 fi
18785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18786 fi
18787 fi
18788 rm -f conftest.val
18789 if test "$cross_compiling" = yes; then
18790   # Depending upon the size, compute the lo and hi bounds.
18791 cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797
18798 int
18799 main ()
18800 {
18801 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18802 test_array [0] = 0
18803
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810   (eval $ac_compile) 2>conftest.er1
18811   ac_status=$?
18812   grep -v '^ *+' conftest.er1 >conftest.err
18813   rm -f conftest.er1
18814   cat conftest.err >&5
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); } &&
18817          { ac_try='test -z "$ac_c_werror_flag"
18818                          || test ! -s conftest.err'
18819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820   (eval $ac_try) 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; } &&
18824          { ac_try='test -s conftest.$ac_objext'
18825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826   (eval $ac_try) 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); }; }; then
18830   ac_lo=0 ac_mid=0
18831   while :; do
18832     cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838
18839 int
18840 main ()
18841 {
18842 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18843 test_array [0] = 0
18844
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest.$ac_objext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851   (eval $ac_compile) 2>conftest.er1
18852   ac_status=$?
18853   grep -v '^ *+' conftest.er1 >conftest.err
18854   rm -f conftest.er1
18855   cat conftest.err >&5
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); } &&
18858          { ac_try='test -z "$ac_c_werror_flag"
18859                          || test ! -s conftest.err'
18860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861   (eval $ac_try) 2>&5
18862   ac_status=$?
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); }; } &&
18865          { ac_try='test -s conftest.$ac_objext'
18866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867   (eval $ac_try) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; }; then
18871   ac_hi=$ac_mid; break
18872 else
18873   echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18875
18876 ac_lo=`expr $ac_mid + 1`
18877                     if test $ac_lo -le $ac_mid; then
18878                       ac_lo= ac_hi=
18879                       break
18880                     fi
18881                     ac_mid=`expr 2 '*' $ac_mid + 1`
18882 fi
18883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18884   done
18885 else
18886   echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18888
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_hi=-1 ac_mid=-1
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_lo=$ac_mid; break
18970 else
18971   echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 ac_hi=`expr '(' $ac_mid ')' - 1`
18975                        if test $ac_mid -le $ac_hi; then
18976                          ac_lo= ac_hi=
18977                          break
18978                        fi
18979                        ac_mid=`expr 2 '*' $ac_mid`
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 ac_lo= ac_hi=
18988 fi
18989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18990 fi
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992 # Binary search between lo and hi bounds.
18993 while test "x$ac_lo" != "x$ac_hi"; do
18994   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18995   cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001
19002 int
19003 main ()
19004 {
19005 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19006 test_array [0] = 0
19007
19008   ;
19009   return 0;
19010 }
19011 _ACEOF
19012 rm -f conftest.$ac_objext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19014   (eval $ac_compile) 2>conftest.er1
19015   ac_status=$?
19016   grep -v '^ *+' conftest.er1 >conftest.err
19017   rm -f conftest.er1
19018   cat conftest.err >&5
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); } &&
19021          { ac_try='test -z "$ac_c_werror_flag"
19022                          || test ! -s conftest.err'
19023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024   (eval $ac_try) 2>&5
19025   ac_status=$?
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); }; } &&
19028          { ac_try='test -s conftest.$ac_objext'
19029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030   (eval $ac_try) 2>&5
19031   ac_status=$?
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); }; }; then
19034   ac_hi=$ac_mid
19035 else
19036   echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039 ac_lo=`expr '(' $ac_mid ')' + 1`
19040 fi
19041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19042 done
19043 case $ac_lo in
19044 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19045 '')  ;;
19046 esac
19047 else
19048   if test "$cross_compiling" = yes; then
19049   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19050 See \`config.log' for more details." >&5
19051 echo "$as_me: error: cannot run test program while cross compiling
19052 See \`config.log' for more details." >&2;}
19053    { (exit 1); exit 1; }; }
19054 else
19055   cat >conftest.$ac_ext <<_ACEOF
19056 /* confdefs.h.  */
19057 _ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h.  */
19061
19062 long longval () { return sizeof (omp_nest_lock_t); }
19063 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19064 #include <stdio.h>
19065 #include <stdlib.h>
19066 int
19067 main ()
19068 {
19069
19070   FILE *f = fopen ("conftest.val", "w");
19071   if (! f)
19072     exit (1);
19073   if ((sizeof (omp_nest_lock_t)) < 0)
19074     {
19075       long i = longval ();
19076       if (i != (sizeof (omp_nest_lock_t)))
19077         exit (1);
19078       fprintf (f, "%ld\n", i);
19079     }
19080   else
19081     {
19082       unsigned long i = ulongval ();
19083       if (i != (sizeof (omp_nest_lock_t)))
19084         exit (1);
19085       fprintf (f, "%lu\n", i);
19086     }
19087   exit (ferror (f) || fclose (f) != 0);
19088
19089   ;
19090   return 0;
19091 }
19092 _ACEOF
19093 rm -f conftest$ac_exeext
19094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19095   (eval $ac_link) 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100   (eval $ac_try) 2>&5
19101   ac_status=$?
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); }; }; then
19104   OMP_NEST_LOCK_SIZE=`cat conftest.val`
19105 else
19106   echo "$as_me: program exited with status $ac_status" >&5
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110 fi
19111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19112 fi
19113 fi
19114 rm -f conftest.val
19115 if test "$cross_compiling" = yes; then
19116   # Depending upon the size, compute the lo and hi bounds.
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123
19124 int
19125 main ()
19126 {
19127 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19128 test_array [0] = 0
19129
19130   ;
19131   return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest.$ac_objext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19136   (eval $ac_compile) 2>conftest.er1
19137   ac_status=$?
19138   grep -v '^ *+' conftest.er1 >conftest.err
19139   rm -f conftest.er1
19140   cat conftest.err >&5
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); } &&
19143          { ac_try='test -z "$ac_c_werror_flag"
19144                          || test ! -s conftest.err'
19145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146   (eval $ac_try) 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; } &&
19150          { ac_try='test -s conftest.$ac_objext'
19151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152   (eval $ac_try) 2>&5
19153   ac_status=$?
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); }; }; then
19156   ac_lo=0 ac_mid=0
19157   while :; do
19158     cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h.  */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h.  */
19164
19165 int
19166 main ()
19167 {
19168 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19169 test_array [0] = 0
19170
19171   ;
19172   return 0;
19173 }
19174 _ACEOF
19175 rm -f conftest.$ac_objext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177   (eval $ac_compile) 2>conftest.er1
19178   ac_status=$?
19179   grep -v '^ *+' conftest.er1 >conftest.err
19180   rm -f conftest.er1
19181   cat conftest.err >&5
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); } &&
19184          { ac_try='test -z "$ac_c_werror_flag"
19185                          || test ! -s conftest.err'
19186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187   (eval $ac_try) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; } &&
19191          { ac_try='test -s conftest.$ac_objext'
19192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193   (eval $ac_try) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); }; }; then
19197   ac_hi=$ac_mid; break
19198 else
19199   echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 ac_lo=`expr $ac_mid + 1`
19203                     if test $ac_lo -le $ac_mid; then
19204                       ac_lo= ac_hi=
19205                       break
19206                     fi
19207                     ac_mid=`expr 2 '*' $ac_mid + 1`
19208 fi
19209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19210   done
19211 else
19212   echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19214
19215 cat >conftest.$ac_ext <<_ACEOF
19216 /* confdefs.h.  */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h.  */
19221
19222 int
19223 main ()
19224 {
19225 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19226 test_array [0] = 0
19227
19228   ;
19229   return 0;
19230 }
19231 _ACEOF
19232 rm -f conftest.$ac_objext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19234   (eval $ac_compile) 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } &&
19241          { ac_try='test -z "$ac_c_werror_flag"
19242                          || test ! -s conftest.err'
19243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244   (eval $ac_try) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; } &&
19248          { ac_try='test -s conftest.$ac_objext'
19249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250   (eval $ac_try) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; }; then
19254   ac_hi=-1 ac_mid=-1
19255   while :; do
19256     cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262
19263 int
19264 main ()
19265 {
19266 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19267 test_array [0] = 0
19268
19269   ;
19270   return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275   (eval $ac_compile) 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } &&
19282          { ac_try='test -z "$ac_c_werror_flag"
19283                          || test ! -s conftest.err'
19284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285   (eval $ac_try) 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; } &&
19289          { ac_try='test -s conftest.$ac_objext'
19290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291   (eval $ac_try) 2>&5
19292   ac_status=$?
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); }; }; then
19295   ac_lo=$ac_mid; break
19296 else
19297   echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 ac_hi=`expr '(' $ac_mid ')' - 1`
19301                        if test $ac_mid -le $ac_hi; then
19302                          ac_lo= ac_hi=
19303                          break
19304                        fi
19305                        ac_mid=`expr 2 '*' $ac_mid`
19306 fi
19307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19308   done
19309 else
19310   echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313 ac_lo= ac_hi=
19314 fi
19315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19316 fi
19317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19318 # Binary search between lo and hi bounds.
19319 while test "x$ac_lo" != "x$ac_hi"; do
19320   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19321   cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h.  */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h.  */
19327
19328 int
19329 main ()
19330 {
19331 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19332 test_array [0] = 0
19333
19334   ;
19335   return 0;
19336 }
19337 _ACEOF
19338 rm -f conftest.$ac_objext
19339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19340   (eval $ac_compile) 2>conftest.er1
19341   ac_status=$?
19342   grep -v '^ *+' conftest.er1 >conftest.err
19343   rm -f conftest.er1
19344   cat conftest.err >&5
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); } &&
19347          { ac_try='test -z "$ac_c_werror_flag"
19348                          || test ! -s conftest.err'
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); }; } &&
19354          { ac_try='test -s conftest.$ac_objext'
19355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356   (eval $ac_try) 2>&5
19357   ac_status=$?
19358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359   (exit $ac_status); }; }; then
19360   ac_hi=$ac_mid
19361 else
19362   echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19364
19365 ac_lo=`expr '(' $ac_mid ')' + 1`
19366 fi
19367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19368 done
19369 case $ac_lo in
19370 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19371 '')  ;;
19372 esac
19373 else
19374   if test "$cross_compiling" = yes; then
19375   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19376 See \`config.log' for more details." >&5
19377 echo "$as_me: error: cannot run test program while cross compiling
19378 See \`config.log' for more details." >&2;}
19379    { (exit 1); exit 1; }; }
19380 else
19381   cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387
19388 long longval () { return __alignof (omp_nest_lock_t); }
19389 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19390 #include <stdio.h>
19391 #include <stdlib.h>
19392 int
19393 main ()
19394 {
19395
19396   FILE *f = fopen ("conftest.val", "w");
19397   if (! f)
19398     exit (1);
19399   if ((__alignof (omp_nest_lock_t)) < 0)
19400     {
19401       long i = longval ();
19402       if (i != (__alignof (omp_nest_lock_t)))
19403         exit (1);
19404       fprintf (f, "%ld\n", i);
19405     }
19406   else
19407     {
19408       unsigned long i = ulongval ();
19409       if (i != (__alignof (omp_nest_lock_t)))
19410         exit (1);
19411       fprintf (f, "%lu\n", i);
19412     }
19413   exit (ferror (f) || fclose (f) != 0);
19414
19415   ;
19416   return 0;
19417 }
19418 _ACEOF
19419 rm -f conftest$ac_exeext
19420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19421   (eval $ac_link) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426   (eval $ac_try) 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; }; then
19430   OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19431 else
19432   echo "$as_me: program exited with status $ac_status" >&5
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 fi
19437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 fi
19440 rm -f conftest.val
19441
19442 # If the lock fits in an integer, then arrange for Fortran to use that
19443 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
19444 # Except that we don't have a way at present to multi-lib the installed
19445 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19446 # actual target.
19447 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19448 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19449 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19450   OMP_LOCK_KIND=8
19451 fi
19452 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19453   OMP_NEST_LOCK_KIND=8
19454 fi
19455
19456
19457
19458
19459
19460
19461
19462 CFLAGS="$save_CFLAGS"
19463
19464                                         ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19465
19466                               ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19467
19468 cat >confcache <<\_ACEOF
19469 # This file is a shell script that caches the results of configure
19470 # tests run on this system so they can be shared between configure
19471 # scripts and configure runs, see configure's option --config-cache.
19472 # It is not useful on other systems.  If it contains results you don't
19473 # want to keep, you may remove or edit it.
19474 #
19475 # config.status only pays attention to the cache file if you give it
19476 # the --recheck option to rerun configure.
19477 #
19478 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19479 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19480 # following values.
19481
19482 _ACEOF
19483
19484 # The following way of writing the cache mishandles newlines in values,
19485 # but we know of no workaround that is simple, portable, and efficient.
19486 # So, don't put newlines in cache variables' values.
19487 # Ultrix sh set writes to stderr and can't be redirected directly,
19488 # and sets the high bit in the cache file unless we assign to the vars.
19489 {
19490   (set) 2>&1 |
19491     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19492     *ac_space=\ *)
19493       # `set' does not quote correctly, so add quotes (double-quote
19494       # substitution turns \\\\ into \\, and sed turns \\ into \).
19495       sed -n \
19496         "s/'/'\\\\''/g;
19497           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19498       ;;
19499     *)
19500       # `set' quotes correctly as required by POSIX, so do not add quotes.
19501       sed -n \
19502         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19503       ;;
19504     esac;
19505 } |
19506   sed '
19507      t clear
19508      : clear
19509      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19510      t end
19511      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19512      : end' >>confcache
19513 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19514   if test -w $cache_file; then
19515     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19516     cat confcache >$cache_file
19517   else
19518     echo "not updating unwritable cache $cache_file"
19519   fi
19520 fi
19521 rm -f confcache
19522
19523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19524 # Let make expand exec_prefix.
19525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19526
19527 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19528 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19529 # trailing colons and then remove the whole line if VPATH becomes empty
19530 # (actually we leave an empty line to preserve line numbers).
19531 if test "x$srcdir" = x.; then
19532   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19533 s/:*\$(srcdir):*/:/;
19534 s/:*\${srcdir}:*/:/;
19535 s/:*@srcdir@:*/:/;
19536 s/^\([^=]*=[     ]*\):*/\1/;
19537 s/:*$//;
19538 s/^[^=]*=[       ]*$//;
19539 }'
19540 fi
19541
19542 DEFS=-DHAVE_CONFIG_H
19543
19544 ac_libobjs=
19545 ac_ltlibobjs=
19546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19547   # 1. Remove the extension, and $U if already installed.
19548   ac_i=`echo "$ac_i" |
19549          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19550   # 2. Add them.
19551   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19552   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19553 done
19554 LIBOBJS=$ac_libobjs
19555
19556 LTLIBOBJS=$ac_ltlibobjs
19557
19558
19559 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19560   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19561 Usually this means the macro was only invoked conditionally." >&5
19562 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19563 Usually this means the macro was only invoked conditionally." >&2;}
19564    { (exit 1); exit 1; }; }
19565 fi
19566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19567   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19568 Usually this means the macro was only invoked conditionally." >&5
19569 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19570 Usually this means the macro was only invoked conditionally." >&2;}
19571    { (exit 1); exit 1; }; }
19572 fi
19573 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19574   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19575 Usually this means the macro was only invoked conditionally." >&5
19576 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19577 Usually this means the macro was only invoked conditionally." >&2;}
19578    { (exit 1); exit 1; }; }
19579 fi
19580 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19581   { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19582 Usually this means the macro was only invoked conditionally." >&5
19583 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19584 Usually this means the macro was only invoked conditionally." >&2;}
19585    { (exit 1); exit 1; }; }
19586 fi
19587 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19588   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19589 Usually this means the macro was only invoked conditionally." >&5
19590 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19591 Usually this means the macro was only invoked conditionally." >&2;}
19592    { (exit 1); exit 1; }; }
19593 fi
19594 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19595   { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19596 Usually this means the macro was only invoked conditionally." >&5
19597 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19598 Usually this means the macro was only invoked conditionally." >&2;}
19599    { (exit 1); exit 1; }; }
19600 fi
19601 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19602   { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19603 Usually this means the macro was only invoked conditionally." >&5
19604 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19605 Usually this means the macro was only invoked conditionally." >&2;}
19606    { (exit 1); exit 1; }; }
19607 fi
19608
19609 : ${CONFIG_STATUS=./config.status}
19610 ac_clean_files_save=$ac_clean_files
19611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19612 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19613 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19614 cat >$CONFIG_STATUS <<_ACEOF
19615 #! $SHELL
19616 # Generated by $as_me.
19617 # Run this file to recreate the current configuration.
19618 # Compiler output produced by configure, useful for debugging
19619 # configure, is in config.log if it exists.
19620
19621 debug=false
19622 ac_cs_recheck=false
19623 ac_cs_silent=false
19624 SHELL=\${CONFIG_SHELL-$SHELL}
19625 _ACEOF
19626
19627 cat >>$CONFIG_STATUS <<\_ACEOF
19628 ## --------------------- ##
19629 ## M4sh Initialization.  ##
19630 ## --------------------- ##
19631
19632 # Be Bourne compatible
19633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19634   emulate sh
19635   NULLCMD=:
19636   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19637   # is contrary to our usage.  Disable this feature.
19638   alias -g '${1+"$@"}'='"$@"'
19639 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19640   set -o posix
19641 fi
19642 DUALCASE=1; export DUALCASE # for MKS sh
19643
19644 # Support unset when possible.
19645 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19646   as_unset=unset
19647 else
19648   as_unset=false
19649 fi
19650
19651
19652 # Work around bugs in pre-3.0 UWIN ksh.
19653 $as_unset ENV MAIL MAILPATH
19654 PS1='$ '
19655 PS2='> '
19656 PS4='+ '
19657
19658 # NLS nuisances.
19659 for as_var in \
19660   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19661   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19662   LC_TELEPHONE LC_TIME
19663 do
19664   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19665     eval $as_var=C; export $as_var
19666   else
19667     $as_unset $as_var
19668   fi
19669 done
19670
19671 # Required to use basename.
19672 if expr a : '\(a\)' >/dev/null 2>&1; then
19673   as_expr=expr
19674 else
19675   as_expr=false
19676 fi
19677
19678 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19679   as_basename=basename
19680 else
19681   as_basename=false
19682 fi
19683
19684
19685 # Name of the executable.
19686 as_me=`$as_basename "$0" ||
19687 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19688          X"$0" : 'X\(//\)$' \| \
19689          X"$0" : 'X\(/\)$' \| \
19690          .     : '\(.\)' 2>/dev/null ||
19691 echo X/"$0" |
19692     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19693           /^X\/\(\/\/\)$/{ s//\1/; q; }
19694           /^X\/\(\/\).*/{ s//\1/; q; }
19695           s/.*/./; q'`
19696
19697
19698 # PATH needs CR, and LINENO needs CR and PATH.
19699 # Avoid depending upon Character Ranges.
19700 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19701 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19702 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19703 as_cr_digits='0123456789'
19704 as_cr_alnum=$as_cr_Letters$as_cr_digits
19705
19706 # The user is always right.
19707 if test "${PATH_SEPARATOR+set}" != set; then
19708   echo "#! /bin/sh" >conf$$.sh
19709   echo  "exit 0"   >>conf$$.sh
19710   chmod +x conf$$.sh
19711   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19712     PATH_SEPARATOR=';'
19713   else
19714     PATH_SEPARATOR=:
19715   fi
19716   rm -f conf$$.sh
19717 fi
19718
19719
19720   as_lineno_1=$LINENO
19721   as_lineno_2=$LINENO
19722   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19723   test "x$as_lineno_1" != "x$as_lineno_2" &&
19724   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19725   # Find who we are.  Look in the path if we contain no path at all
19726   # relative or not.
19727   case $0 in
19728     *[\\/]* ) as_myself=$0 ;;
19729     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19730 for as_dir in $PATH
19731 do
19732   IFS=$as_save_IFS
19733   test -z "$as_dir" && as_dir=.
19734   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19735 done
19736
19737        ;;
19738   esac
19739   # We did not find ourselves, most probably we were run as `sh COMMAND'
19740   # in which case we are not to be found in the path.
19741   if test "x$as_myself" = x; then
19742     as_myself=$0
19743   fi
19744   if test ! -f "$as_myself"; then
19745     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19746 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19747    { (exit 1); exit 1; }; }
19748   fi
19749   case $CONFIG_SHELL in
19750   '')
19751     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19753 do
19754   IFS=$as_save_IFS
19755   test -z "$as_dir" && as_dir=.
19756   for as_base in sh bash ksh sh5; do
19757          case $as_dir in
19758          /*)
19759            if ("$as_dir/$as_base" -c '
19760   as_lineno_1=$LINENO
19761   as_lineno_2=$LINENO
19762   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19763   test "x$as_lineno_1" != "x$as_lineno_2" &&
19764   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19765              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19766              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19767              CONFIG_SHELL=$as_dir/$as_base
19768              export CONFIG_SHELL
19769              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19770            fi;;
19771          esac
19772        done
19773 done
19774 ;;
19775   esac
19776
19777   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19778   # uniformly replaced by the line number.  The first 'sed' inserts a
19779   # line-number line before each line; the second 'sed' does the real
19780   # work.  The second script uses 'N' to pair each line-number line
19781   # with the numbered line, and appends trailing '-' during
19782   # substitution so that $LINENO is not a special case at line end.
19783   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19784   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19785   sed '=' <$as_myself |
19786     sed '
19787       N
19788       s,$,-,
19789       : loop
19790       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19791       t loop
19792       s,-$,,
19793       s,^['$as_cr_digits']*\n,,
19794     ' >$as_me.lineno &&
19795   chmod +x $as_me.lineno ||
19796     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19797 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19798    { (exit 1); exit 1; }; }
19799
19800   # Don't try to exec as it changes $[0], causing all sort of problems
19801   # (the dirname of $[0] is not the place where we might find the
19802   # original and so on.  Autoconf is especially sensible to this).
19803   . ./$as_me.lineno
19804   # Exit status is that of the last command.
19805   exit
19806 }
19807
19808
19809 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19810   *c*,-n*) ECHO_N= ECHO_C='
19811 ' ECHO_T='      ' ;;
19812   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19813   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19814 esac
19815
19816 if expr a : '\(a\)' >/dev/null 2>&1; then
19817   as_expr=expr
19818 else
19819   as_expr=false
19820 fi
19821
19822 rm -f conf$$ conf$$.exe conf$$.file
19823 echo >conf$$.file
19824 if ln -s conf$$.file conf$$ 2>/dev/null; then
19825   # We could just check for DJGPP; but this test a) works b) is more generic
19826   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19827   if test -f conf$$.exe; then
19828     # Don't use ln at all; we don't have any links
19829     as_ln_s='cp -p'
19830   else
19831     as_ln_s='ln -s'
19832   fi
19833 elif ln conf$$.file conf$$ 2>/dev/null; then
19834   as_ln_s=ln
19835 else
19836   as_ln_s='cp -p'
19837 fi
19838 rm -f conf$$ conf$$.exe conf$$.file
19839
19840 if mkdir -p . 2>/dev/null; then
19841   as_mkdir_p=:
19842 else
19843   test -d ./-p && rmdir ./-p
19844   as_mkdir_p=false
19845 fi
19846
19847 as_executable_p="test -f"
19848
19849 # Sed expression to map a string onto a valid CPP name.
19850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19851
19852 # Sed expression to map a string onto a valid variable name.
19853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19854
19855
19856 # IFS
19857 # We need space, tab and new line, in precisely that order.
19858 as_nl='
19859 '
19860 IFS="   $as_nl"
19861
19862 # CDPATH.
19863 $as_unset CDPATH
19864
19865 exec 6>&1
19866
19867 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19868 # report actual input values of CONFIG_FILES etc. instead of their
19869 # values after options handling.  Logging --version etc. is OK.
19870 exec 5>>config.log
19871 {
19872   echo
19873   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19874 ## Running $as_me. ##
19875 _ASBOX
19876 } >&5
19877 cat >&5 <<_CSEOF
19878
19879 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19880 generated by GNU Autoconf 2.59.  Invocation command line was
19881
19882   CONFIG_FILES    = $CONFIG_FILES
19883   CONFIG_HEADERS  = $CONFIG_HEADERS
19884   CONFIG_LINKS    = $CONFIG_LINKS
19885   CONFIG_COMMANDS = $CONFIG_COMMANDS
19886   $ $0 $@
19887
19888 _CSEOF
19889 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19890 echo >&5
19891 _ACEOF
19892
19893 # Files that config.status was made for.
19894 if test -n "$ac_config_files"; then
19895   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19896 fi
19897
19898 if test -n "$ac_config_headers"; then
19899   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19900 fi
19901
19902 if test -n "$ac_config_links"; then
19903   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19904 fi
19905
19906 if test -n "$ac_config_commands"; then
19907   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19908 fi
19909
19910 cat >>$CONFIG_STATUS <<\_ACEOF
19911
19912 ac_cs_usage="\
19913 \`$as_me' instantiates files from templates according to the
19914 current configuration.
19915
19916 Usage: $0 [OPTIONS] [FILE]...
19917
19918   -h, --help       print this help, then exit
19919   -V, --version    print version number, then exit
19920   -q, --quiet      do not print progress messages
19921   -d, --debug      don't remove temporary files
19922       --recheck    update $as_me by reconfiguring in the same conditions
19923   --file=FILE[:TEMPLATE]
19924                    instantiate the configuration file FILE
19925   --header=FILE[:TEMPLATE]
19926                    instantiate the configuration header FILE
19927
19928 Configuration files:
19929 $config_files
19930
19931 Configuration headers:
19932 $config_headers
19933
19934 Configuration commands:
19935 $config_commands
19936
19937 Report bugs to <bug-autoconf@gnu.org>."
19938 _ACEOF
19939
19940 cat >>$CONFIG_STATUS <<_ACEOF
19941 ac_cs_version="\\
19942 GNU OpenMP Runtime Library config.status 1.0
19943 configured by $0, generated by GNU Autoconf 2.59,
19944   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19945
19946 Copyright (C) 2003 Free Software Foundation, Inc.
19947 This config.status script is free software; the Free Software Foundation
19948 gives unlimited permission to copy, distribute and modify it."
19949 srcdir=$srcdir
19950 INSTALL="$INSTALL"
19951 _ACEOF
19952
19953 cat >>$CONFIG_STATUS <<\_ACEOF
19954 # If no file are specified by the user, then we need to provide default
19955 # value.  By we need to know if files were specified by the user.
19956 ac_need_defaults=:
19957 while test $# != 0
19958 do
19959   case $1 in
19960   --*=*)
19961     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19962     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19963     ac_shift=:
19964     ;;
19965   -*)
19966     ac_option=$1
19967     ac_optarg=$2
19968     ac_shift=shift
19969     ;;
19970   *) # This is not an option, so the user has probably given explicit
19971      # arguments.
19972      ac_option=$1
19973      ac_need_defaults=false;;
19974   esac
19975
19976   case $ac_option in
19977   # Handling of the options.
19978 _ACEOF
19979 cat >>$CONFIG_STATUS <<\_ACEOF
19980   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19981     ac_cs_recheck=: ;;
19982   --version | --vers* | -V )
19983     echo "$ac_cs_version"; exit 0 ;;
19984   --he | --h)
19985     # Conflict between --help and --header
19986     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19987 Try \`$0 --help' for more information." >&5
19988 echo "$as_me: error: ambiguous option: $1
19989 Try \`$0 --help' for more information." >&2;}
19990    { (exit 1); exit 1; }; };;
19991   --help | --hel | -h )
19992     echo "$ac_cs_usage"; exit 0 ;;
19993   --debug | --d* | -d )
19994     debug=: ;;
19995   --file | --fil | --fi | --f )
19996     $ac_shift
19997     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19998     ac_need_defaults=false;;
19999   --header | --heade | --head | --hea )
20000     $ac_shift
20001     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20002     ac_need_defaults=false;;
20003   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20004   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20005     ac_cs_silent=: ;;
20006
20007   # This is an error.
20008   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20009 Try \`$0 --help' for more information." >&5
20010 echo "$as_me: error: unrecognized option: $1
20011 Try \`$0 --help' for more information." >&2;}
20012    { (exit 1); exit 1; }; } ;;
20013
20014   *) ac_config_targets="$ac_config_targets $1" ;;
20015
20016   esac
20017   shift
20018 done
20019
20020 ac_configure_extra_args=
20021
20022 if $ac_cs_silent; then
20023   exec 6>/dev/null
20024   ac_configure_extra_args="$ac_configure_extra_args --silent"
20025 fi
20026
20027 _ACEOF
20028 cat >>$CONFIG_STATUS <<_ACEOF
20029 if \$ac_cs_recheck; then
20030   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20031   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20032 fi
20033
20034 _ACEOF
20035
20036 cat >>$CONFIG_STATUS <<_ACEOF
20037 #
20038 # INIT-COMMANDS section.
20039 #
20040
20041
20042 srcdir="$srcdir"
20043 host="$host"
20044 target="$target"
20045 with_multisubdir="$with_multisubdir"
20046 with_multisrctop="$with_multisrctop"
20047 with_target_subdir="$with_target_subdir"
20048 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20049 multi_basedir="$multi_basedir"
20050 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20051 CC="$CC"
20052 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20053
20054
20055 # The HP-UX ksh and POSIX shell print the target directory to stdout
20056 # if CDPATH is set.
20057 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20058
20059 sed_quote_subst='$sed_quote_subst'
20060 double_quote_subst='$double_quote_subst'
20061 delay_variable_subst='$delay_variable_subst'
20062 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20063 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20064 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20065 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20066 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20067 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20068 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20069 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20070 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20071 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20072 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20073 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20074 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20075 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20076 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20077 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20078 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20079 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20080 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20081 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20082 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20083 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20084 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20085 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20086 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20087 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20088 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20089 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20090 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20091 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20092 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20093 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20094 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20095 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20096 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20097 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20098 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20099 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20100 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20101 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20102 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20103 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20104 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20105 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"`'
20106 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20107 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20108 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20109 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20110 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20111 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20112 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20113 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20114 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20115 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20116 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20117 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20118 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20119 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20120 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20121 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20122 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20123 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20124 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20125 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20126 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20127 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20128 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20129 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20130 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20131 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20132 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20133 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20134 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20135 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20136 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20137 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20138 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20139 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20140 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20141 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20142 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20143 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20144 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20145 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20146 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20147 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20148 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20149 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20150 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20151 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20152 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20153 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20154 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20155 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20156 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20157 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20158 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20159 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20160 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20161 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20162 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20163 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20164 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20165 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20166 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20167 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20168 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20169 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20170 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20171 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20172 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20173 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20174 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20175 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20176 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20177 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20178 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20179 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20180 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20181 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20182 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20183 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20184 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20185 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20186 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20187 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20188 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20189 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20190 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20191 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20192 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20193 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20194 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20195 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20196 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20197 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20198 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20199 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20200 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20201 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20202 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20203 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20204 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20205 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20206 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20207 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20208 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20209 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20210 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20211 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20212 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20213 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20214 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20215 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20216 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20217 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20218 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20219 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20220 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20221 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20222 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20223 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20224
20225 LTCC='$LTCC'
20226 LTCFLAGS='$LTCFLAGS'
20227 compiler='$compiler_DEFAULT'
20228
20229 # Quote evaled strings.
20230 for var in SED \
20231 GREP \
20232 EGREP \
20233 FGREP \
20234 LD \
20235 NM \
20236 LN_S \
20237 lt_SP2NL \
20238 lt_NL2SP \
20239 reload_flag \
20240 deplibs_check_method \
20241 file_magic_cmd \
20242 AR \
20243 AR_FLAGS \
20244 STRIP \
20245 RANLIB \
20246 CC \
20247 CFLAGS \
20248 compiler \
20249 lt_cv_sys_global_symbol_pipe \
20250 lt_cv_sys_global_symbol_to_cdecl \
20251 lt_cv_sys_global_symbol_to_c_name_address \
20252 SHELL \
20253 ECHO \
20254 lt_prog_compiler_no_builtin_flag \
20255 lt_prog_compiler_wl \
20256 lt_prog_compiler_pic \
20257 lt_prog_compiler_static \
20258 lt_cv_prog_compiler_c_o \
20259 need_locks \
20260 shrext_cmds \
20261 export_dynamic_flag_spec \
20262 whole_archive_flag_spec \
20263 compiler_needs_object \
20264 with_gnu_ld \
20265 allow_undefined_flag \
20266 no_undefined_flag \
20267 hardcode_libdir_flag_spec \
20268 hardcode_libdir_flag_spec_ld \
20269 hardcode_libdir_separator \
20270 fix_srcfile_path \
20271 exclude_expsyms \
20272 include_expsyms \
20273 file_list_spec \
20274 variables_saved_for_relink \
20275 libname_spec \
20276 library_names_spec \
20277 soname_spec \
20278 finish_eval \
20279 old_striplib \
20280 striplib \
20281 predep_objects \
20282 postdep_objects \
20283 predeps \
20284 postdeps \
20285 compiler_lib_search_path \
20286 LD_FC \
20287 compiler_FC \
20288 lt_prog_compiler_no_builtin_flag_FC \
20289 lt_prog_compiler_wl_FC \
20290 lt_prog_compiler_pic_FC \
20291 lt_prog_compiler_static_FC \
20292 lt_cv_prog_compiler_c_o_FC \
20293 export_dynamic_flag_spec_FC \
20294 whole_archive_flag_spec_FC \
20295 compiler_needs_object_FC \
20296 with_gnu_ld_FC \
20297 allow_undefined_flag_FC \
20298 no_undefined_flag_FC \
20299 hardcode_libdir_flag_spec_FC \
20300 hardcode_libdir_flag_spec_ld_FC \
20301 hardcode_libdir_separator_FC \
20302 fix_srcfile_path_FC \
20303 exclude_expsyms_FC \
20304 include_expsyms_FC \
20305 file_list_spec_FC \
20306 predep_objects_FC \
20307 postdep_objects_FC \
20308 predeps_FC \
20309 postdeps_FC \
20310 compiler_lib_search_path_FC; do
20311     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20312     *[\\\\\\\`\\"\\\$]*)
20313       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20314       ;;
20315     *)
20316       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20317       ;;
20318     esac
20319 done
20320
20321 # Double-quote double-evaled strings.
20322 for var in reload_cmds \
20323 old_postinstall_cmds \
20324 old_postuninstall_cmds \
20325 old_archive_cmds \
20326 extract_expsyms_cmds \
20327 old_archive_from_new_cmds \
20328 old_archive_from_expsyms_cmds \
20329 archive_cmds \
20330 archive_expsym_cmds \
20331 module_cmds \
20332 module_expsym_cmds \
20333 export_symbols_cmds \
20334 prelink_cmds \
20335 postinstall_cmds \
20336 postuninstall_cmds \
20337 finish_cmds \
20338 sys_lib_search_path_spec \
20339 sys_lib_dlsearch_path_spec \
20340 old_archive_cmds_FC \
20341 old_archive_from_new_cmds_FC \
20342 old_archive_from_expsyms_cmds_FC \
20343 archive_cmds_FC \
20344 archive_expsym_cmds_FC \
20345 module_cmds_FC \
20346 module_expsym_cmds_FC \
20347 export_symbols_cmds_FC \
20348 prelink_cmds_FC; do
20349     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20350     *[\\\\\\\`\\"\\\$]*)
20351       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20352       ;;
20353     *)
20354       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20355       ;;
20356     esac
20357 done
20358
20359 # Fix-up fallback echo if it was mangled by the above quoting rules.
20360 case \$lt_ECHO in
20361 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20362   ;;
20363 esac
20364
20365 ac_aux_dir='$ac_aux_dir'
20366 xsi_shell='$xsi_shell'
20367 lt_shell_append='$lt_shell_append'
20368
20369 # See if we are running on zsh, and set the options which allow our
20370 # commands through without removal of \ escapes INIT.
20371 if test -n "\${ZSH_VERSION+set}" ; then
20372    setopt NO_GLOB_SUBST
20373 fi
20374
20375
20376     PACKAGE='$PACKAGE'
20377     VERSION='$VERSION'
20378     TIMESTAMP='$TIMESTAMP'
20379     RM='$RM'
20380     ofile='$ofile'
20381
20382
20383
20384
20385
20386
20387 GCC="$GCC"
20388 CC="$CC"
20389 acx_cv_header_stdint="$acx_cv_header_stdint"
20390 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20391 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20392 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20393 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20394 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20395 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20396 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20397 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20398 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20399 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20400 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20401 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20402 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20403
20404
20405 _ACEOF
20406
20407
20408
20409 cat >>$CONFIG_STATUS <<\_ACEOF
20410 for ac_config_target in $ac_config_targets
20411 do
20412   case "$ac_config_target" in
20413   # Handling of arguments.
20414   "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20415   "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20416   "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20417   "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20418   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20419   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20420   "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20421   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20422   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20423   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20424   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20425   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20426   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20427 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20428    { (exit 1); exit 1; }; };;
20429   esac
20430 done
20431
20432 # If the user did not use the arguments to specify the items to instantiate,
20433 # then the envvar interface is used.  Set only those that are not.
20434 # We use the long form for the default assignment because of an extremely
20435 # bizarre bug on SunOS 4.1.3.
20436 if $ac_need_defaults; then
20437   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20438   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20439   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20440 fi
20441
20442 # Have a temporary directory for convenience.  Make it in the build tree
20443 # simply because there is no reason to put it here, and in addition,
20444 # creating and moving files from /tmp can sometimes cause problems.
20445 # Create a temporary directory, and hook for its removal unless debugging.
20446 $debug ||
20447 {
20448   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20449   trap '{ (exit 1); exit 1; }' 1 2 13 15
20450 }
20451
20452 # Create a (secure) tmp directory for tmp files.
20453
20454 {
20455   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20456   test -n "$tmp" && test -d "$tmp"
20457 }  ||
20458 {
20459   tmp=./confstat$$-$RANDOM
20460   (umask 077 && mkdir $tmp)
20461 } ||
20462 {
20463    echo "$me: cannot create a temporary directory in ." >&2
20464    { (exit 1); exit 1; }
20465 }
20466
20467 _ACEOF
20468
20469 cat >>$CONFIG_STATUS <<_ACEOF
20470
20471 #
20472 # CONFIG_FILES section.
20473 #
20474
20475 # No need to generate the scripts if there are no CONFIG_FILES.
20476 # This happens for instance when ./config.status config.h
20477 if test -n "\$CONFIG_FILES"; then
20478   # Protect against being on the right side of a sed subst in config.status.
20479   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20480    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20481 s,@SHELL@,$SHELL,;t t
20482 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20483 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20484 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20485 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20486 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20487 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20488 s,@exec_prefix@,$exec_prefix,;t t
20489 s,@prefix@,$prefix,;t t
20490 s,@program_transform_name@,$program_transform_name,;t t
20491 s,@bindir@,$bindir,;t t
20492 s,@sbindir@,$sbindir,;t t
20493 s,@libexecdir@,$libexecdir,;t t
20494 s,@datadir@,$datadir,;t t
20495 s,@sysconfdir@,$sysconfdir,;t t
20496 s,@sharedstatedir@,$sharedstatedir,;t t
20497 s,@localstatedir@,$localstatedir,;t t
20498 s,@libdir@,$libdir,;t t
20499 s,@includedir@,$includedir,;t t
20500 s,@oldincludedir@,$oldincludedir,;t t
20501 s,@infodir@,$infodir,;t t
20502 s,@mandir@,$mandir,;t t
20503 s,@build_alias@,$build_alias,;t t
20504 s,@host_alias@,$host_alias,;t t
20505 s,@target_alias@,$target_alias,;t t
20506 s,@DEFS@,$DEFS,;t t
20507 s,@ECHO_C@,$ECHO_C,;t t
20508 s,@ECHO_N@,$ECHO_N,;t t
20509 s,@ECHO_T@,$ECHO_T,;t t
20510 s,@LIBS@,$LIBS,;t t
20511 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20512 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20513 s,@build@,$build,;t t
20514 s,@build_cpu@,$build_cpu,;t t
20515 s,@build_vendor@,$build_vendor,;t t
20516 s,@build_os@,$build_os,;t t
20517 s,@host@,$host,;t t
20518 s,@host_cpu@,$host_cpu,;t t
20519 s,@host_vendor@,$host_vendor,;t t
20520 s,@host_os@,$host_os,;t t
20521 s,@target@,$target,;t t
20522 s,@target_cpu@,$target_cpu,;t t
20523 s,@target_vendor@,$target_vendor,;t t
20524 s,@target_os@,$target_os,;t t
20525 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20526 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20527 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20528 s,@CYGPATH_W@,$CYGPATH_W,;t t
20529 s,@PACKAGE@,$PACKAGE,;t t
20530 s,@VERSION@,$VERSION,;t t
20531 s,@ACLOCAL@,$ACLOCAL,;t t
20532 s,@AUTOCONF@,$AUTOCONF,;t t
20533 s,@AUTOMAKE@,$AUTOMAKE,;t t
20534 s,@AUTOHEADER@,$AUTOHEADER,;t t
20535 s,@MAKEINFO@,$MAKEINFO,;t t
20536 s,@install_sh@,$install_sh,;t t
20537 s,@STRIP@,$STRIP,;t t
20538 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20539 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20540 s,@mkdir_p@,$mkdir_p,;t t
20541 s,@AWK@,$AWK,;t t
20542 s,@SET_MAKE@,$SET_MAKE,;t t
20543 s,@am__leading_dot@,$am__leading_dot,;t t
20544 s,@AMTAR@,$AMTAR,;t t
20545 s,@am__tar@,$am__tar,;t t
20546 s,@am__untar@,$am__untar,;t t
20547 s,@multi_basedir@,$multi_basedir,;t t
20548 s,@toolexecdir@,$toolexecdir,;t t
20549 s,@toolexeclibdir@,$toolexeclibdir,;t t
20550 s,@CC@,$CC,;t t
20551 s,@ac_ct_CC@,$ac_ct_CC,;t t
20552 s,@EXEEXT@,$EXEEXT,;t t
20553 s,@OBJEXT@,$OBJEXT,;t t
20554 s,@DEPDIR@,$DEPDIR,;t t
20555 s,@am__include@,$am__include,;t t
20556 s,@am__quote@,$am__quote,;t t
20557 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20558 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20559 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20560 s,@CCDEPMODE@,$CCDEPMODE,;t t
20561 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20562 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20563 s,@CFLAGS@,$CFLAGS,;t t
20564 s,@AR@,$AR,;t t
20565 s,@ac_ct_AR@,$ac_ct_AR,;t t
20566 s,@RANLIB@,$RANLIB,;t t
20567 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20568 s,@PERL@,$PERL,;t t
20569 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20570 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20571 s,@LIBTOOL@,$LIBTOOL,;t t
20572 s,@SED@,$SED,;t t
20573 s,@EGREP@,$EGREP,;t t
20574 s,@FGREP@,$FGREP,;t t
20575 s,@GREP@,$GREP,;t t
20576 s,@LD@,$LD,;t t
20577 s,@DUMPBIN@,$DUMPBIN,;t t
20578 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20579 s,@NM@,$NM,;t t
20580 s,@LN_S@,$LN_S,;t t
20581 s,@lt_ECHO@,$lt_ECHO,;t t
20582 s,@CPP@,$CPP,;t t
20583 s,@CPPFLAGS@,$CPPFLAGS,;t t
20584 s,@enable_shared@,$enable_shared,;t t
20585 s,@enable_static@,$enable_static,;t t
20586 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20587 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20588 s,@MAINT@,$MAINT,;t t
20589 s,@FC@,$FC,;t t
20590 s,@FCFLAGS@,$FCFLAGS,;t t
20591 s,@LDFLAGS@,$LDFLAGS,;t t
20592 s,@ac_ct_FC@,$ac_ct_FC,;t t
20593 s,@libtool_VERSION@,$libtool_VERSION,;t t
20594 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20595 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20596 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20597 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20598 s,@config_path@,$config_path,;t t
20599 s,@XCFLAGS@,$XCFLAGS,;t t
20600 s,@XLDFLAGS@,$XLDFLAGS,;t t
20601 s,@link_gomp@,$link_gomp,;t t
20602 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20603 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20604 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20605 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20606 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20607 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20608 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20609 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20610 s,@LIBOBJS@,$LIBOBJS,;t t
20611 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20612 CEOF
20613
20614 _ACEOF
20615
20616   cat >>$CONFIG_STATUS <<\_ACEOF
20617   # Split the substitutions into bite-sized pieces for seds with
20618   # small command number limits, like on Digital OSF/1 and HP-UX.
20619   ac_max_sed_lines=48
20620   ac_sed_frag=1 # Number of current file.
20621   ac_beg=1 # First line for current file.
20622   ac_end=$ac_max_sed_lines # Line after last line for current file.
20623   ac_more_lines=:
20624   ac_sed_cmds=
20625   while $ac_more_lines; do
20626     if test $ac_beg -gt 1; then
20627       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20628     else
20629       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20630     fi
20631     if test ! -s $tmp/subs.frag; then
20632       ac_more_lines=false
20633     else
20634       # The purpose of the label and of the branching condition is to
20635       # speed up the sed processing (if there are no `@' at all, there
20636       # is no need to browse any of the substitutions).
20637       # These are the two extra sed commands mentioned above.
20638       (echo ':t
20639   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20640       if test -z "$ac_sed_cmds"; then
20641         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20642       else
20643         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20644       fi
20645       ac_sed_frag=`expr $ac_sed_frag + 1`
20646       ac_beg=$ac_end
20647       ac_end=`expr $ac_end + $ac_max_sed_lines`
20648     fi
20649   done
20650   if test -z "$ac_sed_cmds"; then
20651     ac_sed_cmds=cat
20652   fi
20653 fi # test -n "$CONFIG_FILES"
20654
20655 _ACEOF
20656 cat >>$CONFIG_STATUS <<\_ACEOF
20657 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20658   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20659   case $ac_file in
20660   - | *:- | *:-:* ) # input from stdin
20661         cat >$tmp/stdin
20662         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20663         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20664   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20666   * )   ac_file_in=$ac_file.in ;;
20667   esac
20668
20669   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20670   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20672          X"$ac_file" : 'X\(//\)[^/]' \| \
20673          X"$ac_file" : 'X\(//\)$' \| \
20674          X"$ac_file" : 'X\(/\)' \| \
20675          .     : '\(.\)' 2>/dev/null ||
20676 echo X"$ac_file" |
20677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20678           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20679           /^X\(\/\/\)$/{ s//\1/; q; }
20680           /^X\(\/\).*/{ s//\1/; q; }
20681           s/.*/./; q'`
20682   { if $as_mkdir_p; then
20683     mkdir -p "$ac_dir"
20684   else
20685     as_dir="$ac_dir"
20686     as_dirs=
20687     while test ! -d "$as_dir"; do
20688       as_dirs="$as_dir $as_dirs"
20689       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20691          X"$as_dir" : 'X\(//\)[^/]' \| \
20692          X"$as_dir" : 'X\(//\)$' \| \
20693          X"$as_dir" : 'X\(/\)' \| \
20694          .     : '\(.\)' 2>/dev/null ||
20695 echo X"$as_dir" |
20696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20698           /^X\(\/\/\)$/{ s//\1/; q; }
20699           /^X\(\/\).*/{ s//\1/; q; }
20700           s/.*/./; q'`
20701     done
20702     test ! -n "$as_dirs" || mkdir $as_dirs
20703   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20705    { (exit 1); exit 1; }; }; }
20706
20707   ac_builddir=.
20708
20709 if test "$ac_dir" != .; then
20710   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20711   # A "../" for each directory in $ac_dir_suffix.
20712   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20713 else
20714   ac_dir_suffix= ac_top_builddir=
20715 fi
20716
20717 case $srcdir in
20718   .)  # No --srcdir option.  We are building in place.
20719     ac_srcdir=.
20720     if test -z "$ac_top_builddir"; then
20721        ac_top_srcdir=.
20722     else
20723        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20724     fi ;;
20725   [\\/]* | ?:[\\/]* )  # Absolute path.
20726     ac_srcdir=$srcdir$ac_dir_suffix;
20727     ac_top_srcdir=$srcdir ;;
20728   *) # Relative path.
20729     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20730     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20731 esac
20732
20733 # Do not use `cd foo && pwd` to compute absolute paths, because
20734 # the directories may not exist.
20735 case `pwd` in
20736 .) ac_abs_builddir="$ac_dir";;
20737 *)
20738   case "$ac_dir" in
20739   .) ac_abs_builddir=`pwd`;;
20740   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20741   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20742   esac;;
20743 esac
20744 case $ac_abs_builddir in
20745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20746 *)
20747   case ${ac_top_builddir}. in
20748   .) ac_abs_top_builddir=$ac_abs_builddir;;
20749   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20750   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20751   esac;;
20752 esac
20753 case $ac_abs_builddir in
20754 .) ac_abs_srcdir=$ac_srcdir;;
20755 *)
20756   case $ac_srcdir in
20757   .) ac_abs_srcdir=$ac_abs_builddir;;
20758   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20759   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20760   esac;;
20761 esac
20762 case $ac_abs_builddir in
20763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20764 *)
20765   case $ac_top_srcdir in
20766   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20767   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20768   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20769   esac;;
20770 esac
20771
20772
20773   case $INSTALL in
20774   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20775   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20776   esac
20777
20778   if test x"$ac_file" != x-; then
20779     { echo "$as_me:$LINENO: creating $ac_file" >&5
20780 echo "$as_me: creating $ac_file" >&6;}
20781     rm -f "$ac_file"
20782   fi
20783   # Let's still pretend it is `configure' which instantiates (i.e., don't
20784   # use $as_me), people would be surprised to read:
20785   #    /* config.h.  Generated by config.status.  */
20786   if test x"$ac_file" = x-; then
20787     configure_input=
20788   else
20789     configure_input="$ac_file.  "
20790   fi
20791   configure_input=$configure_input"Generated from `echo $ac_file_in |
20792                                      sed 's,.*/,,'` by configure."
20793
20794   # First look for the input files in the build tree, otherwise in the
20795   # src tree.
20796   ac_file_inputs=`IFS=:
20797     for f in $ac_file_in; do
20798       case $f in
20799       -) echo $tmp/stdin ;;
20800       [\\/$]*)
20801          # Absolute (can't be DOS-style, as IFS=:)
20802          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20803 echo "$as_me: error: cannot find input file: $f" >&2;}
20804    { (exit 1); exit 1; }; }
20805          echo "$f";;
20806       *) # Relative
20807          if test -f "$f"; then
20808            # Build tree
20809            echo "$f"
20810          elif test -f "$srcdir/$f"; then
20811            # Source tree
20812            echo "$srcdir/$f"
20813          else
20814            # /dev/null tree
20815            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20816 echo "$as_me: error: cannot find input file: $f" >&2;}
20817    { (exit 1); exit 1; }; }
20818          fi;;
20819       esac
20820     done` || { (exit 1); exit 1; }
20821 _ACEOF
20822 cat >>$CONFIG_STATUS <<_ACEOF
20823   sed "$ac_vpsub
20824 $extrasub
20825 _ACEOF
20826 cat >>$CONFIG_STATUS <<\_ACEOF
20827 :t
20828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20829 s,@configure_input@,$configure_input,;t t
20830 s,@srcdir@,$ac_srcdir,;t t
20831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20832 s,@top_srcdir@,$ac_top_srcdir,;t t
20833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20834 s,@builddir@,$ac_builddir,;t t
20835 s,@abs_builddir@,$ac_abs_builddir,;t t
20836 s,@top_builddir@,$ac_top_builddir,;t t
20837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20838 s,@INSTALL@,$ac_INSTALL,;t t
20839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20840   rm -f $tmp/stdin
20841   if test x"$ac_file" != x-; then
20842     mv $tmp/out $ac_file
20843   else
20844     cat $tmp/out
20845     rm -f $tmp/out
20846   fi
20847
20848 done
20849 _ACEOF
20850 cat >>$CONFIG_STATUS <<\_ACEOF
20851
20852 #
20853 # CONFIG_HEADER section.
20854 #
20855
20856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20858 #
20859 # ac_d sets the value in "#define NAME VALUE" lines.
20860 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20861 ac_dB='[         ].*$,\1#\2'
20862 ac_dC=' '
20863 ac_dD=',;t'
20864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20865 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20866 ac_uB='$,\1#\2define\3'
20867 ac_uC=' '
20868 ac_uD=',;t'
20869
20870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20871   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20872   case $ac_file in
20873   - | *:- | *:-:* ) # input from stdin
20874         cat >$tmp/stdin
20875         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20876         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20877   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20878         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20879   * )   ac_file_in=$ac_file.in ;;
20880   esac
20881
20882   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20883 echo "$as_me: creating $ac_file" >&6;}
20884
20885   # First look for the input files in the build tree, otherwise in the
20886   # src tree.
20887   ac_file_inputs=`IFS=:
20888     for f in $ac_file_in; do
20889       case $f in
20890       -) echo $tmp/stdin ;;
20891       [\\/$]*)
20892          # Absolute (can't be DOS-style, as IFS=:)
20893          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20894 echo "$as_me: error: cannot find input file: $f" >&2;}
20895    { (exit 1); exit 1; }; }
20896          # Do quote $f, to prevent DOS paths from being IFS'd.
20897          echo "$f";;
20898       *) # Relative
20899          if test -f "$f"; then
20900            # Build tree
20901            echo "$f"
20902          elif test -f "$srcdir/$f"; then
20903            # Source tree
20904            echo "$srcdir/$f"
20905          else
20906            # /dev/null tree
20907            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20908 echo "$as_me: error: cannot find input file: $f" >&2;}
20909    { (exit 1); exit 1; }; }
20910          fi;;
20911       esac
20912     done` || { (exit 1); exit 1; }
20913   # Remove the trailing spaces.
20914   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20915
20916 _ACEOF
20917
20918 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20919 # `conftest.undefs', that substitutes the proper values into
20920 # config.h.in to produce config.h.  The first handles `#define'
20921 # templates, and the second `#undef' templates.
20922 # And first: Protect against being on the right side of a sed subst in
20923 # config.status.  Protect against being in an unquoted here document
20924 # in config.status.
20925 rm -f conftest.defines conftest.undefs
20926 # Using a here document instead of a string reduces the quoting nightmare.
20927 # Putting comments in sed scripts is not portable.
20928 #
20929 # `end' is used to avoid that the second main sed command (meant for
20930 # 0-ary CPP macros) applies to n-ary macro definitions.
20931 # See the Autoconf documentation for `clear'.
20932 cat >confdef2sed.sed <<\_ACEOF
20933 s/[\\&,]/\\&/g
20934 s,[\\$`],\\&,g
20935 t clear
20936 : clear
20937 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20938 t end
20939 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20940 : end
20941 _ACEOF
20942 # If some macros were called several times there might be several times
20943 # the same #defines, which is useless.  Nevertheless, we may not want to
20944 # sort them, since we want the *last* AC-DEFINE to be honored.
20945 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20946 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20947 rm -f confdef2sed.sed
20948
20949 # This sed command replaces #undef with comments.  This is necessary, for
20950 # example, in the case of _POSIX_SOURCE, which is predefined and required
20951 # on some systems where configure will not decide to define it.
20952 cat >>conftest.undefs <<\_ACEOF
20953 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20954 _ACEOF
20955
20956 # Break up conftest.defines because some shells have a limit on the size
20957 # of here documents, and old seds have small limits too (100 cmds).
20958 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20959 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20960 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20961 echo '  :' >>$CONFIG_STATUS
20962 rm -f conftest.tail
20963 while grep . conftest.defines >/dev/null
20964 do
20965   # Write a limited-size here document to $tmp/defines.sed.
20966   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20967   # Speed up: don't consider the non `#define' lines.
20968   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20969   # Work around the forget-to-reset-the-flag bug.
20970   echo 't clr' >>$CONFIG_STATUS
20971   echo ': clr' >>$CONFIG_STATUS
20972   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20973   echo 'CEOF
20974   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20975   rm -f $tmp/in
20976   mv $tmp/out $tmp/in
20977 ' >>$CONFIG_STATUS
20978   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20979   rm -f conftest.defines
20980   mv conftest.tail conftest.defines
20981 done
20982 rm -f conftest.defines
20983 echo '  fi # grep' >>$CONFIG_STATUS
20984 echo >>$CONFIG_STATUS
20985
20986 # Break up conftest.undefs because some shells have a limit on the size
20987 # of here documents, and old seds have small limits too (100 cmds).
20988 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20989 rm -f conftest.tail
20990 while grep . conftest.undefs >/dev/null
20991 do
20992   # Write a limited-size here document to $tmp/undefs.sed.
20993   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20994   # Speed up: don't consider the non `#undef'
20995   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20996   # Work around the forget-to-reset-the-flag bug.
20997   echo 't clr' >>$CONFIG_STATUS
20998   echo ': clr' >>$CONFIG_STATUS
20999   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21000   echo 'CEOF
21001   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21002   rm -f $tmp/in
21003   mv $tmp/out $tmp/in
21004 ' >>$CONFIG_STATUS
21005   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21006   rm -f conftest.undefs
21007   mv conftest.tail conftest.undefs
21008 done
21009 rm -f conftest.undefs
21010
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21012   # Let's still pretend it is `configure' which instantiates (i.e., don't
21013   # use $as_me), people would be surprised to read:
21014   #    /* config.h.  Generated by config.status.  */
21015   if test x"$ac_file" = x-; then
21016     echo "/* Generated by configure.  */" >$tmp/config.h
21017   else
21018     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21019   fi
21020   cat $tmp/in >>$tmp/config.h
21021   rm -f $tmp/in
21022   if test x"$ac_file" != x-; then
21023     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21024       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21025 echo "$as_me: $ac_file is unchanged" >&6;}
21026     else
21027       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21029          X"$ac_file" : 'X\(//\)[^/]' \| \
21030          X"$ac_file" : 'X\(//\)$' \| \
21031          X"$ac_file" : 'X\(/\)' \| \
21032          .     : '\(.\)' 2>/dev/null ||
21033 echo X"$ac_file" |
21034     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21035           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21036           /^X\(\/\/\)$/{ s//\1/; q; }
21037           /^X\(\/\).*/{ s//\1/; q; }
21038           s/.*/./; q'`
21039       { if $as_mkdir_p; then
21040     mkdir -p "$ac_dir"
21041   else
21042     as_dir="$ac_dir"
21043     as_dirs=
21044     while test ! -d "$as_dir"; do
21045       as_dirs="$as_dir $as_dirs"
21046       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048          X"$as_dir" : 'X\(//\)[^/]' \| \
21049          X"$as_dir" : 'X\(//\)$' \| \
21050          X"$as_dir" : 'X\(/\)' \| \
21051          .     : '\(.\)' 2>/dev/null ||
21052 echo X"$as_dir" |
21053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21054           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21055           /^X\(\/\/\)$/{ s//\1/; q; }
21056           /^X\(\/\).*/{ s//\1/; q; }
21057           s/.*/./; q'`
21058     done
21059     test ! -n "$as_dirs" || mkdir $as_dirs
21060   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21062    { (exit 1); exit 1; }; }; }
21063
21064       rm -f $ac_file
21065       mv $tmp/config.h $ac_file
21066     fi
21067   else
21068     cat $tmp/config.h
21069     rm -f $tmp/config.h
21070   fi
21071 # Compute $ac_file's index in $config_headers.
21072 _am_stamp_count=1
21073 for _am_header in $config_headers :; do
21074   case $_am_header in
21075     $ac_file | $ac_file:* )
21076       break ;;
21077     * )
21078       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21079   esac
21080 done
21081 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21082 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21083          X$ac_file : 'X\(//\)[^/]' \| \
21084          X$ac_file : 'X\(//\)$' \| \
21085          X$ac_file : 'X\(/\)' \| \
21086          .     : '\(.\)' 2>/dev/null ||
21087 echo X$ac_file |
21088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21089           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21090           /^X\(\/\/\)$/{ s//\1/; q; }
21091           /^X\(\/\).*/{ s//\1/; q; }
21092           s/.*/./; q'`/stamp-h$_am_stamp_count
21093 done
21094 _ACEOF
21095 cat >>$CONFIG_STATUS <<\_ACEOF
21096
21097 #
21098 # CONFIG_COMMANDS section.
21099 #
21100 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21101   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21102   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21103   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21104 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21105          X"$ac_dest" : 'X\(//\)[^/]' \| \
21106          X"$ac_dest" : 'X\(//\)$' \| \
21107          X"$ac_dest" : 'X\(/\)' \| \
21108          .     : '\(.\)' 2>/dev/null ||
21109 echo X"$ac_dest" |
21110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21111           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21112           /^X\(\/\/\)$/{ s//\1/; q; }
21113           /^X\(\/\).*/{ s//\1/; q; }
21114           s/.*/./; q'`
21115   { if $as_mkdir_p; then
21116     mkdir -p "$ac_dir"
21117   else
21118     as_dir="$ac_dir"
21119     as_dirs=
21120     while test ! -d "$as_dir"; do
21121       as_dirs="$as_dir $as_dirs"
21122       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21124          X"$as_dir" : 'X\(//\)[^/]' \| \
21125          X"$as_dir" : 'X\(//\)$' \| \
21126          X"$as_dir" : 'X\(/\)' \| \
21127          .     : '\(.\)' 2>/dev/null ||
21128 echo X"$as_dir" |
21129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21131           /^X\(\/\/\)$/{ s//\1/; q; }
21132           /^X\(\/\).*/{ s//\1/; q; }
21133           s/.*/./; q'`
21134     done
21135     test ! -n "$as_dirs" || mkdir $as_dirs
21136   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21138    { (exit 1); exit 1; }; }; }
21139
21140   ac_builddir=.
21141
21142 if test "$ac_dir" != .; then
21143   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21144   # A "../" for each directory in $ac_dir_suffix.
21145   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21146 else
21147   ac_dir_suffix= ac_top_builddir=
21148 fi
21149
21150 case $srcdir in
21151   .)  # No --srcdir option.  We are building in place.
21152     ac_srcdir=.
21153     if test -z "$ac_top_builddir"; then
21154        ac_top_srcdir=.
21155     else
21156        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21157     fi ;;
21158   [\\/]* | ?:[\\/]* )  # Absolute path.
21159     ac_srcdir=$srcdir$ac_dir_suffix;
21160     ac_top_srcdir=$srcdir ;;
21161   *) # Relative path.
21162     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21163     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21164 esac
21165
21166 # Do not use `cd foo && pwd` to compute absolute paths, because
21167 # the directories may not exist.
21168 case `pwd` in
21169 .) ac_abs_builddir="$ac_dir";;
21170 *)
21171   case "$ac_dir" in
21172   .) ac_abs_builddir=`pwd`;;
21173   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21174   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21175   esac;;
21176 esac
21177 case $ac_abs_builddir in
21178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21179 *)
21180   case ${ac_top_builddir}. in
21181   .) ac_abs_top_builddir=$ac_abs_builddir;;
21182   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21183   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21184   esac;;
21185 esac
21186 case $ac_abs_builddir in
21187 .) ac_abs_srcdir=$ac_srcdir;;
21188 *)
21189   case $ac_srcdir in
21190   .) ac_abs_srcdir=$ac_abs_builddir;;
21191   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21192   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21193   esac;;
21194 esac
21195 case $ac_abs_builddir in
21196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21197 *)
21198   case $ac_top_srcdir in
21199   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21200   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21201   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21202   esac;;
21203 esac
21204
21205
21206   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21207 echo "$as_me: executing $ac_dest commands" >&6;}
21208   case $ac_dest in
21209     default-1 )
21210 # Only add multilib support code if we just rebuilt the top-level
21211 # Makefile.
21212 case " $CONFIG_FILES " in
21213  *" Makefile "*)
21214    ac_file=Makefile . ${multi_basedir}/config-ml.in
21215    ;;
21216 esac ;;
21217     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21218   # Strip MF so we end up with the name of the file.
21219   mf=`echo "$mf" | sed -e 's/:.*$//'`
21220   # Check whether this is an Automake generated Makefile or not.
21221   # We used to match only the files named `Makefile.in', but
21222   # some people rename them; so instead we look at the file content.
21223   # Grep'ing the first line is not enough: some people post-process
21224   # each Makefile.in and add a new line on top of each file to say so.
21225   # So let's grep whole file.
21226   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21227     dirpart=`(dirname "$mf") 2>/dev/null ||
21228 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21229          X"$mf" : 'X\(//\)[^/]' \| \
21230          X"$mf" : 'X\(//\)$' \| \
21231          X"$mf" : 'X\(/\)' \| \
21232          .     : '\(.\)' 2>/dev/null ||
21233 echo X"$mf" |
21234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21235           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21236           /^X\(\/\/\)$/{ s//\1/; q; }
21237           /^X\(\/\).*/{ s//\1/; q; }
21238           s/.*/./; q'`
21239   else
21240     continue
21241   fi
21242   # Extract the definition of DEPDIR, am__include, and am__quote
21243   # from the Makefile without running `make'.
21244   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21245   test -z "$DEPDIR" && continue
21246   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21247   test -z "am__include" && continue
21248   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21249   # When using ansi2knr, U may be empty or an underscore; expand it
21250   U=`sed -n 's/^U = //p' < "$mf"`
21251   # Find all dependency output files, they are included files with
21252   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21253   # simplest approach to changing $(DEPDIR) to its actual value in the
21254   # expansion.
21255   for file in `sed -n "
21256     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21257        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21258     # Make sure the directory exists.
21259     test -f "$dirpart/$file" && continue
21260     fdir=`(dirname "$file") 2>/dev/null ||
21261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262          X"$file" : 'X\(//\)[^/]' \| \
21263          X"$file" : 'X\(//\)$' \| \
21264          X"$file" : 'X\(/\)' \| \
21265          .     : '\(.\)' 2>/dev/null ||
21266 echo X"$file" |
21267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21269           /^X\(\/\/\)$/{ s//\1/; q; }
21270           /^X\(\/\).*/{ s//\1/; q; }
21271           s/.*/./; q'`
21272     { if $as_mkdir_p; then
21273     mkdir -p $dirpart/$fdir
21274   else
21275     as_dir=$dirpart/$fdir
21276     as_dirs=
21277     while test ! -d "$as_dir"; do
21278       as_dirs="$as_dir $as_dirs"
21279       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21281          X"$as_dir" : 'X\(//\)[^/]' \| \
21282          X"$as_dir" : 'X\(//\)$' \| \
21283          X"$as_dir" : 'X\(/\)' \| \
21284          .     : '\(.\)' 2>/dev/null ||
21285 echo X"$as_dir" |
21286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21287           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21288           /^X\(\/\/\)$/{ s//\1/; q; }
21289           /^X\(\/\).*/{ s//\1/; q; }
21290           s/.*/./; q'`
21291     done
21292     test ! -n "$as_dirs" || mkdir $as_dirs
21293   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21294 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21295    { (exit 1); exit 1; }; }; }
21296
21297     # echo "creating $dirpart/$file"
21298     echo '# dummy' > "$dirpart/$file"
21299   done
21300 done
21301  ;;
21302     libtool )
21303
21304     # See if we are running on zsh, and set the options which allow our
21305     # commands through without removal of \ escapes.
21306     if test -n "${ZSH_VERSION+set}" ; then
21307       setopt NO_GLOB_SUBST
21308     fi
21309
21310     cfgfile="${ofile}T"
21311     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21312     $RM "$cfgfile"
21313
21314     cat <<_LT_EOF >> "$cfgfile"
21315 #! $SHELL
21316
21317 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21318 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21319 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21320 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21321 #
21322 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21323 # 2006, 2007 Free Software Foundation, Inc.
21324 #
21325 # This file is part of GNU Libtool:
21326 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21327 #
21328 # This program is free software; you can redistribute it and/or modify
21329 # it under the terms of the GNU General Public License as published by
21330 # the Free Software Foundation; either version 2 of the License, or
21331 # (at your option) any later version.
21332 #
21333 # This program is distributed in the hope that it will be useful, but
21334 # WITHOUT ANY WARRANTY; without even the implied warranty of
21335 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21336 # General Public License for more details.
21337 #
21338 # You should have received a copy of the GNU General Public License
21339 # along with this program; if not, a copy can be downloaded from
21340 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21341 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21342 # MA 02110-1301, USA.
21343 #
21344 # As a special exception to the GNU General Public License, if you
21345 # distribute this file as part of a program that contains a
21346 # configuration script generated by Autoconf, you may include it under
21347 # the same distribution terms that you use for the rest of that program.
21348
21349
21350 # The names of the tagged configurations supported by this script.
21351 available_tags="FC "
21352
21353 # ### BEGIN LIBTOOL CONFIG
21354
21355 # Which release of libtool.m4 was used?
21356 macro_version=$macro_version
21357 macro_revision=$macro_revision
21358
21359 # Whether or not to build shared libraries.
21360 build_libtool_libs=$enable_shared
21361
21362 # Whether or not to build static libraries.
21363 build_old_libs=$enable_static
21364
21365 # What type of objects to build.
21366 pic_mode=$pic_mode
21367
21368 # Whether or not to optimize for fast installation.
21369 fast_install=$enable_fast_install
21370
21371 # The host system.
21372 host_alias=$host_alias
21373 host=$host
21374 host_os=$host_os
21375
21376 # The build system.
21377 build_alias=$build_alias
21378 build=$build
21379 build_os=$build_os
21380
21381 # A sed program that does not truncate output.
21382 SED=$lt_SED
21383
21384 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21385 Xsed="\$SED -e 1s/^X//"
21386
21387 # A grep program that handles long lines.
21388 GREP=$lt_GREP
21389
21390 # An ERE matcher.
21391 EGREP=$lt_EGREP
21392
21393 # A literal string matcher.
21394 FGREP=$lt_FGREP
21395
21396 # A BSD- or MS-compatible name lister.
21397 NM=$lt_NM
21398
21399 # Whether we need soft or hard links.
21400 LN_S=$lt_LN_S
21401
21402 # What is the maximum length of a command?
21403 max_cmd_len=$max_cmd_len
21404
21405 # Object file suffix (normally "o").
21406 objext=$ac_objext
21407
21408 # Executable file suffix (normally "").
21409 exeext=$exeext
21410
21411 # whether the shell understands "unset".
21412 lt_unset=$lt_unset
21413
21414 # turn spaces into newlines.
21415 SP2NL=$lt_lt_SP2NL
21416
21417 # turn newlines into spaces.
21418 NL2SP=$lt_lt_NL2SP
21419
21420 # How to create reloadable object files.
21421 reload_flag=$lt_reload_flag
21422 reload_cmds=$lt_reload_cmds
21423
21424 # Method to check whether dependent libraries are shared objects.
21425 deplibs_check_method=$lt_deplibs_check_method
21426
21427 # Command to use when deplibs_check_method == "file_magic".
21428 file_magic_cmd=$lt_file_magic_cmd
21429
21430 # The archiver.
21431 AR=$lt_AR
21432 AR_FLAGS=$lt_AR_FLAGS
21433
21434 # A symbol stripping program.
21435 STRIP=$lt_STRIP
21436
21437 # Commands used to install an old-style archive.
21438 RANLIB=$lt_RANLIB
21439 old_postinstall_cmds=$lt_old_postinstall_cmds
21440 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21441
21442 # A C compiler.
21443 LTCC=$lt_CC
21444
21445 # LTCC compiler flags.
21446 LTCFLAGS=$lt_CFLAGS
21447
21448 # Take the output of nm and produce a listing of raw symbols and C names.
21449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21450
21451 # Transform the output of nm in a proper C declaration.
21452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21453
21454 # Transform the output of nm in a C name address pair.
21455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21456
21457 # The name of the directory that contains temporary libtool files.
21458 objdir=$objdir
21459
21460 # Shell to use when invoking shell scripts.
21461 SHELL=$lt_SHELL
21462
21463 # An echo program that does not interpret backslashes.
21464 ECHO=$lt_ECHO
21465
21466 # Used to examine libraries when file_magic_cmd begins with "file".
21467 MAGIC_CMD=$MAGIC_CMD
21468
21469 # Must we lock files when doing compilation?
21470 need_locks=$lt_need_locks
21471
21472 # Old archive suffix (normally "a").
21473 libext=$libext
21474
21475 # Shared library suffix (normally ".so").
21476 shrext_cmds=$lt_shrext_cmds
21477
21478 # The commands to extract the exported symbol list from a shared archive.
21479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21480
21481 # Variables whose values should be saved in libtool wrapper scripts and
21482 # restored at link time.
21483 variables_saved_for_relink=$lt_variables_saved_for_relink
21484
21485 # Do we need the "lib" prefix for modules?
21486 need_lib_prefix=$need_lib_prefix
21487
21488 # Do we need a version for libraries?
21489 need_version=$need_version
21490
21491 # Library versioning type.
21492 version_type=$version_type
21493
21494 # Shared library runtime path variable.
21495 runpath_var=$runpath_var
21496
21497 # Shared library path variable.
21498 shlibpath_var=$shlibpath_var
21499
21500 # Is shlibpath searched before the hard-coded library search path?
21501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21502
21503 # Format of library name prefix.
21504 libname_spec=$lt_libname_spec
21505
21506 # List of archive names.  First name is the real one, the rest are links.
21507 # The last name is the one that the linker finds with -lNAME
21508 library_names_spec=$lt_library_names_spec
21509
21510 # The coded name of the library, if different from the real name.
21511 soname_spec=$lt_soname_spec
21512
21513 # Command to use after installation of a shared archive.
21514 postinstall_cmds=$lt_postinstall_cmds
21515
21516 # Command to use after uninstallation of a shared archive.
21517 postuninstall_cmds=$lt_postuninstall_cmds
21518
21519 # Commands used to finish a libtool library installation in a directory.
21520 finish_cmds=$lt_finish_cmds
21521
21522 # As "finish_cmds", except a single script fragment to be evaled but
21523 # not shown.
21524 finish_eval=$lt_finish_eval
21525
21526 # Whether we should hardcode library paths into libraries.
21527 hardcode_into_libs=$hardcode_into_libs
21528
21529 # Compile-time system search path for libraries.
21530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21531
21532 # Run-time system search path for libraries.
21533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21534
21535 # Whether dlopen is supported.
21536 dlopen_support=$enable_dlopen
21537
21538 # Whether dlopen of programs is supported.
21539 dlopen_self=$enable_dlopen_self
21540
21541 # Whether dlopen of statically linked programs is supported.
21542 dlopen_self_static=$enable_dlopen_self_static
21543
21544 # Commands to strip libraries.
21545 old_striplib=$lt_old_striplib
21546 striplib=$lt_striplib
21547
21548
21549 # The linker used to build libraries.
21550 LD=$lt_LD
21551
21552 # Commands used to build an old-style archive.
21553 old_archive_cmds=$lt_old_archive_cmds
21554
21555 # A language specific compiler.
21556 CC=$lt_compiler
21557
21558 # Is the compiler the GNU compiler?
21559 with_gcc=$GCC
21560
21561 # Compiler flag to turn off builtin functions.
21562 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21563
21564 # How to pass a linker flag through the compiler.
21565 wl=$lt_lt_prog_compiler_wl
21566
21567 # Additional compiler flags for building library objects.
21568 pic_flag=$lt_lt_prog_compiler_pic
21569
21570 # Compiler flag to prevent dynamic linking.
21571 link_static_flag=$lt_lt_prog_compiler_static
21572
21573 # Does compiler simultaneously support -c and -o options?
21574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21575
21576 # Whether or not to add -lc for building shared libraries.
21577 build_libtool_need_lc=$archive_cmds_need_lc
21578
21579 # Whether or not to disallow shared libs when runtime libs are static.
21580 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21581
21582 # Compiler flag to allow reflexive dlopens.
21583 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21584
21585 # Compiler flag to generate shared objects directly from archives.
21586 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21587
21588 # Whether the compiler copes with passing no objects directly.
21589 compiler_needs_object=$lt_compiler_needs_object
21590
21591 # Create an old-style archive from a shared archive.
21592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21593
21594 # Create a temporary old-style archive to link instead of a shared archive.
21595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21596
21597 # Commands used to build a shared archive.
21598 archive_cmds=$lt_archive_cmds
21599 archive_expsym_cmds=$lt_archive_expsym_cmds
21600
21601 # Commands used to build a loadable module if different from building
21602 # a shared archive.
21603 module_cmds=$lt_module_cmds
21604 module_expsym_cmds=$lt_module_expsym_cmds
21605
21606 # Whether we are building with GNU ld or not.
21607 with_gnu_ld=$lt_with_gnu_ld
21608
21609 # Flag that allows shared libraries with undefined symbols to be built.
21610 allow_undefined_flag=$lt_allow_undefined_flag
21611
21612 # Flag that enforces no undefined symbols.
21613 no_undefined_flag=$lt_no_undefined_flag
21614
21615 # Flag to hardcode \$libdir into a binary during linking.
21616 # This must work even if \$libdir does not exist
21617 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21618
21619 # If ld is used when linking, flag to hardcode \$libdir into a binary
21620 # during linking.  This must work even if \$libdir does not exist.
21621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21622
21623 # Whether we need a single "-rpath" flag with a separated argument.
21624 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21625
21626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21627 # DIR into the resulting binary.
21628 hardcode_direct=$hardcode_direct
21629
21630 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21631 # DIR into the resulting binary and the resulting library dependency is
21632 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21633 # library is relocated.
21634 hardcode_direct_absolute=$hardcode_direct_absolute
21635
21636 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21637 # into the resulting binary.
21638 hardcode_minus_L=$hardcode_minus_L
21639
21640 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21641 # into the resulting binary.
21642 hardcode_shlibpath_var=$hardcode_shlibpath_var
21643
21644 # Set to "yes" if building a shared library automatically hardcodes DIR
21645 # into the library and all subsequent libraries and executables linked
21646 # against it.
21647 hardcode_automatic=$hardcode_automatic
21648
21649 # Set to yes if linker adds runtime paths of dependent libraries
21650 # to runtime path list.
21651 inherit_rpath=$inherit_rpath
21652
21653 # Whether libtool must link a program against all its dependency libraries.
21654 link_all_deplibs=$link_all_deplibs
21655
21656 # Fix the shell variable \$srcfile for the compiler.
21657 fix_srcfile_path=$lt_fix_srcfile_path
21658
21659 # Set to "yes" if exported symbols are required.
21660 always_export_symbols=$always_export_symbols
21661
21662 # The commands to list exported symbols.
21663 export_symbols_cmds=$lt_export_symbols_cmds
21664
21665 # Symbols that should not be listed in the preloaded symbols.
21666 exclude_expsyms=$lt_exclude_expsyms
21667
21668 # Symbols that must always be exported.
21669 include_expsyms=$lt_include_expsyms
21670
21671 # Commands necessary for linking programs (against libraries) with templates.
21672 prelink_cmds=$lt_prelink_cmds
21673
21674 # Specify filename containing input files.
21675 file_list_spec=$lt_file_list_spec
21676
21677 # How to hardcode a shared library path into an executable.
21678 hardcode_action=$hardcode_action
21679
21680 # Dependencies to place before and after the objects being linked to
21681 # create a shared library.
21682 predep_objects=$lt_predep_objects
21683 postdep_objects=$lt_postdep_objects
21684 predeps=$lt_predeps
21685 postdeps=$lt_postdeps
21686
21687 # The library search path used internally by the compiler when linking
21688 # a shared library.
21689 compiler_lib_search_path=$lt_compiler_lib_search_path
21690
21691 # ### END LIBTOOL CONFIG
21692
21693 _LT_EOF
21694
21695   case $host_os in
21696   aix3*)
21697     cat <<\_LT_EOF >> "$cfgfile"
21698 # AIX sometimes has problems with the GCC collect2 program.  For some
21699 # reason, if we set the COLLECT_NAMES environment variable, the problems
21700 # vanish in a puff of smoke.
21701 if test "X${COLLECT_NAMES+set}" != Xset; then
21702   COLLECT_NAMES=
21703   export COLLECT_NAMES
21704 fi
21705 _LT_EOF
21706     ;;
21707   esac
21708
21709
21710 ltmain="$ac_aux_dir/ltmain.sh"
21711
21712
21713   # We use sed instead of cat because bash on DJGPP gets confused if
21714   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21715   # text mode, it properly converts lines to CR/LF.  This bash problem
21716   # is reportedly fixed, but why not run on old versions too?
21717   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21718     || (rm -f "$cfgfile"; exit 1)
21719
21720   case $xsi_shell in
21721   yes)
21722     cat << \_LT_EOF >> "$cfgfile"
21723 # func_dirname file append nondir_replacement
21724 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21725 # otherwise set result to NONDIR_REPLACEMENT.
21726 func_dirname ()
21727 {
21728   case ${1} in
21729     */*) func_dirname_result="${1%/*}${2}" ;;
21730     *  ) func_dirname_result="${3}" ;;
21731   esac
21732 }
21733
21734 # func_basename file
21735 func_basename ()
21736 {
21737   func_basename_result="${1##*/}"
21738 }
21739
21740 # func_stripname prefix suffix name
21741 # strip PREFIX and SUFFIX off of NAME.
21742 # PREFIX and SUFFIX must not contain globbing or regex special
21743 # characters, hashes, percent signs, but SUFFIX may contain a leading
21744 # dot (in which case that matches only a dot).
21745 func_stripname ()
21746 {
21747   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21748   # positional parameters, so assign one to ordinary parameter first.
21749   func_stripname_result=${3}
21750   func_stripname_result=${func_stripname_result#"${1}"}
21751   func_stripname_result=${func_stripname_result%"${2}"}
21752 }
21753
21754 # func_opt_split
21755 func_opt_split ()
21756 {
21757   func_opt_split_opt=${1%%=*}
21758   func_opt_split_arg=${1#*=}
21759 }
21760
21761 # func_lo2o object
21762 func_lo2o ()
21763 {
21764   case ${1} in
21765     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21766     *)    func_lo2o_result=${1} ;;
21767   esac
21768 }
21769 _LT_EOF
21770     ;;
21771   *) # Bourne compatible functions.
21772     cat << \_LT_EOF >> "$cfgfile"
21773 # func_dirname file append nondir_replacement
21774 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21775 # otherwise set result to NONDIR_REPLACEMENT.
21776 func_dirname ()
21777 {
21778   # Extract subdirectory from the argument.
21779   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21780   if test "X$func_dirname_result" = "X${1}"; then
21781     func_dirname_result="${3}"
21782   else
21783     func_dirname_result="$func_dirname_result${2}"
21784   fi
21785 }
21786
21787 # func_basename file
21788 func_basename ()
21789 {
21790   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21791 }
21792
21793 # func_stripname prefix suffix name
21794 # strip PREFIX and SUFFIX off of NAME.
21795 # PREFIX and SUFFIX must not contain globbing or regex special
21796 # characters, hashes, percent signs, but SUFFIX may contain a leading
21797 # dot (in which case that matches only a dot).
21798 # func_strip_suffix prefix name
21799 func_stripname ()
21800 {
21801   case ${2} in
21802     .*) func_stripname_result=`$ECHO "X${3}" \
21803            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21804     *)  func_stripname_result=`$ECHO "X${3}" \
21805            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21806   esac
21807 }
21808
21809 # sed scripts:
21810 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21811 my_sed_long_arg='1s/^-[^=]*=//'
21812
21813 # func_opt_split
21814 func_opt_split ()
21815 {
21816   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21817   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21818 }
21819
21820 # func_lo2o object
21821 func_lo2o ()
21822 {
21823   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21824 }
21825 _LT_EOF
21826 esac
21827
21828 case $lt_shell_append in
21829   yes)
21830     cat << \_LT_EOF >> "$cfgfile"
21831
21832 # func_append var value
21833 # Append VALUE to the end of shell variable VAR.
21834 func_append ()
21835 {
21836   eval "$1+=\$2"
21837 }
21838 _LT_EOF
21839     ;;
21840   *)
21841     cat << \_LT_EOF >> "$cfgfile"
21842
21843 # func_append var value
21844 # Append VALUE to the end of shell variable VAR.
21845 func_append ()
21846 {
21847   eval "$1=\$$1\$2"
21848 }
21849 _LT_EOF
21850     ;;
21851   esac
21852
21853
21854   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21855     || (rm -f "$cfgfile"; exit 1)
21856
21857   mv -f "$cfgfile" "$ofile" ||
21858     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21859   chmod +x "$ofile"
21860
21861
21862     cat <<_LT_EOF >> "$ofile"
21863
21864 # ### BEGIN LIBTOOL TAG CONFIG: FC
21865
21866 # The linker used to build libraries.
21867 LD=$lt_LD_FC
21868
21869 # Commands used to build an old-style archive.
21870 old_archive_cmds=$lt_old_archive_cmds_FC
21871
21872 # A language specific compiler.
21873 CC=$lt_compiler_FC
21874
21875 # Is the compiler the GNU compiler?
21876 with_gcc=$GCC_FC
21877
21878 # Compiler flag to turn off builtin functions.
21879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21880
21881 # How to pass a linker flag through the compiler.
21882 wl=$lt_lt_prog_compiler_wl_FC
21883
21884 # Additional compiler flags for building library objects.
21885 pic_flag=$lt_lt_prog_compiler_pic_FC
21886
21887 # Compiler flag to prevent dynamic linking.
21888 link_static_flag=$lt_lt_prog_compiler_static_FC
21889
21890 # Does compiler simultaneously support -c and -o options?
21891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21892
21893 # Whether or not to add -lc for building shared libraries.
21894 build_libtool_need_lc=$archive_cmds_need_lc_FC
21895
21896 # Whether or not to disallow shared libs when runtime libs are static.
21897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21898
21899 # Compiler flag to allow reflexive dlopens.
21900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21901
21902 # Compiler flag to generate shared objects directly from archives.
21903 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21904
21905 # Whether the compiler copes with passing no objects directly.
21906 compiler_needs_object=$lt_compiler_needs_object_FC
21907
21908 # Create an old-style archive from a shared archive.
21909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21910
21911 # Create a temporary old-style archive to link instead of a shared archive.
21912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21913
21914 # Commands used to build a shared archive.
21915 archive_cmds=$lt_archive_cmds_FC
21916 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21917
21918 # Commands used to build a loadable module if different from building
21919 # a shared archive.
21920 module_cmds=$lt_module_cmds_FC
21921 module_expsym_cmds=$lt_module_expsym_cmds_FC
21922
21923 # Whether we are building with GNU ld or not.
21924 with_gnu_ld=$lt_with_gnu_ld_FC
21925
21926 # Flag that allows shared libraries with undefined symbols to be built.
21927 allow_undefined_flag=$lt_allow_undefined_flag_FC
21928
21929 # Flag that enforces no undefined symbols.
21930 no_undefined_flag=$lt_no_undefined_flag_FC
21931
21932 # Flag to hardcode \$libdir into a binary during linking.
21933 # This must work even if \$libdir does not exist
21934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21935
21936 # If ld is used when linking, flag to hardcode \$libdir into a binary
21937 # during linking.  This must work even if \$libdir does not exist.
21938 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21939
21940 # Whether we need a single "-rpath" flag with a separated argument.
21941 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21942
21943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21944 # DIR into the resulting binary.
21945 hardcode_direct=$hardcode_direct_FC
21946
21947 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21948 # DIR into the resulting binary and the resulting library dependency is
21949 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21950 # library is relocated.
21951 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21952
21953 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21954 # into the resulting binary.
21955 hardcode_minus_L=$hardcode_minus_L_FC
21956
21957 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21958 # into the resulting binary.
21959 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21960
21961 # Set to "yes" if building a shared library automatically hardcodes DIR
21962 # into the library and all subsequent libraries and executables linked
21963 # against it.
21964 hardcode_automatic=$hardcode_automatic_FC
21965
21966 # Set to yes if linker adds runtime paths of dependent libraries
21967 # to runtime path list.
21968 inherit_rpath=$inherit_rpath_FC
21969
21970 # Whether libtool must link a program against all its dependency libraries.
21971 link_all_deplibs=$link_all_deplibs_FC
21972
21973 # Fix the shell variable \$srcfile for the compiler.
21974 fix_srcfile_path=$lt_fix_srcfile_path_FC
21975
21976 # Set to "yes" if exported symbols are required.
21977 always_export_symbols=$always_export_symbols_FC
21978
21979 # The commands to list exported symbols.
21980 export_symbols_cmds=$lt_export_symbols_cmds_FC
21981
21982 # Symbols that should not be listed in the preloaded symbols.
21983 exclude_expsyms=$lt_exclude_expsyms_FC
21984
21985 # Symbols that must always be exported.
21986 include_expsyms=$lt_include_expsyms_FC
21987
21988 # Commands necessary for linking programs (against libraries) with templates.
21989 prelink_cmds=$lt_prelink_cmds_FC
21990
21991 # Specify filename containing input files.
21992 file_list_spec=$lt_file_list_spec_FC
21993
21994 # How to hardcode a shared library path into an executable.
21995 hardcode_action=$hardcode_action_FC
21996
21997 # Dependencies to place before and after the objects being linked to
21998 # create a shared library.
21999 predep_objects=$lt_predep_objects_FC
22000 postdep_objects=$lt_postdep_objects_FC
22001 predeps=$lt_predeps_FC
22002 postdeps=$lt_postdeps_FC
22003
22004 # The library search path used internally by the compiler when linking
22005 # a shared library.
22006 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
22007
22008 # ### END LIBTOOL TAG CONFIG: FC
22009 _LT_EOF
22010
22011  ;;
22012     gstdint.h )
22013 if test "$GCC" = yes; then
22014   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22015 else
22016   echo "/* generated for $CC */" > tmp-stdint.h
22017 fi
22018
22019 sed 's/^ *//' >> tmp-stdint.h <<EOF
22020
22021   #ifndef GCC_GENERATED_STDINT_H
22022   #define GCC_GENERATED_STDINT_H 1
22023
22024   #include <sys/types.h>
22025 EOF
22026
22027 if test "$acx_cv_header_stdint" != stdint.h; then
22028   echo "#include <stddef.h>" >> tmp-stdint.h
22029 fi
22030 if test "$acx_cv_header_stdint" != stddef.h; then
22031   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22032 fi
22033
22034 sed 's/^ *//' >> tmp-stdint.h <<EOF
22035   /* glibc uses these symbols as guards to prevent redefinitions.  */
22036   #ifdef __int8_t_defined
22037   #define _INT8_T
22038   #define _INT16_T
22039   #define _INT32_T
22040   #endif
22041   #ifdef __uint32_t_defined
22042   #define _UINT32_T
22043   #endif
22044
22045 EOF
22046
22047 # ----------------- done header, emit basic int types -------------
22048 if test "$acx_cv_header_stdint" = stddef.h; then
22049   sed 's/^ *//' >> tmp-stdint.h <<EOF
22050
22051     #ifndef _UINT8_T
22052     #define _UINT8_T
22053     #ifndef __uint8_t_defined
22054     #define __uint8_t_defined
22055     typedef unsigned $acx_cv_type_int8_t uint8_t;
22056     #endif
22057     #endif
22058
22059     #ifndef _UINT16_T
22060     #define _UINT16_T
22061     #ifndef __uint16_t_defined
22062     #define __uint16_t_defined
22063     typedef unsigned $acx_cv_type_int16_t uint16_t;
22064     #endif
22065     #endif
22066
22067     #ifndef _UINT32_T
22068     #define _UINT32_T
22069     #ifndef __uint32_t_defined
22070     #define __uint32_t_defined
22071     typedef unsigned $acx_cv_type_int32_t uint32_t;
22072     #endif
22073     #endif
22074
22075     #ifndef _INT8_T
22076     #define _INT8_T
22077     #ifndef __int8_t_defined
22078     #define __int8_t_defined
22079     typedef $acx_cv_type_int8_t int8_t;
22080     #endif
22081     #endif
22082
22083     #ifndef _INT16_T
22084     #define _INT16_T
22085     #ifndef __int16_t_defined
22086     #define __int16_t_defined
22087     typedef $acx_cv_type_int16_t int16_t;
22088     #endif
22089     #endif
22090
22091     #ifndef _INT32_T
22092     #define _INT32_T
22093     #ifndef __int32_t_defined
22094     #define __int32_t_defined
22095     typedef $acx_cv_type_int32_t int32_t;
22096     #endif
22097     #endif
22098 EOF
22099 elif test "$ac_cv_type_u_int32_t" = yes; then
22100   sed 's/^ *//' >> tmp-stdint.h <<EOF
22101
22102     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22103     #ifndef _INT8_T
22104     #define _INT8_T
22105     #endif
22106     #ifndef _INT16_T
22107     #define _INT16_T
22108     #endif
22109     #ifndef _INT32_T
22110     #define _INT32_T
22111     #endif
22112
22113     #ifndef _UINT8_T
22114     #define _UINT8_T
22115     #ifndef __uint8_t_defined
22116     #define __uint8_t_defined
22117     typedef u_int8_t uint8_t;
22118     #endif
22119     #endif
22120
22121     #ifndef _UINT16_T
22122     #define _UINT16_T
22123     #ifndef __uint16_t_defined
22124     #define __uint16_t_defined
22125     typedef u_int16_t uint16_t;
22126     #endif
22127     #endif
22128
22129     #ifndef _UINT32_T
22130     #define _UINT32_T
22131     #ifndef __uint32_t_defined
22132     #define __uint32_t_defined
22133     typedef u_int32_t uint32_t;
22134     #endif
22135     #endif
22136 EOF
22137 else
22138   sed 's/^ *//' >> tmp-stdint.h <<EOF
22139
22140     /* Some systems have guard macros to prevent redefinitions, define them.  */
22141     #ifndef _INT8_T
22142     #define _INT8_T
22143     #endif
22144     #ifndef _INT16_T
22145     #define _INT16_T
22146     #endif
22147     #ifndef _INT32_T
22148     #define _INT32_T
22149     #endif
22150     #ifndef _UINT8_T
22151     #define _UINT8_T
22152     #endif
22153     #ifndef _UINT16_T
22154     #define _UINT16_T
22155     #endif
22156     #ifndef _UINT32_T
22157     #define _UINT32_T
22158     #endif
22159 EOF
22160 fi
22161
22162 # ------------- done basic int types, emit int64_t types ------------
22163 if test "$ac_cv_type_uint64_t" = yes; then
22164   sed 's/^ *//' >> tmp-stdint.h <<EOF
22165
22166     /* system headers have good uint64_t and int64_t */
22167     #ifndef _INT64_T
22168     #define _INT64_T
22169     #endif
22170     #ifndef _UINT64_T
22171     #define _UINT64_T
22172     #endif
22173 EOF
22174 elif test "$ac_cv_type_u_int64_t" = yes; then
22175   sed 's/^ *//' >> tmp-stdint.h <<EOF
22176
22177     /* system headers have an u_int64_t (and int64_t) */
22178     #ifndef _INT64_T
22179     #define _INT64_T
22180     #endif
22181     #ifndef _UINT64_T
22182     #define _UINT64_T
22183     #ifndef __uint64_t_defined
22184     #define __uint64_t_defined
22185     typedef u_int64_t uint64_t;
22186     #endif
22187     #endif
22188 EOF
22189 elif test -n "$acx_cv_type_int64_t"; then
22190   sed 's/^ *//' >> tmp-stdint.h <<EOF
22191
22192     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22193     #ifndef _INT64_T
22194     #define _INT64_T
22195     typedef $acx_cv_type_int64_t int64_t;
22196     #endif
22197     #ifndef _UINT64_T
22198     #define _UINT64_T
22199     #ifndef __uint64_t_defined
22200     #define __uint64_t_defined
22201     typedef unsigned $acx_cv_type_int64_t uint64_t;
22202     #endif
22203     #endif
22204 EOF
22205 else
22206   sed 's/^ *//' >> tmp-stdint.h <<EOF
22207
22208     /* some common heuristics for int64_t, using compiler-specific tests */
22209     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22210     #ifndef _INT64_T
22211     #define _INT64_T
22212     #ifndef __int64_t_defined
22213     typedef long long int64_t;
22214     #endif
22215     #endif
22216     #ifndef _UINT64_T
22217     #define _UINT64_T
22218     typedef unsigned long long uint64_t;
22219     #endif
22220
22221     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22222     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22223        does not implement __extension__.  But that compiler doesn't define
22224        __GNUC_MINOR__.  */
22225     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22226     # define __extension__
22227     # endif
22228
22229     # ifndef _INT64_T
22230     # define _INT64_T
22231     __extension__ typedef long long int64_t;
22232     # endif
22233     # ifndef _UINT64_T
22234     # define _UINT64_T
22235     __extension__ typedef unsigned long long uint64_t;
22236     # endif
22237
22238     #elif !defined __STRICT_ANSI__
22239     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22240
22241     #  ifndef _INT64_T
22242     #  define _INT64_T
22243     typedef __int64 int64_t;
22244     #  endif
22245     #  ifndef _UINT64_T
22246     #  define _UINT64_T
22247     typedef unsigned __int64 uint64_t;
22248     #  endif
22249     # endif /* compiler */
22250
22251     #endif /* ANSI version */
22252 EOF
22253 fi
22254
22255 # ------------- done int64_t types, emit intptr types ------------
22256 if test "$ac_cv_type_uintptr_t" != yes; then
22257   sed 's/^ *//' >> tmp-stdint.h <<EOF
22258
22259     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22260     #ifndef __uintptr_t_defined
22261     typedef u$acx_cv_type_intptr_t uintptr_t;
22262     #endif
22263     #ifndef __intptr_t_defined
22264     typedef $acx_cv_type_intptr_t  intptr_t;
22265     #endif
22266 EOF
22267 fi
22268
22269 # ------------- done intptr types, emit int_least types ------------
22270 if test "$ac_cv_type_int_least32_t" != yes; then
22271   sed 's/^ *//' >> tmp-stdint.h <<EOF
22272
22273     /* Define int_least types */
22274     typedef int8_t     int_least8_t;
22275     typedef int16_t    int_least16_t;
22276     typedef int32_t    int_least32_t;
22277     #ifdef _INT64_T
22278     typedef int64_t    int_least64_t;
22279     #endif
22280
22281     typedef uint8_t    uint_least8_t;
22282     typedef uint16_t   uint_least16_t;
22283     typedef uint32_t   uint_least32_t;
22284     #ifdef _UINT64_T
22285     typedef uint64_t   uint_least64_t;
22286     #endif
22287 EOF
22288 fi
22289
22290 # ------------- done intptr types, emit int_fast types ------------
22291 if test "$ac_cv_type_int_fast32_t" != yes; then
22292       sed 's/^ *//' >> tmp-stdint.h <<EOF
22293
22294     /* Define int_fast types.  short is often slow */
22295     typedef int8_t       int_fast8_t;
22296     typedef int          int_fast16_t;
22297     typedef int32_t      int_fast32_t;
22298     #ifdef _INT64_T
22299     typedef int64_t      int_fast64_t;
22300     #endif
22301
22302     typedef uint8_t      uint_fast8_t;
22303     typedef unsigned int uint_fast16_t;
22304     typedef uint32_t     uint_fast32_t;
22305     #ifdef _UINT64_T
22306     typedef uint64_t     uint_fast64_t;
22307     #endif
22308 EOF
22309 fi
22310
22311 if test "$ac_cv_type_uintmax_t" != yes; then
22312   sed 's/^ *//' >> tmp-stdint.h <<EOF
22313
22314     /* Define intmax based on what we found */
22315     #ifdef _INT64_T
22316     typedef int64_t       intmax_t;
22317     #else
22318     typedef long          intmax_t;
22319     #endif
22320     #ifdef _UINT64_T
22321     typedef uint64_t      uintmax_t;
22322     #else
22323     typedef unsigned long uintmax_t;
22324     #endif
22325 EOF
22326 fi
22327
22328 sed 's/^ *//' >> tmp-stdint.h <<EOF
22329
22330   #endif /* GCC_GENERATED_STDINT_H */
22331 EOF
22332
22333 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22334   rm -f tmp-stdint.h
22335 else
22336   mv -f tmp-stdint.h gstdint.h
22337 fi
22338
22339  ;;
22340   esac
22341 done
22342 _ACEOF
22343
22344 cat >>$CONFIG_STATUS <<\_ACEOF
22345
22346 { (exit 0); exit 0; }
22347 _ACEOF
22348 chmod +x $CONFIG_STATUS
22349 ac_clean_files=$ac_clean_files_save
22350
22351
22352 # configure is writing to config.log, and then calls config.status.
22353 # config.status does its own redirection, appending to config.log.
22354 # Unfortunately, on DOS this fails, as config.log is still kept open
22355 # by configure, so config.status won't be able to write to it; its
22356 # output is simply discarded.  So we exec the FD to /dev/null,
22357 # effectively closing config.log, so it can be properly (re)opened and
22358 # appended to by config.status.  When coming back to configure, we
22359 # need to make the FD available again.
22360 if test "$no_create" != yes; then
22361   ac_cs_success=:
22362   ac_config_status_args=
22363   test "$silent" = yes &&
22364     ac_config_status_args="$ac_config_status_args --quiet"
22365   exec 5>/dev/null
22366   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22367   exec 5>>config.log
22368   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22369   # would make configure fail if this is the last instruction.
22370   $ac_cs_success || { (exit 1); exit 1; }
22371 fi
22372