# Checks for libraries.
AC_CHECK_LIB([pthread],[pthread_create])
+AC_CHECK_LIB([sodium],[crypto_hash_sha256_init])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
int opt_load_from_env();
int opt_set(char*,char*);
void opt_set_log_level(enum log_level);
+int opt_set_piece_length(char*);
#endif
char *p;
CHECK_ENV("CONFIG",opt_load_config_file);
+ CHECK_ENV("PIECE_LENGTH",opt_set_piece_length);
return 1;
}
--- /dev/null
+#include<opt.h>
+
+int opt_set_piece_length(char *length) {
+ return -1;
+}
};
struct option_lookup_table_entry option_lookup_table[] = {
+ {"piece_length",&opt_set_piece_length},
{"watch",&opt_add_watch},
{NULL,NULL}
};