Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure cleanup #1010

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

configure cleanup #1010

wants to merge 13 commits into from

Conversation

ulmus-scott
Copy link
Contributor

@ulmus-scott ulmus-scott commented Jan 1, 2025

This is most of the remaining commits from #430

This speeds up configure slightly:
24.303s baseline
24.171s COMPLEX_FUNCS
22.502s MATH_FUNCS
20.717s trim SYSTEM_FUNCS and TYPES_LIST
20.498s trim HEADERS_LIST

About 9.5 seconds from FFmpeg's configure.

Checklist

They were from FFmpeg, but unused by MythTV.
They already were, but make it clearer.
Removed duplicate test for non-zero length optflags, since it was already checked
if zero length.
Added with optimization flags
copies ffmpeg_optenable but removes the else branch
I think these have been unused since MythGallery was removed: fce4029
Neither cabs() nor cexp() are used.
Only used in FFmpeg.
Functions used in MythTV:
access
closesocket
eglGetProcAddress
fcntl
fork
getaddrinfo
gettimeofday
gmtime_r
inet_aton
isatty
jack_port_get_latency_range
LoadLibrary
localtime_r
lstat
mkstemp
mmap
nanosleep
PeekNamedPipe
sysconf
sysctl
usleep
wl_surface_set_opaque_region

Not checked for:
libexiv2:
MapViewOfFile
Sleep

libbluray:
strerror_r
gettimeofday

libdvdnav:
setmode

ffnvcodec:
LoadLibrary

Only used are:
HAVE_GETMNTENT_R in libmythbluray
HAVE_GETTIMEOFDAY in libdvdnav, libdvdread, libmythbase/logging.cpp and
libmythbase/loggingserver.cpp

libexiv2 has its own
EXV_HAVE_GMTIME_R
EXV_HAVE_STRERROR_R
EXV_HAVE_MMAP
EXV_HAVE_LSTAT

When removing closesocket, also remove unused HAVE_STRUCT_*, including
CONDITION_VARIABLE_Ptr, socklen_t, struct_rusage_ru_maxrss, and
struct_stat_st_mtim_tv_nsec

kCMVideoCodecType_HEVC is FFmpeg only.
This is only defined when building FFmpeg, otherwise it should not be defined
and does not need to be `undef`ed.
libexiv2 has its own EXV_HAVE_SYS_MMAN_H and EXV_HAVE_UNISTD_H

Switch NuppelVideoRecorder.cpp to __has_include().

Remove never defined HAVE_CONFIG_H in lirc_client.cpp.

MALLOC_PREFIX is only used in FFmpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant