Skip to content

Commit

Permalink
Update configure scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rickard-green committed Mar 16, 2024
1 parent 4132fa4 commit 2f02f56
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 100 deletions.
18 changes: 14 additions & 4 deletions erts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -7866,6 +7866,17 @@ See 'config.log' for more details" "$LINENO" 5; } ;; #(
esac
fi
fi
if test "$enable_year2038,$ac_have_year2038" = yes,no
then :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; }
fi

ac_header= ac_cache=
for ac_item in $ac_header_c_list
Expand Down Expand Up @@ -7939,10 +7950,9 @@ then :
cat >> $ERL_TOP/erts/CONF_INFO <<EOF

WARNING:
'configure' was not able to figure out how to
make the system year 2038 safe! This runtime
system will not be able to function properly
after mid-January 2038.
Note that this runtime system will *not* be year
2038 safe! It will not be able to function
properly after mid-January 2038.

EOF

Expand Down
11 changes: 11 additions & 0 deletions lib/common_test/test_server/configure
Original file line number Diff line number Diff line change
Expand Up @@ -3800,6 +3800,17 @@ See 'config.log' for more details" "$LINENO" 5; } ;; #(
esac
fi
fi
if test "$enable_year2038,$ac_have_year2038" = yes,no
then :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
printf %s "checking for sin in -lm... " >&6; }
Expand Down
59 changes: 35 additions & 24 deletions lib/crypto/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4638,6 +4638,33 @@ esac
fi

fi
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
then :
# If we're not cross compiling and 'touch' works with a large
# timestamp, then we can presume the system supports wider time_t
# *somehow* and we just weren't able to detect it. One common
# case that we deliberately *don't* probe for is a system that
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
# wide time_t. (It would be inappropriate for us to override an
# intentional use of -m32.) Error out, demanding use of
# --disable-year2038 if this is intentional.
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
then :
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
*'Feb 7 2106'* | *'Feb 7 17:10'*) :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "this system appears to support timestamps after
mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
32-bit time_t, configure with '--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
*) :
;;
esac
fi
fi



Expand Down Expand Up @@ -5180,32 +5207,16 @@ fi


# Large file support and 8-byte time_t by default
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
if test "$enable_year2038,$ac_have_year2038" = yes,no
then :
# If we're not cross compiling and 'touch' works with a large
# timestamp, then we can presume the system supports wider time_t
# *somehow* and we just weren't able to detect it. One common
# case that we deliberately *don't* probe for is a system that
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
# wide time_t. (It would be inappropriate for us to override an
# intentional use of -m32.) Error out, demanding use of
# --disable-year2038 if this is intentional.
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
then :
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
*'Feb 7 2106'* | *'Feb 7 17:10'*) :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "this system appears to support timestamps after
mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
32-bit time_t, configure with '--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
*) :
;;
esac
fi
as_fn_error $? "could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; }
fi

USER_LD=$LD
Expand Down
59 changes: 35 additions & 24 deletions lib/erl_interface/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4897,6 +4897,33 @@ esac

fi

fi
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
then :
# If we're not cross compiling and 'touch' works with a large
# timestamp, then we can presume the system supports wider time_t
# *somehow* and we just weren't able to detect it. One common
# case that we deliberately *don't* probe for is a system that
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
# wide time_t. (It would be inappropriate for us to override an
# intentional use of -m32.) Error out, demanding use of
# --disable-year2038 if this is intentional.
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
then :
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
*'Feb 7 2106'* | *'Feb 7 17:10'*) :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "this system appears to support timestamps after
mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
32-bit time_t, configure with '--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
*) :
;;
esac
fi
fi
ac_header= ac_cache=
for ac_item in $ac_header_c_list
Expand Down Expand Up @@ -4930,32 +4957,16 @@ fi


# Large file support and 8-byte time_t by default
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
if test "$enable_year2038,$ac_have_year2038" = yes,no
then :
# If we're not cross compiling and 'touch' works with a large
# timestamp, then we can presume the system supports wider time_t
# *somehow* and we just weren't able to detect it. One common
# case that we deliberately *don't* probe for is a system that
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
# wide time_t. (It would be inappropriate for us to override an
# intentional use of -m32.) Error out, demanding use of
# --disable-year2038 if this is intentional.
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
then :
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
*'Feb 7 2106'* | *'Feb 7 17:10'*) :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "this system appears to support timestamps after
mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
32-bit time_t, configure with '--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
*) :
;;
esac
fi
as_fn_error $? "could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; }
fi

USER_LD=$LD
Expand Down
59 changes: 35 additions & 24 deletions lib/megaco/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4695,6 +4695,33 @@ esac
fi

fi
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
then :
# If we're not cross compiling and 'touch' works with a large
# timestamp, then we can presume the system supports wider time_t
# *somehow* and we just weren't able to detect it. One common
# case that we deliberately *don't* probe for is a system that
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
# wide time_t. (It would be inappropriate for us to override an
# intentional use of -m32.) Error out, demanding use of
# --disable-year2038 if this is intentional.
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
then :
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
*'Feb 7 2106'* | *'Feb 7 17:10'*) :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "this system appears to support timestamps after
mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
32-bit time_t, configure with '--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
*) :
;;
esac
fi
fi



Expand Down Expand Up @@ -5237,32 +5264,16 @@ fi


# Large file support and 8-byte time_t by default
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
if test "$enable_year2038,$ac_have_year2038" = yes,no
then :
# If we're not cross compiling and 'touch' works with a large
# timestamp, then we can presume the system supports wider time_t
# *somehow* and we just weren't able to detect it. One common
# case that we deliberately *don't* probe for is a system that
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
# wide time_t. (It would be inappropriate for us to override an
# intentional use of -m32.) Error out, demanding use of
# --disable-year2038 if this is intentional.
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
then :
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
*'Feb 7 2106'* | *'Feb 7 17:10'*) :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "this system appears to support timestamps after
mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
32-bit time_t, configure with '--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
*) :
;;
esac
fi
as_fn_error $? "could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; }
fi

USER_LD=$LD
Expand Down
59 changes: 35 additions & 24 deletions make/configure
Original file line number Diff line number Diff line change
Expand Up @@ -6027,6 +6027,33 @@ esac
fi

fi
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
then :
# If we're not cross compiling and 'touch' works with a large
# timestamp, then we can presume the system supports wider time_t
# *somehow* and we just weren't able to detect it. One common
# case that we deliberately *don't* probe for is a system that
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
# wide time_t. (It would be inappropriate for us to override an
# intentional use of -m32.) Error out, demanding use of
# --disable-year2038 if this is intentional.
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
then :
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
*'Feb 7 2106'* | *'Feb 7 17:10'*) :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "this system appears to support timestamps after
mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
32-bit time_t, configure with '--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
*) :
;;
esac
fi
fi



Expand Down Expand Up @@ -6569,32 +6596,16 @@ fi


# Large file support and 8-byte time_t by default
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
if test "$enable_year2038,$ac_have_year2038" = yes,no
then :
# If we're not cross compiling and 'touch' works with a large
# timestamp, then we can presume the system supports wider time_t
# *somehow* and we just weren't able to detect it. One common
# case that we deliberately *don't* probe for is a system that
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
# wide time_t. (It would be inappropriate for us to override an
# intentional use of -m32.) Error out, demanding use of
# --disable-year2038 if this is intentional.
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
then :
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
*'Feb 7 2106'* | *'Feb 7 17:10'*) :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "this system appears to support timestamps after
mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
32-bit time_t, configure with '--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
*) :
;;
esac
fi
as_fn_error $? "could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See 'config.log' for more details" "$LINENO" 5; }
fi

USER_LD=$LD
Expand Down

0 comments on commit 2f02f56

Please sign in to comment.