11#! /bin/sh
22# Guess values for system-dependent variables and create Makefiles.
3- # Generated by GNU Autoconf 2.72 for units 1.0-0.
3+ # Generated by GNU Autoconf 2.72 for units 1.0-0.4.
44#
55# Report bugs to <edzer.pebesma@uni-muenster.de>.
66#
@@ -603,8 +603,8 @@ MAKEFLAGS=
603603# Identity of this package.
604604PACKAGE_NAME=' units'
605605PACKAGE_TARNAME=' units'
606- PACKAGE_VERSION=' 1.0-0'
607- PACKAGE_STRING=' units 1.0-0'
606+ PACKAGE_VERSION=' 1.0-0.4 '
607+ PACKAGE_STRING=' units 1.0-0.4 '
608608PACKAGE_BUGREPORT=' edzer.pebesma@uni-muenster.de'
609609PACKAGE_URL=' '
610610
@@ -1260,7 +1260,7 @@ if test "$ac_init_help" = "long"; then
12601260 # Omit some internal or obsolete options to make the list less imposing.
12611261 # This message is too long to be a string in the A/UX 3.1 sh.
12621262 cat << _ACEOF
1263- 'configure' configures units 1.0-0 to adapt to many kinds of systems.
1263+ 'configure' configures units 1.0-0.4 to adapt to many kinds of systems.
12641264
12651265Usage: $0 [OPTION]... [VAR=VALUE]...
12661266
13221322
13231323if test -n " $ac_init_help " ; then
13241324 case $ac_init_help in
1325- short | recursive ) echo " Configuration of units 1.0-0:" ;;
1325+ short | recursive ) echo " Configuration of units 1.0-0.4 :" ;;
13261326 esac
13271327 cat << \_ACEOF
13281328
14111411test -n " $ac_init_help " && exit $ac_status
14121412if $ac_init_version ; then
14131413 cat << \_ACEOF
1414- units configure 1.0-0
1414+ units configure 1.0-0.4
14151415generated by GNU Autoconf 2.72
14161416
14171417Copyright (C) 2023 Free Software Foundation, Inc.
@@ -1646,6 +1646,50 @@ fi
16461646 as_fn_set_status $ac_retval
16471647
16481648} # ac_fn_c_try_compile
1649+
1650+ # ac_fn_cxx_try_run LINENO
1651+ # ------------------------
1652+ # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1653+ # executables *can* be run.
1654+ ac_fn_cxx_try_run ()
1655+ {
1656+ as_lineno=${as_lineno-" $1 " } as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657+ if { { ac_try=" $ac_link "
1658+ case " (($ac_try " in
1659+ * \" * | * \` * | * \\ * ) ac_try_echo=\$ ac_try;;
1660+ * ) ac_try_echo=$ac_try ;;
1661+ esac
1662+ eval ac_try_echo=" \"\$ as_me:${as_lineno-$LINENO } : $ac_try_echo \" "
1663+ printf " %s\n" " $ac_try_echo " ; } >&5
1664+ (eval " $ac_link " ) 2>&5
1665+ ac_status=$?
1666+ printf " %s\n" " $as_me :${as_lineno-$LINENO } : \$ ? = $ac_status " >&5
1667+ test $ac_status = 0; } && { ac_try=' ./conftest$ac_exeext'
1668+ { { case " (($ac_try " in
1669+ * \" * | * \` * | * \\ * ) ac_try_echo=\$ ac_try;;
1670+ * ) ac_try_echo=$ac_try ;;
1671+ esac
1672+ eval ac_try_echo=" \"\$ as_me:${as_lineno-$LINENO } : $ac_try_echo \" "
1673+ printf " %s\n" " $ac_try_echo " ; } >&5
1674+ (eval " $ac_try " ) 2>&5
1675+ ac_status=$?
1676+ printf " %s\n" " $as_me :${as_lineno-$LINENO } : \$ ? = $ac_status " >&5
1677+ test $ac_status = 0; }; }
1678+ then :
1679+ ac_retval=0
1680+ else case e in # (
1681+ e) printf " %s\n" " $as_me : program exited with status $ac_status " >&5
1682+ printf " %s\n" " $as_me : failed program was:" >&5
1683+ sed ' s/^/| /' conftest.$ac_ext >&5
1684+
1685+ ac_retval=$ac_status ;;
1686+ esac
1687+ fi
1688+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689+ eval $as_lineno_stack ; ${as_lineno_stack: +: } unset as_lineno
1690+ as_fn_set_status $ac_retval
1691+
1692+ } # ac_fn_cxx_try_run
16491693ac_configure_args_raw=
16501694for ac_arg
16511695do
@@ -1670,7 +1714,7 @@ cat >config.log <<_ACEOF
16701714This file contains any messages produced by compilers while
16711715running configure, to aid debugging if configure makes a mistake.
16721716
1673- It was created by units $as_me 1.0-0, which was
1717+ It was created by units $as_me 1.0-0.4 , which was
16741718generated by GNU Autoconf 2.72. Invocation command line was
16751719
16761720 $ $0 $ac_configure_args_raw
@@ -4295,24 +4339,32 @@ if test "${ac_cv_lib_expat_XML_ParserCreate}" = yes; then
42954339 LIBS=" ${LIBS} -lexpat"
42964340fi
42974341
4298- ac_fn_cxx_check_header_compile " $LINENO " " udunits2.h" " ac_cv_header_udunits2_h" " $ac_includes_default "
4342+ for ac_header in udunits2.h
4343+ do :
4344+ ac_fn_cxx_check_header_compile " $LINENO " " udunits2.h" " ac_cv_header_udunits2_h" " $ac_includes_default "
42994345if test " x$ac_cv_header_udunits2_h " = xyes
43004346then :
4301- UDUNITS2_DIR=0
4347+ printf " %s\n" " #define HAVE_UDUNITS2_H 1" >> confdefs.h
4348+ UDUNITS2_DIR=0
43024349else case e in # (
43034350 e)
4351+ for ac_header in udunits2/udunits2.h
4352+ do :
43044353 ac_fn_cxx_check_header_compile " $LINENO " " udunits2/udunits2.h" " ac_cv_header_udunits2_udunits2_h" " $ac_includes_default "
43054354if test " x$ac_cv_header_udunits2_udunits2_h " = xyes
43064355then :
4307- UDUNITS2_DIR=1
4356+ printf " %s\n" " #define HAVE_UDUNITS2_UDUNITS2_H 1" >> confdefs.h
4357+ UDUNITS2_DIR=1
43084358else case e in # (
43094359 e) UD_ERROR=" udunits2.h was not found" ;;
43104360esac
43114361fi
4312- ;;
4362+
4363+ done ;;
43134364esac
43144365fi
43154366
4367+ done
43164368{ printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for ut_read_xml in -ludunits2" >&5
43174369printf %s " checking for ut_read_xml in -ludunits2... " >&6 ; }
43184370if test ${ac_cv_lib_udunits2_ut_read_xml+y}
@@ -4376,6 +4428,62 @@ as_fn_error $? "
43764428
43774429See 'config.log' for more details" " $LINENO " 5; } fi
43784430
4431+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for exception propagation in -ludunits2" >&5
4432+ printf %s " checking for exception propagation in -ludunits2... " >&6 ; }
4433+ if test " $cross_compiling " = yes
4434+ then :
4435+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: unknown (cross-compiling)" >&5
4436+ printf " %s\n" " unknown (cross-compiling)" >&6 ; }
4437+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : WARNING: Cross-compiling: cannot verify exception propagation in udunits2. Assuming it works." >&5
4438+ printf " %s\n" " $as_me : WARNING: Cross-compiling: cannot verify exception propagation in udunits2. Assuming it works." >&2 ; }
4439+
4440+ else case e in # (
4441+ e) cat confdefs.h - << _ACEOF >conftest.$ac_ext
4442+ /* end confdefs.h. */
4443+
4444+ #include <stdexcept>
4445+ #include <cstdarg>
4446+ #ifdef HAVE_UDUNITS2_UDUNITS2_H
4447+ # include <udunits2/udunits2.h>
4448+ #else
4449+ # include <udunits2.h>
4450+ #endif
4451+ extern "C" {
4452+ int ud_handler(const char* fmt, va_list args) {
4453+ throw std::runtime_error("udunits error");
4454+ return 0;
4455+ }
4456+ }
4457+
4458+ int
4459+ main (void)
4460+ {
4461+
4462+ ut_set_error_message_handler(ud_handler);
4463+ try { ut_read_xml("nonexistent.xml"); }
4464+ catch (...) { return 0; }
4465+ return 1;
4466+
4467+ ;
4468+ return 0;
4469+ }
4470+ _ACEOF
4471+ if ac_fn_cxx_try_run " $LINENO "
4472+ then :
4473+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
4474+ printf " %s\n" " yes" >&6 ; }
4475+ else case e in # (
4476+ e) { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
4477+ printf " %s\n" " no" >&6 ; }
4478+ as_fn_error $? " The udunits2 library does not support exception propagation. Please reinstall it with -fexceptions enabled." " $LINENO " 5 ;;
4479+ esac
4480+ fi
4481+ rm -f core * .core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4482+ conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4483+ esac
4484+ fi
4485+
4486+
43794487
43804488
43814489
@@ -4918,7 +5026,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49185026# report actual input values of CONFIG_FILES etc. instead of their
49195027# values after options handling.
49205028ac_log="
4921- This file was extended by units $as_me 1.0-0, which was
5029+ This file was extended by units $as_me 1.0-0.4 , which was
49225030generated by GNU Autoconf 2.72. Invocation command line was
49235031
49245032 CONFIG_FILES = $CONFIG_FILES
@@ -4973,7 +5081,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
49735081cat >> $CONFIG_STATUS << _ACEOF || ac_write_fail=1
49745082ac_cs_config='$ac_cs_config_escaped '
49755083ac_cs_version="\\
4976- units config.status 1.0-0
5084+ units config.status 1.0-0.4
49775085configured by $0 , generated by GNU Autoconf 2.72,
49785086 with options \\ "\$ ac_cs_config\\ "
49795087
0 commit comments