m4: Change LIBS order of TOR_SEARCH_LIBRARY()
Some gcc versions do explode if the order of the linker flags are not correct. One issue was statically building OpenSSL which would require that "-lssl -lcrypto" be put before the "-lpthread -ldl" flags.
I have not such problem with GCC 10 but does with GCC 9.
Closes #33624 (closed)
Signed-off-by: David Goulet firstname.lastname@example.org