1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for Rudunits2 0.8.
4#
5# Report bugs to <hiebert@uvic.ca>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186  if (eval "$as_required") 2>/dev/null
187then :
188  as_have_required=yes
189else $as_nop
190  as_have_required=no
191fi
192  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193then :
194
195else $as_nop
196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197as_found=false
198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199do
200  IFS=$as_save_IFS
201  case $as_dir in #(((
202    '') as_dir=./ ;;
203    */) ;;
204    *) as_dir=$as_dir/ ;;
205  esac
206  as_found=:
207  case $as_dir in #(
208	 /*)
209	   for as_base in sh bash ksh sh5; do
210	     # Try only shells that exist, to save several forks.
211	     as_shell=$as_dir$as_base
212	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214then :
215  CONFIG_SHELL=$as_shell as_have_required=yes
216		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217then :
218  break 2
219fi
220fi
221	   done;;
222       esac
223  as_found=false
224done
225IFS=$as_save_IFS
226if $as_found
227then :
228
229else $as_nop
230  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi
235fi
236
237
238      if test "x$CONFIG_SHELL" != x
239then :
240  export CONFIG_SHELL
241             # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249  *v*x* | *x*v* ) as_opts=-vx ;;
250  *v* ) as_opts=-v ;;
251  *x* ) as_opts=-x ;;
252  * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261    if test x$as_have_required = xno
262then :
263  printf "%s\n" "$0: This script requires a shell more modern than all"
264  printf "%s\n" "$0: the shells that I found on your system."
265  if test ${ZSH_VERSION+y} ; then
266    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and hiebert@uvic.ca
270$0: about your system, including any error possibly output
271$0: before this message. Then install a modern shell, or
272$0: manually run the script under such a shell if you do
273$0: have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315# as_fn_nop
316# ---------
317# Do nothing but, unlike ":", preserve the value of $?.
318as_fn_nop ()
319{
320  return $?
321}
322as_nop=as_fn_nop
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346printf "%s\n" X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386then :
387  eval 'as_fn_append ()
388  {
389    eval $1+=\$2
390  }'
391else $as_nop
392  as_fn_append ()
393  {
394    eval $1=\$$1\$2
395  }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404then :
405  eval 'as_fn_arith ()
406  {
407    as_val=$(( $* ))
408  }'
409else $as_nop
410  as_fn_arith ()
411  {
412    as_val=`expr "$@" || test $? -eq 1`
413  }
414fi # as_fn_arith
415
416# as_fn_nop
417# ---------
418# Do nothing but, unlike ":", preserve the value of $?.
419as_fn_nop ()
420{
421  return $?
422}
423as_nop=as_fn_nop
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      s/[$]LINENO.*/&-/
498      t lineno
499      b
500      :lineno
501      N
502      :loop
503      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504      t loop
505      s/-\n.*//
506    ' >$as_me.lineno &&
507  chmod +x "$as_me.lineno" ||
508    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511  # already done that, so ensure we don't try to do so again and fall
512  # in an infinite loop.  This has already happened in practice.
513  _as_can_reexec=no; export _as_can_reexec
514  # Don't try to exec as it changes $[0], causing all sort of problems
515  # (the dirname of $[0] is not the place where we might find the
516  # original and so on.  Autoconf is especially sensitive to this).
517  . "./$as_me.lineno"
518  # Exit status is that of the last command.
519  exit
520}
521
522
523# Determine whether it's possible to make 'echo' print without a newline.
524# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525# for compatibility with existing Makefiles.
526ECHO_C= ECHO_N= ECHO_T=
527case `echo -n x` in #(((((
528-n*)
529  case `echo 'xy\c'` in
530  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
531  xy)  ECHO_C='\c';;
532  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
533       ECHO_T='	';;
534  esac;;
535*)
536  ECHO_N='-n';;
537esac
538
539# For backward compatibility with old third-party macros, we provide
540# the shell variables $as_echo and $as_echo_n.  New code should use
541# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542as_echo='printf %s\n'
543as_echo_n='printf %s'
544
545
546rm -f conf$$ conf$$.exe conf$$.file
547if test -d conf$$.dir; then
548  rm -f conf$$.dir/conf$$.file
549else
550  rm -f conf$$.dir
551  mkdir conf$$.dir 2>/dev/null
552fi
553if (echo >conf$$.file) 2>/dev/null; then
554  if ln -s conf$$.file conf$$ 2>/dev/null; then
555    as_ln_s='ln -s'
556    # ... but there are two gotchas:
557    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559    # In both cases, we have to default to `cp -pR'.
560    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561      as_ln_s='cp -pR'
562  elif ln conf$$.file conf$$ 2>/dev/null; then
563    as_ln_s=ln
564  else
565    as_ln_s='cp -pR'
566  fi
567else
568  as_ln_s='cp -pR'
569fi
570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571rmdir conf$$.dir 2>/dev/null
572
573if mkdir -p . 2>/dev/null; then
574  as_mkdir_p='mkdir -p "$as_dir"'
575else
576  test -d ./-p && rmdir ./-p
577  as_mkdir_p=false
578fi
579
580as_test_x='test -x'
581as_executable_p=as_fn_executable_p
582
583# Sed expression to map a string onto a valid CPP name.
584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585
586# Sed expression to map a string onto a valid variable name.
587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588
589
590test -n "$DJDIR" || exec 7<&0 </dev/null
591exec 6>&1
592
593# Name of the host.
594# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595# so uname gets run too.
596ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597
598#
599# Initializations.
600#
601ac_default_prefix=/usr/local
602ac_clean_files=
603ac_config_libobj_dir=.
604LIBOBJS=
605cross_compiling=no
606subdirs=
607MFLAGS=
608MAKEFLAGS=
609
610# Identity of this package.
611PACKAGE_NAME='Rudunits2'
612PACKAGE_TARNAME='rudunits2'
613PACKAGE_VERSION='0.8'
614PACKAGE_STRING='Rudunits2 0.8'
615PACKAGE_BUGREPORT='hiebert@uvic.ca'
616PACKAGE_URL=''
617
618# Factoring default headers for most tests.
619ac_includes_default="\
620#include <stddef.h>
621#ifdef HAVE_STDIO_H
622# include <stdio.h>
623#endif
624#ifdef HAVE_STDLIB_H
625# include <stdlib.h>
626#endif
627#ifdef HAVE_STRING_H
628# include <string.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_STRINGS_H
637# include <strings.h>
638#endif
639#ifdef HAVE_SYS_TYPES_H
640# include <sys/types.h>
641#endif
642#ifdef HAVE_SYS_STAT_H
643# include <sys/stat.h>
644#endif
645#ifdef HAVE_UNISTD_H
646# include <unistd.h>
647#endif"
648
649ac_header_c_list=
650ac_subst_vars='LTLIBOBJS
651LIBOBJS
652UD_CPPFLAGS
653OBJEXT
654EXEEXT
655ac_ct_CC
656CPPFLAGS
657LDFLAGS
658CFLAGS
659CC
660target_alias
661host_alias
662build_alias
663LIBS
664ECHO_T
665ECHO_N
666ECHO_C
667DEFS
668mandir
669localedir
670libdir
671psdir
672pdfdir
673dvidir
674htmldir
675infodir
676docdir
677oldincludedir
678includedir
679runstatedir
680localstatedir
681sharedstatedir
682sysconfdir
683datadir
684datarootdir
685libexecdir
686sbindir
687bindir
688program_transform_name
689prefix
690exec_prefix
691PACKAGE_URL
692PACKAGE_BUGREPORT
693PACKAGE_STRING
694PACKAGE_VERSION
695PACKAGE_TARNAME
696PACKAGE_NAME
697PATH_SEPARATOR
698SHELL'
699ac_subst_files=''
700ac_user_opts='
701enable_option_checking
702with_udunits2_include
703with_udunits2_lib
704'
705      ac_precious_vars='build_alias
706host_alias
707target_alias
708CC
709CFLAGS
710LDFLAGS
711LIBS
712CPPFLAGS'
713
714
715# Initialize some variables set by options.
716ac_init_help=
717ac_init_version=false
718ac_unrecognized_opts=
719ac_unrecognized_sep=
720# The variables have the same names as the options, with
721# dashes changed to underlines.
722cache_file=/dev/null
723exec_prefix=NONE
724no_create=
725no_recursion=
726prefix=NONE
727program_prefix=NONE
728program_suffix=NONE
729program_transform_name=s,x,x,
730silent=
731site=
732srcdir=
733verbose=
734x_includes=NONE
735x_libraries=NONE
736
737# Installation directory options.
738# These are left unexpanded so users can "make install exec_prefix=/foo"
739# and all the variables that are supposed to be based on exec_prefix
740# by default will actually change.
741# Use braces instead of parens because sh, perl, etc. also accept them.
742# (The list follows the same order as the GNU Coding Standards.)
743bindir='${exec_prefix}/bin'
744sbindir='${exec_prefix}/sbin'
745libexecdir='${exec_prefix}/libexec'
746datarootdir='${prefix}/share'
747datadir='${datarootdir}'
748sysconfdir='${prefix}/etc'
749sharedstatedir='${prefix}/com'
750localstatedir='${prefix}/var'
751runstatedir='${localstatedir}/run'
752includedir='${prefix}/include'
753oldincludedir='/usr/include'
754docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755infodir='${datarootdir}/info'
756htmldir='${docdir}'
757dvidir='${docdir}'
758pdfdir='${docdir}'
759psdir='${docdir}'
760libdir='${exec_prefix}/lib'
761localedir='${datarootdir}/locale'
762mandir='${datarootdir}/man'
763
764ac_prev=
765ac_dashdash=
766for ac_option
767do
768  # If the previous option needs an argument, assign it.
769  if test -n "$ac_prev"; then
770    eval $ac_prev=\$ac_option
771    ac_prev=
772    continue
773  fi
774
775  case $ac_option in
776  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777  *=)   ac_optarg= ;;
778  *)    ac_optarg=yes ;;
779  esac
780
781  case $ac_dashdash$ac_option in
782  --)
783    ac_dashdash=yes ;;
784
785  -bindir | --bindir | --bindi | --bind | --bin | --bi)
786    ac_prev=bindir ;;
787  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788    bindir=$ac_optarg ;;
789
790  -build | --build | --buil | --bui | --bu)
791    ac_prev=build_alias ;;
792  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793    build_alias=$ac_optarg ;;
794
795  -cache-file | --cache-file | --cache-fil | --cache-fi \
796  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797    ac_prev=cache_file ;;
798  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800    cache_file=$ac_optarg ;;
801
802  --config-cache | -C)
803    cache_file=config.cache ;;
804
805  -datadir | --datadir | --datadi | --datad)
806    ac_prev=datadir ;;
807  -datadir=* | --datadir=* | --datadi=* | --datad=*)
808    datadir=$ac_optarg ;;
809
810  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811  | --dataroo | --dataro | --datar)
812    ac_prev=datarootdir ;;
813  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815    datarootdir=$ac_optarg ;;
816
817  -disable-* | --disable-*)
818    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819    # Reject names that are not valid shell variable names.
820    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
821      as_fn_error $? "invalid feature name: \`$ac_useropt'"
822    ac_useropt_orig=$ac_useropt
823    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
824    case $ac_user_opts in
825      *"
826"enable_$ac_useropt"
827"*) ;;
828      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
829	 ac_unrecognized_sep=', ';;
830    esac
831    eval enable_$ac_useropt=no ;;
832
833  -docdir | --docdir | --docdi | --doc | --do)
834    ac_prev=docdir ;;
835  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836    docdir=$ac_optarg ;;
837
838  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839    ac_prev=dvidir ;;
840  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841    dvidir=$ac_optarg ;;
842
843  -enable-* | --enable-*)
844    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845    # Reject names that are not valid shell variable names.
846    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847      as_fn_error $? "invalid feature name: \`$ac_useropt'"
848    ac_useropt_orig=$ac_useropt
849    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
850    case $ac_user_opts in
851      *"
852"enable_$ac_useropt"
853"*) ;;
854      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
855	 ac_unrecognized_sep=', ';;
856    esac
857    eval enable_$ac_useropt=\$ac_optarg ;;
858
859  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861  | --exec | --exe | --ex)
862    ac_prev=exec_prefix ;;
863  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865  | --exec=* | --exe=* | --ex=*)
866    exec_prefix=$ac_optarg ;;
867
868  -gas | --gas | --ga | --g)
869    # Obsolete; use --with-gas.
870    with_gas=yes ;;
871
872  -help | --help | --hel | --he | -h)
873    ac_init_help=long ;;
874  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875    ac_init_help=recursive ;;
876  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877    ac_init_help=short ;;
878
879  -host | --host | --hos | --ho)
880    ac_prev=host_alias ;;
881  -host=* | --host=* | --hos=* | --ho=*)
882    host_alias=$ac_optarg ;;
883
884  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885    ac_prev=htmldir ;;
886  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887  | --ht=*)
888    htmldir=$ac_optarg ;;
889
890  -includedir | --includedir | --includedi | --included | --include \
891  | --includ | --inclu | --incl | --inc)
892    ac_prev=includedir ;;
893  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894  | --includ=* | --inclu=* | --incl=* | --inc=*)
895    includedir=$ac_optarg ;;
896
897  -infodir | --infodir | --infodi | --infod | --info | --inf)
898    ac_prev=infodir ;;
899  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900    infodir=$ac_optarg ;;
901
902  -libdir | --libdir | --libdi | --libd)
903    ac_prev=libdir ;;
904  -libdir=* | --libdir=* | --libdi=* | --libd=*)
905    libdir=$ac_optarg ;;
906
907  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908  | --libexe | --libex | --libe)
909    ac_prev=libexecdir ;;
910  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911  | --libexe=* | --libex=* | --libe=*)
912    libexecdir=$ac_optarg ;;
913
914  -localedir | --localedir | --localedi | --localed | --locale)
915    ac_prev=localedir ;;
916  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917    localedir=$ac_optarg ;;
918
919  -localstatedir | --localstatedir | --localstatedi | --localstated \
920  | --localstate | --localstat | --localsta | --localst | --locals)
921    ac_prev=localstatedir ;;
922  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924    localstatedir=$ac_optarg ;;
925
926  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927    ac_prev=mandir ;;
928  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929    mandir=$ac_optarg ;;
930
931  -nfp | --nfp | --nf)
932    # Obsolete; use --without-fp.
933    with_fp=no ;;
934
935  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936  | --no-cr | --no-c | -n)
937    no_create=yes ;;
938
939  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941    no_recursion=yes ;;
942
943  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945  | --oldin | --oldi | --old | --ol | --o)
946    ac_prev=oldincludedir ;;
947  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950    oldincludedir=$ac_optarg ;;
951
952  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953    ac_prev=prefix ;;
954  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955    prefix=$ac_optarg ;;
956
957  -program-prefix | --program-prefix | --program-prefi | --program-pref \
958  | --program-pre | --program-pr | --program-p)
959    ac_prev=program_prefix ;;
960  -program-prefix=* | --program-prefix=* | --program-prefi=* \
961  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962    program_prefix=$ac_optarg ;;
963
964  -program-suffix | --program-suffix | --program-suffi | --program-suff \
965  | --program-suf | --program-su | --program-s)
966    ac_prev=program_suffix ;;
967  -program-suffix=* | --program-suffix=* | --program-suffi=* \
968  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969    program_suffix=$ac_optarg ;;
970
971  -program-transform-name | --program-transform-name \
972  | --program-transform-nam | --program-transform-na \
973  | --program-transform-n | --program-transform- \
974  | --program-transform | --program-transfor \
975  | --program-transfo | --program-transf \
976  | --program-trans | --program-tran \
977  | --progr-tra | --program-tr | --program-t)
978    ac_prev=program_transform_name ;;
979  -program-transform-name=* | --program-transform-name=* \
980  | --program-transform-nam=* | --program-transform-na=* \
981  | --program-transform-n=* | --program-transform-=* \
982  | --program-transform=* | --program-transfor=* \
983  | --program-transfo=* | --program-transf=* \
984  | --program-trans=* | --program-tran=* \
985  | --progr-tra=* | --program-tr=* | --program-t=*)
986    program_transform_name=$ac_optarg ;;
987
988  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989    ac_prev=pdfdir ;;
990  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991    pdfdir=$ac_optarg ;;
992
993  -psdir | --psdir | --psdi | --psd | --ps)
994    ac_prev=psdir ;;
995  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996    psdir=$ac_optarg ;;
997
998  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999  | -silent | --silent | --silen | --sile | --sil)
1000    silent=yes ;;
1001
1002  -runstatedir | --runstatedir | --runstatedi | --runstated \
1003  | --runstate | --runstat | --runsta | --runst | --runs \
1004  | --run | --ru | --r)
1005    ac_prev=runstatedir ;;
1006  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1007  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1008  | --run=* | --ru=* | --r=*)
1009    runstatedir=$ac_optarg ;;
1010
1011  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012    ac_prev=sbindir ;;
1013  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014  | --sbi=* | --sb=*)
1015    sbindir=$ac_optarg ;;
1016
1017  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019  | --sharedst | --shareds | --shared | --share | --shar \
1020  | --sha | --sh)
1021    ac_prev=sharedstatedir ;;
1022  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025  | --sha=* | --sh=*)
1026    sharedstatedir=$ac_optarg ;;
1027
1028  -site | --site | --sit)
1029    ac_prev=site ;;
1030  -site=* | --site=* | --sit=*)
1031    site=$ac_optarg ;;
1032
1033  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034    ac_prev=srcdir ;;
1035  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036    srcdir=$ac_optarg ;;
1037
1038  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039  | --syscon | --sysco | --sysc | --sys | --sy)
1040    ac_prev=sysconfdir ;;
1041  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043    sysconfdir=$ac_optarg ;;
1044
1045  -target | --target | --targe | --targ | --tar | --ta | --t)
1046    ac_prev=target_alias ;;
1047  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048    target_alias=$ac_optarg ;;
1049
1050  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051    verbose=yes ;;
1052
1053  -version | --version | --versio | --versi | --vers | -V)
1054    ac_init_version=: ;;
1055
1056  -with-* | --with-*)
1057    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058    # Reject names that are not valid shell variable names.
1059    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060      as_fn_error $? "invalid package name: \`$ac_useropt'"
1061    ac_useropt_orig=$ac_useropt
1062    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1063    case $ac_user_opts in
1064      *"
1065"with_$ac_useropt"
1066"*) ;;
1067      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068	 ac_unrecognized_sep=', ';;
1069    esac
1070    eval with_$ac_useropt=\$ac_optarg ;;
1071
1072  -without-* | --without-*)
1073    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076      as_fn_error $? "invalid package name: \`$ac_useropt'"
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"with_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval with_$ac_useropt=no ;;
1087
1088  --x)
1089    # Obsolete; use --with-x.
1090    with_x=yes ;;
1091
1092  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093  | --x-incl | --x-inc | --x-in | --x-i)
1094    ac_prev=x_includes ;;
1095  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097    x_includes=$ac_optarg ;;
1098
1099  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101    ac_prev=x_libraries ;;
1102  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104    x_libraries=$ac_optarg ;;
1105
1106  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1107Try \`$0 --help' for more information"
1108    ;;
1109
1110  *=*)
1111    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112    # Reject names that are not valid shell variable names.
1113    case $ac_envvar in #(
1114      '' | [0-9]* | *[!_$as_cr_alnum]* )
1115      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1116    esac
1117    eval $ac_envvar=\$ac_optarg
1118    export $ac_envvar ;;
1119
1120  *)
1121    # FIXME: should be removed in autoconf 3.0.
1122    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1123    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1125    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1126    ;;
1127
1128  esac
1129done
1130
1131if test -n "$ac_prev"; then
1132  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133  as_fn_error $? "missing argument to $ac_option"
1134fi
1135
1136if test -n "$ac_unrecognized_opts"; then
1137  case $enable_option_checking in
1138    no) ;;
1139    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1140    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1141  esac
1142fi
1143
1144# Check all directory arguments for consistency.
1145for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146		datadir sysconfdir sharedstatedir localstatedir includedir \
1147		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148		libdir localedir mandir runstatedir
1149do
1150  eval ac_val=\$$ac_var
1151  # Remove trailing slashes.
1152  case $ac_val in
1153    */ )
1154      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155      eval $ac_var=\$ac_val;;
1156  esac
1157  # Be sure to have absolute directory names.
1158  case $ac_val in
1159    [\\/$]* | ?:[\\/]* )  continue;;
1160    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1161  esac
1162  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1163done
1164
1165# There might be people who depend on the old broken behavior: `$host'
1166# used to hold the argument of --host etc.
1167# FIXME: To remove some day.
1168build=$build_alias
1169host=$host_alias
1170target=$target_alias
1171
1172# FIXME: To remove some day.
1173if test "x$host_alias" != x; then
1174  if test "x$build_alias" = x; then
1175    cross_compiling=maybe
1176  elif test "x$build_alias" != "x$host_alias"; then
1177    cross_compiling=yes
1178  fi
1179fi
1180
1181ac_tool_prefix=
1182test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183
1184test "$silent" = yes && exec 6>/dev/null
1185
1186
1187ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188ac_ls_di=`ls -di .` &&
1189ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190  as_fn_error $? "working directory cannot be determined"
1191test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192  as_fn_error $? "pwd does not report name of working directory"
1193
1194
1195# Find the source files, if location was not specified.
1196if test -z "$srcdir"; then
1197  ac_srcdir_defaulted=yes
1198  # Try the directory containing this script, then the parent directory.
1199  ac_confdir=`$as_dirname -- "$as_myself" ||
1200$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201	 X"$as_myself" : 'X\(//\)[^/]' \| \
1202	 X"$as_myself" : 'X\(//\)$' \| \
1203	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204printf "%s\n" X"$as_myself" |
1205    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206	    s//\1/
1207	    q
1208	  }
1209	  /^X\(\/\/\)[^/].*/{
1210	    s//\1/
1211	    q
1212	  }
1213	  /^X\(\/\/\)$/{
1214	    s//\1/
1215	    q
1216	  }
1217	  /^X\(\/\).*/{
1218	    s//\1/
1219	    q
1220	  }
1221	  s/.*/./; q'`
1222  srcdir=$ac_confdir
1223  if test ! -r "$srcdir/$ac_unique_file"; then
1224    srcdir=..
1225  fi
1226else
1227  ac_srcdir_defaulted=no
1228fi
1229if test ! -r "$srcdir/$ac_unique_file"; then
1230  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1232fi
1233ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1234ac_abs_confdir=`(
1235	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1236	pwd)`
1237# When building in place, set srcdir=.
1238if test "$ac_abs_confdir" = "$ac_pwd"; then
1239  srcdir=.
1240fi
1241# Remove unnecessary trailing slashes from srcdir.
1242# Double slashes in file names in object file debugging info
1243# mess up M-x gdb in Emacs.
1244case $srcdir in
1245*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246esac
1247for ac_var in $ac_precious_vars; do
1248  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1249  eval ac_env_${ac_var}_value=\$${ac_var}
1250  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1251  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1252done
1253
1254#
1255# Report the --help message.
1256#
1257if test "$ac_init_help" = "long"; then
1258  # Omit some internal or obsolete options to make the list less imposing.
1259  # This message is too long to be a string in the A/UX 3.1 sh.
1260  cat <<_ACEOF
1261\`configure' configures Rudunits2 0.8 to adapt to many kinds of systems.
1262
1263Usage: $0 [OPTION]... [VAR=VALUE]...
1264
1265To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266VAR=VALUE.  See below for descriptions of some of the useful variables.
1267
1268Defaults for the options are specified in brackets.
1269
1270Configuration:
1271  -h, --help              display this help and exit
1272      --help=short        display options specific to this package
1273      --help=recursive    display the short help of all the included packages
1274  -V, --version           display version information and exit
1275  -q, --quiet, --silent   do not print \`checking ...' messages
1276      --cache-file=FILE   cache test results in FILE [disabled]
1277  -C, --config-cache      alias for \`--cache-file=config.cache'
1278  -n, --no-create         do not create output files
1279      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1280
1281Installation directories:
1282  --prefix=PREFIX         install architecture-independent files in PREFIX
1283                          [$ac_default_prefix]
1284  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1285                          [PREFIX]
1286
1287By default, \`make install' will install all the files in
1288\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1289an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290for instance \`--prefix=\$HOME'.
1291
1292For better control, use the options below.
1293
1294Fine tuning of the installation directories:
1295  --bindir=DIR            user executables [EPREFIX/bin]
1296  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1297  --libexecdir=DIR        program executables [EPREFIX/libexec]
1298  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1299  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1300  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1301  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1302  --libdir=DIR            object code libraries [EPREFIX/lib]
1303  --includedir=DIR        C header files [PREFIX/include]
1304  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1305  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1306  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1307  --infodir=DIR           info documentation [DATAROOTDIR/info]
1308  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1309  --mandir=DIR            man documentation [DATAROOTDIR/man]
1310  --docdir=DIR            documentation root [DATAROOTDIR/doc/rudunits2]
1311  --htmldir=DIR           html documentation [DOCDIR]
1312  --dvidir=DIR            dvi documentation [DOCDIR]
1313  --pdfdir=DIR            pdf documentation [DOCDIR]
1314  --psdir=DIR             ps documentation [DOCDIR]
1315_ACEOF
1316
1317  cat <<\_ACEOF
1318_ACEOF
1319fi
1320
1321if test -n "$ac_init_help"; then
1322  case $ac_init_help in
1323     short | recursive ) echo "Configuration of Rudunits2 0.8:";;
1324   esac
1325  cat <<\_ACEOF
1326
1327Optional Packages:
1328  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1329  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1330  --with-udunits2-include=DIR
1331                          location of the udunits2 header files
1332  --with-udunits2-lib=DIR location of the udunits2 libraries
1333
1334Some influential environment variables:
1335  CC          C compiler command
1336  CFLAGS      C compiler flags
1337  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1338              nonstandard directory <lib dir>
1339  LIBS        libraries to pass to the linker, e.g. -l<library>
1340  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1341              you have headers in a nonstandard directory <include dir>
1342
1343Use these variables to override the choices made by `configure' or to help
1344it to find libraries and programs with nonstandard names/locations.
1345
1346Report bugs to <hiebert@uvic.ca>.
1347_ACEOF
1348ac_status=$?
1349fi
1350
1351if test "$ac_init_help" = "recursive"; then
1352  # If there are subdirs, report their specific --help.
1353  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1354    test -d "$ac_dir" ||
1355      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1356      continue
1357    ac_builddir=.
1358
1359case "$ac_dir" in
1360.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361*)
1362  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1363  # A ".." for each directory in $ac_dir_suffix.
1364  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1365  case $ac_top_builddir_sub in
1366  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1368  esac ;;
1369esac
1370ac_abs_top_builddir=$ac_pwd
1371ac_abs_builddir=$ac_pwd$ac_dir_suffix
1372# for backward compatibility:
1373ac_top_builddir=$ac_top_build_prefix
1374
1375case $srcdir in
1376  .)  # We are building in place.
1377    ac_srcdir=.
1378    ac_top_srcdir=$ac_top_builddir_sub
1379    ac_abs_top_srcdir=$ac_pwd ;;
1380  [\\/]* | ?:[\\/]* )  # Absolute name.
1381    ac_srcdir=$srcdir$ac_dir_suffix;
1382    ac_top_srcdir=$srcdir
1383    ac_abs_top_srcdir=$srcdir ;;
1384  *) # Relative name.
1385    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1386    ac_top_srcdir=$ac_top_build_prefix$srcdir
1387    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1388esac
1389ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1390
1391    cd "$ac_dir" || { ac_status=$?; continue; }
1392    # Check for configure.gnu first; this name is used for a wrapper for
1393    # Metaconfig's "Configure" on case-insensitive file systems.
1394    if test -f "$ac_srcdir/configure.gnu"; then
1395      echo &&
1396      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1397    elif test -f "$ac_srcdir/configure"; then
1398      echo &&
1399      $SHELL "$ac_srcdir/configure" --help=recursive
1400    else
1401      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1402    fi || ac_status=$?
1403    cd "$ac_pwd" || { ac_status=$?; break; }
1404  done
1405fi
1406
1407test -n "$ac_init_help" && exit $ac_status
1408if $ac_init_version; then
1409  cat <<\_ACEOF
1410Rudunits2 configure 0.8
1411generated by GNU Autoconf 2.71
1412
1413Copyright (C) 2021 Free Software Foundation, Inc.
1414This configure script is free software; the Free Software Foundation
1415gives unlimited permission to copy, distribute and modify it.
1416_ACEOF
1417  exit
1418fi
1419
1420## ------------------------ ##
1421## Autoconf initialization. ##
1422## ------------------------ ##
1423
1424# ac_fn_c_try_compile LINENO
1425# --------------------------
1426# Try to compile conftest.$ac_ext, and return whether this succeeded.
1427ac_fn_c_try_compile ()
1428{
1429  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1430  rm -f conftest.$ac_objext conftest.beam
1431  if { { ac_try="$ac_compile"
1432case "(($ac_try" in
1433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1434  *) ac_try_echo=$ac_try;;
1435esac
1436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1437printf "%s\n" "$ac_try_echo"; } >&5
1438  (eval "$ac_compile") 2>conftest.err
1439  ac_status=$?
1440  if test -s conftest.err; then
1441    grep -v '^ *+' conftest.err >conftest.er1
1442    cat conftest.er1 >&5
1443    mv -f conftest.er1 conftest.err
1444  fi
1445  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1446  test $ac_status = 0; } && {
1447	 test -z "$ac_c_werror_flag" ||
1448	 test ! -s conftest.err
1449       } && test -s conftest.$ac_objext
1450then :
1451  ac_retval=0
1452else $as_nop
1453  printf "%s\n" "$as_me: failed program was:" >&5
1454sed 's/^/| /' conftest.$ac_ext >&5
1455
1456	ac_retval=1
1457fi
1458  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1459  as_fn_set_status $ac_retval
1460
1461} # ac_fn_c_try_compile
1462
1463# ac_fn_c_try_link LINENO
1464# -----------------------
1465# Try to link conftest.$ac_ext, and return whether this succeeded.
1466ac_fn_c_try_link ()
1467{
1468  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1469  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1470  if { { ac_try="$ac_link"
1471case "(($ac_try" in
1472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1473  *) ac_try_echo=$ac_try;;
1474esac
1475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1476printf "%s\n" "$ac_try_echo"; } >&5
1477  (eval "$ac_link") 2>conftest.err
1478  ac_status=$?
1479  if test -s conftest.err; then
1480    grep -v '^ *+' conftest.err >conftest.er1
1481    cat conftest.er1 >&5
1482    mv -f conftest.er1 conftest.err
1483  fi
1484  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485  test $ac_status = 0; } && {
1486	 test -z "$ac_c_werror_flag" ||
1487	 test ! -s conftest.err
1488       } && test -s conftest$ac_exeext && {
1489	 test "$cross_compiling" = yes ||
1490	 test -x conftest$ac_exeext
1491       }
1492then :
1493  ac_retval=0
1494else $as_nop
1495  printf "%s\n" "$as_me: failed program was:" >&5
1496sed 's/^/| /' conftest.$ac_ext >&5
1497
1498	ac_retval=1
1499fi
1500  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1501  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1502  # interfere with the next link command; also delete a directory that is
1503  # left behind by Apple's compiler.  We do this before executing the actions.
1504  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1505  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506  as_fn_set_status $ac_retval
1507
1508} # ac_fn_c_try_link
1509
1510# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1511# -------------------------------------------------------
1512# Tests whether HEADER exists and can be compiled using the include files in
1513# INCLUDES, setting the cache variable VAR accordingly.
1514ac_fn_c_check_header_compile ()
1515{
1516  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1518printf %s "checking for $2... " >&6; }
1519if eval test \${$3+y}
1520then :
1521  printf %s "(cached) " >&6
1522else $as_nop
1523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1524/* end confdefs.h.  */
1525$4
1526#include <$2>
1527_ACEOF
1528if ac_fn_c_try_compile "$LINENO"
1529then :
1530  eval "$3=yes"
1531else $as_nop
1532  eval "$3=no"
1533fi
1534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1535fi
1536eval ac_res=\$$3
1537	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1538printf "%s\n" "$ac_res" >&6; }
1539  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540
1541} # ac_fn_c_check_header_compile
1542ac_configure_args_raw=
1543for ac_arg
1544do
1545  case $ac_arg in
1546  *\'*)
1547    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1548  esac
1549  as_fn_append ac_configure_args_raw " '$ac_arg'"
1550done
1551
1552case $ac_configure_args_raw in
1553  *$as_nl*)
1554    ac_safe_unquote= ;;
1555  *)
1556    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1557    ac_unsafe_a="$ac_unsafe_z#~"
1558    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1559    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1560esac
1561
1562cat >config.log <<_ACEOF
1563This file contains any messages produced by compilers while
1564running configure, to aid debugging if configure makes a mistake.
1565
1566It was created by Rudunits2 $as_me 0.8, which was
1567generated by GNU Autoconf 2.71.  Invocation command line was
1568
1569  $ $0$ac_configure_args_raw
1570
1571_ACEOF
1572exec 5>>config.log
1573{
1574cat <<_ASUNAME
1575## --------- ##
1576## Platform. ##
1577## --------- ##
1578
1579hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1580uname -m = `(uname -m) 2>/dev/null || echo unknown`
1581uname -r = `(uname -r) 2>/dev/null || echo unknown`
1582uname -s = `(uname -s) 2>/dev/null || echo unknown`
1583uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584
1585/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1586/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1587
1588/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1589/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1590/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1591/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1592/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1593/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1594/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1595
1596_ASUNAME
1597
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601  IFS=$as_save_IFS
1602  case $as_dir in #(((
1603    '') as_dir=./ ;;
1604    */) ;;
1605    *) as_dir=$as_dir/ ;;
1606  esac
1607    printf "%s\n" "PATH: $as_dir"
1608  done
1609IFS=$as_save_IFS
1610
1611} >&5
1612
1613cat >&5 <<_ACEOF
1614
1615
1616## ----------- ##
1617## Core tests. ##
1618## ----------- ##
1619
1620_ACEOF
1621
1622
1623# Keep a trace of the command line.
1624# Strip out --no-create and --no-recursion so they do not pile up.
1625# Strip out --silent because we don't want to record it for future runs.
1626# Also quote any args containing shell meta-characters.
1627# Make two passes to allow for proper duplicate-argument suppression.
1628ac_configure_args=
1629ac_configure_args0=
1630ac_configure_args1=
1631ac_must_keep_next=false
1632for ac_pass in 1 2
1633do
1634  for ac_arg
1635  do
1636    case $ac_arg in
1637    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639    | -silent | --silent | --silen | --sile | --sil)
1640      continue ;;
1641    *\'*)
1642      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643    esac
1644    case $ac_pass in
1645    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1646    2)
1647      as_fn_append ac_configure_args1 " '$ac_arg'"
1648      if test $ac_must_keep_next = true; then
1649	ac_must_keep_next=false # Got value, back to normal.
1650      else
1651	case $ac_arg in
1652	  *=* | --config-cache | -C | -disable-* | --disable-* \
1653	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655	  | -with-* | --with-* | -without-* | --without-* | --x)
1656	    case "$ac_configure_args0 " in
1657	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658	    esac
1659	    ;;
1660	  -* ) ac_must_keep_next=true ;;
1661	esac
1662      fi
1663      as_fn_append ac_configure_args " '$ac_arg'"
1664      ;;
1665    esac
1666  done
1667done
1668{ ac_configure_args0=; unset ac_configure_args0;}
1669{ ac_configure_args1=; unset ac_configure_args1;}
1670
1671# When interrupted or exit'd, cleanup temporary files, and complete
1672# config.log.  We remove comments because anyway the quotes in there
1673# would cause problems or look ugly.
1674# WARNING: Use '\'' to represent an apostrophe within the trap.
1675# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676trap 'exit_status=$?
1677  # Sanitize IFS.
1678  IFS=" ""	$as_nl"
1679  # Save into config.log some information that might help in debugging.
1680  {
1681    echo
1682
1683    printf "%s\n" "## ---------------- ##
1684## Cache variables. ##
1685## ---------------- ##"
1686    echo
1687    # The following way of writing the cache mishandles newlines in values,
1688(
1689  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690    eval ac_val=\$$ac_var
1691    case $ac_val in #(
1692    *${as_nl}*)
1693      case $ac_var in #(
1694      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1695printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1696      esac
1697      case $ac_var in #(
1698      _ | IFS | as_nl) ;; #(
1699      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1700      *) { eval $ac_var=; unset $ac_var;} ;;
1701      esac ;;
1702    esac
1703  done
1704  (set) 2>&1 |
1705    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706    *${as_nl}ac_space=\ *)
1707      sed -n \
1708	"s/'\''/'\''\\\\'\'''\''/g;
1709	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710      ;; #(
1711    *)
1712      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713      ;;
1714    esac |
1715    sort
1716)
1717    echo
1718
1719    printf "%s\n" "## ----------------- ##
1720## Output variables. ##
1721## ----------------- ##"
1722    echo
1723    for ac_var in $ac_subst_vars
1724    do
1725      eval ac_val=\$$ac_var
1726      case $ac_val in
1727      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728      esac
1729      printf "%s\n" "$ac_var='\''$ac_val'\''"
1730    done | sort
1731    echo
1732
1733    if test -n "$ac_subst_files"; then
1734      printf "%s\n" "## ------------------- ##
1735## File substitutions. ##
1736## ------------------- ##"
1737      echo
1738      for ac_var in $ac_subst_files
1739      do
1740	eval ac_val=\$$ac_var
1741	case $ac_val in
1742	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743	esac
1744	printf "%s\n" "$ac_var='\''$ac_val'\''"
1745      done | sort
1746      echo
1747    fi
1748
1749    if test -s confdefs.h; then
1750      printf "%s\n" "## ----------- ##
1751## confdefs.h. ##
1752## ----------- ##"
1753      echo
1754      cat confdefs.h
1755      echo
1756    fi
1757    test "$ac_signal" != 0 &&
1758      printf "%s\n" "$as_me: caught signal $ac_signal"
1759    printf "%s\n" "$as_me: exit $exit_status"
1760  } >&5
1761  rm -f core *.core core.conftest.* &&
1762    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763    exit $exit_status
1764' 0
1765for ac_signal in 1 2 13 15; do
1766  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1767done
1768ac_signal=0
1769
1770# confdefs.h avoids OS command line length limits that DEFS can exceed.
1771rm -f -r conftest* confdefs.h
1772
1773printf "%s\n" "/* confdefs.h */" > confdefs.h
1774
1775# Predefined preprocessor variables.
1776
1777printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1778
1779printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1780
1781printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1782
1783printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1784
1785printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1786
1787printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1788
1789
1790# Let the site file select an alternate cache file if it wants to.
1791# Prefer an explicitly selected file to automatically selected ones.
1792if test -n "$CONFIG_SITE"; then
1793  ac_site_files="$CONFIG_SITE"
1794elif test "x$prefix" != xNONE; then
1795  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1796else
1797  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1798fi
1799
1800for ac_site_file in $ac_site_files
1801do
1802  case $ac_site_file in #(
1803  */*) :
1804     ;; #(
1805  *) :
1806    ac_site_file=./$ac_site_file ;;
1807esac
1808  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1809    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1810printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1811    sed 's/^/| /' "$ac_site_file" >&5
1812    . "$ac_site_file" \
1813      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1814printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1815as_fn_error $? "failed to load site script $ac_site_file
1816See \`config.log' for more details" "$LINENO" 5; }
1817  fi
1818done
1819
1820if test -r "$cache_file"; then
1821  # Some versions of bash will fail to source /dev/null (special files
1822  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1823  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1824    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1825printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1826    case $cache_file in
1827      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1828      *)                      . "./$cache_file";;
1829    esac
1830  fi
1831else
1832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1833printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1834  >$cache_file
1835fi
1836
1837# Test code for whether the C compiler supports C89 (global declarations)
1838ac_c_conftest_c89_globals='
1839/* Does the compiler advertise C89 conformance?
1840   Do not test the value of __STDC__, because some compilers set it to 0
1841   while being otherwise adequately conformant. */
1842#if !defined __STDC__
1843# error "Compiler does not advertise C89 conformance"
1844#endif
1845
1846#include <stddef.h>
1847#include <stdarg.h>
1848struct stat;
1849/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
1850struct buf { int x; };
1851struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1852static char *e (p, i)
1853     char **p;
1854     int i;
1855{
1856  return p[i];
1857}
1858static char *f (char * (*g) (char **, int), char **p, ...)
1859{
1860  char *s;
1861  va_list v;
1862  va_start (v,p);
1863  s = g (p, va_arg (v,int));
1864  va_end (v);
1865  return s;
1866}
1867
1868/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1869   function prototypes and stuff, but not \xHH hex character constants.
1870   These do not provoke an error unfortunately, instead are silently treated
1871   as an "x".  The following induces an error, until -std is added to get
1872   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
1873   array size at least.  It is necessary to write \x00 == 0 to get something
1874   that is true only with -std.  */
1875int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1876
1877/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1878   inside strings and character constants.  */
1879#define FOO(x) '\''x'\''
1880int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1881
1882int test (int i, double x);
1883struct s1 {int (*f) (int a);};
1884struct s2 {int (*f) (double a);};
1885int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1886               int, int);'
1887
1888# Test code for whether the C compiler supports C89 (body of main).
1889ac_c_conftest_c89_main='
1890ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1891'
1892
1893# Test code for whether the C compiler supports C99 (global declarations)
1894ac_c_conftest_c99_globals='
1895// Does the compiler advertise C99 conformance?
1896#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1897# error "Compiler does not advertise C99 conformance"
1898#endif
1899
1900#include <stdbool.h>
1901extern int puts (const char *);
1902extern int printf (const char *, ...);
1903extern int dprintf (int, const char *, ...);
1904extern void *malloc (size_t);
1905
1906// Check varargs macros.  These examples are taken from C99 6.10.3.5.
1907// dprintf is used instead of fprintf to avoid needing to declare
1908// FILE and stderr.
1909#define debug(...) dprintf (2, __VA_ARGS__)
1910#define showlist(...) puts (#__VA_ARGS__)
1911#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1912static void
1913test_varargs_macros (void)
1914{
1915  int x = 1234;
1916  int y = 5678;
1917  debug ("Flag");
1918  debug ("X = %d\n", x);
1919  showlist (The first, second, and third items.);
1920  report (x>y, "x is %d but y is %d", x, y);
1921}
1922
1923// Check long long types.
1924#define BIG64 18446744073709551615ull
1925#define BIG32 4294967295ul
1926#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1927#if !BIG_OK
1928  #error "your preprocessor is broken"
1929#endif
1930#if BIG_OK
1931#else
1932  #error "your preprocessor is broken"
1933#endif
1934static long long int bignum = -9223372036854775807LL;
1935static unsigned long long int ubignum = BIG64;
1936
1937struct incomplete_array
1938{
1939  int datasize;
1940  double data[];
1941};
1942
1943struct named_init {
1944  int number;
1945  const wchar_t *name;
1946  double average;
1947};
1948
1949typedef const char *ccp;
1950
1951static inline int
1952test_restrict (ccp restrict text)
1953{
1954  // See if C++-style comments work.
1955  // Iterate through items via the restricted pointer.
1956  // Also check for declarations in for loops.
1957  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
1958    continue;
1959  return 0;
1960}
1961
1962// Check varargs and va_copy.
1963static bool
1964test_varargs (const char *format, ...)
1965{
1966  va_list args;
1967  va_start (args, format);
1968  va_list args_copy;
1969  va_copy (args_copy, args);
1970
1971  const char *str = "";
1972  int number = 0;
1973  float fnumber = 0;
1974
1975  while (*format)
1976    {
1977      switch (*format++)
1978	{
1979	case '\''s'\'': // string
1980	  str = va_arg (args_copy, const char *);
1981	  break;
1982	case '\''d'\'': // int
1983	  number = va_arg (args_copy, int);
1984	  break;
1985	case '\''f'\'': // float
1986	  fnumber = va_arg (args_copy, double);
1987	  break;
1988	default:
1989	  break;
1990	}
1991    }
1992  va_end (args_copy);
1993  va_end (args);
1994
1995  return *str && number && fnumber;
1996}
1997'
1998
1999# Test code for whether the C compiler supports C99 (body of main).
2000ac_c_conftest_c99_main='
2001  // Check bool.
2002  _Bool success = false;
2003  success |= (argc != 0);
2004
2005  // Check restrict.
2006  if (test_restrict ("String literal") == 0)
2007    success = true;
2008  char *restrict newvar = "Another string";
2009
2010  // Check varargs.
2011  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2012  test_varargs_macros ();
2013
2014  // Check flexible array members.
2015  struct incomplete_array *ia =
2016    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2017  ia->datasize = 10;
2018  for (int i = 0; i < ia->datasize; ++i)
2019    ia->data[i] = i * 1.234;
2020
2021  // Check named initializers.
2022  struct named_init ni = {
2023    .number = 34,
2024    .name = L"Test wide string",
2025    .average = 543.34343,
2026  };
2027
2028  ni.number = 58;
2029
2030  int dynamic_array[ni.number];
2031  dynamic_array[0] = argv[0][0];
2032  dynamic_array[ni.number - 1] = 543;
2033
2034  // work around unused variable warnings
2035  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2036	 || dynamic_array[ni.number - 1] != 543);
2037'
2038
2039# Test code for whether the C compiler supports C11 (global declarations)
2040ac_c_conftest_c11_globals='
2041// Does the compiler advertise C11 conformance?
2042#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2043# error "Compiler does not advertise C11 conformance"
2044#endif
2045
2046// Check _Alignas.
2047char _Alignas (double) aligned_as_double;
2048char _Alignas (0) no_special_alignment;
2049extern char aligned_as_int;
2050char _Alignas (0) _Alignas (int) aligned_as_int;
2051
2052// Check _Alignof.
2053enum
2054{
2055  int_alignment = _Alignof (int),
2056  int_array_alignment = _Alignof (int[100]),
2057  char_alignment = _Alignof (char)
2058};
2059_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2060
2061// Check _Noreturn.
2062int _Noreturn does_not_return (void) { for (;;) continue; }
2063
2064// Check _Static_assert.
2065struct test_static_assert
2066{
2067  int x;
2068  _Static_assert (sizeof (int) <= sizeof (long int),
2069                  "_Static_assert does not work in struct");
2070  long int y;
2071};
2072
2073// Check UTF-8 literals.
2074#define u8 syntax error!
2075char const utf8_literal[] = u8"happens to be ASCII" "another string";
2076
2077// Check duplicate typedefs.
2078typedef long *long_ptr;
2079typedef long int *long_ptr;
2080typedef long_ptr long_ptr;
2081
2082// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2083struct anonymous
2084{
2085  union {
2086    struct { int i; int j; };
2087    struct { int k; long int l; } w;
2088  };
2089  int m;
2090} v1;
2091'
2092
2093# Test code for whether the C compiler supports C11 (body of main).
2094ac_c_conftest_c11_main='
2095  _Static_assert ((offsetof (struct anonymous, i)
2096		   == offsetof (struct anonymous, w.k)),
2097		  "Anonymous union alignment botch");
2098  v1.i = 2;
2099  v1.w.k = 5;
2100  ok |= v1.i != 5;
2101'
2102
2103# Test code for whether the C compiler supports C11 (complete).
2104ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2105${ac_c_conftest_c99_globals}
2106${ac_c_conftest_c11_globals}
2107
2108int
2109main (int argc, char **argv)
2110{
2111  int ok = 0;
2112  ${ac_c_conftest_c89_main}
2113  ${ac_c_conftest_c99_main}
2114  ${ac_c_conftest_c11_main}
2115  return ok;
2116}
2117"
2118
2119# Test code for whether the C compiler supports C99 (complete).
2120ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2121${ac_c_conftest_c99_globals}
2122
2123int
2124main (int argc, char **argv)
2125{
2126  int ok = 0;
2127  ${ac_c_conftest_c89_main}
2128  ${ac_c_conftest_c99_main}
2129  return ok;
2130}
2131"
2132
2133# Test code for whether the C compiler supports C89 (complete).
2134ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2135
2136int
2137main (int argc, char **argv)
2138{
2139  int ok = 0;
2140  ${ac_c_conftest_c89_main}
2141  return ok;
2142}
2143"
2144
2145as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2146as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2147as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2148as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2149as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2150as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2151as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2152as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2153as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2154# Check that the precious variables saved in the cache have kept the same
2155# value.
2156ac_cache_corrupted=false
2157for ac_var in $ac_precious_vars; do
2158  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159  eval ac_new_set=\$ac_env_${ac_var}_set
2160  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161  eval ac_new_val=\$ac_env_${ac_var}_value
2162  case $ac_old_set,$ac_new_set in
2163    set,)
2164      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166      ac_cache_corrupted=: ;;
2167    ,set)
2168      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170      ac_cache_corrupted=: ;;
2171    ,);;
2172    *)
2173      if test "x$ac_old_val" != "x$ac_new_val"; then
2174	# differences in whitespace do not lead to failure.
2175	ac_old_val_w=`echo x $ac_old_val`
2176	ac_new_val_w=`echo x $ac_new_val`
2177	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180	  ac_cache_corrupted=:
2181	else
2182	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184	  eval $ac_var=\$ac_old_val
2185	fi
2186	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2187printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2188	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2189printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2190      fi;;
2191  esac
2192  # Pass precious variables to config.status.
2193  if test "$ac_new_set" = set; then
2194    case $ac_new_val in
2195    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196    *) ac_arg=$ac_var=$ac_new_val ;;
2197    esac
2198    case " $ac_configure_args " in
2199      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2200      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201    esac
2202  fi
2203done
2204if $ac_cache_corrupted; then
2205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2209  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2210	    and start over" "$LINENO" 5
2211fi
2212## -------------------- ##
2213## Main body of script. ##
2214## -------------------- ##
2215
2216ac_ext=c
2217ac_cpp='$CPP $CPPFLAGS'
2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223
2224CC=`"${R_HOME}/bin/R" CMD config CC`
2225CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
2226CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
2227
2228ac_ext=c
2229ac_cpp='$CPP $CPPFLAGS'
2230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233
2234
2235
2236# Check whether --with-udunits2-include was given.
2237if test ${with_udunits2_include+y}
2238then :
2239  withval=$with_udunits2_include; udunits2_include_path=$withval
2240fi
2241
2242if test  -n "$udunits2_include_path"  ; then
2243   UD_CPPFLAGS="-I${udunits2_include_path}"
2244else
2245   if test  -n "${UDUNITS2_INCLUDE}"  ; then
2246      UD_CPPFLAGS="-I{UDUNITS2_INCLUDE}"
2247   fi
2248fi
2249
2250
2251# Check whether --with-udunits2-lib was given.
2252if test ${with_udunits2_lib+y}
2253then :
2254  withval=$with_udunits2_lib; udunits2_lib_path=$withval
2255fi
2256
2257if test  -n "$udunits2_lib_path"  ; then
2258   LIBS="-L${udunits2_lib_path} ${LIBS}"
2259else
2260   if test  -n "${UDUNITS2_LIBS}"  ; then
2261      LIBS="-L${UDUNITS2_LIBS} ${LIBS}"
2262   fi
2263fi
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274ac_ext=c
2275ac_cpp='$CPP $CPPFLAGS'
2276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279if test -n "$ac_tool_prefix"; then
2280  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2281set dummy ${ac_tool_prefix}gcc; ac_word=$2
2282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2283printf %s "checking for $ac_word... " >&6; }
2284if test ${ac_cv_prog_CC+y}
2285then :
2286  printf %s "(cached) " >&6
2287else $as_nop
2288  if test -n "$CC"; then
2289  ac_cv_prog_CC="$CC" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294  IFS=$as_save_IFS
2295  case $as_dir in #(((
2296    '') as_dir=./ ;;
2297    */) ;;
2298    *) as_dir=$as_dir/ ;;
2299  esac
2300    for ac_exec_ext in '' $ac_executable_extensions; do
2301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2302    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2304    break 2
2305  fi
2306done
2307  done
2308IFS=$as_save_IFS
2309
2310fi
2311fi
2312CC=$ac_cv_prog_CC
2313if test -n "$CC"; then
2314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2315printf "%s\n" "$CC" >&6; }
2316else
2317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2318printf "%s\n" "no" >&6; }
2319fi
2320
2321
2322fi
2323if test -z "$ac_cv_prog_CC"; then
2324  ac_ct_CC=$CC
2325  # Extract the first word of "gcc", so it can be a program name with args.
2326set dummy gcc; ac_word=$2
2327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2328printf %s "checking for $ac_word... " >&6; }
2329if test ${ac_cv_prog_ac_ct_CC+y}
2330then :
2331  printf %s "(cached) " >&6
2332else $as_nop
2333  if test -n "$ac_ct_CC"; then
2334  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2335else
2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339  IFS=$as_save_IFS
2340  case $as_dir in #(((
2341    '') as_dir=./ ;;
2342    */) ;;
2343    *) as_dir=$as_dir/ ;;
2344  esac
2345    for ac_exec_ext in '' $ac_executable_extensions; do
2346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2347    ac_cv_prog_ac_ct_CC="gcc"
2348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2349    break 2
2350  fi
2351done
2352  done
2353IFS=$as_save_IFS
2354
2355fi
2356fi
2357ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358if test -n "$ac_ct_CC"; then
2359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2360printf "%s\n" "$ac_ct_CC" >&6; }
2361else
2362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2363printf "%s\n" "no" >&6; }
2364fi
2365
2366  if test "x$ac_ct_CC" = x; then
2367    CC=""
2368  else
2369    case $cross_compiling:$ac_tool_warned in
2370yes:)
2371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2372printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2373ac_tool_warned=yes ;;
2374esac
2375    CC=$ac_ct_CC
2376  fi
2377else
2378  CC="$ac_cv_prog_CC"
2379fi
2380
2381if test -z "$CC"; then
2382          if test -n "$ac_tool_prefix"; then
2383    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2384set dummy ${ac_tool_prefix}cc; ac_word=$2
2385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2386printf %s "checking for $ac_word... " >&6; }
2387if test ${ac_cv_prog_CC+y}
2388then :
2389  printf %s "(cached) " >&6
2390else $as_nop
2391  if test -n "$CC"; then
2392  ac_cv_prog_CC="$CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397  IFS=$as_save_IFS
2398  case $as_dir in #(((
2399    '') as_dir=./ ;;
2400    */) ;;
2401    *) as_dir=$as_dir/ ;;
2402  esac
2403    for ac_exec_ext in '' $ac_executable_extensions; do
2404  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2405    ac_cv_prog_CC="${ac_tool_prefix}cc"
2406    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2407    break 2
2408  fi
2409done
2410  done
2411IFS=$as_save_IFS
2412
2413fi
2414fi
2415CC=$ac_cv_prog_CC
2416if test -n "$CC"; then
2417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2418printf "%s\n" "$CC" >&6; }
2419else
2420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2421printf "%s\n" "no" >&6; }
2422fi
2423
2424
2425  fi
2426fi
2427if test -z "$CC"; then
2428  # Extract the first word of "cc", so it can be a program name with args.
2429set dummy cc; ac_word=$2
2430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431printf %s "checking for $ac_word... " >&6; }
2432if test ${ac_cv_prog_CC+y}
2433then :
2434  printf %s "(cached) " >&6
2435else $as_nop
2436  if test -n "$CC"; then
2437  ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439  ac_prog_rejected=no
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443  IFS=$as_save_IFS
2444  case $as_dir in #(((
2445    '') as_dir=./ ;;
2446    */) ;;
2447    *) as_dir=$as_dir/ ;;
2448  esac
2449    for ac_exec_ext in '' $ac_executable_extensions; do
2450  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2451    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2452       ac_prog_rejected=yes
2453       continue
2454     fi
2455    ac_cv_prog_CC="cc"
2456    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2457    break 2
2458  fi
2459done
2460  done
2461IFS=$as_save_IFS
2462
2463if test $ac_prog_rejected = yes; then
2464  # We found a bogon in the path, so make sure we never use it.
2465  set dummy $ac_cv_prog_CC
2466  shift
2467  if test $# != 0; then
2468    # We chose a different compiler from the bogus one.
2469    # However, it has the same basename, so the bogon will be chosen
2470    # first if we set CC to just the basename; use the full file name.
2471    shift
2472    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2473  fi
2474fi
2475fi
2476fi
2477CC=$ac_cv_prog_CC
2478if test -n "$CC"; then
2479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2480printf "%s\n" "$CC" >&6; }
2481else
2482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483printf "%s\n" "no" >&6; }
2484fi
2485
2486
2487fi
2488if test -z "$CC"; then
2489  if test -n "$ac_tool_prefix"; then
2490  for ac_prog in cl.exe
2491  do
2492    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495printf %s "checking for $ac_word... " >&6; }
2496if test ${ac_cv_prog_CC+y}
2497then :
2498  printf %s "(cached) " >&6
2499else $as_nop
2500  if test -n "$CC"; then
2501  ac_cv_prog_CC="$CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506  IFS=$as_save_IFS
2507  case $as_dir in #(((
2508    '') as_dir=./ ;;
2509    */) ;;
2510    *) as_dir=$as_dir/ ;;
2511  esac
2512    for ac_exec_ext in '' $ac_executable_extensions; do
2513  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2514    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2515    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2516    break 2
2517  fi
2518done
2519  done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524CC=$ac_cv_prog_CC
2525if test -n "$CC"; then
2526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2527printf "%s\n" "$CC" >&6; }
2528else
2529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530printf "%s\n" "no" >&6; }
2531fi
2532
2533
2534    test -n "$CC" && break
2535  done
2536fi
2537if test -z "$CC"; then
2538  ac_ct_CC=$CC
2539  for ac_prog in cl.exe
2540do
2541  # Extract the first word of "$ac_prog", so it can be a program name with args.
2542set dummy $ac_prog; ac_word=$2
2543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544printf %s "checking for $ac_word... " >&6; }
2545if test ${ac_cv_prog_ac_ct_CC+y}
2546then :
2547  printf %s "(cached) " >&6
2548else $as_nop
2549  if test -n "$ac_ct_CC"; then
2550  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555  IFS=$as_save_IFS
2556  case $as_dir in #(((
2557    '') as_dir=./ ;;
2558    */) ;;
2559    *) as_dir=$as_dir/ ;;
2560  esac
2561    for ac_exec_ext in '' $ac_executable_extensions; do
2562  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2563    ac_cv_prog_ac_ct_CC="$ac_prog"
2564    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2565    break 2
2566  fi
2567done
2568  done
2569IFS=$as_save_IFS
2570
2571fi
2572fi
2573ac_ct_CC=$ac_cv_prog_ac_ct_CC
2574if test -n "$ac_ct_CC"; then
2575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2576printf "%s\n" "$ac_ct_CC" >&6; }
2577else
2578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579printf "%s\n" "no" >&6; }
2580fi
2581
2582
2583  test -n "$ac_ct_CC" && break
2584done
2585
2586  if test "x$ac_ct_CC" = x; then
2587    CC=""
2588  else
2589    case $cross_compiling:$ac_tool_warned in
2590yes:)
2591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593ac_tool_warned=yes ;;
2594esac
2595    CC=$ac_ct_CC
2596  fi
2597fi
2598
2599fi
2600if test -z "$CC"; then
2601  if test -n "$ac_tool_prefix"; then
2602  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2603set dummy ${ac_tool_prefix}clang; ac_word=$2
2604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605printf %s "checking for $ac_word... " >&6; }
2606if test ${ac_cv_prog_CC+y}
2607then :
2608  printf %s "(cached) " >&6
2609else $as_nop
2610  if test -n "$CC"; then
2611  ac_cv_prog_CC="$CC" # Let the user override the test.
2612else
2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616  IFS=$as_save_IFS
2617  case $as_dir in #(((
2618    '') as_dir=./ ;;
2619    */) ;;
2620    *) as_dir=$as_dir/ ;;
2621  esac
2622    for ac_exec_ext in '' $ac_executable_extensions; do
2623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2624    ac_cv_prog_CC="${ac_tool_prefix}clang"
2625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2626    break 2
2627  fi
2628done
2629  done
2630IFS=$as_save_IFS
2631
2632fi
2633fi
2634CC=$ac_cv_prog_CC
2635if test -n "$CC"; then
2636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2637printf "%s\n" "$CC" >&6; }
2638else
2639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640printf "%s\n" "no" >&6; }
2641fi
2642
2643
2644fi
2645if test -z "$ac_cv_prog_CC"; then
2646  ac_ct_CC=$CC
2647  # Extract the first word of "clang", so it can be a program name with args.
2648set dummy clang; ac_word=$2
2649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650printf %s "checking for $ac_word... " >&6; }
2651if test ${ac_cv_prog_ac_ct_CC+y}
2652then :
2653  printf %s "(cached) " >&6
2654else $as_nop
2655  if test -n "$ac_ct_CC"; then
2656  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661  IFS=$as_save_IFS
2662  case $as_dir in #(((
2663    '') as_dir=./ ;;
2664    */) ;;
2665    *) as_dir=$as_dir/ ;;
2666  esac
2667    for ac_exec_ext in '' $ac_executable_extensions; do
2668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2669    ac_cv_prog_ac_ct_CC="clang"
2670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2671    break 2
2672  fi
2673done
2674  done
2675IFS=$as_save_IFS
2676
2677fi
2678fi
2679ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680if test -n "$ac_ct_CC"; then
2681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2682printf "%s\n" "$ac_ct_CC" >&6; }
2683else
2684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685printf "%s\n" "no" >&6; }
2686fi
2687
2688  if test "x$ac_ct_CC" = x; then
2689    CC=""
2690  else
2691    case $cross_compiling:$ac_tool_warned in
2692yes:)
2693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695ac_tool_warned=yes ;;
2696esac
2697    CC=$ac_ct_CC
2698  fi
2699else
2700  CC="$ac_cv_prog_CC"
2701fi
2702
2703fi
2704
2705
2706test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2708as_fn_error $? "no acceptable C compiler found in \$PATH
2709See \`config.log' for more details" "$LINENO" 5; }
2710
2711# Provide some information about the compiler.
2712printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2713set X $ac_compile
2714ac_compiler=$2
2715for ac_option in --version -v -V -qversion -version; do
2716  { { ac_try="$ac_compiler $ac_option >&5"
2717case "(($ac_try" in
2718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719  *) ac_try_echo=$ac_try;;
2720esac
2721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722printf "%s\n" "$ac_try_echo"; } >&5
2723  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2724  ac_status=$?
2725  if test -s conftest.err; then
2726    sed '10a\
2727... rest of stderr output deleted ...
2728         10q' conftest.err >conftest.er1
2729    cat conftest.er1 >&5
2730  fi
2731  rm -f conftest.er1 conftest.err
2732  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733  test $ac_status = 0; }
2734done
2735
2736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737/* end confdefs.h.  */
2738
2739int
2740main (void)
2741{
2742
2743  ;
2744  return 0;
2745}
2746_ACEOF
2747ac_clean_files_save=$ac_clean_files
2748ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2749# Try to create an executable without -o first, disregard a.out.
2750# It will help us diagnose broken compilers, and finding out an intuition
2751# of exeext.
2752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2753printf %s "checking whether the C compiler works... " >&6; }
2754ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755
2756# The possible output files:
2757ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2758
2759ac_rmfiles=
2760for ac_file in $ac_files
2761do
2762  case $ac_file in
2763    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2764    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2765  esac
2766done
2767rm -f $ac_rmfiles
2768
2769if { { ac_try="$ac_link_default"
2770case "(($ac_try" in
2771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772  *) ac_try_echo=$ac_try;;
2773esac
2774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775printf "%s\n" "$ac_try_echo"; } >&5
2776  (eval "$ac_link_default") 2>&5
2777  ac_status=$?
2778  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779  test $ac_status = 0; }
2780then :
2781  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2782# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2783# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2784# so that the user can short-circuit this test for compilers unknown to
2785# Autoconf.
2786for ac_file in $ac_files ''
2787do
2788  test -f "$ac_file" || continue
2789  case $ac_file in
2790    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2791	;;
2792    [ab].out )
2793	# We found the default executable, but exeext='' is most
2794	# certainly right.
2795	break;;
2796    *.* )
2797	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2798	then :; else
2799	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2800	fi
2801	# We set ac_cv_exeext here because the later test for it is not
2802	# safe: cross compilers may not add the suffix if given an `-o'
2803	# argument, so we may need to know it at that point already.
2804	# Even if this section looks crufty: it has the advantage of
2805	# actually working.
2806	break;;
2807    * )
2808	break;;
2809  esac
2810done
2811test "$ac_cv_exeext" = no && ac_cv_exeext=
2812
2813else $as_nop
2814  ac_file=''
2815fi
2816if test -z "$ac_file"
2817then :
2818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819printf "%s\n" "no" >&6; }
2820printf "%s\n" "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2825as_fn_error 77 "C compiler cannot create executables
2826See \`config.log' for more details" "$LINENO" 5; }
2827else $as_nop
2828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829printf "%s\n" "yes" >&6; }
2830fi
2831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2832printf %s "checking for C compiler default output file name... " >&6; }
2833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2834printf "%s\n" "$ac_file" >&6; }
2835ac_exeext=$ac_cv_exeext
2836
2837rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2838ac_clean_files=$ac_clean_files_save
2839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2840printf %s "checking for suffix of executables... " >&6; }
2841if { { ac_try="$ac_link"
2842case "(($ac_try" in
2843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844  *) ac_try_echo=$ac_try;;
2845esac
2846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847printf "%s\n" "$ac_try_echo"; } >&5
2848  (eval "$ac_link") 2>&5
2849  ac_status=$?
2850  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851  test $ac_status = 0; }
2852then :
2853  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2855# work properly (i.e., refer to `conftest.exe'), while it won't with
2856# `rm'.
2857for ac_file in conftest.exe conftest conftest.*; do
2858  test -f "$ac_file" || continue
2859  case $ac_file in
2860    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2861    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862	  break;;
2863    * ) break;;
2864  esac
2865done
2866else $as_nop
2867  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2869as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2870See \`config.log' for more details" "$LINENO" 5; }
2871fi
2872rm -f conftest conftest$ac_cv_exeext
2873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2874printf "%s\n" "$ac_cv_exeext" >&6; }
2875
2876rm -f conftest.$ac_ext
2877EXEEXT=$ac_cv_exeext
2878ac_exeext=$EXEEXT
2879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880/* end confdefs.h.  */
2881#include <stdio.h>
2882int
2883main (void)
2884{
2885FILE *f = fopen ("conftest.out", "w");
2886 return ferror (f) || fclose (f) != 0;
2887
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892ac_clean_files="$ac_clean_files conftest.out"
2893# Check that the compiler produces executables we can run.  If not, either
2894# the compiler is broken, or we cross compile.
2895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2896printf %s "checking whether we are cross compiling... " >&6; }
2897if test "$cross_compiling" != yes; then
2898  { { ac_try="$ac_link"
2899case "(($ac_try" in
2900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901  *) ac_try_echo=$ac_try;;
2902esac
2903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904printf "%s\n" "$ac_try_echo"; } >&5
2905  (eval "$ac_link") 2>&5
2906  ac_status=$?
2907  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908  test $ac_status = 0; }
2909  if { ac_try='./conftest$ac_cv_exeext'
2910  { { case "(($ac_try" in
2911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912  *) ac_try_echo=$ac_try;;
2913esac
2914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915printf "%s\n" "$ac_try_echo"; } >&5
2916  (eval "$ac_try") 2>&5
2917  ac_status=$?
2918  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919  test $ac_status = 0; }; }; then
2920    cross_compiling=no
2921  else
2922    if test "$cross_compiling" = maybe; then
2923	cross_compiling=yes
2924    else
2925	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2927as_fn_error 77 "cannot run C compiled programs.
2928If you meant to cross compile, use \`--host'.
2929See \`config.log' for more details" "$LINENO" 5; }
2930    fi
2931  fi
2932fi
2933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2934printf "%s\n" "$cross_compiling" >&6; }
2935
2936rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2937ac_clean_files=$ac_clean_files_save
2938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2939printf %s "checking for suffix of object files... " >&6; }
2940if test ${ac_cv_objext+y}
2941then :
2942  printf %s "(cached) " >&6
2943else $as_nop
2944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945/* end confdefs.h.  */
2946
2947int
2948main (void)
2949{
2950
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955rm -f conftest.o conftest.obj
2956if { { ac_try="$ac_compile"
2957case "(($ac_try" in
2958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959  *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962printf "%s\n" "$ac_try_echo"; } >&5
2963  (eval "$ac_compile") 2>&5
2964  ac_status=$?
2965  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966  test $ac_status = 0; }
2967then :
2968  for ac_file in conftest.o conftest.obj conftest.*; do
2969  test -f "$ac_file" || continue;
2970  case $ac_file in
2971    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2972    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2973       break;;
2974  esac
2975done
2976else $as_nop
2977  printf "%s\n" "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2982as_fn_error $? "cannot compute suffix of object files: cannot compile
2983See \`config.log' for more details" "$LINENO" 5; }
2984fi
2985rm -f conftest.$ac_cv_objext conftest.$ac_ext
2986fi
2987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2988printf "%s\n" "$ac_cv_objext" >&6; }
2989OBJEXT=$ac_cv_objext
2990ac_objext=$OBJEXT
2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
2992printf %s "checking whether the compiler supports GNU C... " >&6; }
2993if test ${ac_cv_c_compiler_gnu+y}
2994then :
2995  printf %s "(cached) " >&6
2996else $as_nop
2997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h.  */
2999
3000int
3001main (void)
3002{
3003#ifndef __GNUC__
3004       choke me
3005#endif
3006
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011if ac_fn_c_try_compile "$LINENO"
3012then :
3013  ac_compiler_gnu=yes
3014else $as_nop
3015  ac_compiler_gnu=no
3016fi
3017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3018ac_cv_c_compiler_gnu=$ac_compiler_gnu
3019
3020fi
3021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3022printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3023ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024
3025if test $ac_compiler_gnu = yes; then
3026  GCC=yes
3027else
3028  GCC=
3029fi
3030ac_test_CFLAGS=${CFLAGS+y}
3031ac_save_CFLAGS=$CFLAGS
3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3033printf %s "checking whether $CC accepts -g... " >&6; }
3034if test ${ac_cv_prog_cc_g+y}
3035then :
3036  printf %s "(cached) " >&6
3037else $as_nop
3038  ac_save_c_werror_flag=$ac_c_werror_flag
3039   ac_c_werror_flag=yes
3040   ac_cv_prog_cc_g=no
3041   CFLAGS="-g"
3042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043/* end confdefs.h.  */
3044
3045int
3046main (void)
3047{
3048
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053if ac_fn_c_try_compile "$LINENO"
3054then :
3055  ac_cv_prog_cc_g=yes
3056else $as_nop
3057  CFLAGS=""
3058      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059/* end confdefs.h.  */
3060
3061int
3062main (void)
3063{
3064
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069if ac_fn_c_try_compile "$LINENO"
3070then :
3071
3072else $as_nop
3073  ac_c_werror_flag=$ac_save_c_werror_flag
3074	 CFLAGS="-g"
3075	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h.  */
3077
3078int
3079main (void)
3080{
3081
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086if ac_fn_c_try_compile "$LINENO"
3087then :
3088  ac_cv_prog_cc_g=yes
3089fi
3090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3091fi
3092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3093fi
3094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3095   ac_c_werror_flag=$ac_save_c_werror_flag
3096fi
3097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3098printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3099if test $ac_test_CFLAGS; then
3100  CFLAGS=$ac_save_CFLAGS
3101elif test $ac_cv_prog_cc_g = yes; then
3102  if test "$GCC" = yes; then
3103    CFLAGS="-g -O2"
3104  else
3105    CFLAGS="-g"
3106  fi
3107else
3108  if test "$GCC" = yes; then
3109    CFLAGS="-O2"
3110  else
3111    CFLAGS=
3112  fi
3113fi
3114ac_prog_cc_stdc=no
3115if test x$ac_prog_cc_stdc = xno
3116then :
3117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3118printf %s "checking for $CC option to enable C11 features... " >&6; }
3119if test ${ac_cv_prog_cc_c11+y}
3120then :
3121  printf %s "(cached) " >&6
3122else $as_nop
3123  ac_cv_prog_cc_c11=no
3124ac_save_CC=$CC
3125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h.  */
3127$ac_c_conftest_c11_program
3128_ACEOF
3129for ac_arg in '' -std=gnu11
3130do
3131  CC="$ac_save_CC $ac_arg"
3132  if ac_fn_c_try_compile "$LINENO"
3133then :
3134  ac_cv_prog_cc_c11=$ac_arg
3135fi
3136rm -f core conftest.err conftest.$ac_objext conftest.beam
3137  test "x$ac_cv_prog_cc_c11" != "xno" && break
3138done
3139rm -f conftest.$ac_ext
3140CC=$ac_save_CC
3141fi
3142
3143if test "x$ac_cv_prog_cc_c11" = xno
3144then :
3145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3146printf "%s\n" "unsupported" >&6; }
3147else $as_nop
3148  if test "x$ac_cv_prog_cc_c11" = x
3149then :
3150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3151printf "%s\n" "none needed" >&6; }
3152else $as_nop
3153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3154printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3155     CC="$CC $ac_cv_prog_cc_c11"
3156fi
3157  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3158  ac_prog_cc_stdc=c11
3159fi
3160fi
3161if test x$ac_prog_cc_stdc = xno
3162then :
3163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3164printf %s "checking for $CC option to enable C99 features... " >&6; }
3165if test ${ac_cv_prog_cc_c99+y}
3166then :
3167  printf %s "(cached) " >&6
3168else $as_nop
3169  ac_cv_prog_cc_c99=no
3170ac_save_CC=$CC
3171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h.  */
3173$ac_c_conftest_c99_program
3174_ACEOF
3175for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3176do
3177  CC="$ac_save_CC $ac_arg"
3178  if ac_fn_c_try_compile "$LINENO"
3179then :
3180  ac_cv_prog_cc_c99=$ac_arg
3181fi
3182rm -f core conftest.err conftest.$ac_objext conftest.beam
3183  test "x$ac_cv_prog_cc_c99" != "xno" && break
3184done
3185rm -f conftest.$ac_ext
3186CC=$ac_save_CC
3187fi
3188
3189if test "x$ac_cv_prog_cc_c99" = xno
3190then :
3191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3192printf "%s\n" "unsupported" >&6; }
3193else $as_nop
3194  if test "x$ac_cv_prog_cc_c99" = x
3195then :
3196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3197printf "%s\n" "none needed" >&6; }
3198else $as_nop
3199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3200printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3201     CC="$CC $ac_cv_prog_cc_c99"
3202fi
3203  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3204  ac_prog_cc_stdc=c99
3205fi
3206fi
3207if test x$ac_prog_cc_stdc = xno
3208then :
3209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3210printf %s "checking for $CC option to enable C89 features... " >&6; }
3211if test ${ac_cv_prog_cc_c89+y}
3212then :
3213  printf %s "(cached) " >&6
3214else $as_nop
3215  ac_cv_prog_cc_c89=no
3216ac_save_CC=$CC
3217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h.  */
3219$ac_c_conftest_c89_program
3220_ACEOF
3221for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222do
3223  CC="$ac_save_CC $ac_arg"
3224  if ac_fn_c_try_compile "$LINENO"
3225then :
3226  ac_cv_prog_cc_c89=$ac_arg
3227fi
3228rm -f core conftest.err conftest.$ac_objext conftest.beam
3229  test "x$ac_cv_prog_cc_c89" != "xno" && break
3230done
3231rm -f conftest.$ac_ext
3232CC=$ac_save_CC
3233fi
3234
3235if test "x$ac_cv_prog_cc_c89" = xno
3236then :
3237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3238printf "%s\n" "unsupported" >&6; }
3239else $as_nop
3240  if test "x$ac_cv_prog_cc_c89" = x
3241then :
3242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3243printf "%s\n" "none needed" >&6; }
3244else $as_nop
3245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3246printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3247     CC="$CC $ac_cv_prog_cc_c89"
3248fi
3249  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3250  ac_prog_cc_stdc=c89
3251fi
3252fi
3253
3254ac_ext=c
3255ac_cpp='$CPP $CPPFLAGS'
3256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259
3260
3261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
3262printf %s "checking for XML_ParserCreate in -lexpat... " >&6; }
3263if test ${ac_cv_lib_expat_XML_ParserCreate+y}
3264then :
3265  printf %s "(cached) " >&6
3266else $as_nop
3267  ac_check_lib_save_LIBS=$LIBS
3268LIBS="-lexpat ${LIBS} $LIBS"
3269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272/* Override any GCC internal prototype to avoid an error.
3273   Use char because int might match the return type of a GCC
3274   builtin and then its argument prototype would still apply.  */
3275char XML_ParserCreate ();
3276int
3277main (void)
3278{
3279return XML_ParserCreate ();
3280  ;
3281  return 0;
3282}
3283_ACEOF
3284if ac_fn_c_try_link "$LINENO"
3285then :
3286  ac_cv_lib_expat_XML_ParserCreate=yes
3287else $as_nop
3288  ac_cv_lib_expat_XML_ParserCreate=no
3289fi
3290rm -f core conftest.err conftest.$ac_objext conftest.beam \
3291    conftest$ac_exeext conftest.$ac_ext
3292LIBS=$ac_check_lib_save_LIBS
3293fi
3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
3295printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
3296if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes
3297then :
3298  printf "%s\n" "#define HAVE_LIBEXPAT 1" >>confdefs.h
3299
3300  LIBS="-lexpat $LIBS"
3301
3302fi
3303
3304if test "${ac_cv_lib_expat_XML_ParserCreate}" == yes; then
3305   LIBS="${LIBS} -lexpat "
3306fi
3307
3308CPPFLAGS="${UD_CPPFLAGS} ${CPPFLAGS}"
3309
3310UD_ERROR=""
3311ac_header= ac_cache=
3312for ac_item in $ac_header_c_list
3313do
3314  if test $ac_cache; then
3315    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3316    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3317      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3318    fi
3319    ac_header= ac_cache=
3320  elif test $ac_header; then
3321    ac_cache=$ac_item
3322  else
3323    ac_header=$ac_item
3324  fi
3325done
3326
3327
3328
3329
3330
3331
3332
3333
3334if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3335then :
3336
3337printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3338
3339fi
3340ac_fn_c_check_header_compile "$LINENO" "udunits2.h" "ac_cv_header_udunits2_h" "$ac_includes_default"
3341if test "x$ac_cv_header_udunits2_h" = xyes
3342then :
3343
3344else $as_nop
3345  UD_ERROR="udunits2.h not found"
3346fi
3347
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ut_read_xml in -ludunits2" >&5
3349printf %s "checking for ut_read_xml in -ludunits2... " >&6; }
3350if test ${ac_cv_lib_udunits2_ut_read_xml+y}
3351then :
3352  printf %s "(cached) " >&6
3353else $as_nop
3354  ac_check_lib_save_LIBS=$LIBS
3355LIBS="-ludunits2 ${LIBS} $LIBS"
3356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h.  */
3358
3359/* Override any GCC internal prototype to avoid an error.
3360   Use char because int might match the return type of a GCC
3361   builtin and then its argument prototype would still apply.  */
3362char ut_read_xml ();
3363int
3364main (void)
3365{
3366return ut_read_xml ();
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371if ac_fn_c_try_link "$LINENO"
3372then :
3373  ac_cv_lib_udunits2_ut_read_xml=yes
3374else $as_nop
3375  ac_cv_lib_udunits2_ut_read_xml=yes
3376fi
3377rm -f core conftest.err conftest.$ac_objext conftest.beam \
3378    conftest$ac_exeext conftest.$ac_ext
3379LIBS=$ac_check_lib_save_LIBS
3380fi
3381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udunits2_ut_read_xml" >&5
3382printf "%s\n" "$ac_cv_lib_udunits2_ut_read_xml" >&6; }
3383if test "x$ac_cv_lib_udunits2_ut_read_xml" = xyes
3384then :
3385  printf "%s\n" "#define HAVE_LIBUDUNITS2 1" >>confdefs.h
3386
3387  LIBS="-ludunits2 $LIBS"
3388
3389else $as_nop
3390  UD_ERROR="libudunits2.a not found"
3391fi
3392
3393
3394if test "${UD_ERROR}" != ""  ; then
3395    echo "-----Error: ${UD_ERROR}-----"
3396    echo "     If the udunits2 library is installed in a non-standard location,"
3397    echo "     use --configure-args='--with-udunits2-lib=/usr/local/lib' for example,"
3398    echo "     or --configure-args='--with-udunits2-include=/usr/include/udunits2'"
3399    echo "     replacing paths with appropriate values for your installation."
3400    echo "     You can alternatively use the UDUNITS2_INCLUDE and UDUNITS2_LIB"
3401    echo "     environment variables."
3402    echo "     If udunits2 is not installed, please install it."
3403    echo "     It is required for this package."
3404    exit 1
3405fi
3406
3407LIBS="${LIBS} -ludunits2"
3408
3409
3410
3411
3412ac_config_files="$ac_config_files src/Makevars"
3413
3414cat >confcache <<\_ACEOF
3415# This file is a shell script that caches the results of configure
3416# tests run on this system so they can be shared between configure
3417# scripts and configure runs, see configure's option --config-cache.
3418# It is not useful on other systems.  If it contains results you don't
3419# want to keep, you may remove or edit it.
3420#
3421# config.status only pays attention to the cache file if you give it
3422# the --recheck option to rerun configure.
3423#
3424# `ac_cv_env_foo' variables (set or unset) will be overridden when
3425# loading this file, other *unset* `ac_cv_foo' will be assigned the
3426# following values.
3427
3428_ACEOF
3429
3430# The following way of writing the cache mishandles newlines in values,
3431# but we know of no workaround that is simple, portable, and efficient.
3432# So, we kill variables containing newlines.
3433# Ultrix sh set writes to stderr and can't be redirected directly,
3434# and sets the high bit in the cache file unless we assign to the vars.
3435(
3436  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3437    eval ac_val=\$$ac_var
3438    case $ac_val in #(
3439    *${as_nl}*)
3440      case $ac_var in #(
3441      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3442printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3443      esac
3444      case $ac_var in #(
3445      _ | IFS | as_nl) ;; #(
3446      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3447      *) { eval $ac_var=; unset $ac_var;} ;;
3448      esac ;;
3449    esac
3450  done
3451
3452  (set) 2>&1 |
3453    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3454    *${as_nl}ac_space=\ *)
3455      # `set' does not quote correctly, so add quotes: double-quote
3456      # substitution turns \\\\ into \\, and sed turns \\ into \.
3457      sed -n \
3458	"s/'/'\\\\''/g;
3459	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3460      ;; #(
3461    *)
3462      # `set' quotes correctly as required by POSIX, so do not add quotes.
3463      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3464      ;;
3465    esac |
3466    sort
3467) |
3468  sed '
3469     /^ac_cv_env_/b end
3470     t clear
3471     :clear
3472     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3473     t end
3474     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3475     :end' >>confcache
3476if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3477  if test -w "$cache_file"; then
3478    if test "x$cache_file" != "x/dev/null"; then
3479      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3480printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
3481      if test ! -f "$cache_file" || test -h "$cache_file"; then
3482	cat confcache >"$cache_file"
3483      else
3484        case $cache_file in #(
3485        */* | ?:*)
3486	  mv -f confcache "$cache_file"$$ &&
3487	  mv -f "$cache_file"$$ "$cache_file" ;; #(
3488        *)
3489	  mv -f confcache "$cache_file" ;;
3490	esac
3491      fi
3492    fi
3493  else
3494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3495printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
3496  fi
3497fi
3498rm -f confcache
3499
3500test "x$prefix" = xNONE && prefix=$ac_default_prefix
3501# Let make expand exec_prefix.
3502test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3503
3504# Transform confdefs.h into DEFS.
3505# Protect against shell expansion while executing Makefile rules.
3506# Protect against Makefile macro expansion.
3507#
3508# If the first sed substitution is executed (which looks for macros that
3509# take arguments), then branch to the quote section.  Otherwise,
3510# look for a macro that doesn't take arguments.
3511ac_script='
3512:mline
3513/\\$/{
3514 N
3515 s,\\\n,,
3516 b mline
3517}
3518t clear
3519:clear
3520s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
3521t quote
3522s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
3523t quote
3524b any
3525:quote
3526s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3527s/\[/\\&/g
3528s/\]/\\&/g
3529s/\$/$$/g
3530H
3531:any
3532${
3533	g
3534	s/^\n//
3535	s/\n/ /g
3536	p
3537}
3538'
3539DEFS=`sed -n "$ac_script" confdefs.h`
3540
3541
3542ac_libobjs=
3543ac_ltlibobjs=
3544U=
3545for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3546  # 1. Remove the extension, and $U if already installed.
3547  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3548  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
3549  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3550  #    will be set to the directory where LIBOBJS objects are built.
3551  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3552  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3553done
3554LIBOBJS=$ac_libobjs
3555
3556LTLIBOBJS=$ac_ltlibobjs
3557
3558
3559
3560: "${CONFIG_STATUS=./config.status}"
3561ac_write_fail=0
3562ac_clean_files_save=$ac_clean_files
3563ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3565printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3566as_write_fail=0
3567cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3568#! $SHELL
3569# Generated by $as_me.
3570# Run this file to recreate the current configuration.
3571# Compiler output produced by configure, useful for debugging
3572# configure, is in config.log if it exists.
3573
3574debug=false
3575ac_cs_recheck=false
3576ac_cs_silent=false
3577
3578SHELL=\${CONFIG_SHELL-$SHELL}
3579export SHELL
3580_ASEOF
3581cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3582## -------------------- ##
3583## M4sh Initialization. ##
3584## -------------------- ##
3585
3586# Be more Bourne compatible
3587DUALCASE=1; export DUALCASE # for MKS sh
3588as_nop=:
3589if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
3590then :
3591  emulate sh
3592  NULLCMD=:
3593  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3594  # is contrary to our usage.  Disable this feature.
3595  alias -g '${1+"$@"}'='"$@"'
3596  setopt NO_GLOB_SUBST
3597else $as_nop
3598  case `(set -o) 2>/dev/null` in #(
3599  *posix*) :
3600    set -o posix ;; #(
3601  *) :
3602     ;;
3603esac
3604fi
3605
3606
3607
3608# Reset variables that may have inherited troublesome values from
3609# the environment.
3610
3611# IFS needs to be set, to space, tab, and newline, in precisely that order.
3612# (If _AS_PATH_WALK were called with IFS unset, it would have the
3613# side effect of setting IFS to empty, thus disabling word splitting.)
3614# Quoting is to prevent editors from complaining about space-tab.
3615as_nl='
3616'
3617export as_nl
3618IFS=" ""	$as_nl"
3619
3620PS1='$ '
3621PS2='> '
3622PS4='+ '
3623
3624# Ensure predictable behavior from utilities with locale-dependent output.
3625LC_ALL=C
3626export LC_ALL
3627LANGUAGE=C
3628export LANGUAGE
3629
3630# We cannot yet rely on "unset" to work, but we need these variables
3631# to be unset--not just set to an empty or harmless value--now, to
3632# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
3633# also avoids known problems related to "unset" and subshell syntax
3634# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3635for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3636do eval test \${$as_var+y} \
3637  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3638done
3639
3640# Ensure that fds 0, 1, and 2 are open.
3641if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3642if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3643if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
3644
3645# The user is always right.
3646if ${PATH_SEPARATOR+false} :; then
3647  PATH_SEPARATOR=:
3648  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3649    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3650      PATH_SEPARATOR=';'
3651  }
3652fi
3653
3654
3655# Find who we are.  Look in the path if we contain no directory separator.
3656as_myself=
3657case $0 in #((
3658  *[\\/]* ) as_myself=$0 ;;
3659  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662  IFS=$as_save_IFS
3663  case $as_dir in #(((
3664    '') as_dir=./ ;;
3665    */) ;;
3666    *) as_dir=$as_dir/ ;;
3667  esac
3668    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3669  done
3670IFS=$as_save_IFS
3671
3672     ;;
3673esac
3674# We did not find ourselves, most probably we were run as `sh COMMAND'
3675# in which case we are not to be found in the path.
3676if test "x$as_myself" = x; then
3677  as_myself=$0
3678fi
3679if test ! -f "$as_myself"; then
3680  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3681  exit 1
3682fi
3683
3684
3685
3686# as_fn_error STATUS ERROR [LINENO LOG_FD]
3687# ----------------------------------------
3688# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3689# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3690# script with STATUS, using 1 if that was 0.
3691as_fn_error ()
3692{
3693  as_status=$1; test $as_status -eq 0 && as_status=1
3694  if test "$4"; then
3695    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3696    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3697  fi
3698  printf "%s\n" "$as_me: error: $2" >&2
3699  as_fn_exit $as_status
3700} # as_fn_error
3701
3702
3703
3704# as_fn_set_status STATUS
3705# -----------------------
3706# Set $? to STATUS, without forking.
3707as_fn_set_status ()
3708{
3709  return $1
3710} # as_fn_set_status
3711
3712# as_fn_exit STATUS
3713# -----------------
3714# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3715as_fn_exit ()
3716{
3717  set +e
3718  as_fn_set_status $1
3719  exit $1
3720} # as_fn_exit
3721
3722# as_fn_unset VAR
3723# ---------------
3724# Portably unset VAR.
3725as_fn_unset ()
3726{
3727  { eval $1=; unset $1;}
3728}
3729as_unset=as_fn_unset
3730
3731# as_fn_append VAR VALUE
3732# ----------------------
3733# Append the text in VALUE to the end of the definition contained in VAR. Take
3734# advantage of any shell optimizations that allow amortized linear growth over
3735# repeated appends, instead of the typical quadratic growth present in naive
3736# implementations.
3737if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3738then :
3739  eval 'as_fn_append ()
3740  {
3741    eval $1+=\$2
3742  }'
3743else $as_nop
3744  as_fn_append ()
3745  {
3746    eval $1=\$$1\$2
3747  }
3748fi # as_fn_append
3749
3750# as_fn_arith ARG...
3751# ------------------
3752# Perform arithmetic evaluation on the ARGs, and store the result in the
3753# global $as_val. Take advantage of shells that can avoid forks. The arguments
3754# must be portable across $(()) and expr.
3755if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
3756then :
3757  eval 'as_fn_arith ()
3758  {
3759    as_val=$(( $* ))
3760  }'
3761else $as_nop
3762  as_fn_arith ()
3763  {
3764    as_val=`expr "$@" || test $? -eq 1`
3765  }
3766fi # as_fn_arith
3767
3768
3769if expr a : '\(a\)' >/dev/null 2>&1 &&
3770   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3771  as_expr=expr
3772else
3773  as_expr=false
3774fi
3775
3776if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3777  as_basename=basename
3778else
3779  as_basename=false
3780fi
3781
3782if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3783  as_dirname=dirname
3784else
3785  as_dirname=false
3786fi
3787
3788as_me=`$as_basename -- "$0" ||
3789$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3790	 X"$0" : 'X\(//\)$' \| \
3791	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3792printf "%s\n" X/"$0" |
3793    sed '/^.*\/\([^/][^/]*\)\/*$/{
3794	    s//\1/
3795	    q
3796	  }
3797	  /^X\/\(\/\/\)$/{
3798	    s//\1/
3799	    q
3800	  }
3801	  /^X\/\(\/\).*/{
3802	    s//\1/
3803	    q
3804	  }
3805	  s/.*/./; q'`
3806
3807# Avoid depending upon Character Ranges.
3808as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3809as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3810as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3811as_cr_digits='0123456789'
3812as_cr_alnum=$as_cr_Letters$as_cr_digits
3813
3814
3815# Determine whether it's possible to make 'echo' print without a newline.
3816# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3817# for compatibility with existing Makefiles.
3818ECHO_C= ECHO_N= ECHO_T=
3819case `echo -n x` in #(((((
3820-n*)
3821  case `echo 'xy\c'` in
3822  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3823  xy)  ECHO_C='\c';;
3824  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3825       ECHO_T='	';;
3826  esac;;
3827*)
3828  ECHO_N='-n';;
3829esac
3830
3831# For backward compatibility with old third-party macros, we provide
3832# the shell variables $as_echo and $as_echo_n.  New code should use
3833# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
3834as_echo='printf %s\n'
3835as_echo_n='printf %s'
3836
3837rm -f conf$$ conf$$.exe conf$$.file
3838if test -d conf$$.dir; then
3839  rm -f conf$$.dir/conf$$.file
3840else
3841  rm -f conf$$.dir
3842  mkdir conf$$.dir 2>/dev/null
3843fi
3844if (echo >conf$$.file) 2>/dev/null; then
3845  if ln -s conf$$.file conf$$ 2>/dev/null; then
3846    as_ln_s='ln -s'
3847    # ... but there are two gotchas:
3848    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3849    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3850    # In both cases, we have to default to `cp -pR'.
3851    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3852      as_ln_s='cp -pR'
3853  elif ln conf$$.file conf$$ 2>/dev/null; then
3854    as_ln_s=ln
3855  else
3856    as_ln_s='cp -pR'
3857  fi
3858else
3859  as_ln_s='cp -pR'
3860fi
3861rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3862rmdir conf$$.dir 2>/dev/null
3863
3864
3865# as_fn_mkdir_p
3866# -------------
3867# Create "$as_dir" as a directory, including parents if necessary.
3868as_fn_mkdir_p ()
3869{
3870
3871  case $as_dir in #(
3872  -*) as_dir=./$as_dir;;
3873  esac
3874  test -d "$as_dir" || eval $as_mkdir_p || {
3875    as_dirs=
3876    while :; do
3877      case $as_dir in #(
3878      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3879      *) as_qdir=$as_dir;;
3880      esac
3881      as_dirs="'$as_qdir' $as_dirs"
3882      as_dir=`$as_dirname -- "$as_dir" ||
3883$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3884	 X"$as_dir" : 'X\(//\)[^/]' \| \
3885	 X"$as_dir" : 'X\(//\)$' \| \
3886	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3887printf "%s\n" X"$as_dir" |
3888    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3889	    s//\1/
3890	    q
3891	  }
3892	  /^X\(\/\/\)[^/].*/{
3893	    s//\1/
3894	    q
3895	  }
3896	  /^X\(\/\/\)$/{
3897	    s//\1/
3898	    q
3899	  }
3900	  /^X\(\/\).*/{
3901	    s//\1/
3902	    q
3903	  }
3904	  s/.*/./; q'`
3905      test -d "$as_dir" && break
3906    done
3907    test -z "$as_dirs" || eval "mkdir $as_dirs"
3908  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3909
3910
3911} # as_fn_mkdir_p
3912if mkdir -p . 2>/dev/null; then
3913  as_mkdir_p='mkdir -p "$as_dir"'
3914else
3915  test -d ./-p && rmdir ./-p
3916  as_mkdir_p=false
3917fi
3918
3919
3920# as_fn_executable_p FILE
3921# -----------------------
3922# Test if FILE is an executable regular file.
3923as_fn_executable_p ()
3924{
3925  test -f "$1" && test -x "$1"
3926} # as_fn_executable_p
3927as_test_x='test -x'
3928as_executable_p=as_fn_executable_p
3929
3930# Sed expression to map a string onto a valid CPP name.
3931as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3932
3933# Sed expression to map a string onto a valid variable name.
3934as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3935
3936
3937exec 6>&1
3938## ----------------------------------- ##
3939## Main body of $CONFIG_STATUS script. ##
3940## ----------------------------------- ##
3941_ASEOF
3942test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3943
3944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3945# Save the log message, to keep $0 and so on meaningful, and to
3946# report actual input values of CONFIG_FILES etc. instead of their
3947# values after options handling.
3948ac_log="
3949This file was extended by Rudunits2 $as_me 0.8, which was
3950generated by GNU Autoconf 2.71.  Invocation command line was
3951
3952  CONFIG_FILES    = $CONFIG_FILES
3953  CONFIG_HEADERS  = $CONFIG_HEADERS
3954  CONFIG_LINKS    = $CONFIG_LINKS
3955  CONFIG_COMMANDS = $CONFIG_COMMANDS
3956  $ $0 $@
3957
3958on `(hostname || uname -n) 2>/dev/null | sed 1q`
3959"
3960
3961_ACEOF
3962
3963case $ac_config_files in *"
3964"*) set x $ac_config_files; shift; ac_config_files=$*;;
3965esac
3966
3967
3968
3969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3970# Files that config.status was made for.
3971config_files="$ac_config_files"
3972
3973_ACEOF
3974
3975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3976ac_cs_usage="\
3977\`$as_me' instantiates files and other configuration actions
3978from templates according to the current configuration.  Unless the files
3979and actions are specified as TAGs, all are instantiated by default.
3980
3981Usage: $0 [OPTION]... [TAG]...
3982
3983  -h, --help       print this help, then exit
3984  -V, --version    print version number and configuration settings, then exit
3985      --config     print configuration, then exit
3986  -q, --quiet, --silent
3987                   do not print progress messages
3988  -d, --debug      don't remove temporary files
3989      --recheck    update $as_me by reconfiguring in the same conditions
3990      --file=FILE[:TEMPLATE]
3991                   instantiate the configuration file FILE
3992
3993Configuration files:
3994$config_files
3995
3996Report bugs to <hiebert@uvic.ca>."
3997
3998_ACEOF
3999ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4000ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
4001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4002ac_cs_config='$ac_cs_config_escaped'
4003ac_cs_version="\\
4004Rudunits2 config.status 0.8
4005configured by $0, generated by GNU Autoconf 2.71,
4006  with options \\"\$ac_cs_config\\"
4007
4008Copyright (C) 2021 Free Software Foundation, Inc.
4009This config.status script is free software; the Free Software Foundation
4010gives unlimited permission to copy, distribute and modify it."
4011
4012ac_pwd='$ac_pwd'
4013srcdir='$srcdir'
4014test -n "\$AWK" || AWK=awk
4015_ACEOF
4016
4017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4018# The default lists apply if the user does not specify any file.
4019ac_need_defaults=:
4020while test $# != 0
4021do
4022  case $1 in
4023  --*=?*)
4024    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4025    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4026    ac_shift=:
4027    ;;
4028  --*=)
4029    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4030    ac_optarg=
4031    ac_shift=:
4032    ;;
4033  *)
4034    ac_option=$1
4035    ac_optarg=$2
4036    ac_shift=shift
4037    ;;
4038  esac
4039
4040  case $ac_option in
4041  # Handling of the options.
4042  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4043    ac_cs_recheck=: ;;
4044  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4045    printf "%s\n" "$ac_cs_version"; exit ;;
4046  --config | --confi | --conf | --con | --co | --c )
4047    printf "%s\n" "$ac_cs_config"; exit ;;
4048  --debug | --debu | --deb | --de | --d | -d )
4049    debug=: ;;
4050  --file | --fil | --fi | --f )
4051    $ac_shift
4052    case $ac_optarg in
4053    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4054    '') as_fn_error $? "missing file argument" ;;
4055    esac
4056    as_fn_append CONFIG_FILES " '$ac_optarg'"
4057    ac_need_defaults=false;;
4058  --he | --h |  --help | --hel | -h )
4059    printf "%s\n" "$ac_cs_usage"; exit ;;
4060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4061  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4062    ac_cs_silent=: ;;
4063
4064  # This is an error.
4065  -*) as_fn_error $? "unrecognized option: \`$1'
4066Try \`$0 --help' for more information." ;;
4067
4068  *) as_fn_append ac_config_targets " $1"
4069     ac_need_defaults=false ;;
4070
4071  esac
4072  shift
4073done
4074
4075ac_configure_extra_args=
4076
4077if $ac_cs_silent; then
4078  exec 6>/dev/null
4079  ac_configure_extra_args="$ac_configure_extra_args --silent"
4080fi
4081
4082_ACEOF
4083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4084if \$ac_cs_recheck; then
4085  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4086  shift
4087  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
4088  CONFIG_SHELL='$SHELL'
4089  export CONFIG_SHELL
4090  exec "\$@"
4091fi
4092
4093_ACEOF
4094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4095exec 5>>config.log
4096{
4097  echo
4098  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4099## Running $as_me. ##
4100_ASBOX
4101  printf "%s\n" "$ac_log"
4102} >&5
4103
4104_ACEOF
4105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4106_ACEOF
4107
4108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4109
4110# Handling of arguments.
4111for ac_config_target in $ac_config_targets
4112do
4113  case $ac_config_target in
4114    "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
4115
4116  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4117  esac
4118done
4119
4120
4121# If the user did not use the arguments to specify the items to instantiate,
4122# then the envvar interface is used.  Set only those that are not.
4123# We use the long form for the default assignment because of an extremely
4124# bizarre bug on SunOS 4.1.3.
4125if $ac_need_defaults; then
4126  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
4127fi
4128
4129# Have a temporary directory for convenience.  Make it in the build tree
4130# simply because there is no reason against having it here, and in addition,
4131# creating and moving files from /tmp can sometimes cause problems.
4132# Hook for its removal unless debugging.
4133# Note that there is a small window in which the directory will not be cleaned:
4134# after its creation but before its name has been assigned to `$tmp'.
4135$debug ||
4136{
4137  tmp= ac_tmp=
4138  trap 'exit_status=$?
4139  : "${ac_tmp:=$tmp}"
4140  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4141' 0
4142  trap 'as_fn_exit 1' 1 2 13 15
4143}
4144# Create a (secure) tmp directory for tmp files.
4145
4146{
4147  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4148  test -d "$tmp"
4149}  ||
4150{
4151  tmp=./conf$$-$RANDOM
4152  (umask 077 && mkdir "$tmp")
4153} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4154ac_tmp=$tmp
4155
4156# Set up the scripts for CONFIG_FILES section.
4157# No need to generate them if there are no CONFIG_FILES.
4158# This happens for instance with `./config.status config.h'.
4159if test -n "$CONFIG_FILES"; then
4160
4161
4162ac_cr=`echo X | tr X '\015'`
4163# On cygwin, bash can eat \r inside `` if the user requested igncr.
4164# But we know of no other shell where ac_cr would be empty at this
4165# point, so we can use a bashism as a fallback.
4166if test "x$ac_cr" = x; then
4167  eval ac_cr=\$\'\\r\'
4168fi
4169ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4170if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4171  ac_cs_awk_cr='\\r'
4172else
4173  ac_cs_awk_cr=$ac_cr
4174fi
4175
4176echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4177_ACEOF
4178
4179
4180{
4181  echo "cat >conf$$subs.awk <<_ACEOF" &&
4182  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4183  echo "_ACEOF"
4184} >conf$$subs.sh ||
4185  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4186ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4187ac_delim='%!_!# '
4188for ac_last_try in false false false false false :; do
4189  . ./conf$$subs.sh ||
4190    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4191
4192  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4193  if test $ac_delim_n = $ac_delim_num; then
4194    break
4195  elif $ac_last_try; then
4196    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4197  else
4198    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4199  fi
4200done
4201rm -f conf$$subs.sh
4202
4203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4204cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4205_ACEOF
4206sed -n '
4207h
4208s/^/S["/; s/!.*/"]=/
4209p
4210g
4211s/^[^!]*!//
4212:repl
4213t repl
4214s/'"$ac_delim"'$//
4215t delim
4216:nl
4217h
4218s/\(.\{148\}\)..*/\1/
4219t more1
4220s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4221p
4222n
4223b repl
4224:more1
4225s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4226p
4227g
4228s/.\{148\}//
4229t nl
4230:delim
4231h
4232s/\(.\{148\}\)..*/\1/
4233t more2
4234s/["\\]/\\&/g; s/^/"/; s/$/"/
4235p
4236b
4237:more2
4238s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4239p
4240g
4241s/.\{148\}//
4242t delim
4243' <conf$$subs.awk | sed '
4244/^[^""]/{
4245  N
4246  s/\n//
4247}
4248' >>$CONFIG_STATUS || ac_write_fail=1
4249rm -f conf$$subs.awk
4250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4251_ACAWK
4252cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4253  for (key in S) S_is_set[key] = 1
4254  FS = ""
4255
4256}
4257{
4258  line = $ 0
4259  nfields = split(line, field, "@")
4260  substed = 0
4261  len = length(field[1])
4262  for (i = 2; i < nfields; i++) {
4263    key = field[i]
4264    keylen = length(key)
4265    if (S_is_set[key]) {
4266      value = S[key]
4267      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4268      len += length(value) + length(field[++i])
4269      substed = 1
4270    } else
4271      len += 1 + keylen
4272  }
4273
4274  print line
4275}
4276
4277_ACAWK
4278_ACEOF
4279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4280if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4281  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4282else
4283  cat
4284fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4285  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4286_ACEOF
4287
4288# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4289# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4290# trailing colons and then remove the whole line if VPATH becomes empty
4291# (actually we leave an empty line to preserve line numbers).
4292if test "x$srcdir" = x.; then
4293  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4294h
4295s///
4296s/^/:/
4297s/[	 ]*$/:/
4298s/:\$(srcdir):/:/g
4299s/:\${srcdir}:/:/g
4300s/:@srcdir@:/:/g
4301s/^:*//
4302s/:*$//
4303x
4304s/\(=[	 ]*\).*/\1/
4305G
4306s/\n//
4307s/^[^=]*=[	 ]*$//
4308}'
4309fi
4310
4311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4312fi # test -n "$CONFIG_FILES"
4313
4314
4315eval set X "  :F $CONFIG_FILES      "
4316shift
4317for ac_tag
4318do
4319  case $ac_tag in
4320  :[FHLC]) ac_mode=$ac_tag; continue;;
4321  esac
4322  case $ac_mode$ac_tag in
4323  :[FHL]*:*);;
4324  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4325  :[FH]-) ac_tag=-:-;;
4326  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4327  esac
4328  ac_save_IFS=$IFS
4329  IFS=:
4330  set x $ac_tag
4331  IFS=$ac_save_IFS
4332  shift
4333  ac_file=$1
4334  shift
4335
4336  case $ac_mode in
4337  :L) ac_source=$1;;
4338  :[FH])
4339    ac_file_inputs=
4340    for ac_f
4341    do
4342      case $ac_f in
4343      -) ac_f="$ac_tmp/stdin";;
4344      *) # Look for the file first in the build tree, then in the source tree
4345	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4346	 # because $ac_f cannot contain `:'.
4347	 test -f "$ac_f" ||
4348	   case $ac_f in
4349	   [\\/$]*) false;;
4350	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4351	   esac ||
4352	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4353      esac
4354      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4355      as_fn_append ac_file_inputs " '$ac_f'"
4356    done
4357
4358    # Let's still pretend it is `configure' which instantiates (i.e., don't
4359    # use $as_me), people would be surprised to read:
4360    #    /* config.h.  Generated by config.status.  */
4361    configure_input='Generated from '`
4362	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4363	`' by configure.'
4364    if test x"$ac_file" != x-; then
4365      configure_input="$ac_file.  $configure_input"
4366      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4367printf "%s\n" "$as_me: creating $ac_file" >&6;}
4368    fi
4369    # Neutralize special characters interpreted by sed in replacement strings.
4370    case $configure_input in #(
4371    *\&* | *\|* | *\\* )
4372       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
4373       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4374    *) ac_sed_conf_input=$configure_input;;
4375    esac
4376
4377    case $ac_tag in
4378    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4379      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4380    esac
4381    ;;
4382  esac
4383
4384  ac_dir=`$as_dirname -- "$ac_file" ||
4385$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4386	 X"$ac_file" : 'X\(//\)[^/]' \| \
4387	 X"$ac_file" : 'X\(//\)$' \| \
4388	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4389printf "%s\n" X"$ac_file" |
4390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4391	    s//\1/
4392	    q
4393	  }
4394	  /^X\(\/\/\)[^/].*/{
4395	    s//\1/
4396	    q
4397	  }
4398	  /^X\(\/\/\)$/{
4399	    s//\1/
4400	    q
4401	  }
4402	  /^X\(\/\).*/{
4403	    s//\1/
4404	    q
4405	  }
4406	  s/.*/./; q'`
4407  as_dir="$ac_dir"; as_fn_mkdir_p
4408  ac_builddir=.
4409
4410case "$ac_dir" in
4411.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4412*)
4413  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
4414  # A ".." for each directory in $ac_dir_suffix.
4415  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4416  case $ac_top_builddir_sub in
4417  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4418  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4419  esac ;;
4420esac
4421ac_abs_top_builddir=$ac_pwd
4422ac_abs_builddir=$ac_pwd$ac_dir_suffix
4423# for backward compatibility:
4424ac_top_builddir=$ac_top_build_prefix
4425
4426case $srcdir in
4427  .)  # We are building in place.
4428    ac_srcdir=.
4429    ac_top_srcdir=$ac_top_builddir_sub
4430    ac_abs_top_srcdir=$ac_pwd ;;
4431  [\\/]* | ?:[\\/]* )  # Absolute name.
4432    ac_srcdir=$srcdir$ac_dir_suffix;
4433    ac_top_srcdir=$srcdir
4434    ac_abs_top_srcdir=$srcdir ;;
4435  *) # Relative name.
4436    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4437    ac_top_srcdir=$ac_top_build_prefix$srcdir
4438    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4439esac
4440ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4441
4442
4443  case $ac_mode in
4444  :F)
4445  #
4446  # CONFIG_FILE
4447  #
4448
4449_ACEOF
4450
4451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4452# If the template does not know about datarootdir, expand it.
4453# FIXME: This hack should be removed a few years after 2.60.
4454ac_datarootdir_hack=; ac_datarootdir_seen=
4455ac_sed_dataroot='
4456/datarootdir/ {
4457  p
4458  q
4459}
4460/@datadir@/p
4461/@docdir@/p
4462/@infodir@/p
4463/@localedir@/p
4464/@mandir@/p'
4465case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4466*datarootdir*) ac_datarootdir_seen=yes;;
4467*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4469printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4470_ACEOF
4471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4472  ac_datarootdir_hack='
4473  s&@datadir@&$datadir&g
4474  s&@docdir@&$docdir&g
4475  s&@infodir@&$infodir&g
4476  s&@localedir@&$localedir&g
4477  s&@mandir@&$mandir&g
4478  s&\\\${datarootdir}&$datarootdir&g' ;;
4479esac
4480_ACEOF
4481
4482# Neutralize VPATH when `$srcdir' = `.'.
4483# Shell code in configure.ac might set extrasub.
4484# FIXME: do we really want to maintain this feature?
4485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4486ac_sed_extra="$ac_vpsub
4487$extrasub
4488_ACEOF
4489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4490:t
4491/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4492s|@configure_input@|$ac_sed_conf_input|;t t
4493s&@top_builddir@&$ac_top_builddir_sub&;t t
4494s&@top_build_prefix@&$ac_top_build_prefix&;t t
4495s&@srcdir@&$ac_srcdir&;t t
4496s&@abs_srcdir@&$ac_abs_srcdir&;t t
4497s&@top_srcdir@&$ac_top_srcdir&;t t
4498s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4499s&@builddir@&$ac_builddir&;t t
4500s&@abs_builddir@&$ac_abs_builddir&;t t
4501s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4502$ac_datarootdir_hack
4503"
4504eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4505  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4506
4507test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4508  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4509  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
4510      "$ac_tmp/out"`; test -z "$ac_out"; } &&
4511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4512which seems to be undefined.  Please make sure it is defined" >&5
4513printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4514which seems to be undefined.  Please make sure it is defined" >&2;}
4515
4516  rm -f "$ac_tmp/stdin"
4517  case $ac_file in
4518  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4519  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4520  esac \
4521  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4522 ;;
4523
4524
4525
4526  esac
4527
4528done # for ac_tag
4529
4530
4531as_fn_exit 0
4532_ACEOF
4533ac_clean_files=$ac_clean_files_save
4534
4535test $ac_write_fail = 0 ||
4536  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4537
4538
4539# configure is writing to config.log, and then calls config.status.
4540# config.status does its own redirection, appending to config.log.
4541# Unfortunately, on DOS this fails, as config.log is still kept open
4542# by configure, so config.status won't be able to write to it; its
4543# output is simply discarded.  So we exec the FD to /dev/null,
4544# effectively closing config.log, so it can be properly (re)opened and
4545# appended to by config.status.  When coming back to configure, we
4546# need to make the FD available again.
4547if test "$no_create" != yes; then
4548  ac_cs_success=:
4549  ac_config_status_args=
4550  test "$silent" = yes &&
4551    ac_config_status_args="$ac_config_status_args --quiet"
4552  exec 5>/dev/null
4553  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4554  exec 5>>config.log
4555  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4556  # would make configure fail if this is the last instruction.
4557  $ac_cs_success || as_fn_exit 1
4558fi
4559if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4561printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4562fi
4563
4564
4565