openvas-client-2.0.5/0000775002347300234730000000000011240741173013463 5ustar felixfelixopenvas-client-2.0.5/.root-dir0000664002347300234730000000000011237000207015201 0ustar felixfelixopenvas-client-2.0.5/aclocal.m40000664002347300234730000001326511237000207015322 0ustar felixfelix# generated automatically by aclocal 1.9.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES openvas-client-2.0.5/AUTHORS0000664002347300234730000000043211237000207014522 0ustar felixfelixAuthors of NessusClient in alphabetical order: Michel Arboi (SSL-Support) Thomas Arendsen Hein (initial new GTK-2 GUI) Renaud Deraison (main author) Bernhard Herzog (improved GTK-2 GUI) Bruce Verderaime (pie charts) Jan-Oliver Wagner (documentation, some GTK-2 GUI features) openvas-client-2.0.5/bin/0000775002347300234730000000000011240741171014231 5ustar felixfelixopenvas-client-2.0.5/bin/.create0000664002347300234730000000000011237000206015454 0ustar felixfelixopenvas-client-2.0.5/ChangeLog0000664002347300234730000101166211240740747015252 0ustar felixfelix2009-08-13 Felix Wolfsteller Preparing the openvas-client 2.0.5 release. * VERSION: Set to 2.0.5. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER to 2.0.5. * CHANGES: Updated. 2009-08-13 Felix Wolfsteller Backported from trunk (revision 4472). * nessus/prefs_dialog/prefs_context.c (prefs_context_update): Replaced g_strdup_printf by g_strdup where no formatting is done anyway. Step towards fixing bug #1051 (http://bugs.openvas.org/1051). Thanks to Stephan Kleine. 2009-08-12 Felix Wolfsteller Backported from trunk (revision 4452). * src/gui/slad_install.c (ERROR): Added todo, as there is a implementation of error dialogs already in src/gui/err_dlg.c. * src/gui/slad_install.c (slad_install): Added RATS:ignore flag where popens first argument comes from a trusted source. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4438). * nessus/sslui.c (sslui_check_cert): Added RATS:ignore flag where sufficient buffer size is ensured. * nessus/sslui.c (sslui_ask_paranoia_level): Added RATS:ignore flag where a formating string and destination for scanf are sane. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4436). * nessus/xml_output_ng.c (escape_string): Reduced number of calls to strlen. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4116). * nessus/html_output.c (html_output_from_arg): If no detailed information will be visible for a host, do not create empty tables for it. As the detail tables are linked from a section in the beginning of the report, omit the link if there will be no table. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4115). * nessus/html_output.c (html_output_from_arg, html_output_print_port_table): Extracted method to print contents of "Ports table", eased up and reformatted loop. Changed order of conditionals, which interpreted "False Positives" to be more worth mentioning than "Security Notes". * nessus/html_output.h (issue_type): Introduced yet another issue severity discrimination method. * ChangeLog: Corrected. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4101). * nessus/html_output.c (html_output_print_issue_details, html_output_from_arg): Extracted html_output_print_issue_details to ensures a more consistent form of the html output and increases code readability. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4410). Attempt to fix bug 1036 (http://bugs.openvas.com/1036). * nessus/context.h: Exposed context_collect_recurse, removed and added whitespaces. * nessus/nessus.c (main): In cli report conversion mode, load plugin cache to be able to provide xml outputs with all 'possible' information. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4409). * nessus/xml_output_ng.c (xml_plugins): Take current Contexts plugin and scanner list in case of xml export. Two TODOs added, as logic of taking parents information is not clear. Partly fixes bug 1036 (http://bugs.openvas.com/1036). 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4408). * nessus/xml_output_ng.c (xml_plugins): Cosmetics and doc. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4406). * nessus/xml_output_ng.h, nessus/xml_output_ng.c: Removed forward declaration of backend_to_xml_ng, include header instead. Minor formatting. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4407). * nessus/nessus.c: In cli report conversion mode, try to load a (report) context from the directory of the given input argument and set it as currently selected Context. This tackles a tiny part of bug 1036 (http://bugs.openvas.com/1036). Removed single whitespace. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4426). * src/util/severity_filter.c (severity_filter_to_xml, write_override_xml_elem): When invoking fprintf, supply a formatting string. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4424). * nessus/filter.c (ask_filter): Removed never used non-GTK equivalent to ask_filter function. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4422). * nessus/read_target_file.c (target_file_to_list): Removed unused variable 'i' and the assignment to it. * nessus/read_target_file.c (target_translate): Added RATS:ignore flag as string literals are always nul terminated. 2009-08-11 Felix Wolfsteller Backported from trunk (revision 4420). * nessus/data_mining.c (be_index_keywords): Added RATS:ignore flag for strcpy, where buffer lenght is ensured. * nessus/data_mining.c (compile_conditions): Added TODO because of strange way of allocating struct and copying a string. * nessus/data_mining.c (compile_query): Added RATS:ignore flag, string literals are always nul terminated. 2009-08-03 Michael Wiegand * Makefile, src/util/Makefile: Fixed installation location of support scripts as suggested by Jan Wagner. This closes bug #1072 (http://bugs.openvas.org/1072). Backported from trunk. 2009-07-20 Felix Wolfsteller Backported from trunk (revision 4098). * nessus/html_output.c (html_output_from_arg, summary_to_file): Moved code to print beginning of a html table closer to where the table will get filled. * nessus/html_output.c (html_output_from_arg): Solved minor issues that led to invalid html document, tiny cosmetics. 2009-07-20 Felix Wolfsteller Backported from trunk (revision 4096). * nessus/html_output.c (summary_to_file): Accept new parameter to drop "No Information" issues. Write a note to the summary if that will happen. Added documentation. Made function static. * nessus/html_output.c (html_output_from_arg): Pass (new) parameter to summary_to_file. 2009-07-17 Felix Wolfsteller Backported from trunk (revision 4083). * nessus/html_output.c (html_output_from_arg): Always show all targets, even if False Positives should be dropped (then list "No noticeable information..." in summary). 2009-07-17 Felix Wolfsteller Backported from trunk (revision 4080, 4081). Fixed bug: in the stripped down html report (OpenVAS-Client -DNF -i .. -o ..), ports with a False Positive were not listed at all, even if there were other issues reported for this port. * nessus/html_output.c (html_output_from_arg): Corrected check to skip a port (FP has to be present, but nothing else has to be present and option has to be set). 2009-07-17 Felix Wolfsteller Backported from trunk (revision 4080). Resolved some issues with html report conversion and the new parameters. * nessus/html_output.c (html_output_from_arg): Early stop in two cases when drop_fp is specified. Avoids unclosed table rows or table rows with insufficient data in it. 2009-07-17 Felix Wolfsteller Backported from trunk (revision 4073). Added option to CLI to drop issues with "No Information" during export conversion to html. New command line option is --convert-drop-no-info or -N. * nessus/nessus.c (convert_report): Added new parameter. Warn if new option is given, but report target format is not html. Changed function call to pass the given option. * nessus/nessus.c (main): Introduced new command line option, pass this option to convert_report, warn in cases where the new option is given but will be ignored. * nessus/html_output.c (html_output_from_arg): Added new parameter, skip "No Information" issues if parameter drop_no_info equals TRUE. * nessus/html_output.h (html_output_from_arg): Adjusted proto (new parameter). * nessus/html_output.c (arglist_to_html): In the wrapper, default new option to FALSE. 2009-07-17 Felix Wolfsteller Backported from trunk (revision 4070). Expose html report conversion (last commits) with hidden False Positive to CLI, introduced new command line option (--convert-drop-fp or -D). * nessus/nessus.c (convert_report): Added new parameter. Warn if new option is given, but report target format is not html. Changed function call to pass the given option. * nessus/nessus.c (main): Introduced new command line option, pass this option to convert_report, warn in cases where the new option is given but will be ignored. 2009-07-17 Felix Wolfsteller Backported from trunk (revision 4069). Implementation of html report generation with False Positives completely stripped. * nessus/html_output.c (summary_to_file): Added parameter (drop_fp), state that False Positives are not shown in the report, if so. Drop number of False Positives if asked to. * nessus/html_output.c (html_output_from_arg): Respect new parameter of summary_to_file, do not print information about False Positives, if asked to. Removed TODO. 2009-07-16 Felix Wolfsteller Backported from trunk (revision 4061). To allow future (html) report generation without display of issues that were labelled "False Positive" by a severity override, extended the html_output module. Function signatures were kept in order to change calls just where it is relevant and avoid further code changes in the cli module, where converting-functions like arglist_to_xyz are casted into (output_func_t). * nessus/html_output.h (html_output_from_arg): Proto added. * nessus/html_output.c: Include html_output.h. * nessus/html_output.c (html_output_from_arg, arglist_to_html): Renamed arglist_to_html to html_output_from_arg. Added (yet unused) parameter to html_output_from_arg. Created wrapper function arglist_to_html that passes the default value for the new parameter to html_output_from_arg and does nothing else. Added TODO to implement relevance of the new parameter. 2009-07-16 Felix Wolfsteller Backported from trunk (revision 4058). * nessus/html_output.c (html_output_print_data_with_links): Corrected wording (OID != OpenVAS ID). 2009-07-15 Felix Wolfsteller Backported from trunk (revision 4047). * nessus/html_output.c (summary_to_file): Fixed typo that lead to warning about unknown escape sequence. 2009-07-15 Felix Wolfsteller Backported from trunk (revision 4046). * src/gui/nvt_pref_sshlogin.c (prompt_new_pattern): Changed wording and title of dialog that prompts for a new pattern. 2009-07-15 Felix Wolfsteller Backported from trunk (revision 4041). * nessus/html_output.c (arglist_to_html, summary_to_file): Dropped "found" in text, as it does not convey any additional meaning and in case of "False Positives" sounds wrong. 2009-07-15 Felix Wolfsteller Backported from trunk (revision 4039). * nessus/html_output.c (summary_to_file): Print note that a severity filter was applied if that is the case. * nessus/html_output.c (arglist_to_html): If severity level is 'False Positive', indicate that in the 'Type' field of the 'Severity Issues and Fixes' table of html report (was 'Informational' before). 2009-07-15 Felix Wolfsteller Backported from trunk (revision 4036). * nessus/report.h: Corrected defines to match the felt order of severities (important in html reports where in an overview just the "highest" severity level is shown, was False Positives till now). * nessus/report.h: Removed whitespaces. 2009-07-13 Felix Wolfsteller Backported from trunk (revision 4007). Allow patterns (containing * or ?) in host and port fields of severity overrides that are matched against the values in the issue at filter application. Attention when testing: There are no conflict checks for the patterns, thus in some cases the order of the overrides within the xml file can matter. * src/util/severity_filter.c (severity_filter_apply): Use g_pattern_match_simple instead of strcmp. 2009-07-13 Felix Wolfsteller Backported from trunk (revision 4006). * src/util/severity_filter.c (severity_filter_apply): Improved readability by flattened code and easier (positive) conditional. 2009-07-07 Felix Wolfsteller * po/de.po: Updated German translation. 2009-07-07 Felix Wolfsteller Unhide the new cli option to enable report conversion with active severity filter. Slightly improved wording and comments. * nessus/nessus.c (convert_report): Removed TODO, as implementation now works for conversions into all formats (except for nbe and pdf, but in that case a message is printed). Slightly better comment. Use 'conversion' instead of 'export' consistently, also in messages. * nessus/nessus.c (main): Unhide the new option. 2009-07-06 Felix Wolfsteller Slightly more helpful messages in command line option parsing. * nessus/nessus.c (convert_report): Print error message if severity overrides flag (-F) was given together with export type nbe. Print more helpful message if export type pdf was given. * nessus/nessus.c (main): Print a message to stdout when -F flag, but neither -i nor -o was given on command line. 2009-07-06 Felix Wolfsteller * nessus/backend.c (priority_str_to_idx): Declared argument as const, removes compiler warning. 2009-07-06 Felix Wolfsteller Enabled latex-report output with enabled severity filter from cli. * nessus/latex_output.c: Get reference to global sev_mapping_matrix and include backend.h to print the mapping matrix if needed. * nessus/latex_output.c (latex_severity_mapping_matrix): New. Print the mapping matrix of a severity filter as counted by backend_convert if severity mapping for Current Context is enabled. * nessus/latex_output.c (arglist_to_latex): Call new latex_severity_mapping_matrix if severity filtering is enabled. 2009-07-06 Felix Wolfsteller Enabled "html with graphs"-report output with enabled severity filter from cli. * nessus/html_graph_output.c: Get reference to global sev_mapping_matrix and include backend.h to print the mapping matrix if needed. * nessus/html_graph_output.c (print_severity_map): New. Print the mapping matrix of a severity filter as counted by backend_convert if severity mapping for Current Context is enabled. * nessus/html_graph_output.c (print_severity_map): Call new print_severity_map if severity filtering is enabled. 2009-07-06 Felix Wolfsteller * nessus/text_output.c (arglist_to_text): Corrected typo, better wording. 2009-07-06 Felix Wolfsteller Enabled text report output with enabled severity filter from cli. * nessus/text_output.c: Get reference to global sev_mapping_matrix and include backend.h to print the mapping matrix if needed. * nessus/text_output.c (arglist_to_text): Print the mapping matrix of a severity filter as counted by backend_convert if severity mapping for Current Context is enabled. 2009-07-06 Felix Wolfsteller Enabled xml report output with enabled severity filter from cli. * nessus/xml_output_ng.c: Get reference to global sev_mapping_matrix and include backend.h to print the mapping matrix if needed. * nessus/xml_output_ng.c (xml_filter_matrix): New. Print the mapping matrix of a severity filter as counted by backend_convert if severity mapping for Current Context is enabled. * nessus/xml_output_ng.c (backend_to_xml_ng): If filter is enabled, call backend_convert to arrive at a filtered report without to much code change. Call new xml_filter_matrix. 2009-07-06 Felix Wolfsteller * nessus/html_output.c (arglist_to_html): Fixed typo. 2009-07-06 Felix Wolfsteller Enabled html report output with enabled severity filter from cli. * nessus/html_output.c: Get reference to global sev_mapping_matrix and include backend.h to print the mapping matrix if needed. * nessus/html_output.c (arglist_to_html): Print the mapping matrix of a severity filter as counted by backend_convert if severity mapping for Current Context is enabled. 2009-07-03 Felix Wolfsteller * nessus/latex_output.c (latex_print_host_ports_problems): Use plural of for listed severities consistently, removed not escaped underscore that prevented further standard processing. * ChangeLog: Correct paths. 2009-07-03 Felix Wolfsteller Added a new command line option to Openvas-Client, --convert-filtered or -F, that will enable severity filter application during report export in combination with --in-report / -i and --out-report / -o . The parameter will stay declared as hidden (not visible with --help) until implementation is complete. * nessus/nessus.c (main, convert_report): Added new command line option that is passed to convert_report. In convert_report load global filter if the flag is set and set the Contexts is_severity_mapped flag accordingly. Added TODO comment to indicate incomplete implementation. * ChangeLog: Clarified last ChangeLog entry. 2009-07-03 Felix Wolfsteller * nessus/nessus.c (main, convert_report): Extracted method from main that converts ('exports') reports from nbe into other supported formats. 2009-07-02 Felix Wolfsteller * nessus/nessus.c: Cosmetics, doc and comments. 2009-07-02 Felix Wolfsteller To keep track of the number times that a severity override was applied and from which severity it mapped to which other severity, a global matrix was introduced. Due to incompatible backend and severity filter designs this might be not an elegant but the most efficient way to arrive at a severity filter summary without massive changes to the code base. * nessus/backend.c (priority_idx_to_str, priority_str_to_idx): New. Yet another functions to turn strings for severities into numbers and vice versa (to be used as array indices). * nessus/backend.c (sev_mapping_matrix, backend_reset_sev_mapping_matrix): New global variable that holds the number of severity_overrides that were actually applied during a backend conversion (i.e. nbe to arglist). Function to reset the counters to zero. * nessus/backend.c (backend_convert): Reset and update counters in the sev_mapping_matrix when applying severity overrides. * nessus/backend.h (priority_idx_to_str): Prototype of new function added. 2009-07-02 Felix Wolfsteller * nessus/backend.c: Cosmetics, docs. 2009-07-02 Felix Wolfsteller * nessus/html_output.c (arglist_to_html): Fixed mem leak (the malloced memory for desc was never read, html_output_convert_cr_to_html will allocated new mem), removed associated TODO comment. 2009-07-02 Felix Wolfsteller * nessus/html_output.c: Cosmetics, documentation, added TODO about possible memory leak. 2009-06-10 Felix Wolfsteller * nessus/preferences.c (preferences_new): Set default value of plugins_timeout parameter to 320 (as in the servers default). 2009-06-10 Felix Wolfsteller Enabled storing and recovering of Global Timeout Settings, added tooltip help text. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_set_defaults, prefs_dialog_set_tooltips, prefs_dialog_apply): Set global timeout value from preferenfces to SpinButton and read from SpinButton into preferences. Set tooltip to SpinButton. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_execute): Corrected build-breaking typo. * nessus/prefs_dialog/prefs_help.h (HLP_AUTO_GLOBAL_NVT_TIMEOUT): Added tooltip text for global nvt timeout SpinButton. 2009-06-10 Felix Wolfsteller * nessus/prefs_dialog/prefs_plugins.c (prefs_dialog_plugins): Added (yet non functional) Spinner to set the Global NVT Timeout. 2009-06-10 Felix Wolfsteller * nessus/prefs_dialog/prefs_plugins.c: Minor reformatting. 2009-06-10 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c: Cosmetics, reformatting and doc. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_execute): Changed wording (Target section starts with capital T, punctuation). 2009-06-10 Felix Wolfsteller * nessus/prefs_dialog/prefs_plugins.c: Cosmetics, reformatting and doc. 2009-06-10 Felix Wolfsteller * nessus/prefs_dialog/prefs_plugins_tree.c: Cosmetics, reformatting and doc. 2009-06-08 Felix Wolfsteller Small refactoring where toggle buttons states are set to reflect preference (arglist) values. * nessus/prefs_dialog/prefs_dialog.c: (arg_int_to_yesno): Return the value read/set from preference, declared parameter const, doc. (set_toggle_from_pref): New. Extracted from prefs_dialog_set_defaults, set I thistate of a toggle button according to a preference value. (prefs_dialog_set_defaults): Extracted method set_toggle_from_pref, use it. 2009-06-05 Felix Wolfsteller * MANIFEST: Added tools/openvas-ssh-client-rpm-creator.sh. 2009-06-05 Michael Wiegand Post release version bump. * VERSION: Set to 2.0.5.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-06-05 Michael Wiegand Preparing the openvas-client 2.0.4 release. * VERSION: Set to 2.0.4. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. * CHANGES: Updated. 2009-06-05 Michael Wiegand Committing code audit results. * src/gui/ssh_key_info_form.c (ssh_key_info_form_validated): Added RATS:ignore statements since the nul-termination of the strings is ensured by gtk_entry_get_text. * src/util/openvas_ssh_key_create.c (openvas_ssh_privkey_create, openvas_ssh_key_create_unlink_files): Added RATS:ignore statements since the nul-termination of string literals is ensured. * nessus/nessus.c (main): Added RATS:ignore statements since the non-constant format strings are actually gettext translations, which we regard as a trusted source. * libnessus/network.c (sslerror2): Replaced ERR_error_string with ERR_error_string_n to ensure the error written to string does not exceed the allocated length. 2009-06-03 Michael Wiegand * po/de.po: Updated German translation. 2009-05-27 Felix Wolfsteller * nessus/comm.c (comm_parse_certificate): Exclude trailing space of public key data as sent by the server. 2009-05-27 Felix Wolfsteller * nessus/comm.c: Reformatted, minor doc. 2009-05-27 Felix Wolfsteller * nessus/comm.c: Reformatted, minor doc. 2009-05-20 Felix Wolfsteller Replaced context_delete_dir with the newer file_utils_rmdir_rf at the price of possibly less detailed error messages. * nessus/context.c (context_delete_directory): Removed. * nessus/context.c (context_delete): Updated call, show error message if failed. 2009-05-20 Felix Wolfsteller * nessus/context.c (check_is_dir, check_is_file, check_exists): Cosmetics, reformatting. 2009-05-20 Felix Wolfsteller * nessus/context.c: Adjusted include and call to functions of renamed module. 2009-05-20 Felix Wolfsteller Renamed module openvas_ssh_rpm to openvas_lsc_user_rpm to be consistent with the openvas_lsc_user_deb and openvas_lsc_user_makensis modules. * src/util/openvas_ssh_rpm.c, src/util/openvas_ssh_rpm.h, src/util/openvas_lsc_user_rpm.c, src/util/openvas_lsc_user_rpm.h: Moved module and renamed functions. * MANIFEST, nessus/Makefile, src/util/Makefile: Updated according to new filenames. * src/gui/ssh_key_info_form.c, src/gui/ssh_keys_dialog.c, src/util/openvas_lsc_target_prep.c, src/util/openvas_lsc_user_deb.c: Adjusted include and call to functions. 2009-05-20 Felix Wolfsteller Removed code duplicates, changed working (temporary) directory for package generators (rpm and makensis). * src/util/openvas_ssh_rpm.c (create_tmp_dir), src/util/openvas_lsc_user_makensis.c (create_tmp_dir): Removed, calls replaced by calls top openvas_lsc_target_prep_create_tmp_dir. * src/util/openvas_lsc_target_prep.c (openvas_lsc_target_prep_create_tmp_dir): Changed location of temporary directory from subdirectory of .openvas/.ssh to .openvas/lsc-mngt. 2009-05-19 Felix Wolfsteller Added tooltips for all entries in the ssh_key_info_form, added todo. * src/gui/ssh_key_info_form.c (add_tooltips): Added tooltips for all entries. 2009-05-19 Felix Wolfsteller Handle missing installers/packages on check on startup analog to missing key files. Remove installer/packages if key files should be deleted. * nessus/context.c (verify_sshlogin_integrity): Check for 'missing' installers/packages as well and recreate if user selects so. * nessus/context.c (context_pickup_sshkeys): Remove installers/packages if keys shall be deleted. * nessus/context.c (context_delete_directory): Added doc and TODO, minor reformatting. 2009-05-19 Felix Wolfsteller Remove installers / packages together with key files if an entry is deleted via the OpenVAS LSC Credentials Manager. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_delete_login): Remove generated installers/packages when deleting a login. 2009-05-19 Felix Wolfsteller * src/util/openvas_lsc_target_prep.c, src/util/openvas_lsc_target_prep.h (openvas_lsc_target_prep_remove): New. Removes all generated installers / packages. 2009-05-19 Felix Wolfsteller Fixed bug that occurred due to a freed static string when executing rpm generator script more than once. * src/util/openvas_ssh_rpm.c (openvas_ssh_rpm_create): Dont free oltap_path to allow multiple executions. 2009-05-19 Felix Wolfsteller Respect the changed signature of filename functions. Changed location of installer/packages from .openvas/lsc-credentials to .openvas/lsc-mngt. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_prompt_new), src/util/openvas_lsc_user_deb.c (openvas_lsc_user_deb): Respect new signature of filename functions. * src/util/openvas_lsc_target_prep.c (openvas_lsc_target_prep_filename): Changed location of installer/packages from .openvas/lsc-credentials to .openvas/lsc-mngt. 2009-05-19 Felix Wolfsteller Execute alien as fakeroot, use extracted module to fetch file names for 'credential installer/packages'. * src/util/openvas_lsc_user_deb.c, src/util/openvas_lsc_user_deb.h (openvas_lsc_user_deb_filename), src/util/openvas_lsc_user_makensis.c, src/util/openvas_lsc_user_makensis.h (openvas_lsc_user_makensis_filename), src/util/openvas_ssh_rpm.c, src/util/openvas_ssh_rpm.h (openvas_ssh_rpm_filename): Include new module openvas_lsc_target_prep, use its function for filename generation, changed signature to take char*, corrected documentation. * src/util/openvas_lsc_user_deb.c (execute_alien): Execute alien with fakeroot. * src/gui/ssh_key_info_form.c (ssh_key_info_form_fill, name_typed_in_cb): Call functions to get filenames with new signature. 2009-05-19 Felix Wolfsteller Extracted module with common functionality that is needed for credential installer/packages (rpm,deb,exe). * src/util/openvas_lsc_target_prep.c, src/util/openvas_lsc_target_prep.h: New module with common functionality for the package/installer generators. * MANIFEST: Added the two new files. * nessus/Makefile: Added object to UTIL_OBJS. * src/util/Makefile: Added target for new module. 2009-05-18 Felix Wolfsteller * doc/Doxyfile: Turn EXTRACT_ALL off, to enable warnings about missing function docs. 2009-05-18 Felix Wolfsteller Towards automatic generation of 'lsc user installer/packages'. Therefore filenames for the generated installers/packages have to be found and it has to be known if the tool to create the installer/package is available. * src/util/openvas_lsc_user_deb.c (execute_alien): Use --script parameter when converting rpm to deb. * src/util/openvas_lsc_user_deb.c (openvas_lsc_user_deb_alien_found): New. Checks once for alien in path and returns whether it was found. * src/util/openvas_lsc_user_makensis.c (execute_makensis): Included return code of makensis in output to stdout. * src/util/openvas_ssh_rpm.c (get_rpm_generator_path): Extracted. Searches in install location and in tools folder for the rpm generator script and returns its location if found. * src/util/openvas_ssh_rpm.c (openvas_ssh_rpm_create): Use new extracted function get_rpm_generator_path, (debug) print the spawned command. * src/util/openvas_ssh_rpm.c (openvas_ssh_rpm_generator_found): New. Checks once for existence of rpm generator script. * src/util/openvas_lsc_user_deb.c (openvas_lsc_user_deb_filename), src/util/openvas_lsc_user_deb.h, src/util/openvas_lsc_makensis.c (openvas_lsc_makensis_filename) src/util/openvas_lsc_makensis.h, src/util/openvas_ssh_rpm.c (openvas_ssh_rpm_filename), src/util/openvas_ssh_rpm.h: New. Added functions and protos to create and return filename of an installer/package. * src/gui/ssh_key_info_form.c (typed_in_cb): When creating a new account, now shows filenames for .exe, .rpm and .deb files as the account name is typed in if the tools are available. * src/gui/ssh_key_info_form.c (add_tooltips): Stub for function where tooltips will be set. * src/gui/ssh_key_info_form.c (ssh_key_info_form_create): Initialize text to indicate that a tool could not be found - if so. * src/gui/ssh_key_info_form.c (ssh_key_info_form_free): Free the new text entries. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_prompt_new): When account is added, try to create the rpm, exe and deb installer/packages. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_exe_click, ssh_keys_dialog_create_rpm_click, ssh_keys_dialog_show): Removed buttons to manually create rpm and exe installer/package and associated callback functions. 2009-05-15 Felix Wolfsteller Added stub for module openvas_lsc_user_deb that will create deb packages from the rpm packages that install accounts for lsc. * MANIFEST: Added the new files. * nessus/Makefile: Added object to UTIL_OBJS. * src/util/Makefile: Added target for new module. * src/util/openvas_lsc_user_deb.c, src/util/openvas_lsc_user_deb.c: New. Will take care of executing alien to transform rpm packages to deb packages. 2009-05-15 Felix Wolfsteller Preparing display of filenames of 'installers' for credentials. * src/gui/ssh_key_info_form.h: Added references to text entries to struct that will display filenames of rpm, deb and exe 'installers'. * src/gui/ssh_key_info_form.c (ssh_key_info_form_create): Initializes the new tet entries, adds them to the layout. * src/gui/ssh_key_info_form.c (ssh_key_info_form_fill): Fills in paths to files if they do exist. * src/openvas-lib/openvas_ssh_login.h: Adjusted documentation: login is valid if the installer files do not exist. 2009-05-14 Felix Wolfsteller * nessus/comm.h (comm_send_long_preferences, comm_get_preference_errors, comm_plugin_upload): Removed prototypes for not implemented functions. 2009-05-14 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog_user.c: Use GTK+ 2.6 functionality (keeping old code as comment), use gchar where glib char function is used. 2009-05-14 Felix Wolfsteller Cosmetics, Wording about paranoia settings in sslui. * nessus/attack.c, nessus/auth.c: Some reformatting. * nessus/filter.c: Reformatting, documentation. * nessus/sslui.c: Reformating, documentation. Changed wording about paranoia setting choice minimally, to clarify difference between two options. 2009-05-13 Felix Wolfsteller Few cleanups in rpm export function. * src/util/openvas_ssh_rpm.c (openvas_ssh_rpm_create): Slightly better error handling and cleanup, corrected memory allocation, using file_utils module function instead of context_remove_directory. 2009-05-13 Felix Wolfsteller Better wording and catching the case where credentials export functionality is attempted to be used before any credentials were created. Changed the nsi installer script with Thomas Rotters help to find out the Administrators group name at runtime. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_rpm_click, ssh_keys_dialog_create_exe_click): Better wording, internationalization catch situations where no account has yet been created. * src/util/openvas_lsc_user_makensis.c (create_nsi_file): Changed resulting nsi file so that the generated installer will during execution time create two scripts and execute these. Big Thanks to Thomas Rotter who helped with the scripts and advises regarding the MS WIN shell. 2009-05-06 Felix Wolfsteller Updated rpm generator script - created from trunk/tools/openvas-lsc-target-preparation. * tools/openvas-ssh-client-rpm-creator.sh: Replaced dummyscript by rpm-generator created from trunk/tools/openvas-lsc-target-preparation. 2009-05-06 Felix Wolfsteller Improved "user-installer" functionality. * src/util/openvas_lsc_user_makensis.c (create_nsi_file): Thanks to Thomas Rotter, give the user admin rights. Display messages. Some parts adopted from winslads installer (thanks to Dirk Jagdmann). * src/util/openvas_lsc_user_makensis.c, src/util/openvas_lsc_user_makensis.h (openvas_lsc_user_makensis_found): New, checks for presence of makensis in path. * src/util/openvas_lsc_user_makensis.c (openvas_lsc_user_makensis): Better error checking and handling, removes temporary directory when done. * src/gui/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_exe_click): Checks for presence of makensis in path, display messages if failed. 2009-05-06 Felix Wolfsteller * src/util/file_utils.c, src/util/file_utils.h (file_utils_rmdir_rf): New (copied from openvas-config-manager/src/openvascd.c). 2009-05-06 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c: Collapsed comments, minor reformatting. 2009-05-05 Felix Wolfsteller * src/gui/ssh_keys_dialog.c: Added missing include. 2009-05-05 Jan Wagner Update debian packaging * patches/02_de-fix.dpatch, patches/00list, changelog: Fix german translation * copyright, changelog: Update changelog for new upstream code 2009-05-05 Felix Wolfsteller Can now build executable with nsis that installs a user on win xp machines if executed with admin rights. * src/util/openvas_lsc_user_makensis.c (execute_makensis): Executes makensis on a given (.nis) file. * src/util/openvas_lsc_user_makensis.c (create_nsi_file): Adjusted resulting nsi script, so that it calls 'net user ...' in install and uninstall process, todos added. 2009-05-05 Felix Wolfsteller Cosmetics. * libnessus/addslashes.c: Reformatting and doc. * libnessus/network.c: Reformatting, minor doc. * libnessus/system.c: Minor reformatting. * nessus/cli.c: Reformatting, doc, added comment. 2009-05-04 Felix Wolfsteller Work-in-progress of new .exe export functionality for credentials. This functionality will ease installation of new users to perform local security checks on certain platforms (analog to RPMs). * src/util/openvas_lsc_user_makensis.c, src/util/openvas_lsc_user_makensis.h: New module to create .exe from credentials account information. * src/util/Makefile: Included new module. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_exe_click, ssh_keys_dialog_show): Added Button and callback for click on button. * nessus/Makefile: Included new module. * MANIFEST: Updated. 2009-04-28 Felix Wolfsteller * src/util/openvas_ssh_rpm.c: Cleaned up, searches for the generator script in the install directory (set via Makefile). If there nothing is found looks in tools subdir of pwd. 2009-04-28 Felix Wolfsteller Define path to ssh rpm generator generator script. * Makefile: Use lib/openvas, no need for an own variable. * src/util/Makefile: Define path to generator script. 2009-04-28 Felix Wolfsteller Minor cleanup of build related files. * configure.in: Removed unneeded nessuslib variable, replaced nessus by openvas in comment. * nessus.tmpl.in: Removed nessuslib reference, minor whitespace removal. * include/config.h.in: Marked suspicious variables as fixme. 2009-04-22 Felix Wolfsteller Cleaned up and corrected rpm package export of ssh public keys. Can be tested locally (bin/OpenVAS-Client) by generating the rpm generator script ('make self' in trunk/tools/openvas-lsc-target-preparation) and placing it into trunk/openvas-client/tools). Will not yet worked with installed versions. Functionality is exposed as "Export RPM" in the OpenVAS Credentials Manager (GUI/Extras menu). * src/util/openvas_ssh_rpm.c: Cleaned up and corrected. 2009-04-22 Felix Wolfsteller Removed double code, added include ('new' subset module). * nessus/data_minig.c, nessus/data_mining.h: Removed code that is now in subset module, minor reformatting, added include. 2009-04-22 Felix Wolfsteller Extracted subset module. * nessus/subset.h, nessus/subset.c: New module. Code from data_mining. * nessus/Makefile, MANIFEST: Updated to include new module. 2009-04-22 Felix Wolfsteller * src/util/openvas_ssh_key_create.c, src/util/openvas_ssh_key_create.h: Removed code that is now in the file_utils and openvas_ssh_rpm modules, updated references and includes. * src/util/openvas_ssh_rpm.c: Corrected includes. * nessus/context.c, nessus/context.h: Reformatting, doc, TODO about function to be moved. * nessus/nessus.c: Changed include (as we have the file_utils module now) and reference to ensure_dir function. * src/gui/ssh_keys_dialog.c: Added include, changed reference to rpm creation function. 2009-04-22 Felix Wolfsteller * nessus/nessus.c: Reformatting, doc. 2009-04-22 Felix Wolfsteller Donating own module to rpm export functionality. * src/util/openvas_ssh_rpm.c, src/util/openvas_ssh_rpm.h: * MANIFEST, nessus/Makefile, src/util/Makefile: Updated, included the new module. 2009-04-22 Felix Wolfsteller * src/util/file_utils.c: Include own header file. 2009-04-22 Felix Wolfsteller Created (extracted) module for various file- related functions. * src/util/file_utils.c, src/util/file_utils.h: New. File- related functions that were misplaced in other modules. * MANIFEST, nessus/Makefile, src/util/Makefile: Updated, included the new module. 2009-04-22 Felix Wolfsteller * tools/openvas-ssh-client-rpm-creator.sh: Typo corrected. 2009-04-22 Felix Wolfsteller * tools/openvas-ssh-client-rpm-creator.sh: New, dummy script. Will generate rpm packages from key files. * Makefile: New target (install-tools) to install the dummy-script (for testing purposes). 2009-04-21 Jan-Oliver Wagner * nessus/prefs_dialog/prefs_report.c (gshb_export_click): Removed leading "#" for export file. (show_popup_menu): Renamed menu entry to "Export GSHB...". 2009-04-20 Felix Wolfsteller Repaired and cleaned up ~RPM export of keys. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_rpm_click): Propose a filename, respect new return type of openvas_ssh_key_create_rpm. * src/util/openvas_ssh_key_create.c, src/util/openvas_ssh_key_create.h (openvas_ssh_key_create_rpm): Changed return type to gboolean, cleaned up. * src/util/openvas_ssh_key_create.c (copy_file): Repaired, initialize values. 2009-04-21 Michael Wiegand * src/omp-cli.c: Added examples for OMP commands to --help. 2009-04-20 Felix Wolfsteller * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_rpm_click): Ask user for filename. * src/util/openvas_ssh_key_create.c (copy_file, move_file): New, talky functions to copy and move a file. The in other places used rename() is not guaranteed to work across filesystem boundaries. * src/util/openvas_ssh_key_create.c, src/util/openvas_ssh_key_create.h (openvas_ssh_key_create_rpm): Now expects a filename as second parameter, use new functions. 2009-04-20 Felix Wolfsteller Reformatted, use glibs gchar/ g_free consistently, removed define-conditionals around rpm export code. * src/util/openvas_ssh_key_create.c, src/util/openvas_ssh_key_create.h: Reformatted, use glibs gchar/g_free consistently, removed DEV_SSH_RPM_EXPORT conditionals. 2009-04-20 Felix Wolfsteller Minor reformatting, USE_GTK guard to enable compilation without gtk. * src/gui/treeview_support.c, src/gui/treeview_support.c: Minor style, documentation, added USE_GTK guard. 2009-04-20 Felix Wolfsteller Reformatted, removed define-conditionals around rpm export code. * src/gui/ssh_keys_dialog.c: Style, removed DEV_SSH_RPM_EXPORT- define conditionals. 2009-04-20 Felix Wolfsteller Fixed issue with RMB in report view: Popup menu was shown on information prioir to selectionm, renamed functions that included the string 'prio'. * nessus/prefs_dialog/prefs_report.c (prio_button_press, mouse_button_press): Renamed, do a selection when rmb is clicked before showing the popup menu. * nessus/prefs_dialog/prefs_report.c (prio_show_popup, addprio_click): Renamed to show_popup and add_override_click respectively. 2009-04-20 Felix Wolfsteller * nessus/prefs_dialog/prefs_report.c (gshb_export_click): Removed debug- printf. 2009-04-20 Felix Wolfsteller Fixed issues with gshb export of a reports item. * nessus/prefs_dialog/prefs_report.c (rough_gshb_export_click, gshb_export_click, show_popup_menu): Stripped rough from function name. * nessus/prefs_dialog/prefs_report.c (gshb_export_click, show_popup_menu): Fixed a bug that caused crash when different ordering of report tree (port/host/severity) was chosen. Proposed filename now contains target, minor changes (window parenting, ordering of error checks). 2009-04-17 Michael Wiegand * nessus/prefs_dialog/prefs_report.c (rough_gshb_export_click): Fixed syntax error. 2009-04-17 Felix Wolfsteller Introduced rough outline for specialized, selective report export (in this case gshb). * nessus/prefs_dialog/prefs_report.c (rough_gshb_export_click): New. Outlines this specific export process. * nessus/prefs_dialog/prefs_report.c (show_popup_menu): Added menu item to the rmb menu, if items from a special port are selected. 2009-04-16 Jan-Oliver Wagner * src/omp-cli.c (main): Renamed openvas_server_ methods according to changes in openvas-libraries. Adjusted copyright. 2009-04-16 Jan-Oliver Wagner * libnessus/network.c: Removed any code path for NESSUS_CNX_LOCK. This is not used and not relevant for client anyway. 2009-04-15 Michael Wiegand First (optional) integration of openvas-libraries in openvas-client. The OMP Command Line Interface now depends on connection functionality provided by openvas-libraries. * src/omp-cli.c: Adjusted function names, added missing headers. * src/Makefile: Adjusted to use LIBOPENVAS_*. * configure.in: Added tests for libopenvasconfig. * nessus.tmpl.in: Added support for LIBOPENVAS_*. * configure: Regenerated. 2009-04-09 Jan-Oliver Wagner * MANIFEST: Updated. 2009-04-09 Michael Wiegand Added a first draft for an OMP Command Line Interface, allowing to issue OMP commands from the command line. * src/omp-cli.c: Added. * src/Makefile: Added. Makefile to build omp-cli. 2009-04-08 Michael Wiegand * po/de.po: Translated remaing strings. 2009-04-07 Felix Wolfsteller Made the progress bar in the scan monitor showing values (for checks only, portscans stay at 0%). * nessus/monitor_dialog.c (monitor_list_update): Repaired progress bar in scan monitor (cast to float when calculating numbers 0 Reformatted monitor_dialog module. * nessus/monitor_dialog.c: Reformatted. 2009-04-07 Felix Wolfsteller Adding timestamps to gtk message display (lower part of the gui if activated via the 'View' menu). * src/gui/error_dlg.c (show_dialog_gtk_log): Prepend timestamp to dispalyed message. 2009-04-07 Felix Wolfsteller * TODO: Updated (with quite old idea). 2009-04-03 Jan-Oliver Wagner * MANIFEST: Updated. 2009-04-03 Felix Wolfsteller * libnessus/openvas-socket.h: Corrected include guard (resolves compiler warnings). 2009-04-03 Michael Wiegand * Makefile: Added buildcheck target; this target is intended to improve QA and should be called to make sure OpenVAS-Client builds correctly before a release. As an initial step, it will try to build OpenVAS-Client as well as the translations in the "po" directory. 2009-04-02 Jan-Oliver Wagner * nessus/monitor_dialog.c (monitor_dialog_setup, monitor_list_update, monitor_remove_host, monitor_add_host): Since GTK 2.6 is now minimal version for OpenVAS-Client, the if-clauses for old 2.4 code can be removed. (monitor_stop_test): Removed (not used anymore). 2009-04-02 Jan-Oliver Wagner * configure.in, nessus.tmpl.in, include/corevers.h.in, nessus/nessus.c, src/gui/about_dlg.c: Renaming NESSUS_[MAJOR,MINOR,PATCH,RC,VERSION,FULL_VERSION] to OPENVASCLIENT_[...] * configure: updated. 2009-04-02 Jan-Oliver Wagner Further patches by Marcus Brinkmann towards a crosscompiling OpenVAS-Client based on mingw. * nessus/preferences.c (get_username): For W32 system, try environment variable USERNAME. (dlopen, dlsym, dlclose, w32_shgetfolderpath, standard_homedir): New. Handling of W32 specific methods to get folder path. (prefs_get_nessushome): For W32 systems, use standard_homedir() to get the homedir if environment does not help. * libnessus/openvas-socket.h: New. Protos fpr socket wrapper to help with W32 handling. * libnessus/openvas-socket.c: New. Socket wrappers for W32. * libnessus/Makefile: Add handling of module openvas-socket. * libnessus/system.c (emalloc): Don't run the waitpid/sleep loop for W32. * libnessus/network.c: Everyhwere: Replace block_socket by openvas_sock_block, socket by openvas_sock_new, unblock_socket by openvas_sock_unblock, close by openvas_sock_close, connect by openvas_sock_connect. (unblock_socket, block_socket): Removed. Equivalents now in module openvas-socket. (open_socket): Use EINPROGRESS only if defined. 2009-04-02 Michael Wiegand Post release version bump. * VERSION: Set to 2.0.4.SVN. * doc/Doxyfile, doc/Doxyfile_full: Set PROJECT_NUMBER to 2.0.4.SVN. 2009-04-02 Michael Wiegand Preparing the openvas-client 2.0.3 release. * VERSION: Set to 2.0.3. * CHANGES: Updated. * doc/Doxyfile, doc/Doxyfile_full: Set PROJECT_NUMBER to 2.0.3. 2009-04-02 Felix Wolfsteller * po/de.po: Updated german translation. 2009-04-02 Felix Wolfsteller Changed wording to comply to standards. * nessus/prefs_dialog/prefs_report.c (show_popup_menu): Changed wording to comply to standards. 2009-04-02 Felix Wolfsteller Increased GTK+ version requirement (from 2.4 to 2.6). Resolved build problems when configured with --disable-gtk. * configure.in: Increased version requirement for gtk+. * nessus/Makefile: Moved hash_table_file object into util_objs list, NESSUSCLIENT target depending on utils target. * src/util/Makefile, src/openvas-lib/Makefile: Include GLib cflags. 2009-03-31 Felix Wolfsteller * nessus/prefs_dialog/prefs_comment.c (prefs_dialog_comment): Proper use of scrolledwindow (adds border to text area, looks better), minimal doc improvements. 2009-03-31 Felix Wolfsteller * nessus/prefs_dialog/prefs_comment.c: K&R Style replacements, minor reformatting. 2009-03-30 Felix Wolfsteller Stricter use of g_free for strings allocated by glib, reformatting, typo fixed, use of g_strdup_printf instead of fixed-size array. * nessus/preferences.c: Changed return type of preferences_get_filename indeed a gchar*, and many other occurences where gchar* were handled as char* (important only when free'ing), reformatting. * nessus/preferences.c (new_pluginset): Use g_strdup instead of statically sized array. * nessus/preferences.c (preferences_save_as): Removed favorite typo (automagically). 2009-03-30 Felix Wolfsteller Tackled compiler warnings (const poison). * src/gui/severity_override_form.c (add_override_to_global_filter, severity_override_form_to_override): Moved consistency/conflict checking to severity_override_form_to_override. * src/util/severity_filter.c (severity_filter_contains_conflicting): Renamed into severity_filter_contains_conflicting_override. * src/util/severity_filter.c (severity_filter_contains_conflicting): New, checks conflict state, but not given an override, but potential override information as strings. Needed for severity_form_override to avoid getting hold of a const override that has to be freed because it would conflict. * src/util/severity_filter.c (severity_filter_from_xml): Removed const from return type. * src/util/severity_filter.h: Updated protos. 2009-03-30 Felix Wolfsteller * src/gui/nvt_pref_sshlogin.h, src/gui/nvt_pref_sshlogin.c: USE_GTK guarded. 2009-03-26 Felix Wolfsteller * nessus/comm.c, nessus/comm.h (comm_delete_session, comm_stop_detached_session, comm_get_detached_sessions, comm_server_detached_sessions): Removed never used functions (pointed to by cppcheck). * nessus/comm.h: Moved include before defines. 2009-03-26 Felix Wolfsteller * nessus/pdf_output.c (arglist_to_pdf): Fixed mem leak, use otherwise senseless function destroy_argv (pointed to by cppcheck). 2009-03-26 Felix Wolfsteller * src/util/severity_filter.c (severity_filter_from_xml): Fixed mem leak, pointed to by cppcheck. * src/util/severity_filter.c: Minor reformatting (spacing). 2009-03-26 Felix Wolfsteller * nessus/plugin_infos.c (show_deps): Made translation a bit easier, collapsed code. 2009-03-26 Felix Wolfsteller * nessus/plugin_infos.c (show_deps): Use glib string functions instead of strcat and strcpy. 2009-03-26 Felix Wolfsteller * nessus/nbe_output.c, nessus/nbe_output.h (nbe_to_backend): Declared parameter as const. * nessus/nbe_output.c: Minor reformatting and doc. 2009-03-26 Felix Wolfsteller Use gchar consistently (free with g_free), use g_build_filename where filenames are built. * nessus/report.c (report_get_filename, report_get_certificates_filename): Changed return type to gchar, use g_build_filename instead of malloc and sprintf, reformatting * nessus/report.c (report_save, open_report): Respect return types, free with g_free, minor reformatting. * nessus/report.c * nessus/report.h (report_get_filename, report_get_certificates_filename): Changed return type in protos to gchar. 2009-03-26 Felix Wolfsteller Use glibs functions instead of malloc + sprintf. * nessus/prefs_dialog/prefs_dialog_user.c (add_rule_callback): Use g_strdup_printf instead of emalloc + sprintf (one instance accidentially commited with last commit). 2009-03-26 Felix Wolfsteller Cosmetics in prefs_dialog_user module. * nessus/prefs_dialog/prefs_dialog_user.c: Added doc, reformatting. 2009-03-26 Felix Wolfsteller Use GLib type conversion macro to ensure 64-Bit compatibility. * nessus/comm.c (comm_parse_preference): Use type conversion macro int to pointer instead of pure void cast. 2009-03-26 Felix Wolfsteller Cosmetics in comm module. * nessus/comm.c: Minor reformatting. 2009-03-25 Felix Wolfsteller Resolved compiler warnings. * nessus/prefs_dialog/listnotebook.c (listnotebook_new): Cast function to Callback function. * src/util/openvas_ssh_key_create.c (openvas_ssh_key_create_rpm): Included unused variables in the "deactivation define", made proper comment after endif. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_rpm_click): Shadowed whole function in define. 2009-03-25 Felix Wolfsteller Before report export, remember reports is_severity_mapped state. Then disable the filter, do the export and switch it back. * nessus/report_save.c (file_save_ok_callback): Disable severity mapping before exporting report. Switch on afterwards if it was enabled before. 2009-03-25 Felix Wolfsteller Reference gchar*s as gchar*s, minor reformatting. * nessus/report_save.c (show_pdf): Change parameter type to gchar. * nessus/report_save.c (report_open_pdf): Type local variables as gchar* where gchar*s are returned from glib functions. 2009-03-25 Felix Wolfsteller Cosmetics in report_save module. * nessus/report_save.c: K&R Style replacements, doc reformatting. 2009-03-25 Felix Wolfsteller Assign and display icons to "False Positive"s, "Log Message"s and "Debug Message"s. Fixed mem leak (free displayed override- forms). * nessus/prefs_dialog/prefs_report.c (severity_level): Assigned severity level integers to "False Positive"s, "Log Message"s and "Debug Message"s. * nessus/prefs_dialog/prefs_report.c (severity_data_func): Added the stock icon identifiers to be associated to the ("new") severity levels. * nessus/prefs_dialog/prefs_report.c (severity_override_form_t): Returns the form itself, allows freeing them later. * nessus/prefs_dialog/prefs_report.c (addprio_click): Parent the dialog to the main window, free the forms. 2009-03-25 Felix Wolfsteller * src/gui/severity_override_form.c (severity_override_form_free): Free in reverse order, null- guarded. 2009-03-25 Felix Wolfsteller Cosmetis in listnotebook modoule. * nessus/listnotebook.c: K&R style replacement, minor reformatting. 2009-03-25 Felix Wolfsteller Fixed bug related to removal of severity_overrides from the list. * src/gui/severityfiltermngr_dlg.c (severityfiltermanager_dialog): Fixed bug related to removal of severity_overrides from the list (better guard and loop break when issue found). 2009-03-25 Felix Wolfsteller Report view (GUI, on the gright side) now shows icon next to severities icon if severities were overridden. More info in text-view at a better place. No addition of severity overrides possible if view is already filtered. * nessus/prefs_dialog/prefs_report.c (mapped_to): Renamed into mapped_from, returns the original severity now. * nessus/prefs_dialog/prefs_report.c (fill_tree_model, row_activated): Call mapped_from instead of mapped_to. * nessus/prefs_dialog/prefs_report.c (row_activated): Added information about original severity into the string in textview on the right, line of text now displayed before reported issues text. * nessus/prefs_dialog/prefs_report.c (isoverriden_data_func): New. Sets icon of a cellrenderer if current row contains severity- overriden issues. * nessus/prefs_dialog/prefs_report.c (severity_data_func): Set only icon of severity to cellrenderer (not the "overridden" icon). * nessus/prefs_dialog/prefs_report.c (show_popup_menu): If current Context is severity mapped, make menuitem insensitive. * nessus/prefs_dialog/prefs_report.c (prefs_dialog_report): Add new cell renderer, comments. 2009-03-25 Felix Wolfsteller In report module fixed minor issue (use of char* instead of gchar*), cosmetics in report and prefs_dialog module. * nessus/report.c: Cosmetics, reformatting, doc. * nessus/report.c (open_report): Local variable that is freed with g_free is indeed a gchar*, changed type of local var. * nessus/prefs_dialog/prefs_dialog.c: Reformatted doc. 2009-03-25 Felix Wolfsteller * nessus/preferences.c (preferences_yes_or_one): Use GLibs pointer to int conversion macro e.g. for 64-Bit compatibility. 2009-03-25 Felix Wolfsteller Deactivated prototypical implementation of rpm- package generator for standard builds. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_rpm_click, ssh_keys_dialog_show): For standard builds, dactivated rpm generator code. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_rpm_click): Print debug message (but deactivated, conditioned on a define). * src/util/openvas_ssh_key_create.c (openvas_ssh_key_create_rpm): Improved, but for standard builds, dactivated rpm generator code (conditioned on define). 2009-03-25 Felix Wolfsteller * src/util/severity_filter.c (severity_filter_apply): NULL- guarded, if not all parameter are non-NULL, return NULL. 2009-03-24 Felix Wolfsteller In reports tree- view (GUI, on the right if a report has been selected), display icons on severity-overriden issues, if any. Also indicate that a modification took place in the text. * nessus/prefs_dialog/prefs_report.c (mapped_to): New. Finds out if and how the severity of a single reported issue has been overriden. * nessus/prefs_dialog/prefs_report.c (fill_tree_model): Sets a flag in the tree model if the severity of a reported issue has been modified. * nessus/prefs_dialog/prefs_report.c (row_activated): Alters the text of a reported issue if its severity has been modified. 2009-03-24 Felix Wolfsteller * nessus/data_mining.c, nessus/data_mining.h (report_query_single_line): New, queries certain values of a single line. * nessus/data_mining.c, nessus/data_mining.h (report_query_all_by_line): Made non-static. Exclude lines that are not queried. 2009-03-24 Felix Wolfsteller * nessus/data_mining.c (subset_size): Minor doc and reformatting. 2009-03-24 Felix Wolfsteller Towards icons in the reports tree view (GUI-> right, when report is selected) indicating applied severity overrides. * nessus/prefs_dialog/prefs_report.c (fill_tree_model): Fixed bug, walk was not initialized. * nessus/prefs_dialog/prefs_report.c (fill_tree_model): Set list of contained issues in tree model. * nessus/prefs_dialog/prefs_report.c (row_activated): Pick up list of contained issues in tree model. 2009-03-24 Felix Wolfsteller Towards icons in the reports tree view (GUI-> right, when report is selected) indicating applied severity overrides. * nessus/prefs_dialog/prefs_report.c (enum, prefs_report_update): Added two more cols to the tree model: One indicating whether severities have been overriden, the other to carry a list of (indexes of) contained security messages. * nessus/prefs_dialog/prefs_report.c (fill_tree_model): Do not sort_uniq the severity messages, as we will need more information than just the severity type string. * nessus/prefs_dialog/prefs_report.c (severity_data_func): Choose "convert"- icon if current tree row is flagged as severity overriden. 2009-03-24 Felix Wolfsteller Cosmetics in prefs_report module. * nessus/prefs_dialog/prefs_report.c: Cosmetics, docs, whitespace removal, comments, reformatting. * nessus/prefs_dialog/prefs_report.h: whitespace removed. 2009-03-23 Felix Wolfsteller Outline of function to query certain records of the results "table" in nbe backend file (specified by line numbers as unique "ID"/ primary key). * nessus/data_mining.c (report_query_all_by_line): New. Method stub to access certain rows of the backends results "table". 2009-03-23 Felix Wolfsteller Cosmetics, docs, added comment about GLib 2.8 functionality. * nessus/data_mining.c (query_backend): Removed accidentially pasted declaration of local var. * nessus/data_mining.c: Cosmetics, docs, reformatting. 2009-03-23 Felix Wolfsteller Added id_line- field to subset struct to have a unique identifier for issues in a report/ backend (pseudo-sql implementation doesnt deliver primary keys). * nessus/data_mining.h (struct subset): Added field id_line. * nessus/data_mining.c (execute_query_flatfile): Set id_line when creating subsets. 2009-03-23 Felix Wolfsteller Cosmetics in data_mining module. * nessus/data_mining.c: Cosmetics. Doc, white-space removal, K&R style replacements, reformatting. * nessus/data_mining.c (execute_query_flatfile): Added debug- flag conditioned debug output. * nessus/data_mining.c (subnet_num_values): Removed (never used and misleading name). * nessus/data_mining.h (subnet_num_values): Removed proto. 2009-03-20 Felix Wolfsteller * nessus/data_mining.c : Cosmetics. Doc, white-space removal, K&R style replacements. 2009-03-20 Felix Wolfsteller * nessus/nessus.c (main): Fixed bug that caused global filter never to be created if the xml file did not exist. * src/util/openvas_ssh_key_create.c, src/util/openvas_ssh_key_create.c: (ensure_dir) Made convenient function non-static until a file utility module is created and this function is moved into it. 2009-03-20 Jan-Oliver Wagner Further patches by Marcus Brinkmann towards a crosscompiling OpenVAS-Client based on mingw. * libnessus/Makefile (libnessus-client.a): Added handling for ranlib. * libnessus/addslashes.c: Added define of EXPORTING to have DllExport's. * include/config.w32: New. Windows-specific configurations. * nessus/Makefile, nessus.tmpl.in: Added handling for ".exe" extension. 2009-03-19 Felix Wolfsteller * nessus/backend.c (priority_humanstr_to_short_str): New, extracted from backend_convert. Transforms one string representation of a severity level into yet another one. * nessus/backend.c (backend_convert): Fixed const issue (compiler warned) and extracted new method. 2009-03-19 Felix Wolfsteller * nessus/backend.c: Cosmetics, minor reformatting and docs. 2009-03-19 Felix Wolfsteller * nessus/comm.c (send_ntp_opts): Removed deprecation flag and adjusted doc. The options that are sent ensure that the server behaves the way users might have got used to it. 2009-03-19 Felix Wolfsteller * nessus/nessus.c: Include glib/gprintf.h to eliminate compiler warning. 2009-03-19 Felix Wolfsteller Removed unneseecary field and related function in backend module, replaced a g_strconcat by g_build_filename. * nessus/backend.c (backend_init): Replaced g_strconcat by g_build_filename, removed setting of unused backend_type. * nessus/backend.c (backend_type): Removed (unreferenced). * nessus/backend.h (struct backend): Removed unused field backend_type. 2009-03-19 Felix Wolfsteller * nessus/backend.c: Cosmetics, K&R style replacement, whitespace removal, minor doc. 2009-03-18 Felix Wolfsteller Cosmetics in the prefs_report module. * nessus/prefs_dialog/prefs_report.c: Added file doc, moved enum and const char tree_orders to beginning of file, reformatting and doc. * nessus/prefs_dialog/prefs_report.c (prefs_report_update): Changed parameter type to gboolean (called with either TRUE or FALSE anyway). 2009-03-18 Felix Wolfsteller Removed auth_printf and auth_gets which were reported as unused by cppcheck. Reformatting and doc. * libnessus/network.c (auth_printf, auth_gets): Removed, cppcheck identified them as not being called ever. * libnessus/network.c: Replaced K&R function declarations, minor other reformatting and doc. * include/libnessus.h: Removed auth_printf forward declaration. 2009-03-18 Felix Wolfsteller Update the report detail view (GUI, right side if report is selected) together with the scope tree (GUI, left side), so that when severity_overrides were applied / undone it is updated with eventually changed values as well. * nessu/prefs_dialog/prefs_scope_tree.c (prefs_scope_tree_update_report): Update the report view. 2009-03-18 Felix Wolfsteller First tests for new feature that allows rpm export of credentials for LSC (conditioned on DEBUG flag, configure with --enable-debug to test). * src/gui/ssh_keys_dialog.c, src/util/openvas_ssh_key_create.c (openvas_ssh_privkey_create): Minor reformatting. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_show): Added new button to create rpm from openvas_ssh_login and registered callback. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_create_rpm_click): Callback for button, checks selected login and then starts rpm creation. * src/util/openvas_ssh_key_create.c (openvas_ssh_key_create_rpm): New. Fires up rpm creation processes, calling external tools. * src/util/openvas_ssh_key_create.h (openvas_ssh_key_create_rpm): Added proto. 2009-03-18 Felix Wolfsteller Removing first tests for the severity override mechanism. * src/util/priority.c, src/util/priority.h: Removed. * src/util/Makefile: Removed target. * src/gui/priorities_dialog.c, src/gui/priorities_dialog.h: Removed. * src/gui/Makefile: Removed target. * nessus/Makefile: Updated. * nessus/prefs_dialog/prefs_dialog.c: Removed obselete include. * MANIFEST: Updated. * po/POTFILES: Modified, after rename priority->severity was done, added severityfiltermngr_dlg, removed entry for header. 2009-03-17 Laban Mwangi * nessus/nessus.c (connect_to_nessusd): Updated the certificate hash store to add a port to the hostname. Allows more than openvasd to run without confusing the client 2009-03-17 Felix Wolfsteller * nessus/comm.c (send_ntp_opts): Extracted from gui_comm_send_preferences and cli_comm_send_preferences and marked as deprecated as a comment suggests its of use to keep backward compatibility only. Can be removed after testing. 2009-03-17 Felix Wolfsteller * nessus/comm.c: Moved forward declaration behind the defines, slight modified documentation / comments. 2009-03-16 Jan-Oliver Wagner Further patches by Marcus Brinkmann towards a crosscompiling OpenVAS-Client based on mingw. * nessus/prefs_dialog/prefs_dialog.c (add_nessus_icon_set): Some Windows header defines "small" and therefore the variable here is renamed to "small_icon". 2009-03-16 Jan-Oliver Wagner Further patches by Marcus Brinkmann towards a crosscompiling OpenVAS-Client based on mingw. * src/util/openvas_ssh_key_create.c (openvas_ssh_privkey_create, openvas_ssh_pubkey_create): stdout and stderr can be macros in some build environments. Therefore renaming variables to something else. * nessus/data_mining.c (requests2lines): Make this function conditional to the presence of MMAP. * nessus/regex.c: Protect typedef of boolean from being done on WIN32. 2009-03-16 Jan-Oliver Wagner Adding some patches by Marcus Brinkmann towards a crosscompiling OpenVAS-Client based on mingw. * configure.in: Added handling of RANLIB, added "mingw32" as further host. Added configure check to avoid regexp checking (--enable-internal-regex). * configure: updated. * nessus.tmpl.in: Added handling of RANLIB. 2009-03-16 Michael Wiegand * nessus/OpenVAS-Client.desktop: Added to category Network as suggested by Scott Shinn to ensure OpenVAS-Client is placed in the correct menu in Fedora, CentOS and RHEL. Updated English, German and Spanish comments to indicate that the client is OpenVAS only and removed obsolete and confusing reference to Nessus. 2009-03-16 Michael Wiegand * Makefile: Removed installation of openvasclient-mkrand man page since openvasclient-mkrand has not been installed using the install target since 2007-12-28. 2009-03-16 Felix Wolfsteller Did the switch towards a per-report explicit on/off severity_override application. Note: the modifications to the backend and data-mining modules (apply overrides based on a flag of the __current__ context) might have influence on report generation, not tested. * src/gui/severityfiltermngr_dlg.c, nessus/prefs_dialog/prefs_dialog.c, nessus/prefs_dialog/prefs_scope_tree.c, src/util/severity_filter.c (severity_filter_apply): Removed reference to global_filter_active variable. * nessus/prefs_dialog/prefs_dialog.c (apply_severity_filter): Now functional. Swaps the is_priority_mapped flag of the current context and the menu items label. * nessus/prefs_dialog/prefs_dialog.c (switch_severity_filtering): Removed. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Removed old menu entry. * nessus/prefs_dialog/prefs_scope_tree.c (scopetreeview_selection_func, prefs_scope_tree_update_report): Do not modify the is_severity_mapped flag from here. * nessus/data_mining.c (__split_line), nessus/backend.c (backend_convert): Added reference to current Context, apply severity overrides only if current contexts flag is set so. Influence on report export not tested. 2009-03-16 Felix Wolfsteller * src/util/severity_filter.c: Slight doc improvements. * src/util/severity_filter.c (severity_filter_xml_elem, severity_filter_from_xml): Removed const from void return type. Adjusted error- checks, as user_data now is always passed non-NULL. 2009-03-16 Felix Wolfsteller Moved initialization of global_filter to nessus.c:main. * nessus/nessus.c (main): Initialize global_filter. * nessus/nessus.c (struct MainDialog): Extended list of arglist- entries. * nessus/prefs_dialog/prefs_dialog.c (switch_severity_filtering), src/gui/severityfiltermngr_dlg.c (severityfiltermanager_dialog), src/gui/severity_override_form.c (add_override_to_global_filter): Removed conditional initialization of global_filter. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Cast GtkWidget to get rid of compiler warning. * src/gui/severityfiltermngr_dlg.c: Added missing include. 2009-03-16 Felix Wolfsteller * nessus/context.c: Doc added/improved. 2009-03-16 Felix Wolfsteller Added filename field to severity_filter struct. Made severity_to_xml static and access it only from the add and remove methods to ensure persistent state between filter in memory and on disk. Therefore made the add and remove methods returning gboolean. Removed all code that involved filter_to_xml from outside the severity_filter module, minor reformatting and doc improvements. Changed file name for global severity filter from priofilter.xml to severity_overrides.xml. * src/util/severity_filter.c, src/util/severity_filter.h (severity_filter_to_xml): Made severity_filter_to_xml static. * src/util/severity_filter.c, src/util/severity_filter.h (severity_filter, severity_filter_new): Added filename parameter to struct and severity_filter_new. * src/util/severity_filter.c (severity_filter_free): Free filename, reformatted. * src/util/severity_filter.c (severity_filter_contains_conflicting): Collapsed conditional with same consequence. * src/util/severity_filter.c (severity_filter_add): Saves to xml file. * src/util/severity_filter.c, src/util/severity_filter.h (severity_filter_remove): Changed return type to gboolean, saves to xml. * src/util/severity_filter.c, src/util/severity_filter.h (severity_filter_to_xml): Removed filename parameter, now stored in severity_filter struct. * src/util/severity_filter.c (severity_filter_xml_elem, severity_override_xml_elem, severity_filter_xml_start_element, severity_override_xml_reason_text): Changed logic of user_data for xml element callbacks: where it was an double pointer before, always pass a pre-initialized severity_filter. * src/gui/severityfiltermngr_dlg.c (severityfiltermanager_dialog), src/gui/severity_override_form.c (add_override_to_global_filter), nessus/prefs_dialog/prefs_dialog.c (switch_severity_filtering): No need for explicit saving anymore, use new file name severity_overrides.xml. Display message if saving failed. 2009-03-15 Tim Brown * Fixed memory leak as reported by cppcheck. 2009-03-13 Felix Wolfsteller * src/gui/severity_override_form.c (severity_override_form_free, severity_override_form_lock): Eliminated compiler warnings through widget casts. 2009-03-13 Felix Wolfsteller Changed wording of menu items. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup), nessus/prefs_dialog/prefs_report.c (show_popup_menu): Changed wording for menu items connected to severity (former priority) override functionality. 2009-03-13 Felix Wolfsteller Towards a different mode of applying severity overrides (per-report via menu item vs. per-clicked-report depending on toggle state.) * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Added (yet non-functional) menu item to apply/undo severity overrides on reports. * nessus/prefs_dialog/prefs_dialog.c (apply_severity_filter): Callback function for new menu item (basically empty). * nessus/prefs_dialog/prefs_context.c (prefs_context_update_widgets): Toggle new menu items sensitivity (only applicable on reports) and label, improved documentation. 2009-03-13 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c: Corrected wrong include statement (broke) build. * nessus/prefs_dialog/prefs_dialog.c (menuitem_add): Documentation for parameters added. 2009-03-13 Felix Wolfsteller In the report-view (right hand side of GUI), add text to show the user that the severity of an issue (alert) has been changed by an override, if that is the case. Note that due to a "bug" this currently works only if you did something with the overrides in the currently running Client (inspect, add override or apply). * nessus/prefs_dialog/prefs_report.c (row_activated): Renamed priority to severity where applicable. * nessus/prefs_dialog/prefs_report.c (row_activated): Added debug string about the query that results in the report view. * nessus/prefs_dialog/prefs_report.c (row_activated): Add text to text view to indicate change of severity, if overrides are applied. * nessus/prefs_dialog/prefs_report.c (row_activated): Free overrides that have been created for and stored in the list of currently selected issues. * nessus/prefs_dialog/prefs_report.c (severity_data_func): Marked spot where an additional icon should be placed if an override was applied. 2009-03-13 Felix Wolfsteller Prohibit addition of conflicting (same OID, host, port, severity_from) overrides to the global_filter. * src/util/severity_filter.c (severity_override_similarity_predicate): New. To be used in a g_slist_find_common to find conflicting overrides. * src/util/severity_filter.c (severity_filter_contains_conflicting): New. To be used to query if a filter contains an override conflicting a given override. * src/util/severity_filter.h: Added proto for new function. * src/gui/severity_override_form.c (add_override_to_global_filter): Perform conflict-check before adding an override to the global_filter. 2009-03-13 Felix Wolfsteller Renamed priority overrides to severity overrides, also in-source. * nessus/prefs_dialog/prefs_report.c, nessus/prefs_dialog/prefs_scope_tree.c, nessus/prefs_dialog/prefs_dialog.c, nessus/data_mining.c, nessus/backend.c :Renamed include and references. * nessus/context.c, nessus/context.h: Renamed field of context from is_priority_mapped to is_severity_mapped. * src/gui/priofiltermngr_dlg.c, src/gui/priofiltermngr_dlg.h, src/util/priority_filter.c, src/util/priority_filter.h, src/gui/priority_override_form.c, src/gui/priority_override_form.h : Moved. (replace priority in filename by severity), renamed everything priority- like to severity-like. * nessus/Makefile, src/util/Makefile, src/gui/Makefile: Updated. * MANIFEST: Updated. 2009-03-13 Felix Wolfsteller * src/gui/priority_override_form.c (priority_override_form_free): New. Frees the widgets and associated memory. * src/gui/priority_override_form.h (priority_override_form_free): Proto added. 2009-03-11 Felix Wolfsteller Made xml writing a bit more robust. Strip leading and trailing whitespaces off the text that defines an overrides reason. * src/util/priority_filter.c (write_override_xml_elem): Escape xml content using g_markup_printf_escaped. * src/util/priority_filter.c (priority_filter_to_xml): Escape xml content using g_markup_printf_escaped. * src/util/priority_filter.c (write_override_xml_elem): Escape xml contents using g_markup_printf_escaped. * src/util/priority_filter.c (priority_override_xml_reason_text): Strip whitespaces from the text for an overrides reason. 2009-03-11 Felix Wolfsteller Introduced actions to the priority_override_form to enhance reusability. Reused the form in the Filter Manager to beautify it. * src/gui/priority_override_form.c: File doc block added. * src/gui/priority_override_form.c (priority_override_form_new): Added parameter formaction to decide whether to lock the form or add an add-button to it. * src/gui/priority_override_form.c (priority_override_form_lock): New function to lock down input to a form. * src/gui/priority_override_form.c (priority_override_form_from_override): Parameter added, is passed to priority_override_form_new. * src/gui/priority_override_form.h: Protos for (new) functions added/ modified. * src/gui/priority_override_form.h (enum formaction, struct priority_override_form): New enum to define possible actions that a form can help doing. Added field to struct, minor reformating and doc. * src/gui/priofiltermngr_dlg.c: Added priority_override_form include. * src/gui/priofiltermngr_dlg.c (priofiltermngr_dlg_add_override): Declared parameter as const. * src/gui/priofiltermngr_dlg.c (priofiltermngr_dlg_add_override): Use form instead of not-so-nice-looking label. Init form with the view- action. * nessus/prefs_dialog/prefs_report.c (create_override_page): Init form with the add- action. 2009-03-11 Felix Wolfsteller Tackled 3 compiler warnings. * src/gui/priority_override_form.h: Added newline at end of file. * src/gui/priofiltermngr_dlg.c: Added missing include, cast function pointer handed over to g_slist_foreach correctly. 2009-03-11 Felix Wolfsteller * src/gui/priority_override_form.c (priority_override_form_new): Made table looking better (left aligned labels). * src/gui/priority_override_form.c (priority_override_form_from_override) Fixed bug that changed text for the wrong labels. 2009-03-11 Felix Wolfsteller * nessus/prefs_dialog/prefs_report.c (row_activated): Get name of NVT and set it as default value for an overrides name when user clicks in report view. * nessus/prefs_dialog/prefs_report.c (addprio_click): In the dialog to add an override to the global filter, display the overrides name (so the nvt name) in the overview on the left, not the OID. 2009-03-11 Felix Wolfsteller * src/gui/priority_override_form.c: Added forward declaration of priority_override_form_valid. * src/gui/priority_override_form.c (priority_override_form_from_override): Set text for entries name and reason according to name and reason of override. * src/gui/priority_override_form.c (priority_override_form_new): Added cast to eliminate compiler warning. * src/gui/priority_override_form.h: Added include guards. 2009-03-11 Felix Wolfsteller * nessus/prefs_dialog/prefs_report.c (row_activated): Reformatted part that is going to be changed. 2009-03-11 Felix Wolfsteller * nessus/prefs_dialog/prefs_report.c (row_activated): Reformatted part that is going to be changed. 2009-03-11 Felix Wolfsteller Eliminated compiler- warnings. * src/util/priority_filter.c (priority_override_form_valid): Added forward declaration. * nessus/prefs_dialog/prefs_dialog.c, src/util/priority_filter.c: Corrected type extern global_filter_active. 2009-03-11 Felix Wolfsteller Moved code to recalculate counters and refresh scope view to prefs_scope_tree module, declared some functions in that module static. * nessus/prefs_dialog/prefs_scope_tree.c: Added static keyword to various function that are used only within the module. * nessus/prefs_dialog/prefs_scope_tree.c (prefs_scope_tree_update_report): New, pretends a reselection of currently selected row, if a report is shown (copied from priofiltermngr). * nessus/prefs_dialog/prefs_scope_tree.h (prefs_scope_tree_update_report): Added proto. * src/gui/priofiltermngr_dlg.c: Added some missing includes. * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Replaced code by call to new prefs_scope_tree_update_report function. * nessus/prefs_dialog/prefs_dialog.c: Added some missing includes. * nessus/prefs_dialog/prefs_dialog.c (switch_priority_filtering): Replaced code by call to new prefs_scope_tree_update_report function, eliminated compiler warnings through casts. 2009-03-11 Felix Wolfsteller Made priority_override_form validate values on "Add"- action, removed many compiler warnings by casts. * src/gui/priority_override_form.c (priority_override_form_valid): New, does some sanity checking. * src/gui/priority_override_form.c (add_override_to_global_filter): Add override only when validation returned TRUE. * src/gui/priority_override_form.h (priority_override_form_to_override): Changed signature (return const). * src/gui/priority_override_form.c (priority_override_form_to_override): Changed signature (return const). * src/gui/priority_override_form.h, src/gui/priority_override_form.c: Corrected year (2009) in header comment block. 2009-03-10 Jan-Oliver Wagner * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Removed the temporary label that indicated whether filter is on or off. 2009-03-10 Felix Wolfsteller Allow addition of overrides to global priority_filter. * src/gui/priority_override_form.h: Added newline at end of file. * src/gui/priority_override_form.c (add_override_to_global_filter): New. Adds override to global filter, callback for add- button. * src/gui/priority_override_form.c (priority_override_form_new): Added add-button and registered callback, allows addition of overrides specified in a form to the global_filter. * src/gui/priority_override_form.c (priority_override_form_to_override): Fixed. Before, read values from wrong labels. 2009-03-10 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c (switch_priority_filtering): Apply filter when checkbox was ticked/ unticked. 2009-03-10 Felix Wolfsteller First steps towards cleaner module boundaries: Use priority_override_form to create visualization widget for priority_overrides. * nessus/prefs_dialog/prefs_report.c: Include of priority_override_form added. * nessus/prefs_dialog/prefs_report.c (create_override_page): Use priority_override_form instead of creating GUI in this module. 2009-03-10 Felix Wolfsteller Allow deletion of overrides from the Priority Filter Manager GUI. Prototypical implementation. * src/gui/priofiltermngr_dlg.c: Added reference to extern global_filter_active flag. * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Respect the global_filter_active flag, allow deletion of overrides. 2009-03-10 Felix Wolfsteller Added function to remove an override from a priority_filter. * src/util/priority_filter.c, src/util/priority_filter.h (priority_filter_remove): New function. Removes and frees an override from a filter. 2009-03-10 Felix Wolfsteller Added stub for new module priority_override_form that acts as a Viewer and editor for a priority_override much in the same fashion as in the SSH Credentials Manager. An actual own widget implementation might grow out of this stub. * src/gui/priority_override_form.h, priority_override_form.c: Skeleton for a widget that allow creation and modification of priority_overrides. * src/gui/Makefile: Included target. * nessus/Makefile: Included object. * MANIFEST: Updated. * po/POTFILES: Updated. 2009-03-10 Felix Wolfsteller Show dialog to add priority_overrides to the global priority_filter when item in popup-menu is clicked. Dialog is dummy, does not do anything yet. * nessus/prefs_dialog/prefs_report.c: Added includes. Future separation into separate modules is neccessary and planned. * nessus/prefs_dialog/prefs_report.c: Added reference to global MainDialog arglist. * nessus/prefs_dialog/prefs_report.c (row_activated): Initializes a list of overrides when in the report view something is selected. If a list with a further selection existed, free it. Register the list in the arglist for this view when finished. * nessus/prefs_dialog/prefs_report.c (create_override_page): New. Creates a widget containing information about an override, allows editing. * nessus/prefs_dialog/prefs_report.c (addprio_click): New. Callback for click on the popupmenu. Opens a dialog with a listnotebook showing the selected security issues to create overrides from (utilizes new create_override_page). * nessus/prefs_dialog/prefs_report.c (show_popup_menu): Changed label of menuitem and registered callback (addprio_click) for it. * nessus/prefs_dialog/prefs_report.c (prio_button_press): Indicate that a right mouse button click was not handled to allow selections with rmb. * nessus/prefs_dialog/prefs_report.c (prefs_dialog_report): Added new key "SELECTED_ISSUES" with (empty) list to the ctrls- arglist for this view. 2009-03-10 Felix Wolfsteller * nessus/prefs_dialog/prefs_scope_tree.c: Added reference to extern global_filter_active. * nessus/prefs_dialog/prefs_scope_tree.c (scope_move_menuitem_enable): Minimal reformatting. * nessus/prefs_dialog/prefs_scope_tree.c (scopetreeview_selection_func): Added documentation, respect global_filter_active flag when asked whether to display the "filter" icon or not. 2009-03-10 Felix Wolfsteller * src/gui/nvt_pref_sshlogin.c, src/gui/nvt_pref_sshlogin.h (text_combobox_set_active_text): Made convenient function public, renamed frame (per-target -> per-host). 2009-03-10 Felix Wolfsteller Removed testing-mechanism of global priority switching between NULL and real instantiation. Instead added Checkbox- Menuitem to dis/enable priority filtering. Priority Filter Dialog shows global filter regardless of activity and initializes and saves to disk if none found. * nessus/prefs_dialog/prefs_dialog.c: References to global_filter and global_filter_active added, respective include added. * nessus/prefs_dialog/prefs_dialog.c (switch_priority_filtering): New. Callback for new CheckBoxMenuItem, creates global filter if none there yet and sets the global priority filtering active flag. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Added Checkbox MenuItem. * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Initialize global_filter if not loaded yet. 2009-03-10 Felix Wolfsteller Added global boolean to indicate state (in/active) of priority filtering, new function to duplicate a priority_override. * src/util/priority_filter.c: Added global gboolean to indicate state (in/active) of filter. * src/util/priority_filter.c (priority_override_duplicate): New. Duplicates a priority_override. * src/util/priority_filter.h (priority_override_duplicate): Added proto for new function. * src/util/priority_filter.c (priority_filter_apply): Apply filter only when (new) global boolean is true. * src/util/priority_filter.c: Minimal changes in documentation, whitespaces. 2009-03-09 Jan-Oliver Wagner * src/gui/priofiltermngr_dlg.c: Added missing include. (priofiltermngr_dlg_add_override): Fixed a bug: port and reason were mixed up. 2009-03-09 Felix Wolfsteller Added outline for context-popup-menus on the treeview that shows security issues from a report (right hand side in GUI). (Menu has no function yet, will allow priority override generation from reported issues) * nessus/prefs_dialog/prefs_report.c (prio_button_press, prio_show_popup, show_popup_menu): New. Allow context menus on rmb clicks on the treeview that shows security issues. * nessus/prefs_dialog/prefs_report.c (prefs_dialog_report): Connect the appropriate signals to the new functions. 2009-03-09 Felix Wolfsteller Fixed typo that broke build. * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Fixed typo that broke build. 2009-03-09 Felix Wolfsteller * nessus/prefs_dialog/prefs_report.c: Transformed/improved documentation blocks. 2009-03-09 Felix Wolfsteller Allow inspection of a priority_filter with the Priority Filter Manager Dialog. Enabled immediate update of icon and numbers in the scopetree. The report-view on the right hand side is not yet updated in place. Layout-stub done by Jan-Oliver-Wagner. * src/gui/priofiltermngr_dlg.c: Include includes.h for arglists, context.h for Context. * src/gui/priofiltermngr_dlg.c: Added references to global Dialog arglist (MainDialog), current context (Context). * src/gui/priofiltermngr_dlg.c (priofiltermngr_dlg_add_override): New. Adds page with information about a priority_override to a listnotebook. * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Added listnotebook to dialog, fill listnotebook with details of overrides, added Delete- Button, update scopetree when testfilter-state changed. 2009-03-09 Felix Wolfsteller "Scopetree" (left half of GUI) now shows an icon next to a reports name if in the current view a priority_filter is applied. Applying a filter currently is only implemented for testing purposes and done by switching the test filter on via the "Extras" menu. Then each click to selected a report will enable the filter (thus, the currently selected report is unaffected for the time being). Removing a filter works by switching off the testfilter via the "Extras" menu and then do the selection. The filter and selection just works on memory; restarting OpenVAS-client will undo any filtering- effect. * nessus/context.h (struct): Added field is_priority_mapped to the context struct that indicate wether a report is priority_filtered or not. * nessus/context.c (context_init): Initialize the new field to FALSE. * nessus/prefs_dialog/prefs_scope_tree.c: Include priority_filter.h added. * nessus/prefs_dialog/prefs_scope_tree.c: Reference to extern global_filter added. * nessus/prefs_dialog/prefs_scope_tree.c (connected_data_func): Reformatted part that does the connection-icon selection, added case where icon is set for a context that has a filter applied. * nessus/prefs_dialog/prefs_scope_tree.c (scopetreeview_selection_func): If global_filter is set and a report is selected, set the contexts is_priority_mapped flag. 2009-03-09 Felix Wolfsteller * nessus/context.c (context_add_plugin): Doc added. * nessus/context.c (context_pickup_sshkeys): Use gchar* and g_free for memory allocated by GLib functions. 2009-03-09 Felix Wolfsteller Renamed Stock-item key from nessus-(dis)connect to openvas-(dis)connect. * nessus/prefs_dialog/prefs_scope.c (create_nessus_icon_factory, prefs_dialog_setup): Renamed stock-item. * nessus/prefs_dialog/prefs_scope_tree.c (connected_data_func): Use renamed stock-item- key. 2009-03-09 Felix Wolfsteller Include the number of log messages in the count-cache file (.cnt) that is used to fill the table of reports (left side in GUI), cosmetics. * nessus/prefs_dialog/prefs_scope_tree.c: Documentation and whites spaces added. * nessus/prefs_dialog/prefs_scope_tree.c (scopetreestore_counters_update): Documentation added, use of g_strdup_printf and gfree instead of snprintf etc. Renamed local variables h,w,n,f,l to highs,warnings... etc, included nr of log messages into the cnt file. 2009-03-07 Jan-Oliver Wagner * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Changed string representation of severity. * nessus/data_mining.c (__split_line): Apply filter for severity. * nessus/backend.c (backend_convert): Apply filter for severity. 2009-03-06 Jan-Oliver Wagner * src/util/priority_filter.c (priority_filter_xml_elem, priority_override_xml_elem, priority_filter_xml_start_element, priority_override_xml_reason_text): New. Handling for parsing xml file. Main author is Felix Wolfsteller. (priority_filter_from_xml): Added implementation. Main author is Felix again. 2009-03-06 Jan-Oliver Wagner * src/util/priority_filter.c: Added file doc string and various macros for XML keywords. (priority_override_new): Added parameter for directly setting the active flag. (write_override_xml_elem): New. Write a override object in xml format. (priority_filter_to_xml): Added implementation. * src/util/priority_filter.h: Updated proto for priority_override_new. * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Use priority_override_new with additional parameter. For testing purposes create and read a filter xml file. 2009-03-06 Felix Wolfsteller Fixed bug: Client always attempted to send 'login to host' mapping file, even if none existed. * nessus/comm.c (send_ssh_credential_files): If no files that define a mapping for login-information to hosts exist, do not add their patjes to the list of files to send. Otherwise error messages about missing files come up (e.g. first scan on a fresh installation). 2009-03-06 Felix Wolfsteller * nessus/comm.c: Added briefs to comments, replaced K&R style, minor reformatting. 2009-03-06 Jan-Oliver Wagner * src/util/priority_filter.c (global_filter): Added this global filter. (priority_filter_from_xml, priority_filter_to_xml): New. Stubs for xml representation of a filter. (priority_filter_apply): New. * src/util/priority_filter.h: Added protos for priority_filter_apply, priority_filter_to_xml and priority_filter_from_xml. Added declaration of global_filter. * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): Switched to use global filter instead of local static one. Added a second sample override. 2009-03-06 Jan-Oliver Wagner * src/util/priority_filter.c, src/util/priority_filter.h: New. Module for handling of priority filters. * src/util/Makefile, nessus/Makefile: Added handling of module priority_filter. * src/gui/priofiltermngr_dlg.c (priorityfiltermanager_dialog): For testing purpose added toggling creation of a filter and respectively removal of it. * MANIFEST: Updated. 2009-03-05 Vlatko Kosturjak * configure, configure.in: Removal of PCAP_TIMEOUT_IGNORED which is not used any more in the source 2009-03-05 Jan-Oliver Wagner Introducing the "Extras" menu to collect helpers and not let them distribute all over the GUI. * priofiltermngr_dlg.c, priofiltermngr_dlg.h: New. Shell for the Priority Filter Manager Dialog, currently containing only the note that it is not yet implemented. * src/gui/Makefile: Added handling of new module priofiltermngr_dlg. * nessus/Makefile: Added module "priofiltermngr_dlg" to GUI_OBJS. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Added "Extas Menu" with "LSC Credentials Manager" and "Priority Filter Manager" and moved "SLAD Install" from "File" menu to "Extras". * nessus/prefs_dialog/prefs_dialog_prefs.c (prefs_dialog_prefs): Removed button for LSC Credentials Manager. * MANIFEST: Updated. 2009-03-05 Jan-Oliver Wagner * src/openvas-lib/Makefile, src/gui/Makefile, src/util/Makefile, nessus/Makefile: Replace term "NESSUS_INCLUDE" by "OPENVAS_INCLUDE". 2009-03-05 Jan-Oliver Wagner * MANIFEST: Updated (missing doxygen files) 2009-03-05 Michael Wiegand * CHANGES: Fixed misleading comment regarding silent dependencies. 2009-03-05 Michael Wiegand Post release version bump. * VERSION: Set to 2.0.3.SVN. * doc/Doxyfile, doc/Doxyfile_full: Set PROJECT_NUMBER to 2.0.3.SVN. 2009-03-05 Michael Wiegand Preparing the openvas-client 2.0.2 release. * VERSION: Set to 2.0.2. * CHANGES: Updated. * MANIFEST: Added missing entries. * doc/Doxyfile, doc/Doxyfile_full: Set PROJECT_NUMBER to 2.0.2. 2009-03-05 Felix Wolfsteller * nessus/Makefile: Added parseutils.o to UTIL_OBJS. 2009-03-05 Felix Wolfsteller Moved parseutils module back into src/ directory. * nessus/parseutils.h, nessus/parseutils.c: Moved to src/util. * src/util/parseutils.c, src/util/parseutils.h: Moved from nessus/. * nessus/Makefile: Removed target. * src/util/Makefile: Added target. * MANIFEST: Updated. 2009-03-05 Felix Wolfsteller Moved code with former different copyright from parseutils module back into parser module. Credited copyright- holder of new code (intevation GmbH) and author (Joey Schulze) in parseutils, applied GPL/(c) header as in original commit of Joey. This partially reverts my changes in yesterdays rev. 2654 in which Joey Schulze as a author and the copyright- owner was not properly mentioned. Futhermore adjusted includes as a consequence of moved functionality. * nessus/parser.c (priority_name_to_type, priority_type_to_str): Moved from parseutils module. * nessus/parseutils.c (priority_name_to_type, priority_type_to_str): Moved to parser module. * nessus/parser.h: Added protos, moved various defines from parseutils module. * nessus/parseutils.h: Moved protos and defines to parser module. * src/gui/priorities_dialog.c: Added include. * src/util/prioritiy.c: Added include. 2009-03-04 Michael Wiegand * nessus/rand.c: Added commented RATS ignore since moderate randomness is enough for our purpose here. 2009-03-04 Felix Wolfsteller Disabled priority mapping at server message parsing level. Code remained. Parser module should behave like in rev. 1791. * nessus/parser.c (parse_host_add_data): Disabled modifications of data regarding security messages. 2009-03-04 Felix Wolfsteller Use of g_strdup_printf instead of malloc + sprintf, cosmetics in parser module. * nessus/parser.c: Moved defines to beginning of file. * nessus/parser.c (is_mac_addr, parse_server_error): Shortened comment blocks. * nessus/parser.c (parse_modify_data): use g_strdupo_printf + g_free instead of emalloc + sprintf + free. * nessus/parser.c (parse_nessusd_short_status): Gave example in comment. 2009-03-04 Felix Wolfsteller Disabled "Edit Priorities" menu item. * nessus/prefs_dialog/prefs_dialog.c, nessus/prefs_dialog/prefs_context.c: Disabled "Edit Priorities" menu item. 2009-03-04 Felix Wolfsteller Moved parseutils module (extracted from parser module in rev 2610) back into nessus dir, due to unclear copyright and licensing. * src/util/parseutils.c, src/util/parseutils.h: Moved to nessus/, reverted GPL and copyright header. * nessus/parseutils.h, nessus/parseutils.c: Moved from src/util, reverted GPL and copyright header. * src/util/Makefile: Removed parseutils target. * nessus/Makefile: Included parseutils target. * MANIFEST: updated. 2009-03-04 Felix Wolfsteller * src/gui/ssh_key_info_form.c (ssh_key_info_form_create): Modified label text to indicate that password is optional (and may indeed be ignored by current ssh_authorization.nasl). 2009-03-04 Felix Wolfsteller Replaced #ifdef DEBUGMORE switches by #ifdef DEBUGs. * include/config.h.in: No need to undef MOREDEBUG anymore. * nessus/parser.c, src/util/parseutils.c: Replaced DEBUGMORE by DEBUG. 2009-03-04 Felix Wolfsteller Improved documentation of data_mining module, minor reformatting. * nessus/data_mining.c: Improved documentation. * nessus/data_mining.c (__split_line): K&R style replacement. 2009-03-04 Felix Wolfsteller Renamed the OpenVAS SSH Key Manager into the OpenVAS LSC Credentials Manager. * src/openvas-lib/openvas_ssh_login.h, src/gui/ssh_keys_dialog.c, src/util/openvas_ssh_key_create.c, src/util/openvas_ssh_key_create.h, nessus/prefs_dialog/prefs_dialog_prefs.c, src/openvas-lib/openvas_ssh_login.c: Reworded ~SSH Key into LSC Credentials. * nessus/prefs_dialog/prefs_dialog_prefs.c (prefs_dialog_prefs): Use non-default box adding for slightly better look. 2009-03-03 Felix Wolfsteller * nessus/parser.c: Cosmetics, K&R style replacements, documentation, formatting. 2009-03-03 Felix Wolfsteller * nessus/backend.c: Added commented RATS ignores where strlen is called on string literals. 2009-03-03 Felix Wolfsteller * src/gui/priorities_dialog.c, nessus/plugin_infos.c: Added missing includes. 2009-03-03 Felix Wolfsteller Added Button to open plugin_info dialog from priority editing dialog, fixed bug when viewing editing priorities of empty report, fixed mem leaks, minor doc and reformatting. * src/gui/priorities_dialog.c: Added plugin_infos.h include. * src/gui/priorities_dialog.c (edit_priority, -priorities_keypress_cb, priorities_dialog): Minor reformatting and extension of documentation and function declarations. * src/gui/priorities_dialog.c (edit_priority): Use gchar + g_strdup_printf instead of malloc + snprintf, fixed mem leaks where strings for labels were not freed, added Button to open plugin_info dialog. * src/gui/priorities_dialog.c (priorities_dialog): When empty priority chain returned, show warning and abort. 2009-03-03 Felix Wolfsteller * nessus/plugin_infos.c, nessus/plugin_infos.h (plugin_info_window_show_cb): Method takes name instead of OID to avoid double traversal of plugin list. 2009-03-03 Felix Wolfsteller * nessus/plugin_infos.c: Removed debug-survivor-printf. 2009-03-03 Felix Wolfsteller * nessus/plugin_infos.c, nessus/plugin_infos.h (plugin_info_window_show_cb): New, callback method can be used to show plugin info dialog when only a NVTs OID is known. 2009-03-02 Felix Wolfsteller Removed obsolete code and variables in cli module, pointed to by cppcheck. * nessus/cli.h (struct cli_args): Removed auth_pwd & cipher member. * nessus/cli.h, cli.c (cli_args_auth_pwd, cli_auth_pwd, cli_args_cipher): Removed references to auth_pwd and cipher. 2009-03-02 Felix Wolfsteller Removed obsolete module families, pointed to by cppcheck. * nessus/families.h, nessus/families.c: Removed. Not used, a tree-based approach is used instead. * nessus/prefs_dialog/prefs_plugins_tree.c, nessus/prefs_dialog/prefs_plugins.c: Removed families.h include. * nessus/Makefile: Removed target and include of families.h . * MANIFEST: Removed families- entries. 2009-03-02 Felix Wolfsteller Use GTK Spin-Buttons instead of plain text fields for preferences ~"max hosts to check concurrently" and ~"max checks concurrently", to allow a minimum of input sanitizing (expecting integers here). * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_set_defaults): Set values to spinbuttons as float (atof), not as string. * nessus/prefs_dialog/prefs_dialog_scan_opt.c (prefs_dialog_scan_opt): Initialize GtkSpinButtons rather than plain text fields for preferences that - at the end - expect integers anyway. Set limit for max hosts/checks to perform concurrently arbitrarily high to 1000. * nessus/nessus.c (struct MainDialog): Added keys of scan_options to documentation of the "main" gui arglist to ease later refactorization. 2009-03-02 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c (set_yesno_pref_from_toggle, prefs_dialog_apply_plugin_prefs, arg_int_to_yesno): Added RATS ignores where strlen is called on string literals. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply): Use estrdup instead of malloc and snprintf. 2009-03-02 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog_scan_opts.c: Tranformed doc blocks, K&R style replacements. 2009-03-02 Felix Wolfsteller In module data_mining, added GPL header from implementation file to header file. * nessus/data_mining.h: Added GPL header from modules implementation file (nessus/data_mining.c). 2009-03-02 Felix Wolfsteller Added commented RATS ignores. * src/gui/error_dlg.c (show_dialog_std): Added RATS ignore: Calling getchar but not filling any buffer. * nessus/auth.c (auth_login): Added RATS ignore: Strlen on buffer that is nul-terminated as it comes from network_gets. 2009-03-02 Felix Wolfsteller * nessus/auth.c, nessus/prefs_dialog/prefs_plugins.c, nessus/prefs_dialog/prefs_plugins_tree.c: K&R style replacements, doc, minor refomatting. 2009-03-02 Felix Wolfsteller In filter module, added GPL header from implementation file to the header file. * nessus/filter.h: Added GPL Header from modules implementation file (nessus/filter.c). 2009-03-02 Felix Wolfsteller * src/gui/ssh_keys_dialog.c: Documentation added/improved. * nessus/prefs_dialog/listnotebook.h: Removed white spaces and commented proto. * nessus/cli.c: Removed zlib include, minor reformatting. * nessus/preferences.c, nessus/attack.c, nessus/html_output.c, nessus/prefs_dialog/prefs_scan_assistant.c, nessus/nessus_plugin.c: Documentation, K&R style replacements. 2009-03-02 Felix Wolfsteller * nessus/latex_output.c: Fixed typo in text. * README: Minimal change to wording, reference to openvas-discuss rather than openvas-users. 2009-03-02 Felix Wolfsteller * ssl/openvasclient-mkrand.c: Reformatted (moved includes behind the gpl header), extracted file doc block. 2009-03-02 Felix Wolfsteller Added one RATS ignore, cosmetics. * libnessus/rand.c: Added RATS ignore where size is sane, minimal doc and reformat. * libnessus/arglists.c: Minimal reformat, doc. * libnessus/system.c: Minimal reformat. 2009-02-28 Joey Schulze * nessus/parser.c (parse_modify_data, parse_host_add_data): Switch priorities adjustment methods to host based configuration * nessus/parser.h: Include context.h to fulfil datastructure dependencies * src/util/parseutils.c (priority_name_to_type, priority_str_to_type, priority_type_to_name, priority_type_to_str): New source file for conversion of priority types parse_message_type renamed into priority_name_to_type parse_expand_type renamed into priority_type_to_str * nessus/monitor_dialog.c, nessus/cli.c: Add parseutils.h as new include file * src/gui/priorities_dialog.c: Add new Priorities Editor priorities_dialog() and support functions * src/util/priority.c: Add support functions for handling priorities 2009-02-27 Felix Wolfsteller * src/util/openvas_ssh_key_create.c (openvas_ssh_key_create_unlink_files): When information in .logins is corrupted and as a result the computed length of file name for identity file is <= 0, skip memory allocation for the string holding it. 2009-02-27 Felix Wolfsteller * src/gui/ssh_keys_dialog.c: Documentation. 2009-02-27 Felix Wolfsteller Added client-side support for username/password authentification using the OpenVAS SSH Key Manager. GUI is extended by a password text entry, value is saved in .ssh/.logins. The current server will ignore these values (per-host user/password logins will not work yet). * src/openvas-lib/openvas_ssh_login.h: Added new member userpassword, adjusted the prototype to create a new login. * src/openvas-lib/openvas_ssh_login.c: Added new keyword for key file that saves the information for logins, respect the new userpassword. * src/openvas-lib/openvas_ssh_login.c (openvas_ssh_login_file_read): Ignore error if keyword for password not found in keyfile (allows seamless migration from older .logins). * src/gui/ssh_key_info_form.h: Added new member (text entry for password) to the ssh_key_info_form struct. * src/gui/ssh_key_info_form.c: Extended GUI by text-entry for text entry. 2009-02-27 Felix Wolfsteller Improved doc in ssh_key_info_form module. * src/gui/ssh_key_info_form.c: Improved doc and readability of doc. 2009-02-27 Felix Wolfsteller Improved doc, closed mem-leaks in case of errors, format. * src/openvas-lib/openvas_ssh_login.c: Improved doc, minor reformatting, removed whitespaces. * src/openvas-lib/openvas_ssh_login.c (openvas_ssh_login_file_write): Do no further processing and free error struct in case of errors. 2009-02-26 Felix Wolfsteller * src/util/openvas_ssh_key_create.c (openvas_ssh_key_create_unlink_files): NULL- guard file unlinking. * src/util/openvas_ssh_key_create.c (openvas_ssh_privkey_create, openvas_ssh_pubkey_create): Use g_strlcpy instead of strncpy. 2009-02-26 Felix Wolfsteller * nessus/read_target_file.c: Minimal doc improvement. * nessus/read_target_file.c (target_file_name, read_target_file): target_file_name indeed returns gchar, adjusted return type and use g_free when freeing the returned value. 2009-02-26 Felix Wolfsteller * nessus/plugin_cache.c: Beautified documentation. * nessus/plugin_cache.c (plugin_cache_get_filename, plugin_cache_write, plugin_cache_read): plugin_cache_get_filename indeed returns a gchar, adjusted return type and free it accordingly with g_free. 2009-02-25 Felix Wolfsteller * nessus/prefs_dialog/prefs_kb.c: Documentation added, K&R replacements whitespaces removed. * nessus/prefs_dialog/prefs_kb.c (arg_addset_value): Signature changed. Lead to compiler warnings after K&R function declaration replacement. 2009-02-25 Felix Wolfsteller * nessus/nessus.c (MainDialog): Added list showing arglists contents that has been identified so far. * nessus/nessus.c (init_globals): Removed forward declaration of never implemented nor called function. * nessus/nessus.c: Minor reformatting and doc. 2009-02-25 Felix Wolfsteller * MANIFEST: Updated src/README to src/README_SRC. 2009-02-25 Felix Wolfsteller Improved generated documentation. * Makefile: Added missig newline at eof. * doc/Doxyfile: Defined USE_GTK to include gui- related functions into the generated documentation (already done in doc/Doxygen_full). * src/README: Moved to src/README_SRC to allow inclusion of correct file in nessus/nessus.c (workaround, doxygen would include this file instead of the main README otherwise). * src/README_SRC: Moved from src/README. * nessus/nessus.c: Include the (unique) README in the documentation. 2009-02-24 Felix Wolfsteller * nessus/plugin_infos (plugin_info_window_setup): Made labels selectable to allow users to copy'n'paste information (i.e. OID) from within the info dialog, whitespaces removed. 2009-02-24 Felix Wolfsteller * nessus/monitor_dialog.c (monitor_list_update): Removed never really used local variables that counted the number of GUI- updates of the monitor dialog application- wide per host. 2009-02-24 Felix Wolfsteller * nessus/monitor_dialog.c: Cosmetics - white spaces removed and added, K&R replacements, doc. 2009-02-24 Felix Wolfsteller * nessus/data_mining.c: Added RATS ignores where strlen is called on a string literal. 2009-02-24 Felix Wolfsteller * nessus/data_mining.c: Cosmetics (K&R, whitespaces), docs. 2009-02-24 Felix Wolfsteller * nessus/pdf_output.c (print_plugin_information_signatures): Use g_strdup_printf instead of malloc + snprintf. 2009-02-24 Felix Wolfsteller * nessus/pdf_output.c: Cosmetics, TODO added about stringvector implementation, can use GLib here. 2009-02-24 Felix Wolfsteller * nessus/xml_output_ng.c (xml_info_nessusd): Corrected name of key for openvasd version. 2009-02-24 Felix Wolfsteller * nessus/xml_output_ng.c (xml_info_host): Removed unessecary fetching of server_info, it comes as parameter anyway. 2009-02-24 Felix Wolfsteller Variables renamed. * nessus/xml_output_ng.c (xml_info_host): Renamed parameter name from t to server_info. * nessus/xml_output_ng.c (xml_info): Renamed local variable t to server_info. 2009-02-24 Felix Wolfsteller * nessus/nessus.c (set_server_cert_hash): Added RATS ignore where string is ensured to be nul- terminated. 2009-02-24 Felix Wolfsteller * nessus/sighand.c (close_all_context_cnx): Moved upward within file, declared static. * nessus/sighand.c (nessus_exit): Close connections of all contexts, not only current one close_all_context_cnx(/Context/Global/) before exiting. * nessus/nessus.c (main): Removed call to close_all_context_cnx, implicitly done by nessus_exit now. 2009-02-23 Joey Schulze * libnessus/arglists.c (arg_del_value): Fix thinko * libnessus/arglists.c (arg_del_value): Added missing initialisation on element removal 2009-02-23 Felix Wolfsteller Use correct closing tag for nvt element. * nessus/xml_output_ng.c (xml_plugins_plugin): Close xml nvt element with /nvt, not /plugin, doc. * nessus/xml_output_ng.c (escape_string): Corrected comment. 2009-02-23 Felix Wolfsteller * nessus/parser.c: Replaced K&R function declarations, doc. 2009-02-23 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_set_defaults): Added RATS-ignores for strlens where strings are guaranteed to be nul- terminated. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply): Use strdups instead of malloc and strncpys, added RATS ignores where strlen is called on (nul- terminated) literals. 2009-02-23 Felix Wolfsteller * nessus/plugin_infos.c (show_deps): Use gchar and g_strdup_printf instead of emalloc + snprintf. 2009-02-23 Felix Wolfsteller * libnessus/network.c: Minor documentation and reformatting. 2009-02-23 Felix Wolfsteller * nessus/comm.c (comm_get_preferences): Added RATS-ignores, where strlen looks at nul- terminated strings. 2009-02-23 Felix Wolfsteller * nessus/comm.c: Reformatted function declarations and improved doc blocks. 2009-02-23 Felix Wolfsteller * nessus/backend.c: Minor reformatting and doc. 2009-02-23 Felix Wolfsteller Use a more sophisticated file chooser for nvt file preferences. Allows for selection of hidden files/folders (useful when selecting ssh keys) and better integrated into desktop environments. Also reduced code and arglist shuffling. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (file_dialog_hide): Removed. All packed in select_file. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (file_selected): Removed. All packed in select_file. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (select_file): Use GtkFileChooser instead of GtkFileSelection, makes procedure easier and allows more options like selection of hidden files and folders. 2009-02-21 Joey Schulze * libnessus/arglists.c (arg_del_value): Add missing initialisation 2009-02-20 Joey Schulze * libnessus/arglists.c (arg_del_value): New function to remove an arglist element 2009-02-19 Joey Schulze * nessus/backend.c (backend_convert), nessus/parser.c (parse_expand_type), nessus/pdf_output.c (arglist_to_plainhtml): Use capital letters for "false positive" string 2009-02-19 Felix Wolfsteller Try to set client- side "silent dependencies" preference default to "no" , use g_strdup_printf instead of malloc + sprintf. * nessus/preferences.c (preferences_get_altname): Use g_strdup_printf instead of malloc + sprintf. * nessus/preferences.c (preferences_new): Set silent_dependencies default to "no". 2009-02-19 Felix Wolfsteller Minor documentation and reformatting of preferences module. * nessus/preferences.c: Minor documentation and reformatting. 2009-02-18 Felix Wolfsteller Added tooltip to timeout spinner in plugin info dialog. * nessus/plugin_infos.c (plugin_info_window_setup): Added toolip to timeout- spinbutton. 2009-02-18 Felix Wolfsteller Resolved compiler warning via gtk cast. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): Cast GtkTable to GtkWidget to eliminate compiler warning. 2009-02-17 Felix Wolfsteller Allow plugin- setting directly from plugin-info dialog via a spinner. Saves the user two clicks and does not hide this functionality. * nessus/plugin_infos.c (do_set_timeout): Clarified doc. * nessus/plugin_infos.c (set_timeout_build_window): Removed. No additional window for timeout- setting needed anymore. * nessus/plugin_infos.c (set_timeout): Removed. * nessus/plugin_infos.c (spin_to_timeout): New. Sets the spinner to the value found in preferences. * nessus/plugin_infos.c (plugin_info_window_setup): Put spinner and label to the plugin info dialog. Removed the set-timeout-button. Call spin_to_timeout to show current (old) value. Call do_set_timeout when window is closed to update current (new) value. 2009-02-17 Felix Wolfsteller * nessus/plugin_infos.c (do_set_timeout): Removed debug- printf, use g_strdup_printf instead of malloc + sprintf, documentation for parameters. 2009-02-17 Felix Wolfsteller Partly repaired timeout- functionality on client- side. * nessus/plugin_infos.c (do_set_timeout): Changed signature, no reason to use arglists here, treat OID as a string and not as an int. * nessus/plugin_infos.c (set_timeout_build_window): Use arguments directly, not nested in an argument (matches new do_set_timeout signature). Renamed local variables, indicate thet timeout unit is seconds, use gtks show_all() instead of multiple show()s. 2009-02-17 Felix Wolfsteller Minor reformatting and documentation. * nessus/plugin_infos.c: Minor reformatting and documentation. 2009-02-16 Felix Wolfsteller * nessus/auth.c: Minor reformatting. 2009-02-16 Felix Wolfsteller Fixed (worked around) bug that caused non-visible SSH-login--per-target GUIs not to show up after e.g. deletion of a sshlogin until resizing of the GUI. * src/gui/nvt_pref_sshlogin.c (add_host_login_row): Added additional (nested, because we are in a callback) argument. Allows for manipulation of an arbitrary contexts guis, not only the currently active contexts one. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): Nesting a per-context GUI in new argument for add_host_login_row, work around invisibility- bug by manually sending a size request. 2009-02-16 Felix Wolfsteller Showing counted log messages in overview table (~left side of the GUI). Based on Joeys "False-Positives" patch of 2009-01-17. * nessus/prefs_dialog/prefs_scope_tree.c: Added entry to column enum. * nessus/prefs_dialog/prefs_scope_tree.c (scopetree_move): Copy nr. of log messages, too. * nessus/prefs_dialog/prefs_scope_tree.c (scopetree_new_with_parent): Initialize new column. * nessus/prefs_dialog/prefs_scope_tree.c (scopetreestore_counters_update) : Fetch and set number of log messages. * nessus/prefs_dialog/prefs_scope_tree.c (scopetreeview_create_columns): Create the new column. * nessus/prefs_dialog/prefs_scope_tree.c (scope_create_treestore): Include value in tree store. 2009-02-16 Felix Wolfsteller Towards counting log messages in overview (~left side of the GUI). Provided functions to count log messages. * nessus/report_utils.c (number_of_log_messages_by_port, number_of_log_messages_by_host, number_of_log_messages): New. Count log messages analog to others (e.g. security notes) * nessus/report_utils.h: Added protos. 2009-02-16 Felix Wolfsteller * nessus/prefs_dialog/prefs_scope_tree.c: Reformatted larger parts. 2009-02-16 Felix Wolfsteller * nessus/prefs_dialog/prefs_scope_tree.c: Minor reformatting, K&R function declaration replaced. 2009-02-16 Felix Wolfsteller Cosmetics. * nessus/backend.c, nessus/prefs_dialog/prefs_scope_tree.c : Minor reformatting, doc. * nessus/prefs_dialog/prefs_report.c, nessus/prefs_dialog/prefs_context.c: Reformatting, K&R function declaration replacements, documentation blocks adjusted 2009-02-13 Felix Wolfsteller * nessus/prefs_dialog/prefs_scope_tree.c: Added documentation, replaced K&R style function headers. 2009-02-13 Felix Wolfsteller * src/openvas-lib/hash_table_file.c (openvas_ssh_login_file_write): Close file descriptor in case of error. 2009-02-13 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c: Minor doc. improvement. 2009-02-13 Felix Wolfsteller * nessus/prefs_dialog/prefs_scopte_tree.c (scopetreeview_create_columns) : Changed column title for false positives from "false" to "FP", added minimal documentation. * nessus/prefs_dialog/prefs_scope_tree.c: Added minimal documentation to column enum. 2009-02-13 Felix Wolfsteller Documentation support for 'full' doc. * doc/Doxyfile_full: New (but MANIFEST entry existed already). * Makefile: Added doc-full target. 2009-02-13 Felix Wolfsteller Basic documentation support. * doc/Doxyfile: Changed version number and include/output paths. * Makefile: Renamed old doc- target to man, included new target doc for source code doc. * nessus/nessus.c: Adjuste mainpage directive to have a more informative starting page for the code documentation. 2009-02-12 Felix Wolfsteller Use new function to rebuild all GUIs when a ssh- login was deleted using the OpenVAS SSH Key Manager, changed window title for form to input new key information. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_delete_login): Rebuild all GUIs by calling nvt_pref_sshlogin_rebuild_all. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_prompt_new): More verbose window title. 2009-02-12 Felix Wolfsteller Introduced function to rebuild all ssh-login-per-host GUIs. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): Added parameter context to reuse functionality in new function nvt_pref_sshlogin_rebuild_all. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_all): New. Calls nvt_pref_sshlogin_rebuild_gui recursively for contexts. * src/gui/nvt_pref_sshlogin.c, nessus/prefs_dialog/pref_target.c: Added NULL parameter to calls to nvt_pref_sshlogin_rebuild_gui to resemble the old behaviour. * src/gui/nvt_pref_sshlogin.h: Adjusted protos. 2009-02-12 Felix Wolfsteller Pure cosmetics, little doc. added. * nessus/latex_output.c (latex_print_footer, latex_print_header): (Very) brief documentation added. * nessus/backend.c: Tiny doc improvements. * nessus/parser.c: Converted doc blocks to doxygen-interpretables, K&R function declarations. * nessus/nbe_output.c: Function headers reformatted, white- spaces removed/ added to improve readability. * nessus/prefs_dialog/prefs_plugins_tree.c: Doc blocks transformed. 2009-02-10 Felix Wolfsteller Fixed irritating focus switch when confirming warning about malformed pattern in ssh-logins per host gui (window manager specific bug). * src/gui/nvt_pref_sshlogin.c (prompt_new_pattern): Setting Main window as parent of pattern dialog. Added note about possible further improvement. 2009-02-09 Felix Wolfsteller Remove eventual white spaces from target strings to end up with proper formatted .host_logins file (was bad if key starts with a space). * nessus/read_target_file.c (target_translate): Remove white spaces in target list when translating. * nessus/read_target_file.c (target_file_name): Use safer GLib g_strdup_printf instead of sprintf. 2009-02-09 Laban Mwangi Fixed bugs found by cppcheck. * nessus/html_graph_output.c(html_make_index): Added fclose: In some instances the file pointer is not closed * nessus/nessus.c (main): Added a missing free 2009-02-09 Felix Wolfsteller Cleaned up sighand module. * nessus/sighand.c, nessus/sighand.h (sighand_alarm): Removed. Was not registered. * nessus/sighand.h (sighand_sigsegv): Removed. Was not implemented. 2009-02-09 Felix Wolfsteller Cosmetics in the sighand module. * nessus/sighand.c: Documentation and formatting, removed include of globals.h (comment suggested that it was needed for a closesocket call that was never done). 2009-02-06 Felix Wolfsteller Fixed potential buffer overflow (spotted by Bernhard Herzog). * nessus/xml_output_ng.c (escape_string): Respect worst case scenario properly (thanks Bernhard for spotting it). 2009-02-06 Felix Wolfsteller Cosmetics in xml_output_ng module. * nessus/xml_output_ng.c: Minimal documentation and formatting. * nessus/xml_output_ng.c (escape_string): Removed exit if erealloc returns NULL (thats what erealloc is responsible for). 2009-02-06 Felix Wolfsteller Finish removal of (empty) xml_output module (2008-06-01). * nessus/xml_output.h, nessus/xml_output.c: Removed * MANIFEST: Removed xml_output.* entries. 2009-02-06 Felix Wolfsteller Changing per-target selection of ssh logins does not have an effect if done in the Global Settings 'task'. Inform user about this problem. * nessus/context.c (context_collect_recurse): Do not save ssh-login mapping of Global scope for now. Would impose exceptions on location of .host_logins file, as the Global scope does not have an own directory and the users home directory seems like a bad choice. * src/gui/nvt_pref_sshlogin.c (sshlogin_selected_cb): Warn user that this interaction in the Global Settings is effect-less. 2009-02-06 Felix Wolfsteller * src/gui/nvt_pref_sshlogin.c (prompt_new_pattern): Run the dialog until user cancels, closes or enters a valid pattern. Prevent a 'match-all' pattern, allow translation of certain messages. 2009-02-05 Felix Wolfsteller Improved pattern- definition in hostname --> sshlogin mapping. (http://openvas.org/openvas-cr-20.html) * src/gui/nvt_pref_sshlogin.c (is_pattern): New. Checks if string is a (valid) pattern. * src/gui/nvt_pref_sshlogin.c (remove_pattern): New. After confirmation dialog, removes pattern from GUI and memory. * src/gui/nvt_pref_sshlogin.c (prompt_new_pattern): Renamed (former addpattern). * src/gui/nvt_pref_sshlogin.c (copy_pattern): New. Copies pattern into a GHashTable. Needed when target list changed, to keep defined patterns. * src/gui/nvt_pref_sshlogin.c (add_host_login_row): Adds a 'remove' button to patterns and connect signal to new remove_pattern function. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): Modified to keep patterns. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_add): Donated icon to 'add pattern' button. Distinguishes if this GUI is created the first time ever (scope is fresh) or just the first time since this client instance started (was touched already). 2009-02-05 Felix Wolfsteller * src/openvas-lib/hash_table_file.c: Documentation improved, newlines. 2009-02-04 Felix Wolfsteller Added "Add Pattern" button to sshlogin-per-target GUI to allow netmask or regexp definitions. Not yet functional. * src/gui/nvt_pref_sshlogin.c (addpattern): New. Displays dialog asking for a pattern and a login. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): Made targets parameter optional to allow 'lazy' case where the mapping hash table of the Context does not have to be recreated, added 'Add pattern' button and signal connect to new addpattern function. 2009-02-04 Felix Wolfsteller Added GPL header of module implementation files to module header files. * nessus/prefs_dialog/prefs_kb.h: Added GPL header from nessus/prefs_dialog/prefs_kb.c . * nessus/prefs_dialog/prefs_dialog_plugins_prefs.h: Added GPL header from nessus/prefs_dialog/prefs_dialog_plugins_prefs.c . 2009-02-04 Felix Wolfsteller Minimal documentation of nessus_plugin module, include guard in header. * nessus/nessus_plugin.c: Added/transformed documentation block comments * nessus/nessus_plugin.h: Added include guard, minimal documentation. 2009-02-04 Felix Wolfsteller Added GPL header from nessus/parser.c to nessus_plugin module. parser.c stems from approximately the same time. Conditions equal those in COPYING and COPYING.OpenSSL which are valid for the whole directory. * nessus/nessus_plugin.h, nessus/nessus_plugin.c: Added GPL header. 2009-02-03 Felix Wolfsteller Fixed memory leak and occasional GLib- Critical warnings * nessus/context.c (context_delete): NULL- guard g_hash_table_destroy. * nessus/context.c (context_pickup_sshkeys): Free list content. 2009-02-03 Felix Wolfsteller Donating headers of modules the GPL headers of the modules implementation file. * nessus/cli.h: Pasted GPL header from nessus/cli.c . * nessus/backend.h: Pasted GPL header from nessus/backend.c . * nessus/xml_output_ng.h: Pasted GPL header from nessus/xml_output_ng.c (except TODO text). * nessus/text_output.h: Pasted GPL header from nessus/text_output.c . * nessus/sslui.h: Pasted GPL header from nessus/sslui.c . * nessus/report_utils.h: Pasted GPL header from nessus/report_utils.c . * nessus/report_save.h: Pasted GPL header from report_save.c . 2009-02-03 Felix Wolfsteller Fixed two bugs: 1) When last ssh key in list missed a file and user chose to delete it at startup, the hash table got confused. 2) Writing the map host --> ssh key could happen in the wrong directory. Fixed fixme: 1) At startup, 'mapping file' is only written when user deleted keys. * nessus/context.c (verify_sshlogin_integrity): Does not remove items directly, but collect them in a list. * nessus/context.c (context_pickup_sshkeys): provide the list for verify_sshlogin_integrity and remove items afterwards. * nessus/context.c (context_save_recurse): Reference has to be lowercase context, not uppercase (current) Context. 2009-02-03 Felix Wolfsteller * nessus/context.c: Removed debug-surviving printf. 2009-02-02 Felix Wolfsteller * nessus/nessus.h: Removed NESSUS_RCFILE alltogether, it is not used anywhere, current code uses preferences.c: preferences_get_filename. 2009-02-02 Felix Wolfsteller Removed unused module dirutils. * nessus/dirutils.c: Removed. * nessus/nessus.h: Removed reference to dirutils, set NESSUS_RCFILE to 0. * nessus/Makefile: Removed dirutils target. * MANIFEST: Removed dirutils. 2009-02-02 Felix Wolfsteller Removed unnecessary local variable, cosmetics. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (prefs_dialog_plugins_prefs_read_only): Reformatted. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (prefs_dialog_plugins_prefs_fill): Removed local variable vbox. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (file_dialog_hide, file_selected, get_pref_value): Cosmetics, documentation. 2009-02-02 Felix Wolfsteller As sshlogin selection per host is represented in memory, file saving is only when neccessary at initialization, before an attack and before quit. 'Before quit' awaits patch, as the client does not reliably handles signals. Allows number of simplifications (e.g. to receive settings no search through GUI elements has to be done anymore, less file reading and writing). * nessus/attack.c (attack_host): Update the .host_sshlogin file before starting an attack. K&R function declaration replaced. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply_plugin_prefs): No need to 'apply' ssh login selections or save file anymore. But set a dummy value to enable logins-per-target selections being visible in an unconnected scope, too. * src/gui/nvt_pref_sshlogin.c (sshlogin_selected_cb): New. Updates Contexts hashtable in combobox change callback. * src/gui/nvt_pref_sshlogin.c (add_host_login_row): New (extracted). Adds a row with label and combobox to the GtkTable defining the login-per-target GUI, selects the correct value and registeres the callbacks for changes in combobox selections. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): New. Rebuilds the GUI and populates it according to current contexts map_target_sshlogin. * src/gui/nvt_pref_sshlogin.c (str_hash_table_has_value): New. Workaround to be used with g_hash_table_find to check if a certain value is present in a hashtable. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_is_in_use): Reformed to work with contexts hashtable rather than with the gtk widgets. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_save_file): Removed, not needed anymore. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_add): Use new function. * src/gui/nvt_pref_sshlogin.h: Adjusted protos. * nessus/prefs_dialog/prefs_target.c (targets_changed): Updated call of nvt_pref_sshlogins gui rebuilding function. 2009-02-02 Felix Wolfsteller Moving from purely file- and gui- based representation of the mapping 'target --> sshlogin' to storing choices in memory in a hashtable. * nessus/context.h (struct context): Added another GHashTable, map_target_sshlogin that is to be kept in sync with gui. * nessus/context.c (context_init, context_collect_recurse): Initialize and pick up new field (map_target_sshlogin), pick up '.host_sshlogins' file at startup. * nessus/context.c (context_save_recurse): Save the map_target_sshlogin to file '.host_sshlogins', documentation. * nessus/context.c (context_new): Initialize map_target_sshlogin as an empty hash table. * nessus/context.c (verify_sshlogin_integrity): Eliminated compiler warning (use gtk cast). * nessus/comm.c (send_ssh_credential_files): Use mapping from memory instead of reading the mapping from file. 2009-01-28 Felix Wolfsteller Improved SSH Key Manager deletion function: 1) warns stronger if the to-be-deleted account is selected as login for a target in any context. 2) Improved button placement. * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_is_in_use): New. Checks if a certain string is selected in any combobox that shows ssh logins. * src/gui/nvt_pref_sshlogin.h (nvt_pref_sshlogin_is_in_use): Added proto. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_delete_login): Warn stronger if account is used. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_show): Arrange the 'delete' and 'create new' buttons in the action area of the dialog. 2009-01-28 Felix Wolfsteller Improved gui for notification of invalid ssh login at startup (public or private key files are missing). * nessus/context.c (verify_sshlogin_integrity): If not compiled with GTK print a warning. * nessus/context.c (verify_sshlogin_integrity): Use gtk_message_dialog (has an icon) and positive response codes (recommended). 2009-01-28 Felix Wolfsteller Improved gui for deletion of ssh-logins in the SSH Key Manager. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_empty): New method to display the placeholder in case of no ssh logins to display. Extracted from ssh_keys_dialog_show. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_show): Call extracted method. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_delete_login): Prevent deletion of placeholder. When login deleted, remove item from list. Display placeholder if list empty after deletion. 2009-01-28 Felix Wolfsteller Fixed iterator complaints on console under certain conditions. * nessus/listnotebook.c (listnotebook_remove_page): In the loop to find page to remove, break when deleted, to spare time and prevent confused iterators. 2009-01-28 Felix Wolfsteller Fixed deletion of user defined ssh- login accounts. * src/util/openvas_ssh_key_create.c (openvas_ssh_key_create_undo), src/gui/ssh_keys_dialog.c (ssh_keys_dialog_delete_login), nessus/context (verify_sshlogin_integrity, context_pickup_sshkeys): Accessing the correct sshkeys hashtable of the global context, and not of the currently selected one. 2009-01-27 Felix Wolfsteller Fixed sending of ssh- key files. * nessus/comm.c (comm_send_preferences) : K&R function declaration replaced, comment added. * nessus/comm.c (send_ssh_login_keys): Corrected string comparison condition, duplicate strings. 2009-01-27 Felix Wolfsteller Verifies all SSH Keys when loaded. Ask the user if the files should be recreated or all info deleted. Functionality still incomplete, TODOs added. * nessus/context.c (verify_sshlogin_integrity): New. In a g_hash_table_foreach, asks the user how to deal with 'invalid' ssh- login accounts. * nessus/context.c (context_pickup_sshkeys): Calls verify_sshlogin_integrity for each found login and rewrites the '.logins' file afterwards. 2009-01-27 Felix Wolfsteller * nessus/context.c: Cosmetics, documentation. 2009-01-27 Felix Wolfsteller Preparations for notification and user choice in case of missing public/ private key files of a SSH login. * src/util/openvas_ssh_key_create.c (openvas_ssh_key_create_unlink_files, openvas_ssh_key_create_undo): New. Extracted method from openvas_ssh_key_create_undo. * src/util/openvas_ssh_key_create.h: Added proto. 2009-01-26 Felix Wolfsteller Rudimentary 'delete' function of SSH Key Manager (does not yet inform any other parts of the gui about the event) added. * src/util/openvas_ssh_key_create.c (openvas_ssh_key_create_undo): New. Unlinks key files and removes a openvas_ssh_login from memory. * src/util/openvas_ssh_key_create.h: Added proto for openvas_ssh_key_create_undo. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_show): Added a 'delete' button and connected to new callback function ssh_keys_dialog_delete_login. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_delete_login): New. Callback for click on 'delete' button, asks for reconfirmation and triggers new openvas_ssh_key_create_undo function to clean up. 2009-01-26 Felix Wolfsteller Introducing and setting "valid" flag in struct openvas_ssh_login to indicate whether key files exist or not. * src/openvas-lib/openvas_ssh_login.h (struct openvas_ssh_login): Added boolean field 'valid' to indicate whether the key files exist or not. * src/openvas-lib/openvas_ssh_login.c (openvas_ssh_login_new): Validity flag is set after checking existance of public and private key files. * src/openvas-lib/openvas_ssh_login.c (openvas_ssh_login_file_read): When check_keyfiles parameter is TRUE, do not stat the files but look for validity flag that is now set in openvas_ssh_login_new, indentation. 2009-01-26 Felix Wolfsteller Callback when ssh key created: update all comboboxes showing ssh keys to display the new entry. * src/gui/nvt_pref_sshlogins (GUI_KEY_NVT_PREF_SSHLOGIN_GTKTABLE): Doc improved. * src/gui/nvt_pref_sshlogins (nvt_pref_sshlogin_update_all_comboboxes): Updated to work with infrastructure for sshlogin-selection per host. 2009-01-26 Felix Wolfsteller Fixing bug in SSH Key Manager that created *.pub.pub files. * src/util/openvas_ssh_key_create.c (openvas_ssh_pubkey_create, openvas_ssh_privkey_create): Stripping '.pub's that were suffixed in the GUI, corrected documentation comments, initialize local vars to NULL. 2009-01-23 Felix Wolfsteller * nessus/prefs_dialog/prefs_target.c (targets_changed): New. Callback that triggers rebuilding of table with ssh-login per target selection. * nessus/prefs_dialog/prefs_target.c (prefs_dialog_target): Connected signal to callback function, so that a possible target list change triggers changes in the ssh-selection per target gui of the current context. 2009-01-23 Felix Wolfsteller For ssh-key selection per target: 1) Added a 'Default' host. 2) Prepared ability of gui being updated when the target list was modified by the user. * src/gui/nvt_prefs_sshlogin.c: Documentation improved. * src/gui/nvt_prefs_sshlogin.c (nvt_pref_sshlogin_update_all_comboboxes): Added TODO. (just looks like removal in svn diff). * src/gui/nvt_prefs_sshlogin.c (nvt_pref_sshlogin_apply_file): Loads table from context if the arglist parameter is NULL. Step towards making this preference type arglist- independent. * src/gui/nvt_prefs_sshlogin.c (nvt_pref_sshlogin_targets_update): New. Method extracted mainly from nvt_pref_sshlogin_add. Cleans the table, populate it with widgets and loads eventual selections from file. * src/gui/nvt_prefs_sshlogin.c (nvt_pref_sshlogin_add): Use of extracted method, therefore restructured. Adds the table to the context, prepends a 'Default' to the hostlist to enable setting of a default sshlogin. * src/gui/nvt_prefs_sshlogin.h: Added proto for nvt_pref_sshlogin_targets_update. 2009-01-23 Felix Wolfsteller Introduced a new field to the context struct that holds the GtKTable for sshlogin selection per target. * nessus/context.h (struct context): Added gui_sshlogins_per_target field and comment/doc about it. * nessus/context.c (context_init): Set gui_ssh_logins_per_target to NULL. 2009-01-23 Felix Wolfsteller Comments and whitespaces to the context struct added. * nessus/context.h: Comments and whitespaces added. 2009-01-23 Felix Wolfsteller Cosmetics (K&R function declarations, whitespaces) * nessus/context.c: Cosmetics (replaced K&R function declarations, whitespaces). * nessus/context.c (context_collect): Removed third parameter of call to context_collect_recurse, that did not exist and broke build once the function declarations were replaced. 2009-01-22 Felix Wolfsteller Updated openvas_ssh_login module so that it equals the one in openvas-libraries (introduced an additional parameter for openvas_ssh_file_read). * src/openvas-lib/openvas_ssh_login.c: Updated from openvas-libraries. * src/openvas-lib/openvas_ssh_login.h: Updated from openvas-libraries. * nessus/comm.c: Updated call of openvas_ssh_file_read. * nessus/context.c: Updated call of openvas_ssh_file_read. 2009-01-22 Felix Wolfsteller Cosmetics (documentation and whitespaces). * nessus/comm.c: Removed empty lines, improved readability of documentation. 2009-01-22 Felix Wolfsteller Send public and private key files of selected ssh- logins. * nessus/comm.c (send_ssh_login_keys): New function to add pub/private key files to list of files to send. * nessus/comm.c (send_ssh_credential_files): New. Extracted from comm_parse_preference, fixed fixme, because now the files will be send. * nessus/comm.c (comm_parse_preference): Extracted send_ssh_credential_files, improved documentation marginally. 2009-01-21 Felix Wolfsteller Fixed two compiler warnings. * nessus/comm.c (comm_parse_preference): Cast an arglist value to void*. * nessus/comm.c (comm_parse_certificate): Initialize a char* to NULL. 2009-01-21 Felix Wolfsteller Send .logins and .host_logins files to server if a plugins with PREF_SSH_CREDENTIALS preference was found. * nessus/comm.c (gui_comm_send_preferences): Add .logins and .host_logins to the list of files to send. 2009-01-20 Michael Wiegand * nessus/xml_output_ng.c (getproto): Fixed parsing of string containing possible protocol information. This solves bug #867 (http://bugs.openvas.org/867) which caused a corrupted protocol attribute when service names contained slashes. This also fixes another bug which caused service names to show up in the protocol attribute. NB: This causes some port elements to have empty protocol attributes when the protocol information was not sent correctly by the server. This happens when then messages does not relate to a specific port, but to the attacked host in general (port 0 in NASL). 2009-01-20 Felix Wolfsteller * src/openvas-lib/openvas_ssh_login.c: Cleaned up includes, defined file- check functions, so that a copy of this module can be placed (and compiles) in openvas-libaries. 2009-01-20 Felix Wolfsteller * nessus/html_graph_output.c (host_details): Fixed breakage (html_output_print_data_with_links needed one more argument). 2009-01-20 Felix Wolfsteller Extracted module from src/openvas-lib/openvas_ssh_login to enable inclusion of openvas_ssh_login into openvas-libraries. * src/openvas-lib/openvas_ssh_login.c: Added include, disabled error messages (will be shown by src/gui/ssh_keys_dialog), moved key creation- functions to src/util/openvasssh_key_create module. * src/openvas-lib/openvas_ssh_login.h: Proper naming of include guard, removed proto of function that is moved to openvas_ssh_key_create. * src/util/openvas_ssh_key_create.h, src/util/openvas_ssh_key_create.c: Added, module extracted from openvas_ssh_login. * src/gui/ssh_keys_dialog.c: Updated reference, include new module. * MANIFEST, nessus/Makefile, src/util/Makefile: Updated. 2009-01-20 Felix Wolfsteller * src/openvas-lib/openvas_ssh_login.h: Removed obsolete prototype and include. 2009-01-20 Felix Wolfsteller Moved hash_table_file as it is now parts of openvas-libraries. * src/util/hash_table_file.h: Moved to src/openvas-lib. * src/util/hash_table_file.c: Moved to src/openvas-lib. * MANIFEST, Makefile, nessus/Makefile, src/util/Makefile, src/openvas-lib/Makefile: Updated. 2009-01-20 Joey Schulze * nessus/html_graph_output.c (host_details): Rename functions to their new names 2009-01-19 Joey Schulze * nessus/html_graph_output.c (host_details): Fix breakage 2009-01-19 Felix Wolfsteller Renamed unluckily named g_hash_table_file module as suggested by Bernhard Herzog. * /src/util/g_hash_table_file.c, /src/util/g_hash_table_file.h: Stripped 'g_' in function and file names, as that prefix is used by GLib. * /src/util/hash_table_file.c, /src/util/hash_table_file.h: Old module with new name and updated function names. * MANIFEST, nessus/Makefile, src/util/Makefile, src/gui/nvt_pref_sshlogin.c: Updated references to new module and function names. 2009-01-17 Joey Schulze Add support for false positives and adjusting priorities in the client to via configuration file (CR#18) A user interface will follow, until then adjustments are configured in the openvasrc in the scope directory like: begin(PLUGINS_PRIORITIES) 1.3.6.1.4.1.25623.1.0.10107 = \n <|> http (80/tcp) <|> NOTE <|> FALSE <|> end(PLUGINS_PRIORITIES) * nessus/report_utils.c (number_of_false_positives_by_port) (number_of_false_positives_by_host, number_of_false_positives), nessus/report.c (is_there_any_hole): New functions to support listing false positives in various reports * nessus/latex_output.c (latex_introduction_a, latex_introduction_b, latex_introduction_c, latex_introduction_d, latex_introduction_e, latex_print_host_ports_problems, arglist_to_latex), nessus/html_output.c (arglist_to_html, summary_to_file), nessus/html_graph_output.c (host_details, html_make_index), nessus/text_output.c (arglist_to_text), nessus/pdf_output.c (arglist_to_plainhtml, pdf_summary_to_file): Add support for false positives to all output types * nessus/parser.c (parse_message_type, parse_expand_type) (parse_calc_priority, parse_modify_data, parse_server_message) (parse_host_add_data), nessus/backend.c (backend_convert): Add support for adjusting priorities from the server in the client, including false positives * nessus/prefs_dialog/prefs_scope_tree.c (scopetree_move, scopetree_new_with_parent, scopetreestore_counters_update, scopetreeview_create_columns, scope_create_treestore): Add support for false positives to tree view 2009-01-16 Felix Wolfsteller Added 2009 (and 2008 where missing) to copyright notice. Added Michael Wiegand and Felix Wolfsteller to the list of authors. * nessus/nessus.c (main): Updated copyright notice. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Updated copyright years, added M.Wiegand and F.Wolfsteller to list of authors. * src/gui/about_dlg.c (about_dialog): Updated copyright years, added M.Wiegand and F.Wolfsteller to list of authors. 2009-01-16 Felix Wolfsteller Improvements to OpenVAS SSH Key Manager: 1) Looks good even if no key there yet. 2) Selects the key right after it was created. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_add_key): Remove entry for 'no logins yet' if existant, select the key that was just created. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_show): Show 'no logins yet' if none was found, use pack instead of containeradd for better layout. 2009-01-16 Felix Wolfsteller Removed compiler warnings related to preference module. * nessus/preferences.c (preferences_yes_or_one): Cast unknown (from arglist) to int. * nessus/preferences.h: Added missing preferences_yes_or_one proto. 2009-01-16 Felix Wolfsteller Cosmetics and doc improvements. * src/openvas-lib/openvas_certificates.c (openvas_certificate_free, openvas_certificate_new): Improved doc, donating return values an own line. * nessus/attack.c: Improved doc, removed dangling comment. 2009-01-16 Felix Wolfsteller Improved functionality of the listnotebook widget. * nessus/prefs_dialog/listnotebook.c (listnotebook_new): Use pack methods instead of adds to have good proportions even when empty. * nessus/prefs_dialog/listnotebook.c (listnotebook_remove_page): New function to remove a page and the list entry. * nessus/prefs_dialog/listnotebook.c (listnotebook_select_page_named): New function to select a page, given its name in the list. * nessus/prefs_dialog/listnotebook.h : Added protos for new functions. 2009-01-16 Felix Wolfsteller Improved documentation of the listnotebook widget. * nessus/prefs_dialog/listnotebook.c: Improved comments and doc, K&R header in listnotebook_new replaced. 2009-01-15 Felix Wolfsteller * nessus/plugin_infos.c: Missing include added. 2009-01-15 Felix Wolfsteller * src/openvas-lib/openvas_ssh_login.c: Cosmetics, spread out doxygen comments for better readability, slight improvements, added briefs. 2009-01-15 Felix Wolfsteller Fixed bug that prevented creation of ssh-keys when .openvas/ did not exist. Bug was caused by ensure_dir being able to create a single directory only. * src/openvas-lib/openvas_ssh_login.c (ensure_single_dir): Renamed from ensure_dir. * src/openvas-lib/openvas_ssh_login.c (ensure_dir): New method that creates parent directories as well. 2009-01-14 Felix Wolfsteller * nessus/comm.c (comm_parse_certificate): Slightly restructured. Doc updated. 2009-01-14 Felix Wolfsteller Fixed bugs: 1) When no_nasl_check==no, signatures were not found due to sometimes different "fingerprint" length. 2) Server preference setting did (and partially still does) not override values local to the client, making it impossible to read the real servers value. Fixed for nasl_no_signature_check. * nessus/preferences.c (preferences_get_filename) : doc added. * nessus/preferences.c (preferences_yes_or_one): New function. Returns true if the value of an arglist is yes or one. * nessus/plugin_infos.c (showcert): Callback gets a pointer to certificate as data, avoids double lookup in hash table. * nessus/nessus/plugin_infos.c (create_certificate_list): Use short fingerprint for lookup certificates in hashtable. * nessus/nessus/plugin_infos.c (plugin_info_window_setup): Replaced preference value check by (new) preference_yes_or_one and registering callback (showcert) with pointer to certificate instead of fpr. * nessus/comm.c (comm_parse_preference): Brief doc added. Fixme added (server preference handling is messy). Handle nasl_no_signature_check appropriately. 2009-01-13 Felix Wolfsteller Fixed bug (unknown nvt signatures were not always listed in plugin info dialog). * nessus/comm.c (comm_parse_certificate): Fix size for "fingerprint" -keys of certificates in hash table to 16 chars. * nessus/plugin_infos.c: Minimal documentation for file added. * nessus/plugin_infos.c (new_unknown_cert): Function to return a dummy "unknown" certificate added. * nessus/plugin_infos.c (create_certificate_list): Extracted method to look up a list of fprs in the contexts signature store and add unknowns if they could not be retrieved found. * nessus/plugin_infos.c (plugin_info_window_setup): extracted create_certificate_list and condition the "View" button on not "Unknown" certificates. 2009-01-13 Felix Wolfsteller * src/util/g_hash_table_file.c: Fixed mem leak (used original double pointer to iterate over list). 2009-01-12 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c: Replaced K&R function definitions, documentation. * nessus/prefs_dialog/prefs_dialog.c (create_nessus_icon_factory): Added casts to eliminate warnings. 2009-01-12 Felix Wolfsteller Make the GUI save selection of ssh keys per host. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply_plugin_prefs): Include added, save selection to file. 2009-01-09 Felix Wolfsteller Removed unused files nessus/prefs_dialog/prefs_dialog_misc.h/c. * nessus/prefs_dialog/prefs_dialog_misc.h, nessus/prefs_dialog/prefs_dialog_misc.c: Removed, were unused. * nessus/Makefile: removed references to prefs_dialog_misc. * po/POTFILES: removed prefs_dialog_misc entry. * MANIFEST: removed prefs_dialog_misc entries. 2009-01-09 Felix Wolfsteller Moving towards SSH key selection on a per-host basis. * ChangeLog: fixed. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (prefs_dialog_plugins_prefs_fill): Call new function to add gui element for per-host selection of ssh keypairs. * src/gui/nvt_pref_sshlogin.h (nvt_pref_sshlogin_add): Changed proto. * src/gui/nvt_pref_sshlogin.c: New functions to save selection to file and to recover selection from file, new per-host gui, doc improvements. 2009-01-09 Felix Wolfsteller * src/gui/Makefile: Added src/util to include path. * src/util/Makefile: Added source file to object target dependency. 2009-01-09 Felix Wolfsteller * src/util/g_hash_table_file.c (g_hash_table_file_read): fixed mem leaks & avoided segfault when key_file is empty. 2009-01-09 Felix Wolfsteller Included src/util into build system. * Makefile: Include src/util cleaning to clean target. * nessus/Makefile: Introduced util target, added dependency. Added src/util/g_hash_table_file.o as GUI_OBJS (until needed elsewhere). 2009-01-09 Felix Wolfsteller * src/util/g_hash_table_file.c (g_hash_table_read): renamed to g_hash_table_file_read. * src/util/g_hash_table_file.h: changed name of proto. 2009-01-08 Felix Wolfsteller New Module to save and load GHashTables to / from disk. * MANIFEST: Updated with the new files. * src/util: Added (for non-OpenVAS specific code). * src/util/Makefile: Added. * src/util/g_hash_table_file.c: New module for (de-)serialization of GHashTables in a human readable form. * src/util/g_hash_table_file.h: Header of new module. 2009-01-08 Felix Wolfsteller * nessus/read_target_file.h, nessus/read_target_file.c: GPL/header added. 2009-01-08 Felix Wolfsteller * nessus/read_target_file.c: Comments and newlines to help reader understanding the defines, whitespace garbage removed. * nessus/read_target_file.c(target_file_select): brief doc. * nessus/read_target_file.c(target_file_to_list): doc improved. * nessus/read_target_file.c(target_translate): doc improved, indentation 2009-01-07 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c: Removed obsolete includes. 2009-01-07 Felix Wolfsteller Donating visualization of a nvt sshlogins preference an own module. * src/gui/nvt_pref_sshlogin.c: New module with nvt pref sshlogin gui functions (moved from nessus/prefs_dialog/prefs_dialog_plugins_prefs.c). Updated style to be closer to GNU Coding Standards. * src/gui/nvt_pref_sshlogin.h: Header for nvt pref sshlogin gui functions. * MANIFEST: Added the new files. * po/POTFILES: Added the new files. * src/gui/Makefile: Added new target for new module, added libnessus include. * nessus/Makefile: Added the new target. * src/gui/ssh_keys_dialog.c: Changed include and function call to match new module. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c: (Re)moved code that deals with nvt sshlogin preferences (to src/gui/nvt_pref_sshlogin.c), added include, changed references to renamed functions. 2009-01-06 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c: Replaced K&R function declarations. 2009-01-06 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c: Added/ removed whitespaces, added comments. 2009-01-06 Felix Wolfsteller Comments and Documentation converted to Javadoc format, added. * nessus/auth.c : Doc/comments improved, K&R function declarations replaced. * nessus/prefs_dialog/prefs_plugins.c, nessus/prefs_dialog/prefs_dialog.c, nessus/prefs_dialog/prefs_context.c, nessus/prefs_dialog/prefs_options.c, nessus/prefs_dialog/prefs_target.c: Doc/comments improved. 2009-01-02 Michael Wiegand Modified openvas-client to use the freshly allocated IANA port 9390 instead of the Nessus port 1241. * include/config.h.in: Removed NESIANA_PORT define, added OPENVAS_IANA_OTP_PORT define. Updated IANA URL. * nessus/nessus.h: Removed NESIANA_PORT define, added OPENVAS_IANA_OTP_PORT define. * nessus/preferences.c (prefs_get_default): Changed to use OPENVAS_IANA_OTP_PORT. * nessus/prefs_dialog/prefs_help.h: Mention port 9390 instead of 1241 in tooltips. * doc/OpenVAS-Client.1: Changed example port to 9390. 2009-01-02 Felix Wolfsteller * TODO: Added wish to rename prefs_dialog/prefs_dialog_plugins_prefs and the like. 2009-01-02 Felix Wolfsteller * nessus/read_target_file.c: Replaced C&R function declarations. 2009-01-02 Felix Wolfsteller * nessus/read_target_file.c, nessus/prefs_dialog/prefs_target.c: Documentation added. 2008-12-29 Felix Wolfsteller * Makefile: 'Clean' target now also removes generated documentation (doc/generated). 2008-12-29 Felix Wolfsteller Added an examplary doxygen configuration file as result of CR #19. Calling doxygen within the openvas/doc directory will generate a subdirectory "generated" wherein html and tex documentation is located. * doc/Doxyfile: Added, fancy "dot" options disabled. 2008-12-29 Michael Wiegand * nessus/nessus.c (main): Added additional check for batch mode when trying to list preferences or plugins. This fixes bug #858 (http://bugs.openvas.org/858) which cause a segmentation fault when trying to list preferences or plugins without enabling batch mode. 2008-12-19 Michael Wiegand Post release version bump. * VERSION: Set to 2.0.2.SVN. 2008-12-19 Michael Wiegand Preparing the openvas-client 2.0.1 release. * CHANGES: Updated. * VERSION: Set to 2.0.1. 2008-12-18 Joey Schulze * nessus/backend.c (backend_convert): Be more helpful when detecting a malformed line by printing said line as well * nessus/backend.c: Correct function names in associated comment * nessus/parser.c (parse_host_add_data): Correct debug format string 2008-12-18 Michael Wiegand * po/POTFILES: Fixed wrong filename as pointed out by Stephan Kleine. 2008-12-17 Michael Wiegand Post release version bump. * VERSION: Set to 2.0.1.SVN. 2008-12-17 Michael Wiegand Preparing the openvas-client 2.0.0 release. * CHANGES: Updated. * VERSION: Set to 2.0.0. 2008-12-17 Felix Wolfsteller Fixed last commit. * nessus/comm.c (cli_send_prefs_arglist) : Fixed curruption by last commit. 2008-12-17 Felix Wolfsteller Enabled sending of ("new") ssh logins in CLI. * nessus/comm.c (cli_send_prefs_arglist) : Comments/doc. Send ssh logins similar to its GUI counterpart. 2008-12-17 Felix Wolfsteller NULL-Guard g_hash_table_lookup. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_show) : Added NULL-Guard. 2008-12-17 Felix Wolfsteller More glibs g_build_filename instead of emallocs + sprintfs and fixed one call. * nessus/plugin_cache.c (plugin_cache_get_filename) : Fixed call of g_build_filename with NULL- termination. * nessus/preferences.c (preferences_get_filename, prefs_get_default) : glib include, use g_build_filename. 2008-12-17 Felix Wolfsteller * nessus/plugin_cache.c (plugin_cache_get_filename) : Use g_build_filename instead of emalloc + sprintfs. 2008-12-17 Felix Wolfsteller Extracted method to convert an ARG_INT to "yes"/"no" in an ARG_STRING. Makes code a bit cleaner, but concepts and mechanisms stay fuzzy. * nessus/prefs_dialog/prefs_dialog.c (arg_int_to_yesno) : Extracted method. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_set_defaults) : Duplicate code removal, use of arg_int_to_yesno method. 2008-12-17 Felix Wolfsteller Extracted method to set preference based on a toggle-button state, cleanup. * nessus/prefs_dialog/prefs_dialog.c (set_yesno_pref_from_toggle) : Extracted method. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply) : Removed code duplicate, use of new method, blank line removal. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply_plugin_prefs) : NULL- initialize local char vars. 2008-12-17 Felix Wolfsteller * src/openvas-lib/openvas_ssh_login.c (openvas_ssh_pubkey_create) : Check for nul rather than strlen < 0. * nessus/backend.c (backend_insert_report_data) : Use g_strconcat rather than malloc and strcat, rats-ignore for strlen on string literal. 2008-12-16 Felix Wolfsteller * src/gui/ssh_key_info_form.c (name_typed_in_cb) : Using GLibs (safer) convienance function g_stgrdup_printf instead of strlen + mallocs + sprintf. 2008-12-16 Felix Wolfsteller Call function to update comboboxes when new ssh account added. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_prompt_new) : Added call to update comboboxes if an account has been added. 2008-12-16 Felix Wolfsteller Removed debug message printf. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (prefs_dialog_plugins_prefs_update_ssh_comboboxes) : Removed debug message. 2008-12-16 Felix Wolfsteller Registering xyz.pub as public key file, not just xyz. * src/gui/ssh_key_info_form.c (name_typed_in_cb) : When typed in, append .pub to public key filename. * src/openvas-lib/openvas_ssh_login.c (openvas_ssh_pubkey_create) : Stripping the .pub for creating the key. 2008-12-16 Michael Wiegand Downgraded build environment to use a consistent libtool version. * config.guess, config.sub: Regenerated. 2008-12-16 Felix Wolfsteller Moved callback function to open SSH Key Manager from prefs_dialog_prefs to ssh_keys_dialog. * src/gui/ssh_keys_dialog.h (ssh_manager_button_cb) : Added proto. * src/gui/ssh_keys_dialog.c (ssh_manager_button_cb) : Moved from prefs_dialog_prefs. * src/gui/ssh_keys_dialog.c (ssh_keys_dialog_prompt_new) : Added singly space, improved comment. * nessus/prefs_dialog/prefs_dialog_prefs.c (ssh_management_button_cb) : Moved to ssh_keys_dialog, renamed. Updated reference. 2008-12-16 Felix Wolfsteller Let sshlogin preference area also contain a button to open the SSH Key Management Dialog. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (pprefs_add_sshcredentials) : Add and hook up button to open SSH Key Management Dialog. 2008-12-16 Felix Wolfsteller Function to update existing comboboxes showing ssh keys, can be used when a new key is created, so that the keys to select are always up to date. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.h (prefs_dialog_plugins_prefs_update_ssh_comboboxes) : Added proto. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (prefs_dialog_plugins_prefs_update_ssh_comboboxes) : Implemented, adds a text entry item to all sshkey comboboxes. 2008-12-16 Felix Wolfsteller Fixed free-function for ssh_key_info_form. * src/gui/ssh_key_info_form.c (ssh_key_info_form_free ): Added missing references. 2008-12-16 Felix Wolfsteller Free-function for ssh_key_info_form. * src/gui/ssh_key_info_form.h : Prototype for free- function. * src/gui/ssh_key_info_form.c (ssh_key_info_form_free ): Implementation for free- function. 2008-12-15 Felix Wolfsteller Minor documentation and style. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (show_sshinfo_cb, show_sshinfo_cb, pprefs_add_password, pprefs_add_file, pprefs_add_radio, pprefs_add_checkbox) : Added comment/doc. 2008-12-15 Felix Wolfsteller Display empty strings as info if no ssh key is selected in ssh_key_info_form. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (show_sshinfo_cb) : removed check for NULLness. * src/gui/ssh_key_info_form.c (ssh_key_info_form_fill) : Accept NULL as login info parameter and then blank out all text fields. 2008-12-15 Felix Wolfsteller Changed visual representation of new "sshlogin" preference to display infomation of selected key directly within the preference area. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c : New includes, references updated to ssh_key_info_form. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (text_combobox_set_active_text) : New conveniance function to mark a combox entry as active. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (show_sshinfo_cb) : Callback function for change of combobox entry added. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (pprefs_add_sshcredentials) : display information of selected keys in an ssh_key_form. 2008-12-15 Felix Wolfsteller Extracted module ssh_key_info_form from ssh_keys_dialog (with formerly somewhat misleading name ssh_login_form). * MANIFEST : Added src/gui/ssh_key_info_form.h/c entries. * po/POTFILES : Added new files. * src/gui/ssh_keys_dialog.h : Moved ssh_login_form struct to own ssh_key_info_form module. * src/gui/ssh_keys_dialog.c : Moved formerly static ssh_login_form* functions to own module ssh_key_info_form, updated references. * src/gui/Makefile : Included new ssh_key_info_form target. * nessus/Makefile : Added target. * src/gui/ssh_key_info_form.h : Added. Struct and protos for new module. * src/gui/ssh_key_info_form.c : Added. Implementation of new module. 2008-12-15 Felix Wolfsteller Removed ssh password handling from SSH Management and renamed it in GUI. * src/openvas-lib/openvas_ssh_login.h : Removed userpassword from struct and function proto. * src/openvas-lib/openvas_ssh_login.c : Removed any references to userpassword. * src/gui/ssh_keys_dialog.c : Removed any reference to userpassword, changed dialog title. * src/gui/ssh_keys_dialog.h : Removed userpassword from form struct. * nessus/prefs_dialog/prefs_dialog_prefs.c (prefs_dialog_prefs) : Relabeled button for ssh manager. 2008-12-15 Felix Wolfsteller * src/gui/ssh_keys_dialog.c (ssh_login_form_validated) : Inverted contrary check for spaces in comments. 2008-12-12 Felix Wolfsteller * nessus/comm.c (cli_comm_send_preferences, gui_comm_send_preferences) : K&R header collapsed, documented. 2008-12-12 Felix Wolfsteller "Javadoc'ed" comments, documentation, some K&R headers collapsed, minimal style changes. * nessus/prefs_dialog/prefs_options.c : Header, style, comments. * nessus/monitor_dialog.c : Doc/Comments. * nessus/nessus.c : Doc/Comments. * libnessus/arglists.c : Doc/Comments. 2008-12-12 Felix Wolfsteller Missing Makefile targets added (repairs pre-last commit). * nessus/Makefile : Added targets for new files. 2008-12-12 Felix Wolfsteller Infrastructure for second step for CR #20 (ssh key management in client) (http://www.openvas.net/openvas-cr-20.html). Only in GUI, not feature- complete. * src/openvas-lib/openvas_ssh_login.h, src/openvas-lib/openvas_ssh_login.c : New file, handles login information (in mem, storing, loading), can create public and private keys. * src/gui/ssh_keys_dialog.h, src/gui/ssh_keys_dialog.c : New file, shows GUI to add and manage ssh login information. * Makefile, src/gui/Makefile : Added targets for new files. * MANIFEST : Added new files. * po/POTFILES : Added ssh_keys_dialog.c and comm.h. * nessus/comm.h : Changed credentials symbol (preferenc types have 9 char contraint), added NO_SSH_LOGIN_SELECTED define. * nessus/prefs_dialog/prefs_dialog.c : Comments improved. * nessus/prefs_dialog/prefs_dialog.c (get_plugin_radio_pref) : extracted method. * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply_plugin_prefs) : use of extracted method, build up combobox for ssh_logins. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c : Comments improved. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (pprefs_add_sshcredentials, add_key_to_combobox_cb) : Fill combobox with values from sshlogin hash table of Global context * nessus/prefs_dialog/prefs_dialog_prefs.c (ssh_management_button_cb, prefs_dialog_prefs ) : Added and hooked up button to show key management * nessus/context.c (context_pickup_sshkeys) : Added includes, pick up keys via openvas_ssh_login_file_read and only if Global context. * nessus/context.c (check_is_file, check_exists, check_is_dir) : Commented. * nessus/context.h : Replaced list for ssh key infos by hashtable. * nessus/comm.c (gui_comm_send_preferences) : Added support for new preference type (gui only). 2008-12-10 Michael Wiegand * po/de.po: Fixed errors in German translation pointed out by Hans Ullrich. 2008-12-09 Felix Wolfsteller TODO ( harglst-> GSList for temporarily storing filenames) done. * nessus/comm.c (cli_send_prefs_arglist) : K&R header removed, comment added. * nessus/commc.c (cli_comm_send_preferences, gui_comm_send_preferences, cli_send_prefs_arglist) : Use GSList instead of harglst. * nessus/commc.c (comm_send_file) : Cleaned of debug printf. 2008-12-09 Felix Wolfsteller Various comments revamped, Todo (harglst -> Glib list) added. * nessus/comm.c : Documentation in javadoc style, harglst removal todo. 2008-12-09 Felix Wolfsteller Refactoring and comments of plugin preference gui creation. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (create_plugin_prefs_containers) : Documentation added. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (get_pref_value) : Method extracted to convert int values to yes/no. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (pprefs_add_sshcredentials) : use of get_pref_value, comment, combobox stub. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (pprefs_add_entry, pprefs_add_password, pprefs_add_file, pprefs_add_radio, pprefs_add_checkbox) : Duplicate code removal through extraction and use of new pref_get_value function. 2008-12-09 Felix Wolfsteller Comments, minor style changes. * nessus/latex_output.c : Comments to javadoc style. * nessus/comm.c (comm_send_file) : Removed K&R funciton header, comment. * nessus/comm.c (gui_comm_send_preferences) : Donated braces, intendation. * nessus/context.h : Added comment about badly placed functions. * nessus/prefs_dialog/listnotebook.c (listnotebook_new) : Comment improved. * nessus/prefs_dialog/prefs_dialog_auth.c (prefs_dialog_auth_connection): Comment to javadoc style. 2008-12-08 Felix Wolfsteller Comments. * nessus/prefs_dialog/prefs_dialog_prefs.c (prefs_dialog_prefs) : Function header style, comment. * nessus/prefs_dialog/listnotebook.c : Made comments javadoc-conform. 2008-12-05 Michael Wiegand Real post release version bump. * VERSION: Set to 2.0.0.rc2.SVN. 2008-12-05 Michael Wiegand Revert post release version bump, forgot to tag. * VERSION: Set to 2.0.0.rc1. 2008-12-05 Michael Wiegand Post release version bump. * VERSION: Set to 2.0.0.rc2.SVN. 2008-12-05 Michael Wiegand Preparing the openvas-client 2.0-rc1 release. * CHANGES: Updated. * VERSION: Set to 2.0.0.rc1. 2008-12-05 Felix Wolfsteller Towards step 2 for CR #20: contexts scan .ssh directory for files. ( http://www.openvas.org/openvas-cr-20.html ). * nessus/context.h : Added list sshkeys to context struct. * nessus/context.c (context_init) : Function header reformatted, documented, sshkeys initialization. * nessus/context.c (context_add_plugin) : documented. * nessus/context.c (context_pickup_sshkeys) : new function to scan scopes .ssh directory. * nessus/context.c (context_collect_recurse) : calling context_pickup_sshkeys on appropriate directory, comment. 2008-12-05 Michael Wiegand * po/de.po: Updated German translation. 2008-12-05 Michael Wiegand * nessus/nessus.c (main): Fixed error message. 2008-12-05 Felix Wolfsteller * nessus/plugin_cache.c (plugin_cache_write) : gettexted error msg and added include. 2008-12-05 Felix Wolfsteller First step for CR #20: Add plugin preference type for ssh credentials. * nessus/comm.h : Added define for PREF_SSH_CREDENTIALS and todo item (define is duplicate of libopenvas.h) * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (pprefs_add_sshcredentials) : Function and proto to display combo box for future ssh key selection added. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (prefs_dialog_plugins_prefs_fill) : Comment added, case of PREF_SSH_CREDENTIALS included, show_info in case of unknown preference type added. 2008-12-04 Joey Schulze * nessus/prefs_dialog/prefs_scope_tree.c (scopetree_move, scopetree_new_with_parent, scopetreeview_create_columns, scope_create_treestore): Adjust visible order of vulnerabilities to most important one first (Change Request #21) 2008-12-04 Felix Wolfsteller Transformed comments to javadoc style. * nessus/prefs_dialog/prefs_dialog.c : Transformed single star to double star ("javadoc") comments. * nessus/context.c : Added second star to start of function comments. * nessus/context.h : Documented signer_fp_certificates, removed comment duplicate (double of context.c). 2008-12-04 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog.c : Removed (disabled) menuitem_TODO. 2008-12-04 Felix Wolfsteller * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (pprefs_add_notebook_page) : Added comment, collapsed code duplicate. 2008-12-04 Michael Wiegand * nessus/nessus.c (main): Improved handling of --list-plugins and --list-prefs parameters, made error messages more useful, removed stray printf. 2008-12-04 Michael Wiegand * nessus/nessus.c (main): Fixed command line parsing to handle parameter assignments like --batchmode=host port ... correctly. 2008-12-03 Felix Wolfsteller * /nessus/prefs_dialog/prefs_dialog_plugin_prefs.c : Comments added/ javadoc'ed. 2008-12-03 Felix Wolfsteller Implementation of script tags according to CR #22 (http://www.openvas.org/openvas-cr-22.html). * nessus/plugin_infos.c (plugin_info_window_setup) : Display script tags. * nessus/plugin_cache.c : Increased max items per line, file format nr. * nessus/plugin_cache.c (write_plugin, plugin_cache_read) : Write and read script tag to/from cache. * nessus/nessus_plugin.h : Define char* script_tag in struct, adjust proto for nessus_plugin_new. * nessus/nessus_plugin.c (nessus_plugin_new, nessus_plugin_duplicate) : Set script_tag in plugin. * nessus/comm.c (parse_plugin) : Parse the new script_tag field, set script_tag in plugin struct. 2008-12-03 Felix Wolfsteller * nessus/plugin_cache.c : Comments changed to doxygen "javadoc" style, return values documented. 2008-12-03 Felix Wolfsteller * ChangeLog : Added function names in ChangeLog entries. 2008-12-02 Felix Wolfsteller * nessus/plugin_infos.c (plugin_info_window_setup): respect the symbolic values NOXREF, NOCVE, NOBID and NOSIGNKEY. * nessus/pdf_output.c (print_plugin_information): Do not print appendix table rows if NOCVE, NOBID or NOXREF, improved text for signature summary. 2008-12-02 Felix Wolfsteller SSL Certificate view modernization. * nessus/sslui.c (sslui_showcert) : Replaced deprecated text widget and table by gtk_text_view and gtk_scrolled_window to remove GTK critical warnings on console. 2008-12-02 Felix Wolfsteller Fixed certificate issues with multiple signatures. * nessus/comm.c (parse_certificate) : reverted, yesterdays fix not necessary because it seemingly happens with untrusted certificates only. * nessus/pdf_output.c (print_plugin_information_signatures) : consistent vertical alignment for appendix plugin table. 2008-12-02 Michael Wiegand * po/de.po: Fixed typo in German translation. 2008-12-02 Michael Wiegand * po/de.po: Updated German translation. 2008-12-02 Michael Wiegand * nessus/prefs_dialog/prefs_help.h: Removed obsolete define for tooltip. 2008-12-02 Tim Brown * nessus/backed.c: Fixed some memory leaks as reported by cppcheck. 2008-12-01 Felix Wolfsteller Fixing certificate issues and certificate listing in pdf reports. * nessus/plugin_info.c (plugin_info_window_setup) : use of g_strsplit instead of strtok, included test for connection to distinguish the case of unknown certificates vs client not connected. * nessus/report.c (report_save) : Load certificate store to have it at hand immideately in report context. * nessus/comm.c (parse_certificate) : clean up, crop fingerprints to keyids to ensure same inforamation in certificates and signatures. 2008-12-01 Felix Wolfsteller * nessus/pdf_output.c : Typo in output fixed, brackets added. 2008-12-01 Joey Schulze * nessus/parser.c (parse_expand_type, parse_host_add_data): Add new function to expand the message type into human readable string and use it * nessus/html_output.c (arglist_to_html): Consistent text phrases in reports * nessus/pdf_output.c (arglist_to_plainhtml): Consistent text phrases in reports * nessus/text_output.c (arglist_to_text): Consistent text phrases in reports 2008-11-28 Felix Wolfsteller Removed code duplicates (html_graph_output / html_output). * nessus/html_graph_output.c : Removed duplicate function definitions and replaced calls with calls to the functions defined in html_output. 2008-11-28 Felix Wolfsteller Better error messages and cleanup. * nessus/pdf_output.c : Cleanup. * src/openvas-lib/openvas_certificate_file.c (openvas_certificate_file_write): Better error msgs, empty signature store not interpreted as error (pointed out by Joey). * nessus/report.c (report_save) : Undid NULL check to write empty (just one comment) files when no certificates found. 2008-11-28 Joey Schulze * nessus/report.c (report_save): Only try to save the certificate file if it exists 2008-11-27 Joey Schulze * nessus/latex_output.c (latex_conclusion): Improved wording and formatting * nessus/latex_output.c (latex_appendix): Make generation of each itemised list in the appendix conditional * nessus/latex_output.c (latex_introduction_c): Fix typo * nessus/latex_output.c (latex_print_header): Corrected English grammar * nessus/html_output.c (summary_to_file): Add "Number of security notes found" to generated HTML report 2008-11-27 Felix Wolfsteller * nessus/context.c : Added NULLness check to avoid GLib panic, include. 2008-11-27 Felix Wolfsteller Enabled signature and certificate information display in pdf reports. * nessus/context.c (context_collect_recurse) : Pick up certificates "cache" when loading a report context. * nessus/pdf_output.c : Added printing of signature and trust level information. 2008-11-26 Joey Schulze Several clean up activities. * nessus/tex_output.c (line_length) : Removed superflous function * libnessus/system.c (emalloc, erealloc) : Adjust printf format string from %ld to %d because format '%ld' expects type 'long int', but argument 4 has type 'size_t' * nessus/backend.c (backend_convert) : Donate parentheses around assignment used as truth value * nessus/context.h : Fix typo * nessus/preferences.c (preferences_save_as) : Donate newline to improve config file format * nessus/parser.c (parse_server_message) : Use consistend indention * nessus/backend.c (backend_convert) : Use consistend indention 2008-11-26 Felix Wolfsteller Removed Copyright sections that came with gdchart and snprintf. * packaging/debian/copyright : Removed "snprintf" Copyright section. * COPYING.README : Removed "snprintf" and "gdchart" Copyright sections. 2008-11-26 Felix Wolfsteller Cleaned pdf report code. * nessus/html_output.c : Comment and reference to pdf_output added. * nessus/pdf_output.c (html_print_plugin_box, arglist_to_plainhtml) : extracted method to print plugin infos, cleanup, comments 2008-11-26 Felix Wolfsteller Removed obsolete snprintf copy. * libnessus/snprintf.c : Removed. * libnessus/Makefile : snprintf object removed. * MANIFEST : snprintf.c removed. 2008-11-26 Felix Wolfsteller Openvas_certificate_file mem-leak-fixed, added to manifest + potfiles. * src/openvas-lib/openvas_certificate_file.c : mem leak fixed. * MANIFEST : openvas_certificate_file.h/c added. * po/POTFILES : openvas_certificate_file added. 2008-11-26 Felix Wolfsteller Comments added/improved. * src/openvas-lib/openvas_certificate_file.c, nessus/attack.c, nessus/pdf_output.c, nessus/plugin_infos.c, nessus/nbe_output.c, nessus/backend.c: Comments added/improved 2008-11-25 Felix Wolfsteller Save certificate information when saving a report. * nessus/report.c (report_save) : saves cert. info, comment, cosmetics. * nessus/report.c : added include, comments. * nessus/report.c (report_get_certificates_filename) : new function to return filename for certificate info file. * nessus/report.c : Added proto. 2008-11-25 Felix Wolfsteller Added (de-)serialization functions for hashtables with openvas_certificates as content. * src/openvas-lib/openvas_certificate_file.h : Added. * src/openvas-lib/openvas_certificate_file.c : Added. * src/openvas-lib/Makefile : Corrected authorship and includes, removed targets. * nessus/Makefile : Added openvas_certificate_file target. * src/openvas-lib/openvas_certificates.c : Added todo about adherence to naming conventions. 2008-11-25 Joey Schulze * po/POTFILES: Add more files to gettext POT generation that include translatable strings 2008-11-24 Joey Schulze * nessus/nessus.c (connect_to_nessusd): Display better error message, change paranoia level to avoid OpenSSL messages on stderr. 2008-11-21 Michael Wiegand * nessus/preferences.c (prefs_get_default): Fixed default value for OID links in HTML reports (closes bug #830). 2008-11-20 Michael Wiegand * nessus/prefs_dialog/prefs_help.h: Changed non-functional nessus.org reference to the appropriate OpenVAS compendium URL. 2008-11-19 Felix Wolfsteller Removed further duplicate code in export report to pdf/html functions. * nessus/html_output.c (print_data_with_links): Renamed to indicate module affiliation, included the changes small changes from the version in pdf_output.c, replaced calls. * nessus/html_output.h: Added proto for html_output_print_data_with_links, glib include. * nessus/pdf_output.c (print_data_with_links): Removed. Replaced calls. 2008-11-19 Felix Wolfsteller Removed duplicate code and therefore opened up interface to html_output. * nessus/html_output.c: Renamed formerly static functions to indicate module affiliation and removed staticness. * nessus/html_output.h: Added the protos for now non static functions. * nessus/pdf_output: Includes html_output.h, replaced function calls with new name, removed the duplicate code. * nessus/nessus.c (connect_to_nessusd): comment. 2008-11-19 Felix Wolfsteller Reactivated broken appendix- feature of pdf report, added and improved comments. * nessus/pdf_output.c: comments, fixed ID/OID issue, oids are displayed correctly, reanimated the appendix in pdf, cosmetics (style). * nessus/backend.c (backend_convert): Incomplete comment added, cosmetics, resolved ID/OID issue for all (?) report types. * nessus/data_mining.c: moved comment. * nessus/parser.c: moved comment to the right place, added some. * nessus/cli.c: comments * nessus/nessus.c: example comment for a doxygen mainpage (for anybody demo-ing cr #19). * src/openvas-lib/openvas_certificates.c: typo in comment fixed. 2008-11-18 Felix Wolfsteller * nessus/plugin_infos.c (plugin_info_window_setup): Dealing with the case when no certificate to a fingerprint is found in local hashtable (can happen e.g. with old server cachce files) added. * nessus/pdf_output.c (arglist_to_pdf): commented. * nessus/report.c (report_get_filename, copy_plugins): commented. * nessus/report_save.c (file_save_ok_callback, report_save_cb): commented. * nessus/report_utils.c: TODO added (replace safe_strcmp by glib vers.) 2008-11-18 Michael Wiegand Fixing version requirements for glib as pointed out by atomicturtle. * configure.in: Updated glib requirements to >= 2.6.0 * configure: Regenerated. * aclocal.m4: Regenerated to update PKG_CHECK_MODULES. 2008-11-17 Felix Wolfsteller * nessus/plugin_infos.c (plugin_info_window_setup): Looks at server pref nasl_no_signature_check and indicates if displayed signature is verified or not * nessus/comm.c: comments added. 2008-11-14 Tim Brown * nessus/OpenVAS-Client.desktop: Encoding tag now deprecated, see http://lintian.debian.org/tags/desktop-entry-contains-encoding-key.html. 2008-11-14 Michael Wiegand Post release version bump. * VERSION: Set to 2.0.0.beta3.SVN. 2008-11-14 Michael Wiegand Preparing the 2.0-beta2 release. * VERSION: Set to 2.0.0.beta2. * MANIFEST: Updated. * CHANGES: Updated. 2008-11-14 Felix Wolfsteller * src/openvas-lib/openvas_certificates.c (openvas_certificate_free): NULL- guard and not freeing gboolean. * src/gui/error_dlg.c : comment added. * nessus/plugin_infos.c (showcert, plugin_info_window_setup) : updated, removed use of deprecated gtk widget, "beautified", showing trust level * nessus/context.c : hashtable init with correct destroy callback function + mem leak fix * nessus/context.h : include added 2008-11-14 Michael Wiegand * nessus.tmpl.in, openvasclient-mkcert.in: Added datarootdir to remove configure warning and to be compatible with autoconf 2.60 (see http://www.gnu.org/software/libtool/manual/autoconf/Changed-Directory-Variables.html). 2008-11-14 Michael Wiegand Applying patch provided by Stjepan Gros to eliminate compiler warnings. * nessus/comm.c (comm_parse_preference): Added parentheses around expression to remove compiler warning. * src/openvas-lib/openvas_certificates.c (openvas_certificate_free): Changed comparison of integer variable to zero instead of NULL, silencing the compiler warning. * libnessus/harglists.c (harg_addt, harg_set_valuet, harg_renamet): Added parentheses around if expressions to silence compiler warnings. 2008-11-13 Michael Wiegand * nessus/sslui.c (sslui_showcert): Catch signal sent when user closes the certificate window. The uncaught signal caused the client to hang indefinitely when the window was closed. This solves bug #826 (http://bugs.openvas.org/826). 2008-11-12 Felix Wolfsteller Work on Change Request #17 (http://www.openvas.org/openvas-cr-17.html - "OTP: Make NVT signatures available to OpenVAS-Client"). Now shows certificate information. * src/openvas-libraries : new folder for local copy of openvas_certificate struct added. * src/openvas-libraries/Makefile : added. * src/openvas-libraries/openvas_certificates.c : New file with openvas_certitificate struct, ~new and ~free added. * src/openvas-libraries/openvas_certificates.h : New file with protos added. * MANIFEST : updated * Makefile : added new dir to the clean target. * nessus/plugin_infos.c (plugin_info_window_setup) : include added, showing certificate information for a nvt with a button to show the full certificate. * nessus/plugin_infos.c (showcert): Added functionality to show a certificate. * nessus/Makefile : Changed to include the new files. * nessus/context.h : Removed hashtables from first implementation plan, added single signer_fp_certificates hashtable. * nessus/context.c (context_init, context_new) : Inits the hashtable signer_fp_certificates hashtable. * nessus/comm.c (parse_certificate, get_certificates) : corrected and updated. * ChangeLog : shamefully changed typos with my own email adress. 2008-11-12 Michael Wiegand * configure.in: Added AC_PREREQ directive to tell autoconf to generate a 2.50-style configure script. * configure: Regenerated. 2008-11-12 Michael Wiegand * nessus/attack.c (setup_plug_list): Increased maximum buffer size available for individual OIDs when constructing the plugin_set. This fixes a bug that caused long OIDs to be cut prematurely and damaging the plugin_set in the process. 2008-11-10 Michael Wiegand Patch provided by Stjepan Gros to improve 64-bit cleanliness. * nessus/preferences.c, nessus/preferences.h, nessus/plugin_infos.c, nessus/prefs_dialog/prefs_dialog.c, nessus/prefs_dialog/prefs_dialog_auth.c, nessus/prefs_dialog/prefs_context.c, nessus/prefs_dialog/prefs_report.c, nessus/prefs_dialog/prefs_scope_tree.c, nessus/prefs_dialog/prefs_kb.c, nessus/sslui.c, nessus/monitor_dialog.c, nessus/cli.c, nessus/report_save.c, nessus/context.c, nessus/comm.c, include/harglists.h, libnessus/harglists.c, libnessus/arglists.c, libnessus/network.c: 64/32-bit cleanups, minor reformatting. * libnessus/harglists.c, libnessus/arglists.c, libnessus/network.c, libnessus/Makefile:: added glib header 2008-11-07 Felix Wolfsteller * nessus/comm.c (comm_parse_certificate): (New) method stub. * nessus/comm.c (comm_get_certificates): Fixed and eased loop. 2008-11-05 Felix Wolfsteller Work on Change Request #17 (http://www.openvas.org/openvas-cr-17.html - "OTP: Make NVT signatures available to OpenVAS-Client"). Receives dummy certificate information. * nessus/auth.c: Added comment. * nessus/nessus.c (connect_to_nessus): Attemps fetching certificate information. * nessus/comm.c (comm_get_certificates): Reads in the OTP "certificates" element. 2008-10-31 Felix Wolfsteller Steps to an implementation of Change Request #17 (http://www.openvas.org/openvas-cr-17.html - "Make NVT signatures available to OpenVAS-Client"). The client now receives the new field "sign_key_ids", adds it to the plugin- structs and the local nvt caches. It is displayed in the plugin_info dialog. IMPORTANT: Breaks compatibility and renders old nvt- cache files useless. You will only be able to successfully connect to openvas-server with revision >= 1655. There might be problems with transmitting OVAL plugins from the server to client. * nessus/nessus_plugin.c (nessus_plugin_duplicate, nessus_plugin_new): Added new sign_key_ids field. * nessus/nessus_plugin.c (nessus_plugin_new): Updated struct, proto. * nessus/comm.c (parse_plugin, comm_get_certificates): Comments, goto-removal, use sign_key_id. Method stub to receive certificates. * nessus/comm.h: Prototype for comm_get_certificates. * nessus/plugin_infos.c (plugin_info_window_setup): Comment, simple label to display server trust information. * nessus/plugin_cache.c: Increased "max number of items per line" to parse, FILE_FORMAT_VERSION * nessus/plugin_cache.c (write_plugin, plugin_cache_read): Read and write the new "key_ids" field. * nessus/parser.c (parse_symbol, parse_separator): Comments++ K&R-Style-- * nessus/context.h: Added HashTables to store certificate information. 2008-10-27 Felix Wolfsteller * nessus/prefs_dialog/prefs_help.h: Added tooltip definition for auto-enable new plugins - checkbox. * nessus/prefs_dialog/prefs_dialog.c: Added tooltip to auto-enable new plugins - checkbox. * po/de.po: Updated translation. * TODO: Added basic gui/usability section 2008-10-24 Jan-Oliver Wagner * nessus/prefs_dialog/prefs_help.h: Fixed help string on port: 3001 is really ancient and of no relevance. 2008-10-22 Michael Wiegand * nessus/cli.c (cli_sql_dump_plugins): Added fix proposed by Madhat Unspecific to correct the SQL produced by OpenVAS-Client in command line mode. 2008-10-21 Felix Wolfsteller * nessus/comm.c (parse_plugin): Removed memory leak (were NULL returns, without taking care of emalloc'd strings). 2008-10-21 Felix Wolfsteller * nessus/commc.c (parse_plugin): Peeled if-onion, variable name improved 2008-10-21 Felix Wolfsteller * nessus/commc.c (parse_plugin): Peeled if-onion, variable name improved * nessus/plugin_cache.c: Updated doc/comments about format of nvt cache file. * nessus/preferences.c: Fixed tiny typo in comment. 2008-10-20 Michael Wiegand * po/de.po: Updated German translation. 2008-10-20 Felix Wolfsteller * nessus/commc.c (fetch_new_plugins, fetch_new_plugins): Changed strings displayed to the user in case of new plugins, to allow easier translations. 2008-10-17 Michael Wiegand * nessus/xml_output_ng.c (xml_results_result_ports): Changed backend query to query for plugin_oid instead of plugin_id. This fixes a bug during XML export which resulted in an empty XML file. 2008-10-13 Felix Wolfsteller Introduced a new scope- wise preference to control automatic en/disabling of new plugins. Partial solution to change request #16: http://www.openvas.org/openvas-cr-16.html . * nessus/preferences.c (prefs_get_default): Added default for "auto_enable_new_plugins" option (1) * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_set_defaults, prefs_dialog_apply): Hooked checkbox up with preference * nessus/prefs_dialog/prefs_plugins.c (prefs_dialog_plugins): Create and hook up GTK checkbox for new option * nessus/context.h (context_add_plugin): Changed signature of add_plugin from void to int * nessus/context.c (context_add_plugin): En/Disables new plugins based on the preference, returns if plugin was new (to be able to count) * nessus/comm.c (fetch_new_plugins, fetch_new_plugins): Counts new plugins based on the return value of context_add_plugin, displays info to user 2008-10-12 Tim Brown * packaging/debian/patches/01_libgdchart-gd2-noxpm-dev.patch, packaging/debian/patches/02_update_configure.dpatch openvas-client/packaging/debian/patches/00list: Removed. * packaging/debian/changelog: Updated. * packaging/debian/copyright: Updated. * packaging/debian/rules: Cleaned up. 2008-10-06 Michael Wiegand * nessus/context.c (context_collect_recurse): Corrected string that prevented OpenVAS from loading the correct context. 2008-09-29 Michael Wiegand * po/Makefile: Updated to support French and Croatian translation. 2008-09-29 Jan-Oliver Wagner * MANIFEST: updated. 2008-09-28 Jan-Oliver Wagner * openvasclient-mkcert.in: Renamed Nessus to OpenVAS and removed NessusWX-specific stuff. * nessus/html_graph_output.c (print_data_with_links): Renamed Nessus to OpenVAS. * nessus/html_output.c (print_data_with_links, summary_to_file): Renamed Nessus to OpenVAS. * nessus/latex_output.c (latex_print_header, latex_introduction_a, latex_introduction_b, latex_introduction_c, latex_introduction_d, latex_introduction_e, latex_conclusion): Renamed Nessus to OpenVAS. * nessus/text_output.c (arglist_to_text): Renamed Nessus to OpenVAS. * include/config32.h: Removed. This file isn't used anywhere. 2008-09-25 Michael Wiegand Post release version bump. * VERSION: Set to 2.0.0.beta2.SVN 2008-09-25 Michael Wiegand Doing the 2.0-beta1 release. * VERSION: Set to 2.0.0.beta1 * CHANGES: Updated. 2008-09-25 Michael Wiegand * MANIFEST: Updated. 2008-09-23 Michael Wiegand Added French translation provided by Marco Fradin. * po/fr.po: Added. * MANIFEST: Updated. 2008-09-22 Jan-Oliver Wagner * nessus/comm.c (cli_comm_send_preferences, gui_comm_send_preferences): Removed sending "ntp_escape_crlf" as it is now standatd for OTP. 2008-09-19 Michael Wiegand Added support for new LOG and DEBUG messages. Removed support for PREFERENCES ERROR message type as it was never properly implemented and is now obsolete. * nessus/attack.c (restore_attack, attack_host): Removed support for PREFERENCES ERROR message. * nessus/parser.c (parse_message_type, parse_server_message, parse_host_add_data): Added support for new LOG and DEBUG messages. Removed support for obsolete PING message. * nessus/backend.c (backend_convert): Added support for new LOG and DEBUG messages. * nessus/comm.c (comm_get_preferences_errors): Removed support for PREFERENCES ERROR message. 2008-09-17 Michael Wiegand Changed communication protocol to use OTP exclusively now. Removed the last instances of dynamic protocol extension selection. * nessus/prefs_dialog/prefs_dialog_prefs.c (prefs_dialog_prefs): Removed NTP entry in selection box. * nessus/nessus.c (connect_to_nessusd): Removed dynamic creation of protocol string; the protocol string is now static. * nessus/nessus.h: Changed PROTO_NAME to OTP protocol string, removed obsolete PROTO_NAME_OTP define. 2008-09-17 Michael Wiegand * nessus/attack.c (restore_attack, attack_host): Allocate a buffer large enough to hold all OIDs. This fixes a segfault in the client. 2008-09-14 Tim Brown * nessus/diff: Removed. 2008-09-12 Michael Wiegand Added migration script to convert user data from IDs to OIDs. * tools/: Created. * tools/openvas1_to_openvas2.sh: Added. Migration script to convert user data from IDs to OIDs. 2008-09-12 Michael Wiegand * nessus/comm.c (parse_plugin, comm_get_plugins_md5): Fixed parser to correctly handle the OIDs send by the server. 2008-09-11 Tim Brown * nessus/monitor_dialog.c: Fixed #758, which leads to an OpenVAS client crash due to a divide by zero. 2008-09-10 Jan-Oliver Wagner * nessus/nessus_plugin.h (struct nessus_plugin): Finally remove the old ID. Its use has been eliminated all over the code. 2008-09-10 Jan-Oliver Wagner Migrate the XML export format to a new version that now also uses OID as a base. Many node names have changed. There is currently no old version supported. * nessus/xml_output_ng.c (xml_plugins_plugin, xml_config_scanners): Change nodes "plugin id=" to "nvt oid=". (xml_config_plugins, xml_plugins): Renamed node "plugins" to "nvts". (backend_to_xml_ng): Renamed node "report" to "openvas-report". Renamed nessus.xsl to openvas-report.xsl, despite the fact neither previous nor the new exists. Version set to 1.0. (xml_info_nessusd): Renamed node "nessusd" to "openvasd", "libnasl" to "openvas-libnasl" and "libnessus" to "opnevas-libraries". 2008-09-10 Jan-Oliver Wagner Migrate the LONG_ATTACK command to use OID instead of IDs. * nessus/attack.c (setup_plug_list): Create a ;-separated list of OIDs instead of IDs. 2008-09-10 Jan-Oliver Wagner Migrate preferences to use OID instead of ID. This includes migration from "nessusrc" to "openvasrc" filename. * nessus/preferences.c (pluginset_reload): Change hash search from ID to OID. (struct hash): Changed type of name from int to char * as it is now OID. (hash_get): Changed parameter id to OID (and type from int to char *). The hash value is now the last element of the OID. The hash name is now OID. (new_pluginset): print OID instead of ID. (preferences_get_filename): Change filename from "nessusrc" to "openvasrc". ANSI C declaration. Renamed internal variables accordingly. (preferences_new): Initial settings use full OID now. 2008-09-10 Jan-Oliver Wagner Migrate timout settings handling as well as SQL dumping to OID. * nessus/cli.c (_cli_sql_dump_plugins): Use OID for INSERT command instead of ID. (cli_sql_dump_plugins): Use OID as VARCHAR for CREATE TABLE instead of ID as Integer. * nessus/plugin_infos.c (plugin_info_window_setup): Use OID for calling the timeout settings dialog. (set_timeout): Base the timeout request on OID instead of ID now. Apply ANSI C func declaration. (set_timeout_build_window): Apply OID instead of ID as key for storing them internally. Apply ANSI C func declaration. * nessus/plugin_infos.c (do_set_timeout): Look for the values with the key "OID" instead of "ID". 2008-09-10 Jan-Oliver Wagner Migrate plugin(nvt) caches to OID. * nessus/plugin_cache.c: Changed HEADER_MAGIC to OpenVAS code, because the structure of caches changes. Also changed PLUGIN_KEYWORD to "nvt", while we are at it. And rename PLUGIN_KEYWORD to NVT_KEYWORD. (write_plugin): Write OID instead of ID into plugin cache. (plugin_cache_get_filename): Renamed cache file from "nessus_plugin_cache" to "openvas_nvt_cache" and global cache file from ".openvas_plugin_cache" to ".openvas_nvt_cache". * nessus/plugin_infos.c (plugin_info_window_setup): Now display the OID in instead of ID in the info dialog. 2008-09-09 Jan-Oliver Wagner Migrate PLUGIN_INFO request based on OIDs. Assume OIDs for receiving standard plugin information. * nessus/comm.c (parse_plugin): Now parsing for a OID string instead of the old integer ID. (fetch_new_plugins): Apply PLUGIN_INFO with OID instead of old ID. (struct mising_plugin): replaced element "int id" by "char * oid". (missing_plugins_list_add): Apply OID instead of ID. (update_existing_plugin): Apply OID instead of ID. (comm_get_plugins_md5): Migrated from ID to OID. (add_md5sum_to_plugin): Adapted parameter type. * nessus/nessus_plugin.c (nessus_plugin_new): Now takes and sets OID instead of old ID. (nessus_plugin_get_by_id): Renamed to nessus_plugin_get_by_oid() and switched to using OIDs. * nessus/nessus_plugin.h: Updated protos. * nessus/prefs_dialog/prefs_report.c (row_activated): Migrated from id to oid. * nessus/pdf_output.c (print_plugin_information): Migrated from id to oid. * nessus/data_mining.c: rename "plugin_id" to "plugin_oid" for query types. 2008-09-05 Jan-Oliver Wagner Renaming element "asc_id" of struct "nessus_plugin" into "oid" all over the code. This prepares protocol changes that will consistently use OIDs. The renaming does not change the length of the data structure of nessus_plugin and with OIDs being strings anyway there is not use of a asc_id anymore. * nessus/nessus_plugin.h: Rename asc_id to oid in struct nessus_plugin. * nessus/nessus_plugin.c (nessus_plugin_new, nessus_plugin_duplicate): Renamed asc_id to oid. * nessus/cli.c (_cli_dump_plugins): Renamed asc_id to oid. * nessus/context.c (context_add_plugin): Renamed asc_id to oid. * nessus/filter.c (filter_plugin): Renamed asc_id to oid. * nessus/preferences.c (plugin_asc_id, plugin_id): Removed these methods. * nessus/preferences.h: Removed proto for plugin_asc_id(). 2008-09-05 Jan-Oliver Wagner * nessus/nessus.h: Removed "timestamps" as protocol extension for OTP1.0 (it is default now). 2008-09-01 Jan-Oliver Wagner * nessus/nessus.h: Removed "plugins_version", "plugins_cve_id", "plugins_bugtraq_id" and plugins_xrefs as protocol extension for OTP1.0 (it is default now). 2008-09-01 Jan-Oliver Wagner * nessus/nessus.h: Removed "dependecies" as protocol extension for OTP1.0 (it is default now). 2008-09-01 Michael Wiegand * nessus/plugin_infos.c (plugin_info_window_setup): Add description when displaying plugin version. 2008-09-01 Jan-Oliver Wagner * nessus/attack.c (attack_host): Removed some old commented out code (which was about NEW_ATTACK). 2008-08-22 Javier Fernandez-Sanguino * po/es.po: Updated spanish translation. 2008-08-12 Michael Wiegand * nessus/nessus.c (main): Do not display html_graph as possible output type in the command line options if the client was compiled without gdchart support. 2008-08-10 Jan-Oliver Wagner Removing handling of "PLUGINS_ORDER" command which is not implemented in the server at all. It is not used in a senseful way anyway here in the client. * nessus/parser.h: Remove definition of MSG_PLUGINS_ORDER * nessus/parser.c (parse_message_type, parse_server_message): Removed handling of MSG_PLUGINS_ORDER. * nessus/cli.h (struct cli_args): Removed element plugins_order_table. * nessus/cli.c (build_plugins_order_table): Removed. (cli_test_monitor): Removed code element that did not do any useful things about plugins order. 2008-08-08 Jan-Oliver Wagner * nessus/nmake.w32, nessus/nmake.bat: Removed. These are desperately outdated. * MANIFEST: Updated. 2008-08-08 Jan-Oliver Wagner * VERSION: Set to 1.1.0.SVN to reflect that the 1.0 development has been branched and the development here lead to a next major release. 2008-08-08 Michael Wiegand Removing gd and gdchart according to OpenVAS Change Request #14: http://www.openvas.org/openvas-cr-14.html Second part of patch. * nessus/html_graph_output.c, nessus/cli.c, nessus/report_save.c, nessus/nessus.c: Changed conditional to NO_GDCHART to better adapt to gdchart oddities. * configure.in: Improved header check for headers needed by gdchart; only set GDC_LIBS when _all_ headers are present. * include/config.h.in: Changed conditional to NO_GDCHART; defining HAVE_LIBFREETYPE as gdchart breaks compilation if it is not set (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=242936). * configure: Updated. 2008-08-06 Jan-Oliver Wagner Removing gd and gdchart according to OpenVAS Change Request #14: http://www.openvas.org/openvas-cr-14.html First part of patch. * configure.in: Added check for gdchart * nessus.tmpl.in: Add handling of GDC_LIB. * include/config.h.in: Add conditional HAVE_GDCHART. * nessus/Makefile: Removed any handling of gdchart modules. * nessus/html_graph_output.c: Added HAVE_GDCHART conditional and replaced direct includes by generic ones for gdchart. * nessus/cli.c (cli_args_output): Replaced _NO_PIES conditional by HAVE_GDCHART. * nessus/report_save.c (file_save_ok_callback, report_save_cb): Replaced _NO_PIES and _NOPIE conditionals by HAVE_GDCHART. * nessus/nessus.c (main): Added HAVE_GDCHART conditional. * nessus/globals.h: Removed already-commented-out definition of _NO_PIES. * gdchart0.94b/gdc_samp1.c, nessus/gdchart0.94b/NOTES-092b.txt, nessus/gdchart0.94b/gdc_samp2.c, nessus/gdchart0.94b/NOTES-093b.txt, nessus/gdchart0.94b/gdcpie.h, nessus/gdchart0.94b/NOTES-094b.txt, nessus/gdchart0.94b/gdc.h, nessus/gdchart0.94b/gdc_pie_samp.c, nessus/gdchart0.94b/gdchart.c, nessus/gdchart0.94b/gdchart.h, nessus/gdchart0.94b/samp.html, nessus/gdchart0.94b/price_conv.c, nessus/gdchart0.94b/W.gif, nessus/gdchart0.94b/gdc_pie.c, nessus/gdchart0.94b/README.txt, nessus/gdchart0.94b/gd1.3/demoin.gif, nessus/gdchart0.94b/gd1.3/gd.h, nessus/gdchart0.94b/gd1.3/gddemo.c, nessus/gdchart0.94b/gd1.3/gdfontmb.c, nessus/gdchart0.94b/gd1.3/gdfontl.h, nessus/gdchart0.94b/gd1.3/webgif.c, nessus/gdchart0.94b/gd1.3/gdfonts.c, nessus/gdchart0.94b/gd1.3/gdfontmb.h, nessus/gdchart0.94b/gd1.3/gdfontt.c, nessus/gdchart0.94b/gd1.3/gdfonts.h, nessus/gdchart0.94b/gd1.3/gdfontt.h, nessus/gdchart0.94b/gd1.3/giftogd.c, nessus/gdchart0.94b/gd1.3/mtables.c, nessus/gdchart0.94b/gd1.3/mathmake.c, nessus/gdchart0.94b/gd1.3/gdfontg.c, nessus/gdchart0.94b/gd1.3/index.html, nessus/gdchart0.94b/gd1.3/gd.c, nessus/gdchart0.94b/gd1.3/readme.txt, nessus/gdchart0.94b/gd1.3/Makefile, nessus/gdchart0.94b/gd1.3/gdfontl.c, nessus/gdchart0.94b/gd1.3/gdfontg.h, nessus/gdchart0.94b/makefile, nessus/gdchart0.94b/gdc.c: Removed. * nessus/gdchart0.94b/gd1.3: Removed empty directory. * nessus/gdchart0.94b: Removed empty directory. * MANIFEST: Updated. 2008-07-31 Vlatko Kosturjak * po/hr.po: New. Initial Croatian translation of OpenVAS client. 2008-07-19 Jan Wagner * packaging/debian/changelog, packaging/debian/control, packaging/debian/copyright, packaging/debian/openvas-client.menu, packaging/debian/rules: Some more polishing * packaging/debian/patches/02_update_configure.dpatch: Patch a version of configure in, which works with debian unstable 2008-07-19 Tim Brown * nessus/Makefile: Fixed dependency issue that cause parallel builds to fail. * ChangeLog: Fixed typos. * packaging/debian/patches/01_libgdchart-gd2-noxpm-dev.patch, packaging/debian/changelog Ported the fixes to use libgdchart-gd2-noxpm-dev to the latest release. * packaging/debian/rules, packaging/debian/changelog: Fixed up rules file to correctly handle CROSS. 2008-07-05 Tim Brown * nessus/xml_output_ng.c: Fixed format string parameters to show_error() which resulted in a segfault as the format string expected two parameters and only one, the expanded strerror(errno) was supplied. 2008-07-04 Jan Wagner * packaging/debian/changelog, packaging/debian/control: New debian package version with some minor changes. 2008-07-04 Michael Wiegand * nessus/nessus.c (main): Do not let gtk_get_option_group open DISPLAY when parsing the command line as this leads to an error when DISPLAY is not set. This means the client is now able to run in quiet mode without DISPLAY being set; closes bug #645. 2008-07-01 Tim Brown * nessus/OpenVAS-Client.desktop: Removed SUSE directive as it was a mistake. Also changed Categories directive. 2008-07-01 Michael Wiegand * TODO: Added section about the "Save Global Settings" behavior. 2008-06-27 Michael Wiegand Post-release version bump. * VERSION: Set to 1.0.5.SVN. 2008-06-27 Michael Wiegand Doing the 1.0.4 release. * VERSION: Set to 1.0.4. * CHANGES: Updated. 2008-06-26 Michael Wiegand Reverted the name change for the plugin cache in context directories pending an appropriate change request as this might break transition from NessusClient to OpenVAS-Client. * nessus/plugin_cache.c (plugin_cache_get_filename): Set filename to nessus_plugin_cache if context->dir is set. 2008-06-26 Michael Wiegand Fixed another bug that resulted in a segfault when running OpenVAS-Client in batch mode with a non-existent targets file and --output_type html_graph. * nessus/html_graph_output.c (risk_severity): Don't try to walk an empty hosts arglist. * nessus/cli.c: Replaced "nessus" with "OpenVAS" in error messages. 2008-06-26 Michael Wiegand Fixed two bugs that resulted in segfaults. * nessus/plugin_cache.c (plugin_cache_get_filename): Set a filename for the plugin cache even if the user has supplied an alternate rc file. After all, chances are we will find a writable place. Running without a cache is non-functional and resulted in segfaults resp. no plugins in the context. We will try to put the plugin_cache in $HOME/.openvas_plugin_cache for now even if there is an alternate rc file. * nessus/plugin_cache.c (plugin_cache_write): Removed handling of !filename NULL as plugin_cache_get_filename now returns a filename in any case. * nessus/cli.c (cli_args_results): Re-added default file type in case the filename provided by the user contains neither '.' nor '/'. This bug was introduced in revision 673 with the removal of NSR support; we now default to nbe if the user provided no --output-type and we are unable to guess a format from the result filename. 2008-06-25 Michael Wiegand * nessus/nessus.c (main): Made glib command line help gettext accessible, updated version message. * nessus/nessus_i18n.h: Use glib's gettext integration. * po/es.po, po/de.po, po/sv.po, po/he.po: Updated. 2008-06-24 Michael Wiegand Making the protocol version an option in preparation for change request #12, http://www.openvas.org/openvas-cr-12.html. The current version of OpenVAS-Server will simply disconnect clients requesting OTP/1.0 as the server does not know about OTP yet. * nessus/preferences.c (prefs_buffer_parse, preferences_save_as): Added handling for protocol_version. * nessus/prefs_dialog/prefs_dialog_prefs.c: Added combobox for protocol version; the only options right now are NTP/1.2 and OTP/1.0 with NTP being the default. * nessus/nessus.c (connect_to_nessusd): Added handling of the protocol_version preference, made error message on bad protocol version disconnect more descriptive. * nessus/nessus.h: Added version string for OTP/1.0. * nessus/comm.c: Updated incorrect comments. 2008-06-23 Michael Wiegand * nessus/nessus.c: Only add GTK options to parser group if GTK is indeed present; otherwise the client won't build with --disable-gtk. 2008-06-23 Michael Wiegand Replaced getopt in nessus/nessus.c according to change request #11, http://www.openvas.org/openvas-cr-11.html. The client now uses the glib command line parser and no longer uses the nessus-modified version of getopt. * nessus/pdf_output.c: Moved the functions append_argv and destroy_argv from libnessus/getopt.c to here. These functions are not part of getopt, but were added to libnessus/getopt.c at a later date. * nessus/nessus.c (display_help): Removed display_help as this functioniality is now handled by glib. * nessus/nessus.c (main): Removed dependency on getopt, made error messages more useful, repaired options list-plugins, list-prefs and make-config-file, removed hidden (and no longer functional) option open-report, cleaned up code. * configure: Removed handling of getopt. * include/config.h.in: Removed handling of getopt. * include/getopt.h: Removed. * include/ntcompat.h: Removed handling of getopt. * include/libnessus.h: Removed ExtFuncs append_argv and destroy_argv; they now reside directly inside pdf_output so declaration here is no longer needed. * packaging/debian/copyright: Removed copyright notices for getopt. * configure.in: Removed handling of getopt. * COPYING.README: Removed copyright notices for getopt. * MANIFEST: Removed references to getopt. * libnessus/getopt.c: Removed. Moved the functions append_argv and destroy_argv to nessus/pdf_output.c as PDF generation depends on these functions. These functions are not part of getopt, but were added to libnessus/getopt.c at a later date. * libnessus/getopt1.c: Removed. * libnessus/Makefile: Removed handling of getopt. * doc/OpenVAS-Client.1: Removed reference to obsolete -r/--open-report option. 2008-06-20 Michael Wiegand * nessus/nessus.c (main): Started replacing getopt with the glib command line parser. Note: The replacement is not yet complete and not yet thoroughly tested, batch mode is not yet working. I will finish the replacement on 2008-06-23. 2008-06-20 Michael Wiegand * libnessus/hlst.c (sort_hlst): Avoid sorting an hlst if it has no entries since that will lead to an emalloc issue under certain conditions. 2008-06-19 Tim Brown * packaging/debian/control: Minor updates to control file, fixed Priority directive. 2008-06-20 Jan-Oliver Wagner * nessus/OpenVAS-Client.desktop: Added SUSE directive as suggested by Ales Nosek. 2008-06-19 Michael Wiegand Cleaned up the authentication dialog as the separation of the "Authentication" and "SSL Options" frames no longer makes sense. * nessus/prefs_dialog/prefs_dialog_auth.c: Removed "SSL Options" frame, moved SSL options to "Authentication" frame, cleaned up dialog layout. 2008-06-19 Jan-Oliver Wagner * MANIFEST: updated. 2008-06-19 Michael Wiegand Removed support for non-SSL connections according to change request #10, http://www.openvas.org/openvas-cr-10.html. The defines NESSUS_ON_SSL and HAVE_SSL are now considered obsolete because the client only allows SSL connections; the USE_AF_INET, USE_AF_UNIX and AF_UNIX_PATH defines are considered obsolete because local socket connections are no longer possible. * nessus/preferences.c: Removed obsolete handling of NESSUS_ON_SSL. * nessus/sighand.c: Removed obsolete handling of NESSUS_ON_SSL. * nessus/prefs_dialog/prefs_dialog.c: Renamed arglist key for connection icon to reflect that we no longer display a now redundant encryption icon; the icon now simply displays whether the client is connected or not. * nessus/prefs_dialog/prefs_dialog_auth.c: Removed obsolete handling of NESSUS_ON_SSL and USE_AF_INET; removed display of "Use SSL encryption" option. * nessus/prefs_dialog/prefs_context.c: Removed handling of redundant use_ssl preference; changed the now redundant encryption icon; the icon now simply displays whether the client is connected or not. * nessus/sslui.c: Removed obsolete handling of NESSUS_ON_SSL and USE_AF_UNIX. * nessus/nessus.c: Removed obsolete handling of NESSUS_ON_SSL, USE_AF_UNIX, USE_AF_INET and HAVE_SSL. * nessus/nessus.h: Removed obsolete handling of NESSUS_ON_SSL. * include/config.h.in: Removed obsolete handling of NESSUS_ON_SSL, USE_AF_UNIX, USE_AF_INET and HAVE_SSL. * include/config32.h: Removed obsolete handling of AF_UNIX_PATH and USE_AF_INET. * include/includes.h: Removed obsolete handling of HAVE_SSL. * include/libnessus.h: Removed obsolete handling of HAVE_SSL. * configure.in: Removed obsolete handling of HAVE_SSL and NESSUS_ON_SSL. * libnessus/network.h: Removed obsolete handling of HAVE_SSL. * libnessus/network.c: Removed obsolete handling of HAVE_SSL. 2008-06-17 Jan-Oliver Wagner * doc/HTTP_authentication.txt: Removed. It is redundent with the file doc/HTTP_authentication.txt in openvas-server. 2008-06-16 Michael Wiegand Fixed label in plugin information dialog. * nessus/plugin_infos.c: Changed label for the plugin description; the text show in the text box below the label is not the plugin output on a successful attack but the plugin description returned by the plugin itself. 2008-06-11 Michael Wiegand Fixed bug introduced with the last change that prevented compilation. * nessus/Makefile: Execute target error_dlg.o only once. 2008-06-11 Michael Wiegand Fixed compilation without GTK support; OpenVAS-Client will now compile when configured with --disable-gtk. It will now explicitly use glib when configured with --disable-gtk. Some core functioniality used to depend on the glib provided by GTK and would fail to compile without GTK present. * nessus/Makefile: Explicitly consider glib during make process; re-enabled compilation of src/gui/error_dlg.{c,h} even without GTK. * nessus/context.h: Now includes glib if GTK is not present. Enabled compilation of functioniality depending on glib without GTK. * nessus/context.c: Enabled compilation of functioniality depending on glib without GTK. * configure.in: Test for glib presence and set GLIB_CFLAGS and GLIB_LIBS. * configure: Regenerated from configure.in using autoconf. * nessus.tmpl.in: Use GLIB_CFLAGS and GLIB_LIBS. * nessus/nessus.c: Changed message when called without arguments and configured with --disable-gtk to be more helpful and to reflect the name change to OpenVAS. 2008-06-10 Tim Brown * nessus/OpenVAS-Client.desktop: Fixed icon directive. * nessus/prefs_dialog/prefs_dialog.c: Fixed NESSUS_DOCDIR to point at PREFIX/share/doc/openvas-manual 2008-06-05 Michael Wiegand Enabling gettext translation for string added in CR #7. * nessus/prefs_dialog/prefs_report.c (row_activated): Gettext translation for NVT name and OID display is enabled. 2008-06-05 Michael Wiegand Implementing Credentials page changes according to change request #8, http://www.openvas.org/openvas-cr-8.html. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (create_plugin_prefs_containers, prefs_dialog_plugins_prefs, prefs_dialog_plugins_prefs_read_only, prefs_dialog_plugins_prefs_fill, prefs_plugins_prefs_redraw, pprefs_add_notebook_page): Changed implementation of the credentials page to make use of the listnotebook class. * nessus/context.c (context_init, context_force_plugin_prefs_redraw): Added listnotebook object handling for credentials page to context. * nessus/context.h: Added listnotebook object for credentials page to context. 2008-06-05 Michael Wiegand Extending report widget with optional plugin info according to change request #7, http://www.openvas.org/openvas-cr-7.html. * nessus/preferences.c (prefs_get_default): Added default value for new option "show_nvt_name_and_oid". * nessus/prefs_dialog/prefs_dialog_prefs.c (prefs_dialog_prefs): Added handling for new option "show_nvt_name_and_oid". * nessus/prefs_dialog/prefs_report.c (row_activated): Added retrieval and output of NVT name and (legacy) oid, provided the option "show_nvt_name_and_oid" in enabled and access to the plugin cache is available. 2008-06-04 Michael Wiegand Fixed bug introduced in Rev 673 on 2008-02-25 that could cause filename corruption or segfaults when exporting a report with a format other than NBE. * nessus/report_save.c: Corrected #define values for file types other than NBE to sync them with the suffixes in char *suffixes[] in file_save_ok_callback. 2008-06-01 Michael Wiegand Removing support of old XML report format according to change request #6, http://www.openvas.org/openvas-cr-6.html. * nessus/xml_output.h: Removed. * nessus/xml_output.c: Removed. * nessus/Makefile: Removed handling of module xml_output. * nessus/cli.c (cli_args_output): Removed handling of "old-xml". * nessus/nessus.c (display_help): Removed "old-xml" from list of options. (main): Removed actions for "old-xml". * nessus/report_save.c (file_save_ok_callback): Removed handling for old XML report format ("SAVE_XML"). (report_save_cb): Removed GUI selection for old XML in report save dialog. * doc/OpenVAS-Client.1: Removed reference to old XML report format. 2008-06-01 Jan-Oliver Wagner Implementing Credentials page check according to change request #8, http://www.openvas.org/openvas-cr-8.html. * nessus/prefs_dialog/prefs_dialog_plugins_prefs.c (is_credentials): Removed. (prefs_dialog_plugins_prefs_fill): Replaced call of is_credentials by direct check for family "Credentials". 2008-04-18 Jan-Oliver Wagner * packaging/fedora: New. Directory for Fedora RPM files. * packaging/fedora/openvas-client-1.0.3-1.fc8.openvas.spec: New. * MANIFEST: updated. 2008-04-16 Jan-Oliver Wagner * packaging/opensuse: New. Directory for OpenSUSE RPM files. * packaging/opensuse/openvas-client-1.0.3-1.suse102.openvas.spec: New. 2008-04-16 Tim Brown * packaging/debian/control, packaging/debian/copyright: Synced with uploaded version. 2008-04-15 Jan-Oliver Wagner * packaging/w32/openvasclient+gtk.iss.in: Updated version to 1.0.3. * packaging/w32/make-installer-openvas.sh: Updated version to 1.0.3, and added support for spanish and (commented out for the time being) hebrew. 2008-04-15 Jan-Oliver Wagner * Makefile: Removed unused and useless target "w32". 2007-04-05 Jan-Oliver Wagner * nessus/nessus.c, include/corevers.h.in: fix naming nessus->OpenVAS-Client. 2008-04-05 Jan-Oliver Wagner * nessus/nessus.c (connect_to_nessusd): fix naming nessus->openvas. 2008-04-04 Jan-Oliver Wagner Post-release version bump. * VERSION: Set to 1.0.4.SVN. 2008-04-04 Jan-Oliver Wagner * MANIFEST: Updated. 2008-04-04 Jan-Oliver Wagner Doing the 1.0.3 release. * VERSION: Set to 1.0.3. * CHANGES: Updated. 2008-04-02 Jan-Oliver Wagner * MANIFEST: Updated. 2008-04-02 Jan-Oliver Wagner * po/es.po, po/de.po, po/sv.po, po/he.po: Updated. 2008-04-02 Jan-Oliver Wagner * nessus/preferences.c (prefs_get_default): NEW URL defaults for OpenVAS NVT ID, BID and CVE. Previous were directed towards nessus.org. * nessus/pdf_output.c (print_appendix, print_plugin_information): Made strings translatable. (fprint_link, print_data_with_links, print_plugin_information): Adapted OpenVAS ID referencing to the new OID scheme as specified with OpenVAS Change Request #1. 2008-02-29 Jan-Oliver Wagner * nessus/nessus.c (connect_to_nessusd): Only write plugin cache if it is configured to cache plugins. This fixes a segfault when the caching feature is switched off and a connection established. This patch is contributed by Carsten Koch-Mauthe. 2008-02-29 Jan-Oliver Wagner Refactored onKeypressed method for treeview widgets as it can be used at least for two treeview already. * src/gui/treeview_support.c, src/gui/treeview_support.h: New. Factored out onKeypressed from prefs_scope_tree.c. * src/gui/Makefile, nessus/Makefile: Added module treeview_support. * nessus/prefs_dialog/prefs_scope_tree.c (onKeypressed): Removed, now in treeview_support. * nessus/prefs_dialog/prefs_report.c (prefs_dialog_report): Connect tree with onKeypressed. 2008-02-29 Jan-Oliver Wagner * nessus/prefs_dialog/prefs_scope_tree.c (onKeypressed): New. Expands/Collapses tree upon left/right arrow key. (prefs_dialog_scope_tree): Connect scopetreeview with onKeypressed. This patch is contributed by Carsten Koch-Mauthe. 2008-02-28 Jan-Oliver Wagner * nessus/monitor_dialog.c (monitor_add_host, monitor_stop_whole_test, monitor_input_callback): Finally removed unused variable. 2008-02-28 Laban Mwangi * nessus/html_output.c, nessus/latex_output.c, nessus/text_output.c: Fix links in report pages. 2008-02-26 Tim Brown * nessus/monitor_dialog.c: Added some preprocessor directives to fix compiler warnings * nessus/preferences.c, nessus/prefs_dialog/prefs_context.c, nessus/prefs_dialog/prefs_dialog_prefs.c, nessus/prefs_dialog/prefs_report.c, nessus/prefs_dialog/prefs_report.h: Added global setting sort_order which can be set from preferences. When the report context changes this (when the report being shown changes) the default sort order will be applied. Justification, from a pentesting perspective, it is optimal to go after the most vulnerable ports first :). 2008-02-26 Jan-Oliver Wagner * MANIFEST: Updated. 2008-02-25 Tim Brown * nessus/foo.tex, nessus/foo.xml, nessus/nessus.html: Removed as unrequired. 2008-02-25 Jan-Oliver Wagner Final step of removing the NSR support (OpenVAS Change Request #2): Removed handling in code. * nessus/html_graph_output.c: Various renaming from Nessus to OpenVAS (arglist_to_html_graph): Removed saving a nsr file. This action appeared to have no effect anyway. * nessus/cli.c (cli_args_results): Removed setting of "nsr" as ftype as a default. (cli_args_output): Removed handling of ftype "nsr". * nessus/backend.c (backend_import_report): Removed handling for ".nsr" files. * nessus/report_save.c (SAVE_NSR): Removed. (file_save_ok_callback): Removed suffix ".nsr" from list, removed handlung to save nsr. (report_save_cb): Removed GUI selection label for NSR. * nessus/nessus.c (display_help): Removed "nsr" from help text. (main): Remove handling to write nsr format. * nessus/Makefile, nessus/nmake.w32: Remove handling of module "nsr_output". * nessus/nsr_output.c, nessus/nsr_output.h: Removed. 2008-02-23 Jan-Oliver Wagner First step of removing the NSR support (OpenVAS Change Request #2): Documentation. * OpenVAS-Client.1, nbe_file_format.txt: Removed any reference to NSR format. * nsr_file_format.txt: Removed. * MANIFEST: Updated. 2008-02-14 Jan-Oliver Wagner * doc/ntp/README, doc/ntp/ntp_white_paper.txt, doc/ntp/plugin_prefs.txt, doc/ntp/ntp_extensions.txt, doc/ntp/ntp_white_paper_11.txt, doc/ntp/: Removed. They are redundant copies of the respective files in module openvas-server where they are maintained. * MANIFEST: Updated. 2008-01-05 Jan-Oliver Wagner * COPYING.README: Adding the summary of copyrights as collected in file packaging/debian/copyright. 2008-01-04 Jan-Oliver Wagner * MANIFEST: updated. 2007-12-29 Tim Brown * Makefile, packaging/debian/rules: Removed man8 from make install-man. * packaging/debian/changelog: Updated. 2007-12-29 Javier Fernandez-Sanguino * packaging/debian/copyright: More information in the copyright, including a detailed account of holders as well as reference to the LGPL and the inclusions of the licenses which are neither GPL nor LGP. Done after a full (C) and license review of all the source code. Convert to UTF-8 and fix typo. * packaging/debian/changelog: Updated. * packaging/debian/rules: Remove empty directory from the package. * openvas-client/po/es.po: Minor typo fix. 2007-12-28 Tim Brown * packaging/debian/openvas-client.menu: Updated in line with Debian Menu sub-policy * packaging/debian/patches/, packaging/debian/patches/00list, packaging/debian/patches/01_libgdchart-gd2-noxpm-dev.patch: New. Incorporates the fixes to use libgdchart-gd2-noxpm-dev. * packaging/debian/control: Depends on dpatch * packaging/debian/rules: Apply patches * packaging/debian/changelog: Updated. * Makefile: Removed installation of openvasclient-mkrand 2007-12-18 Jan-Oliver Wagner Post-release version bump. * VERSION: Set to 1.0.3.SVN. 2007-12-18 Jan-Oliver Wagner Doing the 1.0.2 release. * VERSION: Set to 1.0.2. * CHANGES: Updated. 2007-11-04 Tim Brown * packaging/debian/copyright, packaging/debian/changelog: Updated to list all contributing authors based on grep for "\([cC]\)|[cC]opyright". 2007-11-04 Jan-Oliver Wagner * README: Replace license information by a reference to COPYING.README. * COPYING.README: New. * nessus/test.pdf: Removed. This test file probably has been added by accident. * MANIFEST: Updated. 2007-11-01 Jan-Oliver Wagner * MANIFEST: Updated. 2007-11-01 Javier Fernandez-Sanguino * nessus/OpenVAS-Client.desktop: Enable logo. * packaging/debian/TODO, packaging/debian/openvas-client.menu: New. Sync with the contents of the uploaded Debian package. * packaging/debian/control, packaging/debian/changelog, packaging/debian/copyright, packaging/debian/rules: Sync with the contents of the uploaded Debian package. 2007-11-01 Javier Fernandez-Sanguino * po/README: Remove references to Nessus, move CVS to SVN. 2007-10-31 Jan-Oliver Wagner * MANIFEST: Updated. 2007-10-31 Tim Brown * nessus/OpenVAS-Client.desktop: Removed Icon filename because it does not exist yet. * packaging/debian, packaging/debian/control, packaging/debian/dirs, packaging/debian/compat, packaging/debian/changelog, packaging/debian/copyright, packaging/debian/docs, packaging/debian/rules: New. The debian packaing files. * config.guess, config.sub: Merged changes from old Debian nessus-client package 2007-10-23 Jan-Oliver Wagner Post-release version bump. * VERSION: Set to 1.0.2.SVN. 2007-10-23 Jan-Oliver Wagner * MANIFEST: Updated. 2007-10-23 Jan-Oliver Wagner Doing the 1.0.1 release. * VERSION: Set to 1.0.1. * CHANGES: Updated. 2007-10-21 Jan-Oliver Wagner * README_SSL, doc/WARNING.En, doc/WARNING.Fr: Removed due to phrases that render the text files non-free. 2007-09-24 Jan-Oliver Wagner * nessus/backend.c (backend_init): Replaced "nessus" by "openvas" for basename of temporary files. Found by Hanno Böck. 2007-09-24 Jan-Oliver Wagner * TODO: Yet another wish (NSIS) 2007-09-20 Bernhard Herzog * include/includes.h: No longer includes nessus-devel.h * include/nessus-devel.h: Removed because it's not actually used. 2007-09-18 Jan-Oliver Wagner Post-release version bump. * VERSION: Set to 1.0.1.SVN. 2007-09-18 Jan-Oliver Wagner Doing the 1.0.0 release. * VERSION: Set to 1.0.0. * CHANGES: Updated. 2007-09-18 Jan-Oliver Wagner * nessus/prefs_dialog/prefs_help.h: Removed HLP_CIPHER_CHOICE since it is not used anywhere in the code. * po/de.po, po/he.po, po/sv.po: Updated (removed unused translations). * po/es.po: New. Spanish translation by Javier Fernandez-Sanguino 2007-09-17 Jan-Oliver Wagner * po/Makefile: Added spanish. * MANIFEST: Updated. * nessus/prefs_dialog/prefs_help.h: Fixed string typos. Also "Nessus"->"OpenVAS". * nessus/prefs_dialog/prefs_scan_assistant.c: Fixed "Nessus" -> "OpenVAS" * po/de.po, po/sv.po: Updated. Resolved fuzzy. * po/he.po: Just updated. 2007-09-13 Jan-Oliver Wagner * nessus/preferences.c, nessus/pdf_output.c, nessus/plugin_infos.c, nessus/prefs_dialog/prefs_dialog_auth.c, nessus/prefs_dialog/prefs_dialog_prefs.c, nessus/prefs_dialog/prefs_kb.c, nessus/prefs_dialog/prefs_help.h, nessus/backend.c, nessus/nessus.c: Replace "Nessus" UI Strings by "OpenVAS" where appropriate. * de.po, sv.po, he.po: Updated to new strings. de translated 100%, sv almost, he no updates. 2007-09-13 Jan-Oliver Wagner * doc/OpenVAS-Client.1.in: Renamed to OpenVAS-Client.1 since there where no differences, so no need to let handle this by autotools. * doc/OpenVAS-Client.1: New. Former OpenVAS-Client.1.in. * configure.in: Don't handle OpenVAS-CLient.1.in anymore. * configure, TODO: Updated. 2007-08-30 Jan-Oliver Wagner * src/gui/error_dlg.h: Applied standard header. * MANIFEST: Updated. * po/POTFILES, po/de.po, po/sv.po: Updated. * po/he.po: New. Hebrew translation. Contributed by Moti Yehoshua. * po/Makefile: Support hebrew (he). 2007-08-28 Jan-Oliver Wagner * src/gui/error_dlg.c: Applied standard header. 2007-08-28 Jan-Oliver Wagner * src/gui/error_dlg.c: Replace error_dialog.h by error_dlg.h. 2007-08-20 Jan-Oliver Wagner * src/README: Fixed text because Intevation is not the exclusive copyright holder anymore. * nessus/error_dialog.h: Moved to gui/src/error_dlg.h * nessus/error_dialog.c: Moved to gui/src/error_dlg.c * gui/src/error_dlg.h: New. Former error_dialog.h. * gui/src/error_dlg.c: New. Former error_dialog.c. * gui/src/Makefile: Added module error_dlg. * nessus/Makefile: Adjustments to moved module error_dialog to src/gui/error_dlg. * nessus/comm.c, nessus/sighand.c, nessus/parser.c, nessus/plugin_cache.c, nessus/context.c, nessus/preferences.c, nessus/report.c, nessus/report_save.c, nessus/nsr_output.c, nessus/nbe_output.c, nessus/html_output.c, nessus/text_output.c, nessus/xml_output.c, nessus/xml_output_ng.c, nessus/html_graph_output.c, nessus/monitor_dialog.c, nessus/backend.c, nessus/prefs_dialog/prefs_dialog.c, nessus/prefs_dialog/prefs_scope_tree.c, nessus/prefs_dialog/prefs_dialog_scan_opt.c, nessus/prefs_dialog/prefs_dialog_user.c, nessus/prefs_dialog/prefs_plugins.c, nessus/prefs_dialog/prefs_plugins_tree.c, nessus/read_target_file.c, nessus/filter.c, nessus/nessus.c, nessus/prefs_dialog/prefs_context.c, nessus/prefs_dialog/prefs_scan_assistant.c, nessus/pdf_output.c: Replace error_dialog.h by error_dlg.h. 2007-08-16 Jan-Oliver Wagner * packaging/w32/make-installer-openvas.sh, packaging/w32/openvasclient+gtk.iss.in, packaging/w32/README.txt: New. Some intitial scripts to create Windows Installer packages. Likely incomplete yet. 2007-08-16 Jan-Oliver Wagner * nessus.tmpl.in, include/config.h.in, include/config32.h, configure.in, Makefile, nessus/preferences.c: Removed any occurance of NESSUSD_*. * configure: updated. 2007-08-16 Jan-Oliver Wagner * src/gui/slad_install.c (slad_install): disable sladinstaller test for CYGWIN as it does not work there. 2007-08-10 Jan-Oliver Wagner * po/sv.po: Updated swedish translation by Daniel Nylander. 2007-08-02 Jan-Oliver Wagner Basis of this are the patches by Javier Fernández-Sanguino Peña for the Debian package. * doc/OpenVAS-Client.1.in: Replaced Nessus (nessusd, ...) by OpenVAS (openvasd, ...). * Makefile: Fixed cleanup routines. * nessus/OpenVAS-Client.desktop: Added spanish. 2007-07-31 Jan-Oliver Wagner Post-release version bump. * VERSION: Set to 0.9.2.SVN. 2007-07-31 Jan-Oliver Wagner Doing the 0.9.1 release. * VERSION: Set to 0.9.1. 2007-07-31 Jan-Oliver Wagner Update everything to have I18N work again. * po/README: NessusClient -> OpenVAS-Client * po/POTFILES: updated. * po/de.po: upated. * CHANGES: updated. * README: Added note about language support. 2007-07-31 Jan-Oliver Wagner Adding a menu entry with a startup routine for the sladinstaller GUI. SLAD is the Security Local Auditing Daemon which comes with some NASL scripts and thus can now be fully managed through OpenVAS-Client. * src/gui/slad_install.h, src/gui/slad_install.c: New. A sladinstaller startup routine. * src/gui/Makefile, nessus/Makefile: Adding module slad_install. * nessus/prefs_dialog/prefis_dialog.c (prefs_dialog_setup): Add menu item to run sladintaller startup. * MANIFEST: updated. * CHANGES: updated. 2007-07-31 Jan-Oliver Wagner Removing the whole manual directory which now forms the new stand-alone module "openvas-manual". * doc/man/, doc/man/Makefile, doc/man/fixtex.pl, doc/man/users-manual-de.lyx, doc/man/users-manual.lyx, doc/man/images, doc/man/images/authentication-dlg-de.png, doc/man/images/authentication-dlg-en.png, doc/man/images/mainwindow-credentials-de.png, doc/man/images/mainwindow-credentials-en.png, doc/man/images/mainwindow-de.png, doc/man/images/mainwindow-en.png, doc/man/images/mainwindow-kb-de.png, doc/man/images/mainwindow-kb-en.png, doc/man/images/mainwindow-pluginprefs-de.png, doc/man/images/mainwindow-pluginprefs-en.png, doc/man/images/mainwindow-plugins-de.png, doc/man/images/mainwindow-plugins-en.png, doc/man/images/mainwindow-report-de.png, doc/man/images/mainwindow-report-en.png, doc/man/images/mainwindow-targetselection-de.png, doc/man/images/mainwindow-targetselection-en.png, doc/man/images/preferences-dlg-de.png, doc/man/images/preferences-dlg-en.png, doc/man/OpenVAS-logo.png: Removed. * MANIFEST: updated. * VERSION: Updated to 0.9.1.SVN. * CHANGES: Added info for 0.9.1 * nessus.tmpl.in, nessus/prefs_dialog/prefs_dialog.c (show_users_manual): New doc-dir is OpenVAS, not OpenVAS-Client. 2007-07-24 Bernhard Herzog * nessus/nessus_plugin.c: Remove unused include 2007-07-24 Bernhard Herzog * nessus/plugin_cache.c (plugin_cache_read): Remove incorrect comment. 2007-07-24 Bernhard Herzog * nessus/nessus_plugin.c (nessus_plugin_get_description): Return the description directly without making a copy. Since the description is now stored uncompressed it's not necessary anymore to return a copy and there were several places in the code where the returned string wasn't freed. * nessus/xml_output_ng.c (xml_plugins_plugin), nessus/pdf_output.c (print_plugin_information), nessus/filter.c (filter_plugin), nessus/cli.c (_cli_sql_dump_plugins): Adapt to nessus_plugin_get_description changes. 2007-07-24 Bernhard Herzog * nessus/nessus_plugin.c (nessus_plugin_new): Intern the summary, too. 2007-07-23 Bernhard Herzog * nessus/nessus_plugin.h (struct nessus_plugin): The plugin description is now stored uncompressed. * nessus/nessus_plugin.c (intern_string): New. Function to intern strings. (nessus_plugin_new): Use intern_string to store the description uncompressed but shared among nessus_plugin instances for the same plugin. (nessus_plugin_get_description): Adapt to description changes. 2007-07-23 Bernhard Herzog * nessus/cli.c (_cli_sql_dump_plugins, _cli_dump_plugins): Use nessus_plugin_get_description to get the uncompressed description 2007-07-19 Jan-Oliver Wagner Final preparations for release 0.9.0. * VERSION: set to 0.9.0. * INSTALL: Removed. Those information were partly wrong or misleading. * README: Added some notes on compilation. * src/gui/about_dlg.c, src/gui/about_dlg.h, src/gui/Makefile, src/README, nessus/prefs_dialog/prefs_dialog.c: Because the copyright assignment takes some time, for the time being SPI is not yet the copyright holder. Intevation will transfer as soon as assignment process has been clarified. * CHANGES: Started anew with information on OpenVAS-Client. The previous information haven't been maintained consistently and have no meaning to the reader. * MANIFEST: updated. 2007-07-18 Jan-Oliver Wagner * Makefile: Added target "dist". * MANIFEST: New. List of files for dist. * src/gui/Makefile: Fixed include-path and added Makefile as dependency for cflags. 2007-07-10 Jan-Oliver Wagner * po/POTFILES: Replace module prefs_dialog by about_dlg. * po/de.po: Updating german translation. 2007-07-10 Jan-Oliver Wagner Activate the src/gui/ source tree. Initially, this is done for the about dialog module. * nessus/prefs_dialog/prefs_about.c: Removed. Replaced by src/gui/about_dlg.c. * nessus/prefs_dialog/prefs_about.h: Removed. Replaced by src/gui/about_dlg.h. * nessus/Makefile: removed module prefs_about. Added new target "gui" and some handling for it (GUI_OBJS). Added module "about_dlg" which is now located under src/gui and build via target "gui". * nessus/prefs_dialog/prefs_dialog.c: Replace prefs_about by about_dlg. * nessus/xpm/logo_intevation.xpm: Removed. Now in src/gui/xpm/ * nessus/xpm/logo_bsi_de.xpm: Removed. Now in src/gui/xpm/ * nessus/xpm/OpenVAS-logo.xpm: Removed. Now in src/gui/xpm/ * nessus/xpm/logo_bsi.xpm: Removed. Now in src/gui/xpm/ * nessus/xpm/NessusClient.xpm: Removed. Not needed anymore. 2007-07-10 Jan-Oliver Wagner Introduce new directory "src/" which will contain only clean stuff in terms of license and copyright. It is initially filled with one sample module. * src/: New. Directory to contain all new source modules and anything that is cleanly GPLv2 or any later version and copyright by SPI. * src/README: New. Explain what should be in this directory. * src/gui/: New. Directory to contain GUI modules. * src/gui/Makefile: New. Build instructions for GUI modules. * src/gui/about_dlg.c: New. Former nessus/prefs_dialog/prefs_about.c but with new header (Intevation transfers copyright to SPI) and renamed main function prefs_dialog_about to about_dialog. * src/gui/about_dlg.h: New. Former nessus/prefs_dialog/prefs_about.h but with new header (Intevation transfers copyright to SPI) and renamed main function prefs_dialog_about to about_dialog. * src/xpm/: New. Directory to contain XPMs used by modules under src/. * src/xpm/logo_bsi.xpm: New. Former nessus/xpm/logo_bsi.xpm. * src/xpm/logo_intevation.xpm: New. Former nessus/xpm/logo_intevation.xpm. * src/xpm/logo_bsi_de.xpm: New. Former nessus/xpm/logo_bsi_de.xpm. * src/xpm/OpenVAS-logo.xpm: New. Former nessus/xpm/OpenVAS-logo.xpm. 2007-07-09 Jan-Oliver Wagner * nessus/prefs_dialog/prefs_about.c, nessus/prefs_dialog/prefs_dialog.c: Added info on SPI as being copyright holder for new code since OpenVAS-Client. 2007-07-05 Jan-Oliver Wagner * nessus/preferences.c, nessus/pdf_output.c, nessus/plugin_cache.c, nessus/nessus.h: rename files and directory from ".nessus*" to ".openvas*" * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Set a default size for the main window (1000x630). 2007-07-05 Jan-Oliver Wagner And more renaming from NessusClient ot OpenVAS-Client. * nessus/OpenVAS-Client.desktop: Renamed from NessusClient to OpenVAS-Client. * openvasclient-mkcert.in, ssl/openvasclient-mkrand.c: Renamed from nessusclient to openvasclient. * po/Makefile: Renamed NessusClient to OpenVAS-Client. Changed email address for bugs to openvas-devel mailing list. * po/de.po, po/sv.po: Renamed NessusClient to OpenVAS-Client. 2007-07-05 Jan-Oliver Wagner Another series of name changes. Prevents name clash with installed NessusClient 1.x package. * configure.in: Renamed nessusclient-mkcert to openvasclient-mkcert. * configure: updated. * Makefile: Renamed nessusclient-mkcert to openvasclient-mkcert. Renamed nessusclient-mkrand to openvasclient-mkrand. * nessusclient-mkcert.in: Renamed to openvasclient-mkcert.in. * openvasclient-mkcert.in: New. Former nessusclient-mkcert.in. * ssl/nessusclient-mkrand.c: Renamed to openvasclient-mkrand.c * ssl/openvasclient-mkrand.c: New. Former nessusclient-mkrand.c. * ssl/Makefile: Renamed nessusclient-mkrand to openvasclient-mkrand. * doc/nessusclient-mkcert.1: Renamed to openvasclient-mkcert.1. * doc/openvasclient-mkcert.1: New. Former nessusclient-mkcert.1. * doc/nessusclient-mkrand.1: Renamed to openvasclient-mkrand.1. * doc/openvasclient-mkrand.1: New. Former nessusclient-mkrand.1. 2007-07-05 Jan-Oliver Wagner Removed reference to Tenable in GUI on request by Renaud Deraison. * nessus/xpm/logo_tenable.xpm: Removed. * Makefile (prefs_about.o): Fixed dependencies concerning xpm's. * nessus/prefs_dialog/prefs_about.c: Removed reference to Tenable in about dialog. 2007-07-05 Jan-Oliver Wagner Another bunch of renaming NessusClient to OpenVAS-Client. * nessus/xpm/OpenVAS-logo.xpm: New. The OpenVAS logo as a small xpm. * nessus/xpm/nessus.xpm: Removed. * nessus/prefs_dialog/prefs_about.c (prefs_dialog_about): Exchanged Nessus Logo/URL by OpenVAS logo/URL. Added license info. Removed URL to mailing list. * doc/man/nessus-logo.png: Removed. * doc/man/OpenVAS-logo.png: New. * doc/man/users-manual.lyx, doc/man/users-manual-de.lyx: Changed NessusClient to OpenVAS-Client (plain search and replace) and added a hint on the renaming situation. Replaced Logo. 2007-07-05 Jan-Oliver Wagner Introducing an improved scan progress dialog for GTK >= 2.6. * nessus/monitor_dialog.c (stop_toggled): New. Stop a scan if toggled off. * nessus/monitor_dialog.c (monitor_dialog_setup): default window size smaller for new style of dialog. Set up new style of dialog now with a TreeView Widget and full MVC (Model-View-Controller) concept. * nessus/monitor_dialog.c (monitor_list_update, monitor_remove_host, monitor_add_host): Consider new style of dialog (TreeView and MVC). 2007-07-05 Jan-Oliver Wagner First bunch of renaming. * ChangeLog: New. Starting to explicity log changes. * README: New. Explain the history in short. * VERSION: Set back to 0.9.0 as OpenVAS-Client starts anew. * Makefile, configure.in, nessus.tmpl.in, nessus/Makefile, nessus/preferences.c, nessus/prefs_dialog/prefs_about.c, nessus/prefs_dialog/prefs_dialog.c: Renaming NessusClient to OpenVAS-Client. * configure: updated (now created on vanilla Debian Etch 4.0) * doc/NessusClient.1.in: Renamed to OpenVAS-Client.1.in * doc/OpenVAS-Client.1.in: New. Former NessusClient.1.in * nessus/NessusClient.desktop: Renamed to OpenVAS-Client.desktop. * nessus/OpenVAS-Client.desktop: New. Former NessusClient.desktop. openvas-client-2.0.5/CHANGES0000664002347300234730000005153511240737045014472 0ustar felixfelixopenvas-client 2.0.5 (2009-08-13) This is the fifth maintenance release of the openvas-client module for the Open Vulnerability Assessment System (OpenVAS) 2.0-series. It fixes some issues discovered after the release of openvas-client 2.0.4 and adds some requested features. The main changes affect report conversion with the command line version of the client. It now respects severity overrides from the file ".openvas/severity_overrides.xml" which can be edited through the graphical user interface or by hand. At the same time, the severity filter now supports pattern matching. Main changes since 2.0.4: * A global timeout for NVTs can be defined from within the  "Plugins" section of the GUI. * The Severity Overrides Manager allows simple pattern  definitions (? and *) in the "port" and "host" fields of  a severity override. * When reports are converted using the command line version,  e.g. with  OpenVAS-Client --in-report report.nbe --out-report report.html  the user-defined severity overrides can be applied by adding the  --convert-filtered, or -F flag, except for pdf and nbe file formats.  Information about applied overrides is then included in the report. * Improved HTML report export, as a memory leak was fixed and the resulting  document is now again valid HTML. * A bug was fixed that caused XML reports generated from the CLI to  not include the NVT and Scanner list as the GUI does  (http:/bugs.openvas.org/1036). * Report conversion to HTML format has been improved:  - User-defined False Positives can be hidden with the    --convert-drop-fp, or -D flag.  - Otherwise empty sections of the report can be hidden with the    --convert-drop-no-info, or -N flag. * A bug in the LaTeX document generation that lead to invalid  documents has been fixed. * The openvas-ssh-client-rpm-generator.sh now gets installed in  $(PREFIX)/share/openvas/.  (closing bug http://bugs.openvas.org/1072). * The German translation has been updated. Many thanks to everyone who contributed to this release: Stephan Kleine, Jan Wagner, Jan-Oliver Wagner, Michael Wiegand and Felix Wolfsteller. openvas-client 2.0.4 (2009-06-05) This is the fourth maintenance release of the openvas-client module for the Open Vulnerability Assessment System (OpenVAS) 2.0-series. It fixes some issues discovered after the release of openvas-client 2.0.3. Code audit continued and a number of obsolete, unused and/or unnecessary functions were identified and removed. Main changes since 2.0.3: * The message display in the lower part of the GUI now includes timestamps for messages. * The progress bar showing the scan progress now works correctly. * The German translation has been updated. * The Credentials Manager for Local Security Checks has been improved and is now able to create packages which add users to remote system (currently the following platforms are supported: RPM based distributions, Debian based distributions and Microsoft Windows). * Debian packaging has been updated. Many thanks to everyone who contributed to this release: Jan Wagner, Jan-Oliver Wagner, Michael Wiegand and Felix Wolfsteller. openvas-client 2.0.3 (2009-04-02) This is the third maintenance release of the openvas-client module for the Open Vulnerability Assessment System (OpenVAS) 2.0-series. It fixes some issues discovered after the release of openvas-client 2.0.2 and introduces the new "Severity Override" Feature. This feature allows for example to maintain a list of false positives and apply it to subsequent scans. This works like a filter and thus the actual scan results remain untouched and can at any time be recovered. Code audit continued and a number of obsolete, unused and/or unnecessary functions were identified and removed. Effects when installing this version: * The version requirement for the GTK+ library has been raised from 2.4 to 2.6 to make sure all GTK+ functions used by OpenVAS-Client are indeed available. GTK+ 2.6 was released in December 2004, so all modern distributions should include at least this version. Main changes since 2.0.2: * A Severity Override Manager has been added, including right-mouse-button actions in the report to specific severity overrides easily. The original scan results will never be changed, so it is safe to test the severity overrides. * A new "Extras" menu has been added and collects all "managers": The LSC Credentials Manager, the Severity Override Manager and the SLAD Install Manager. * A bug which caused the client complain about missing files when starting a scan on a fresh installation has been fixed. * A bug which caused OpenVAS-Client not to be placed in the correct menu on certain distributions has been fixed (relevant for packagers). * OpenVAS-Client is now able to remember more than one server certificate. Many thanks to everyone who contributed to this release: Tim Brown, Laban Mwangi, Vlatko Kosturjak, Jan-Oliver Wagner, Michael Wiegand and Felix Wolfsteller. openvas-client 2.0.2 (2009-03-05) This is the second maintenance release of the openvas-client module for the Open Vulnerability Assessment System (OpenVAS) 2.0-series. It fixes some issues discovered after the release of openvas-client 2.0.1 and especially offers the further matured "OpenVAS LSC Credentials Manager" that can be used in conjunction with a new ssh_authorization.nasl which is available via the OpenVAS NVT Feed. If you are doing a lot of local security checks this might make your life easier. Thanks to the continuing audit of the code, a number of obsolete, unused and/or unnecessary functions were identified and removed. Effects when installing this version: * New default port of the server: Please be aware that openvas-server now listens on port 9390 by default since this port has recently been allocated by IANA for the Openvas Transport Protocol (OTP). This release of the client now uses the same default. * Option "Silent dependencies" is now "off" by default. Previously it was set to "on". If you didn't pay attention to this option in the past you might experience larger reports now. Main changes since 2.0.1: * The timeout-setting functionality has been made more robust. It has been moved to the plugin info dialog to make accessing this functionality easier. * A counter column for log messages has been added. * XML exports: A bug (http://bugs.openvas.org/867) which caused a corrupted protocol attribute during XML export when service names contained slashes has been fixed. This also fixes another bug which caused service names to show up in the protocol attribute. * A bug which prevented the display of signatures due to sometimes different "fingerprint" lengths has been fixed. * A bug which prevented the client from correctly determining certain server preference settings has been fixed. * Established automated source code documentation. HTML-Version is available under http://www.openvas.org/src-doc/openvas-client/current/index.html * Openvas-client now uses the IANA-assigned port 9390 for communication with the server. * A bug (http://bugs.openvas.org/858) which cause a segmentation fault when trying to list preferences or plugins on the command line without enabling batch mode has been fixed. * Support for improved management of SSH credentials has been added in accordance with Change Request #20 (http://www.openvas.org/openvas-cr-20.html) * The "Silent Dependencies" option now defaults to "no". Setting this option to "yes" causes possible error messages from NVTs executed as dependencies to not show up in client which is not desirable from a security viewpoint. Many thanks to everyone who has contributed to this release: Joey Schulze, Michael Wiegand and Felix Wolfsteller. openvas-client 2.0.1 (2008-12-19) This is the 2.0.1 release of OpenVAS-Client, a small maintenance release to fix an issue which caused the building of localized message files to fail. If you are using OpenVAS-Client 2.0.0 and would like to use OpenVAS-Client in a language other than English, we recommend that you update to 2.0.1. Many thanks to Stephan Kleine for spotting this issue. openvas-client 2.0.0 (2008-12-17) This is the 2.0.0 release of OpenVAS. If you have used the 2.0-beta1, -beta2 or -rc1 release, we recommend that you update all your OpenVAS modules (openvas-libraries, openvas-libnasl, openvas-server and openvas-client) to 2.0.0. If you are currently using the 1.0.x branch and want to evaluate OpenVAS 2.0.0, we recommend that you install 2.0.0 separately from your OpenVAS 1.0 installation. Instructions on how to do this are available from the OpenVAS website. Main changes since 2.0-rc1: * Code documentation has been improved. * Support for improved SSH credentials management has been added. * The build environment has been harmonized with the other OpenVAS components. Main changes since 1.0.4: * Support for the new script_tag command in NASL scripts has been added. * Support for displaying NVT signature information client in the GUI and in various reports has been added. * Report generation for PDF and HTML reports has been improved. * The German translation has been updated. * Command line parsing has been improved. * 64-bit compatibility has been considerably improved. * Initial Croatian language support has been added. * French language support has been added. * The Spanish translation has been updated. * Switch from Nessus plugin IDs to NVT OIDs * Switch from Nessus Transfer Protocol 1.2 to OpenVAS Transfer Protocol (OTP) 1.0. * A migration script to convert user data from IDs to OIDs has been added. * Support for new LOG and DEBUG messages has been added. * The automatic enabling of new NVTs can now be disabled. Many thanks to everyone who has contributed to this release: Tim Brown, Javier Fernandez-Sanguino, Stjepan Gros, Vlatko Kosturjak, Joey Schulze, Jan Wagner, Jan-Oliver Wagner, Michael Wiegand and Felix Wolfsteller. openvas-client 2.0-rc1 (2008-12-05) This release is the first release candidate for the upcoming 2.0 release of OpenVAS. Unless serious bugs are discovered, this release candidate will become the final OpenVAS 2.0 release. Users are encouraged to test this release and to report bugs to the OpenVAS bug tracker located at http://bugs.openvas.org/ . If you have used the 2.0-beta2 release, we recommend that you update all your OpenVAS modules (openvas-libraries, openvas-libnasl, openvas-server and openvas-client) to 2.0-rc1. If you are currently using the stable 1.0.x branch and want to take part in testing this release candidate, we recommend that you install 2.0-rc1 separately from your OpenVAS 1.0 installation. Instructions on how to do this are available from the OpenVAS website. Main changes since 2.0-beta2: * Support for the new script_tag command in NASL scripts has been added. * Support for displaying NVT signature information client in the GUI and in various reports has been considerably improved. * Report generation for PDF and HTML reports has been improved. * The German translation has been updated. * Code quality has been improved, a potential buffer overflow due to insufficient memory allocation has been fixed. * Debian packaging files have been updated. * Code documentation has been improved. * Command line parsing has been improved. * Minor bugfixes. * Code cleanups. Many thanks to everyone who has contributed to this release: Tim Brown, Joey Schulze, Felix Wolfsteller and Michael Wiegand. openvas-client 2.0-beta2 (2008-11-14) This release is the second beta version of the upcoming 2.0 release of OpenVAS. It contains improved 64-bit compatibility, support for displaying NVT signature information and various improvements. This release is intended to contain all features intended for the final OpenVAS 2.0 release. Users are encouraged to test this release and to report bugs to the OpenVAS bug tracker located at http://bugs.openvas.org/ . If you have used the 2.0-beta1 release, we recommend that you update all your OpenVAS modules (openvas-libraries, openvas-libnasl, openvas-server and openvas-client) to 2.0-beta2. If you are currently using the stable 1.0.x branch and want to take part in the beta phase for 2.0, we recommend that you install 2.0-beta2 separately from your OpenVAS 1.0 installation. Instructions on how to do this are available from the OpenVAS website. Main changes since 2.0-beta1: * 64-bit compatibility has been considerably improved. * Debian packaging files have been updated. * Support for displaying NVT signature information has been added. * The automatic enabling of new NVTs can now be disabled. * The obsolete openvas-check-signature tool has been removed. * Bugfixes. * Various code cleanups. Many thanks to everyone who has contributed to this release: Tim Brown, Stjepan Gros, Jan-Oliver Wagner, Michael Wiegand and Felix Wolfsteller. Release 2.0-beta1 (2008-09-25): --------------------------- This release is a first beta version of the upcoming 2.0 release of OpenVAS. It introduces support for the cleaned up and improved OpenVAS Transport Protocol (OTP, replacing NTP) and the new OpenVAS NVT OID scheme. In addition, this release contains updated packaging files, improves Croatian, French and Spanish language support and fixes a number of bugs. OpenVAS 2.0 will introduce a full set of new modules for OpenVAS Server (openvas-libraries, openvas-libnasl and openvas-server) and a new OpenVAS-Client. The only module OpenVAS 1.0 and OpenVAS 2.0 will share is openvas-plugins. This means that the OpenVAS NVT Feed is compatible with both generations of OpenVAS. However, in case you plan to try out the new generation of OpenVAS, you should install it separately from OpenVAS 1.0 installation. Instructions on how to do this will be added to the OpenVAS homepage after all relevant modules are released as 2.0-beta1. A separate announcement will officially start the beta testing phase for OpenVAS 2.0. Main changes since 1.0.4: * Improved SuSE support. * A bug that prevented the client from running in quiet mode without the DISPLAY environment variable being set has been fixed. * A bug that resulted in a crash during XML export has been fixed. * Updated packaging files for Debian. * Initial Croatian language support has been added. * French language support has been added. * The Spanish translation has been updated. * Pie chart generation now uses (and needs) system libraries instead of outdated copies in the OpenVAS source code. * Switch from Nessus plugin IDs to NVT OIDs (internal change, also applies to OTP) * Switch from Nessus Transport Protocol 1.2 to OpenVAS Transport Protocol (OTP) 1.0. * A bug the resulted in a crash during scanning under certain circumstances has been fixed. * A migration script to convert user data from IDs to OIDs has been added. * Support for new LOG and DEBUG messages has been added. Many thanks to everyone who has contributed to this release: Tim Brown, Javier Fernandez-Sanguino, Vlatko Kosturjak, Jan Wagner, Jan-Oliver Wagner and Michael Wiegand Release 1.0.4 (2008-06-27): --------------------------- Consolidation release. Various cleanups and bug fixes are included in this release. Most obvious is the simplified connection dialog. Also, some changes to be compatible with future Server updates are already integrated (OTP, OIDs). Main changes since 1.0.3: * new: Reports now show the name and OID of the NVT together with it's results. * new: Support for the upcoming OpenVAS Transport Protocol (OTP) has been introduced into OpenVAS-Client. * improved: Command line parsing has been completely reworked. * fixed: Fixed issues with credential preferences showing up incorrectly in the preferences dialog. * fixed: Fixed a bug that could result in filename corruption or segmentation faults when exporting a report from the OpenVAS-Client GUI. * fixed: Fixed issues that prevented OpenVAS-Client from compiling without GTK support. It is now possible to compile OpenVAS-Client without GUI support if desired. * fixed: Fixed a bug in report conversion that resulted in incorrect memory allocation on certain 64bit installations. * fixed: Fixed a bug that resulted in a segmentation fault when connecting to the server while using an alternate configuration file. * fixed: Fixed a bug that resulted in a segmentation fault when the user supplied an inconclusive filename for the results file in batch mode. * fixed: Fixed a bug that resulted in a segmentation fault when running in batch mode with a non-existent targets file and the html_graph output type. * removed: Support for unencrypted connections has been removed from OpenVAS-Client since unencrypted connections to the server were no longer possible since OpenVAS-Server 0.9.0. * removed: Support for saving reports in the legacy XML format was removed as this format has already been superseded by a new XML format and was marked as deprecated. Release 1.0.3 (2008-04-04): --------------------------- Small improvements release. Main changes since 1.0.2: * fixed: The default external links for HTML/PDF reports now not anymore link to nessus.org but to securityfocus.com (BID), mitre.org (CVE) and openvas.org (OpenVAS ID). You will also note that the OpenVAS Change Request #1 http://www.openvas.org/openvas-cr-1.html has been considered in the OpenVAS ID default URL as it uses the convenience URL for the new OID concept. The URLs will get active in the near future. * fixed: better localization of PDF reports. * fixed: in case caching was switched off and connection to server established, seg-fault crashes occured with the previous version. * new: Expands/Collapses tree-list widgets upon left/right arrow keys. * fixed: various links in the reports now direct to OpenVAS, not Nessus. * new: configurable sort order for reports (host/port/severity or port/host/severity). * removed: any support for NSR (the old Nessus report format), according the OpenVAS Change Request #2: http://www.openvas.org/openvas-cr-2.html * removed: any documentation about the Nessus Transfer Protocol as it was redundant with the documentation in openvas-server where it belongs to. * update: of Debian packaging files. * code-cleanups: various unused variables and compiler warnings resolved. Release 1.0.2 (2007-12-18): --------------------------- Only Debian packaging and license/copyright clearifications release. These changes result from the Debian policy QA process for uptake of OpenVAS-Client into Debian GNU/Linux. They do not change the actual software at all. Main changes since 1.0.1: * Added debian packaging files under packagig/debian. * Made copyright and licensing information more explicit. Release 1.0.1 (2007-10-23): --------------------------- Minor fixes release. Main changes since 1.0.0: * Removed non-free text files (README_SSL, doc/WARNING.En, doc/WARNING.Fr) * Now temporary files are prefixed with "openvas" instead of "nessus" which should better avoid conflicts for parallel use of OpenVAS-Client and Nessus-Client. * Minor code cleanups. Release 1.0.0 (2007-09-18): --------------------------- After some 0.9 releases this is finally the intial 1.0 release of OpenVAS-Client. OpenVAS-Client is a successor of NessusClient 1.X. The fork happened with NessusClient CVS HEAD 20070704. The reason was that the original author of NessusClient decided to stop active development for this (GTK-based) NessusClient in favour of a newly written QT-based version released as proprietary software. Compared to the NessusClient 1.X release, various new features have been added, especially caching mechanisms to increase transparency and increase plugin load speed. Additionally some visual improvements have been implemented. The following additional languages are supported: german, spanish, swedish and hebrew. Main changes since 0.9.1: * New language: spanish. * New language: hebrew. * Various code cleanups. * Various string fixes. * Added some scripts to support W32 installer packaging. Release 0.9.1 (2007-07-31): --------------------------- This is a cleanup and minor improvements release. Main changes since 0.9.0: * Removed users manual which now forms a package of its own ("openvas-manual"). * Decreased memory consumption considerably for the case when looking into many different reports with more or less the same plugins. * Added menu entry to execute "sladinstaller" GUI. SLAD is the Security Local Auditing Daemon which comes with some NASL scripts and thus can now be fully managed through OpenVAS-Client. * Updated german translation. Release 0.9.0 (2007-07-19): --------------------------- This is the first release of OpenVAS-Client. OpenVAS-Client is a successor of NessusClient 1.X. The fork happened with NessusClient CVS HEAD 20070704. The reason was that the original authors of NessusClient decided to stop active development for this (GTK-based) NessusClient in favour of a newly written QT-based version released as proprietary software. Compared to the NessusClient 1.X release, various new features have been added, especially caching mechanisms to increase transparency and increase plugin load speed. Additionally some visual improvements have been implemented. openvas-client-2.0.5/config.guess0000775002347300234730000012626011237000207016002 0ustar felixfelix#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-07-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[3456]*) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T:Interix*:[3456]*) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: openvas-client-2.0.5/config.sub0000775002347300234730000007730011237000207015445 0ustar felixfelix#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-07-02' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: openvas-client-2.0.5/configure0000775002347300234730000127067611237000207015405 0ustar felixfelix#! /bin/sh # From configure.in Revision: 1.9 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file=".root-dir" ac_default_prefix="/usr/local" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB CPP GREP EGREP PKG_CONFIG GLIB_CFLAGS GLIB_LIBS LIBOPENVASCONFIG ALLOCA XMKMF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTKCONFIG_CFLAGS GTKCONFIG_LIBS AR PWD PWDD CWALL GTK_VERSION OPENVASCLIENT_MAJOR OPENVASCLIENT_MINOR OPENVASCLIENT_PATCH OPENVASCLIENT_RC NESSUS_DATE NESS_COMPILER NESS_OS_NAME NESS_OS_VERSION INSTALL_DIR INSTALL RUN_LIBS resolv_lib socket_lib nsl_lib ssl_lib gtk_flags debug_flags nessus_lib man_nessus_1 dl_lib gdc_lib client client_install LIBOPENVAS_CFLAGS LIBOPENVAS_LIBS ac_configure_args ssl sslcflags installuser gettext_flags LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG GLIB_CFLAGS GLIB_LIBS XMKMF GTKCONFIG_CFLAGS GTKCONFIG_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-release set the compiler flags to -O6 --enable-debug set the compiler flags to -g --enable-gtk build with GTK --enable-internal-regex use internal regex Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-ssl=DIR enable SSL support using libraries in DIR --with-x use the X Window System Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config GLIB_LIBS linker flags for GLIB, overriding pkg-config XMKMF Path to xmkmf, Makefile generator for X Window System GTKCONFIG_CFLAGS C compiler flags for GTKCONFIG, overriding pkg-config GTKCONFIG_LIBS linker flags for GTKCONFIG, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu save_IFS="${IFS}" IFS=. read OPENVASCLIENT_MAJOR OPENVASCLIENT_MINOR OPENVASCLIENT_PATCH OPENVASCLIENT_RC /dev/null || { { echo "$as_me:$LINENO: error: *** Panic: Corrupt version file" >&5 echo "$as_me: error: *** Panic: Corrupt version file" >&2;} { (exit 1); exit 1; }; } test "x$prefix" != "xNONE" || prefix=/usr/local ac_config_headers="$ac_config_headers include/config.h" ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi INSTALL_DIR="$INSTALL -d" test -n "$GCC" && CWALL="-Wall" test "x$enable_language" = x && enable_language="english" test "x$enable_gtk" = "x" && enable_gtk="yes" test "x$enable_client" = "x" && enable_client="yes" case "${host}" in *-mingw32*) CFLAGS="$CFLAGS -mms-bitfields" LDFLAGS="$LDFLAGS -mwindows" ;; esac nessus_lib=-lnessus XPATH="$DESTDIR$prefix/bin:$PATH" # Check whether --enable-release was given. if test "${enable_release+set}" = set; then enableval=$enable_release; CFLAGS="-O6" fi # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then enableval=$enable_debug; CFLAGS="-g"; debug_flags="-DDEBUG" fi # Check whether --enable-gtk was given. if test "${enable_gtk+set}" = set; then enableval=$enable_gtk; test "$enable_gtk" = "yes" && gtk_flags="-DUSE_GTK" && cat >>confdefs.h <<\_ACEOF #define USE_GTK 1 _ACEOF fi ### use option --with-ssl to compile in the SSL support ssl="" sslcflags="" # Check whether --with-ssl was given. if test "${with_ssl+set}" = set; then withval=$with_ssl; with_ssl=$withval fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in gdc.h gd.h png.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "$ac_cv_header_gdc_h" = "yes" && test "$ac_cv_header_gd_h" = "yes" && test "$ac_cv_header_png_h" = "yes"; then gdc_lib="-lgd -lpng -lgdc" cat >>confdefs.h <<\_ACEOF #define HAVE_LIBFREETYPE 1 _ACEOF else cat >>confdefs.h <<\_ACEOF #define NO_GDCHART 1 _ACEOF fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for GLIB" >&5 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6.0\"") >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GLIB_LIBS"; then pkg_cv_GLIB_LIBS="$GLIB_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6.0\"") >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.6.0"` else GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.6.0"` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } { { echo "$as_me:$LINENO: error: \"glib >= 2.6.0 not found\"" >&5 echo "$as_me: error: \"glib >= 2.6.0 not found\"" >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: \"glib >= 2.6.0 not found\"" >&5 echo "$as_me: error: \"glib >= 2.6.0 not found\"" >&2;} { (exit 1); exit 1; }; } else GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS GLIB_LIBS=$pkg_cv_GLIB_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_GLIB="yes" fi NEED_OPENVASLIBS_VERSION=2.0.3 # Extract the first word of "libopenvas-config", so it can be a program name with args. set dummy libopenvas-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_LIBOPENVASCONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $LIBOPENVASCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_LIBOPENVASCONFIG="$LIBOPENVASCONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_LIBOPENVASCONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi LIBOPENVASCONFIG=$ac_cv_path_LIBOPENVASCONFIG if test -n "$LIBOPENVASCONFIG"; then { echo "$as_me:$LINENO: result: $LIBOPENVASCONFIG" >&5 echo "${ECHO_T}$LIBOPENVASCONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$LIBOPENVASCONFIG" = "x"; then { echo "$as_me:$LINENO: WARNING: \"Could not find $LIBOPENVASCONFIG!" >&5 echo "$as_me: WARNING: \"Could not find $LIBOPENVASCONFIG!" >&2;} else OPENVASLIBS_VERSION=`$LIBOPENVASCONFIG --version` OPENVASLIBS_MAJOR=`echo $OPENVASLIBS_VERSION | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` OPENVASLIBS_MINOR=`echo $OPENVASLIBS_VERSION | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` OPENVASLIBS_PATCH=`echo $OPENVASLIBS_VERSION | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` REQ_OPENVASLIBS_MAJOR=`echo $NEED_OPENVASLIBS_VERSION | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` REQ_OPENVASLIBS_MINOR=`echo $NEED_OPENVASLIBS_VERSION | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` REQ_OPENVASLIBS_PATCH=`echo $NEED_OPENVASLIBS_VERSION | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` ok=no if test "$OPENVASLIBS_MAJOR" -gt "$REQ_OPENVASLIBS_MAJOR"; then ok=yes else if test "$OPENVASLIBS_MAJOR" -eq "$REQ_OPENVASLIBS_MAJOR"; then if test "$OPENVASLIBS_MINOR" -gt "$REQ_OPENVASLIBS_MINOR"; then ok=yes else if test "$OPENVASLIBS_MINOR" -eq "$REQ_OPENVASLIBS_MINOR"; then if test "$OPENVASLIBS_PATCH" -ge "$REQ_OPENVASLIBS_PATCH"; then ok=yes fi fi fi fi fi if test $ok = no; then { echo "$as_me:$LINENO: WARNING: \"openvas-libraries $OPENVASLIBS_VERSION too old.\" \"Minimum required is $NEED_OPENVASLIBS_VERSION .\" \"You will not be able to compile the OMP cli.\" " >&5 echo "$as_me: WARNING: \"openvas-libraries $OPENVASLIBS_VERSION too old.\" \"Minimum required is $NEED_OPENVASLIBS_VERSION .\" \"You will not be able to compile the OMP cli.\" " >&2;} else LIBOPENVAS_LIBS=`$LIBOPENVASCONFIG --libs` LIBOPENVAS_CFLAGS=`$LIBOPENVASCONFIG --cflags` fi fi saveCFLAGS="$CFLAGS" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } if test "${ac_cv_header_sys_wait_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_sys_wait_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_SYS_WAIT_H 1 _ACEOF fi { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } if test "${ac_cv_header_time+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_time=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 echo "${ECHO_T}$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then cat >>confdefs.h <<\_ACEOF #define TIME_WITH_SYS_TIME 1 _ACEOF fi ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { echo "$as_me:$LINENO: checking for library containing opendir" >&5 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } if test "${ac_cv_search_opendir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_opendir=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_opendir+set}" = set; then break fi done if test "${ac_cv_search_opendir+set}" = set; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { echo "$as_me:$LINENO: checking for library containing opendir" >&5 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } if test "${ac_cv_search_opendir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_opendir=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_opendir+set}" = set; then break fi done if test "${ac_cv_search_opendir+set}" = set; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi for ac_header in unistd.h string.h strings.h sys/sockio.h sys/socketio.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/param.h netinet/tcpip.h netinet/in_systm.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in netinet/ip_udp.h netinet/protocols.h sys/ioctl.h netinet/ip_icmp.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in rpc/rpc.h netinet/udp.h dlfcn.h sys/un.h memory.h ctype.h errno.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/types.h stdlib.h stdio.h sys/filio.h pwd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in assert.h netdb.h netinet/in.h arpa/inet.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in poll.h sys/poll.h netinet/ip_tcp.h fcntl.h signal.h limits.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/stat.h stat.h net/if.h sys/mman.h sys/resource.h dl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in pty.h termio.h termios.h sgtty.h libutil.h setjmp.h values.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in locale.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done case "$host" in *-irix*) cat >>confdefs.h <<\_ACEOF #define HAVE_SYS_SOCKET_H 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_NETINET_IP_H 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_NETINET_TCP_H 1 _ACEOF ;; *) for ac_header in sys/socket.h netinet/ip.h netinet/tcp.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ;; esac # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { echo "$as_me:$LINENO: checking for working alloca.h" >&5 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } if test "${ac_cv_working_alloca_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_working_alloca_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ALLOCA_H 1 _ACEOF fi { echo "$as_me:$LINENO: checking for alloca" >&5 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } if test "${ac_cv_func_alloca_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_alloca_works=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ALLOCA 1 _ACEOF else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext cat >>confdefs.h <<\_ACEOF #define C_ALLOCA 1 _ACEOF { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } if test "${ac_cv_os_cray+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 echo "${ECHO_T}$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } if test "${ac_cv_c_stack_direction+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int find_stack_direction () { static char *addr = 0; auto char dummy; if (addr == 0) { addr = &dummy; return find_stack_direction (); } else return (&dummy > addr) ? 1 : -1; } int main () { return find_stack_direction () < 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_stack_direction=1 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi { echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5 echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6; } if test "${ac_cv_func_wait3_rusage+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_wait3_rusage=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include #include #include /* HP-UX has wait3 but does not fill in rusage at all. */ int main () { struct rusage r; int i; /* Use a field that we can force nonzero -- voluntary context switches. For systems like NeXT and OSF/1 that don't set it, also use the system CPU time. And page faults (I/O) for Linux. */ r.ru_nvcsw = 0; r.ru_stime.tv_sec = 0; r.ru_stime.tv_usec = 0; r.ru_majflt = r.ru_minflt = 0; switch (fork ()) { case 0: /* Child. */ sleep(1); /* Give up the CPU. */ _exit(0); break; case -1: /* What can we do? */ _exit(0); break; default: /* Parent. */ wait3(&i, 0, &r); /* Avoid "text file busy" from rm on fast HP-UX machines. */ sleep(2); return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); } } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_wait3_rusage=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_wait3_rusage=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5 echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6; } if test $ac_cv_func_wait3_rusage = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_WAIT3 1 _ACEOF fi for ac_func in waitpid wait4 mmap atexit do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in lstat memmove gettimeofday gethrtime getrusage rand do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in strchr memcpy select poll do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for vsnprintf" >&5 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; } if test "${ac_cv_func_vsnprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define vsnprintf to an innocuous variant, in case declares vsnprintf. For example, HP-UX 11i declares gettimeofday. */ #define vsnprintf innocuous_vsnprintf /* System header to define __stub macros and hopefully few prototypes, which can conflict with char vsnprintf (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef vsnprintf /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char vsnprintf (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_vsnprintf || defined __stub___vsnprintf choke me #endif int main () { return vsnprintf (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_vsnprintf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_vsnprintf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; } if test $ac_cv_func_vsnprintf = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_VSNPRINTF 1 _ACEOF fi for ac_func in bzero bcopy setsid rint mkstemp do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in addr2ascii inet_neta setproctitle _exit do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for unsigned int" >&5 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_unsigned_int=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_int=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of unsigned int" >&5 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; } if test "${ac_cv_sizeof_unsigned_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_unsigned_int=$ac_lo;; '') if test "$ac_cv_type_unsigned_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_int=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_int=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_unsigned_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_int=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int _ACEOF { echo "$as_me:$LINENO: checking for unsigned long" >&5 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_unsigned_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_long=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of unsigned long" >&5 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; } if test "${ac_cv_sizeof_unsigned_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_unsigned_long=$ac_lo;; '') if test "$ac_cv_type_unsigned_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_long=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_long=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_unsigned_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_long=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long _ACEOF { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } if test "${ac_cv_c_bigendian+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # See if sys/param.h defines the BYTE_ORDER macro. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then # It does; now see whether it defined to BIG_ENDIAN or not. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_bigendian=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # It does not; compile a test program. if test "$cross_compiling" = yes; then # try to guess the endianness by grepping values into an object file ac_cv_c_bigendian=unknown cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } int main () { _ascii (); _ebcdic (); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_bigendian=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in yes) cat >>confdefs.h <<\_ACEOF #define WORDS_BIGENDIAN 1 _ACEOF ;; no) ;; *) { { echo "$as_me:$LINENO: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" >&5 echo "$as_me: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} { (exit 1); exit 1; }; } ;; esac { echo "$as_me:$LINENO: checking for time_t" >&5 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } if test "${ac_cv_type_time_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef time_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_time_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_time_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 echo "${ECHO_T}$ac_cv_type_time_t" >&6; } if test $ac_cv_type_time_t = yes; then : else cat >>confdefs.h <<_ACEOF #define time_t int _ACEOF fi { echo "$as_me:$LINENO: checking for pid_t" >&5 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } if test "${ac_cv_type_pid_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef pid_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_pid_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_pid_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } if test $ac_cv_type_pid_t = yes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi { echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef size_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } if test "${ac_cv_type_uid_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "uid_t" >/dev/null 2>&1; then ac_cv_type_uid_t=yes else ac_cv_type_uid_t=no fi rm -f conftest* fi { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } if test $ac_cv_type_uid_t = no; then cat >>confdefs.h <<\_ACEOF #define uid_t int _ACEOF cat >>confdefs.h <<\_ACEOF #define gid_t int _ACEOF fi test "$with_ssl" = "yes" && forcessl="yes" if test "$with_ssl" = "yes" -o -z "$with_ssl" then # He didn't specify an SSL location. Let's look at some common # directories where SSL has been found in the past and try and auto # configure for SSL. OpenSSL determination will be made later. # This will screw up if an OpenSSL install is located in a later # directory than an older SSLeay install, but the user should fix that # anyways and he can override on the configure line. with_ssl="" for ac_dir in \ /usr/local/ssl \ /usr/ssl \ /local/ssl \ /opt/ssl \ /usr/freeware \ ; \ do if test -d "$ac_dir" ; then with_ssl=$ac_dir break; fi done test -z "$with_ssl" && { for ac_dir in \ /usr \ /usr/local \ /sw \ ; \ do if test -r "$ac_dir/include/openssl/ssl.h" ; then with_ssl=$ac_dir break; fi done } fi if test -n "$with_ssl" -a "$with_ssl" != "no" then { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then withdl="-ldl" fi # With the autoconfigure above, the only time this is going to be # true is going to be when we could not find the headers. If they # are not in system standard locations, we are going to be broken. if test "$with_ssl" = "yes" then # Let's just define the standard location for the SSLeay root with_ssl="/usr/local/ssl" fi if test -r $with_ssl/include/openssl/ssl.h then ### ssl.h found under openssl. Use openssl configuration preferentially echo "Enabling OpenSSL support in $with_ssl" if test "$with_ssl" = "/usr"; then CEFLAGS="$CEFLAGS -I$with_ssl/include/openssl" sslcflags="-I$with_ssl/include/openssl" else CEFLAGS="$CEFLAGS -I$with_ssl/include -I$with_ssl/include/openssl" sslcflags="-I$with_ssl/include -I$with_ssl/include/openssl" fi ### OpenBSD comes with ssl headers elif test -r /usr/include/ssl/ssl.h then echo "Enabling SSLeay support in $with_ssl" sslcflags="-I/usr/include/ssl" else echo "Enabling SSLeay support in $with_ssl" sslcflags="-I$with_ssl/include" fi if test `uname` = "IRIX" -a "$with_ssl" = "/usr/freeware" ; then ssl="-L$with_ssl/lib32 -lssl -lcrypto $withdl" else ssl="-L$with_ssl/lib -lssl -lcrypto $withdl" fi else with_ssl="" { { echo "$as_me:$LINENO: error: Could not find OpenSSL and OpenSSL headers on your system" >&5 echo "$as_me: error: Could not find OpenSSL and OpenSSL headers on your system" >&2;} { (exit 1); exit 1; }; } fi test -n "$with_ssl" && { test "x$use_cipher" = "xyes" -o -z "$use_cipher" } test -n "$forcessl" -a -z "$with_ssl" && { { echo "$as_me:$LINENO: error: \"OpenSSL not found\"" >&5 echo "$as_me: error: \"OpenSSL not found\"" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking for struct timeval" >&5 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef TIME_WITH_SYS_TIME #include #include #else #ifdef HAVE_SYS_TIME_H #include #else #include #endif #endif int main () { static struct timeval x; x.tv_sec = x.tv_usec; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_TIMEVAL=yes cat >>confdefs.h <<\_ACEOF #define HAVE_TIMEVAL 1 _ACEOF else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } HAVE_TIMEVAL=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "x$HAVE_TIMEVAL" = xyes; then { echo "$as_me:$LINENO: checking whether gettimeofday can't accept two arguments" >&5 echo $ECHO_N "checking whether gettimeofday can't accept two arguments... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef TIME_WITH_SYS_TIME #include #include #else #ifdef HAVE_SYS_TIME_H #include #else #include #endif #endif int main () { struct timeval time; struct timezone dummy; gettimeofday (&time, &dummy); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GETTIMEOFDAY_ONE_ARGUMENT 1 _ACEOF fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi USE_INTERNAL_REGEX=maybe # Check whether --enable-internal-regex was given. if test "${enable_internal_regex+set}" = set; then enableval=$enable_internal_regex; USE_INTERNAL_REGEX=yes fi test -z "$BROKEN_REGEXP" -a "x$USE_INTERNAL_REGEX" = "xmaybe" && { BROKEN_REGEXP="" # # RedHat 8.0 ships with a broken regexp library (Nessus bug#90) # test -f /etc/redhat-release && { cat /etc/redhat-release | egrep "(8\.0|9)" >/dev/null && BROKEN_REGEXP=y } test -z "$BROKEN_REGEXP" && { { echo "$as_me:$LINENO: checking for a working regexp implementation" >&5 echo $ECHO_N "checking for a working regexp implementation... $ECHO_C" >&6; } if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main() { char fastmap[1 << 8]; struct re_pattern_buffer pb; struct re_registers regs; pb.allocated = 8; pb.buffer = malloc(8); pb.fastmap = fastmap; pb.translate = 0; re_set_syntax(RE_SYNTAX_POSIX_EGREP); re_compile_pattern(".*nessus.*", strlen(".*nessus.*"), &pb); re_compile_fastmap(&pb); return re_search(&pb, "i use nessus everyday", strlen("i use nessus everyday"), 0, strlen("i use nessus everyday"), ®s); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; };USE_INTERNAL_REGEX=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; };USE_INTERNAL_REGEX=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi } } test "x$USE_INTERNAL_REGEX" = "xno" && { cat >>confdefs.h <<\_ACEOF #define HAVE_REGEX_SUPPORT 1 _ACEOF } { echo "$as_me:$LINENO: checking GNU gettext available" >&5 echo $ECHO_N "checking GNU gettext available... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings; } ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF #define HAVE_GNU_GETTEXT 1 _ACEOF gettext_flags="-DHAVE_GNU_GETTEXT" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: checking for X" >&5 echo $ECHO_N "checking for X... $ECHO_C" >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 echo "$as_me: error: Cannot use X directory names containing '" >&2;} { (exit 1); exit 1; }; };; #( *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # We can compile using X headers with no special include directory. ac_x_includes= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS=$ac_save_LIBS for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { echo "$as_me:$LINENO: result: $have_x" >&5 echo "${ECHO_T}$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. cat >>confdefs.h <<\_ACEOF #define X_DISPLAY_MISSING 1 _ACEOF X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS="$ac_xsave_LIBS -R $x_libraries" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: neither works" >&5 echo "${ECHO_T}neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dnet_dnet_ntoa=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test $ac_cv_lib_dnet_dnet_ntoa = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dnet_stub_dnet_ntoa=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. { echo "$as_me:$LINENO: checking for gethostbyname" >&5 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } if test "${ac_cv_func_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define gethostbyname to an innocuous variant, in case declares gethostbyname. For example, HP-UX 11i declares gettimeofday. */ #define gethostbyname innocuous_gethostbyname /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gethostbyname (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef gethostbyname /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_gethostbyname || defined __stub___gethostbyname choke me #endif int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } if test $ac_cv_func_gethostbyname = no; then { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_nsl_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } if test $ac_cv_lib_nsl_gethostbyname = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_bsd_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } if test $ac_cv_lib_bsd_gethostbyname = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. { echo "$as_me:$LINENO: checking for connect" >&5 echo $ECHO_N "checking for connect... $ECHO_C" >&6; } if test "${ac_cv_func_connect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define connect to an innocuous variant, in case declares connect. For example, HP-UX 11i declares gettimeofday. */ #define connect innocuous_connect /* System header to define __stub macros and hopefully few prototypes, which can conflict with char connect (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef connect /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_connect || defined __stub___connect choke me #endif int main () { return connect (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_connect=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_connect=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 echo "${ECHO_T}$ac_cv_func_connect" >&6; } if test $ac_cv_func_connect = no; then { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } if test "${ac_cv_lib_socket_connect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_socket_connect=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } if test $ac_cv_lib_socket_connect = yes; then X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. { echo "$as_me:$LINENO: checking for remove" >&5 echo $ECHO_N "checking for remove... $ECHO_C" >&6; } if test "${ac_cv_func_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define remove to an innocuous variant, in case declares remove. For example, HP-UX 11i declares gettimeofday. */ #define remove innocuous_remove /* System header to define __stub macros and hopefully few prototypes, which can conflict with char remove (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef remove /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_remove || defined __stub___remove choke me #endif int main () { return remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_remove=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_remove=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 echo "${ECHO_T}$ac_cv_func_remove" >&6; } if test $ac_cv_func_remove = no; then { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } if test "${ac_cv_lib_posix_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_posix_remove=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } if test $ac_cv_lib_posix_remove = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. { echo "$as_me:$LINENO: checking for shmat" >&5 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } if test "${ac_cv_func_shmat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shmat to an innocuous variant, in case declares shmat. For example, HP-UX 11i declares gettimeofday. */ #define shmat innocuous_shmat /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shmat (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shmat /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shmat || defined __stub___shmat choke me #endif int main () { return shmat (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shmat=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shmat=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 echo "${ECHO_T}$ac_cv_func_shmat" >&6; } if test $ac_cv_func_shmat = no; then { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } if test "${ac_cv_lib_ipc_shmat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_ipc_shmat=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } if test $ac_cv_lib_ipc_shmat = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_ICE_IceConnectionNumber=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi PWDD=`pwd` { echo "$as_me:$LINENO: checking for long file names" >&5 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; } if test "${ac_cv_sys_long_file_names+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_sys_long_file_names=yes # Test for long file names in all the places we know might matter: # . the current directory, where building will happen # $prefix/lib where we will be installing things # $exec_prefix/lib likewise # $TMPDIR if set, where it might want to write temporary files # /tmp where it might want to write temporary files # /var/tmp likewise # /usr/tmp likewise for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib # in the usual case where exec_prefix is '${prefix}'. case $ac_dir in #( . | /* | ?:[\\/]*) ;; #( *) continue;; esac test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. ac_xdir=$ac_dir/cf$$ (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue ac_tf1=$ac_xdir/conftest9012345 ac_tf2=$ac_xdir/conftest9012346 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || ac_cv_sys_long_file_names=no rm -f -r "$ac_xdir" 2>/dev/null test $ac_cv_sys_long_file_names = no && break done fi { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; } if test $ac_cv_sys_long_file_names = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LONG_FILE_NAMES 1 _ACEOF fi if test "`uname`" != "IRIX" ; then { echo "$as_me:$LINENO: checking for main in -lsocket" >&5 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; } if test "${ac_cv_lib_socket_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_socket_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_socket_main=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; } if test $ac_cv_lib_socket_main = yes; then socket_lib="-lsocket";LIBS="-lsocket $LIBS"; fi ac_cv_lib_socket=ac_cv_lib_socket_main { echo "$as_me:$LINENO: checking for main in -lnsl" >&5 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; } if test "${ac_cv_lib_nsl_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_nsl_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_nsl_main=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; } if test $ac_cv_lib_nsl_main = yes; then nsl_lib="-lnsl";LIBS="-lnsl $LIBS"; fi ac_cv_lib_nsl=ac_cv_lib_nsl_main { echo "$as_me:$LINENO: checking for main in -lresolv" >&5 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; } if test "${ac_cv_lib_resolv_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_resolv_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_resolv_main=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; } if test $ac_cv_lib_resolv_main = yes; then resolv_lib="-lresolv";LIBS="-lresolv $LIBS"; fi ac_cv_lib_resolv=ac_cv_lib_resolv_main fi { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; } if test "${ac_cv_lib_c_inet_aton+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char inet_aton (); int main () { return inet_aton (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_c_inet_aton=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_c_inet_aton=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } if test $ac_cv_lib_c_inet_aton = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_INET_ATON 1 _ACEOF fi { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char inet_aton (); int main () { return inet_aton (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_resolv_inet_aton=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_resolv_inet_aton=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } if test $ac_cv_lib_resolv_inet_aton = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_INET_ATON 1 _ACEOF fi { echo "$as_me:$LINENO: checking for compress in -lz" >&5 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; } if test "${ac_cv_lib_z_compress+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char compress (); int main () { return compress (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_z_compress=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_z_compress=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; } if test $ac_cv_lib_z_compress = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBZ 1 _ACEOF LIBS="-lz $LIBS" else { { echo "$as_me:$LINENO: error: \"libz is needed\"" >&5 echo "$as_me: error: \"libz is needed\"" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then dl_lib="-ldl" ; cat >>confdefs.h <<\_ACEOF #define HAVE_DL_LIB 1 _ACEOF fi for ac_func in snprintf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done NESS_COMPILER="`$CC -v 2>&1 | tail -1 2>/dev/null`" NESS_OS_NAME="`uname -s`" NESS_OS_VERSION="`uname -r`" { echo "$as_me:$LINENO: checking if sockaddr{} has sa_len member" >&5 echo $ECHO_N "checking if sockaddr{} has sa_len member... $ECHO_C" >&6; } if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ # include # include int main () { unsigned int i = sizeof(((struct sockaddr *)0)->sa_len) ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_sockaddr_has_sa_len=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_sockaddr_has_sa_len=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; } if test $ac_cv_sockaddr_has_sa_len = yes ; then cat >>confdefs.h <<\_ACEOF #define HAVE_SOCKADDR_SA_LEN 1 _ACEOF fi case "$host" in *-freebsd*|*-bsdi*|*-netbsd*) cat >>confdefs.h <<\_ACEOF #define BSD_BYTE_ORDERING 1 _ACEOF esac case "$host" in *-netbsd*) cat >>confdefs.h <<\_ACEOF #define NETBSD 1 _ACEOF ;; *-openbsd*) cat >>confdefs.h <<\_ACEOF #define OPENBSD 1 _ACEOF ;; *-sgi-irix5*) cat >>confdefs.h <<\_ACEOF #define IRIX 1 _ACEOF no_libsocket=yes no_libnsl=yes if test -z "$GCC"; then sgi_cc=yes fi ;; *-sgi-irix6*) cat >>confdefs.h <<\_ACEOF #define IRIX 1 _ACEOF no_libsocket=yes no_libnsl=yes if test -z "$GCC"; then sgi_cc=yes fi ;; *-solaris2.0*) cat >>confdefs.h <<\_ACEOF #define STUPID_SOLARIS_CHECKSUM_BUG 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define SOLARIS 1 _ACEOF ;; *-solaris2.1*) cat >>confdefs.h <<\_ACEOF #define STUPID_SOLARIS_CHECKSUM_BUG 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define SOLARIS 1 _ACEOF ;; *-solaris2.2*) cat >>confdefs.h <<\_ACEOF #define STUPID_SOLARIS_CHECKSUM_BUG 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define SOLARIS 1 _ACEOF ;; *-solaris2.3*) cat >>confdefs.h <<\_ACEOF #define STUPID_SOLARIS_CHECKSUM_BUG 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define SOLARIS 1 _ACEOF ;; *-solaris2.4*) cat >>confdefs.h <<\_ACEOF #define STUPID_SOLARIS_CHECKSUM_BUG 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define SOLARIS 1 _ACEOF ;; *-solaris2.5.1) cat >>confdefs.h <<\_ACEOF #define STUPID_SOLARIS_CHECKSUM_BUG 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define SOLARIS 1 _ACEOF ;; *-solaris*) cat >>confdefs.h <<\_ACEOF #define SOLARIS 1 _ACEOF ;; *-sunos4*) cat >>confdefs.h <<\_ACEOF #define SUNOS 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define SPRINTF_RETURNS_STRING 1 _ACEOF no_libnsl=yes no_libsocket=yes ;; *-linux*) linux=yes cat >>confdefs.h <<\_ACEOF #define LINUX 1 _ACEOF ;; *-freebsd*) cat >>confdefs.h <<\_ACEOF #define FREEBSD 1 _ACEOF ;; *-bsdi*) cat >>confdefs.h <<\_ACEOF #define BSDI 1 _ACEOF ;; *-cygwin*) cat >>confdefs.h <<\_ACEOF #define CYGWIN 1 _ACEOF ;; esac { echo "$as_me:$LINENO: checking whether struct sigaction has sa_restorer" >&5 echo $ECHO_N "checking whether struct sigaction has sa_restorer... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { struct sigaction sa; sa.sa_restorer = 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then signal_sa_restorer=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "x$signal_sa_restorer" = "x" && { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } test "x$signal_sa_restorer" = "x" || { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "x$signal_sa_restorer" = "xyes" && cat >>confdefs.h <<\_ACEOF #define HAVE_SIGNAL_SA_RESTORER 1 _ACEOF if test "x$enable_client" = "xyes"; then client=client client_install=client-install else unset client unset client_install enable_gtk=no fi test "x$enable_gtk" = "xno" || { pkg_modules="gtk+-2.0 >= 2.6.0" pkg_failed=no { echo "$as_me:$LINENO: checking for GTKCONFIG" >&5 echo $ECHO_N "checking for GTKCONFIG... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GTKCONFIG_CFLAGS"; then pkg_cv_GTKCONFIG_CFLAGS="$GTKCONFIG_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTKCONFIG_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GTKCONFIG_LIBS"; then pkg_cv_GTKCONFIG_LIBS="$GTKCONFIG_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTKCONFIG_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTKCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"` else GTKCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"` fi # Put the nasty error message in config.log where it belongs echo "$GTKCONFIG_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met: $GTKCONFIG_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTKCONFIG_CFLAGS and GTKCONFIG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements ($pkg_modules) were not met: $GTKCONFIG_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTKCONFIG_CFLAGS and GTKCONFIG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GTKCONFIG_CFLAGS and GTKCONFIG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GTKCONFIG_CFLAGS and GTKCONFIG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else GTKCONFIG_CFLAGS=$pkg_cv_GTKCONFIG_CFLAGS GTKCONFIG_LIBS=$pkg_cv_GTKCONFIG_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi } CFLAGS="$saveCFLAGS" test -n "$ssl" -a -d /usr/kerberos && { sslcflags="-I/usr/kerberos/include $sslcflags" ssl="-L/usr/kerberos/lib $ssl" } man_nessus_1=doc/OpenVAS-Client.1 # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $AR in [\\/]* | ?:[\\/]*) ac_cv_path_AR="$AR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi AR=$ac_cv_path_AR if test -n "$AR"; then { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ac_config_files="$ac_config_files nessus.tmpl include/corevers.h openvasclient-mkcert" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; "nessus.tmpl") CONFIG_FILES="$CONFIG_FILES nessus.tmpl" ;; "include/corevers.h") CONFIG_FILES="$CONFIG_FILES include/corevers.h" ;; "openvasclient-mkcert") CONFIG_FILES="$CONFIG_FILES openvasclient-mkcert" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim SET_MAKE!$SET_MAKE$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim RANLIB!$RANLIB$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim GLIB_LIBS!$GLIB_LIBS$ac_delim LIBOPENVASCONFIG!$LIBOPENVASCONFIG$ac_delim ALLOCA!$ALLOCA$ac_delim XMKMF!$XMKMF$ac_delim X_CFLAGS!$X_CFLAGS$ac_delim X_PRE_LIBS!$X_PRE_LIBS$ac_delim X_LIBS!$X_LIBS$ac_delim X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim GTKCONFIG_CFLAGS!$GTKCONFIG_CFLAGS$ac_delim GTKCONFIG_LIBS!$GTKCONFIG_LIBS$ac_delim AR!$AR$ac_delim PWD!$PWD$ac_delim PWDD!$PWDD$ac_delim CWALL!$CWALL$ac_delim GTK_VERSION!$GTK_VERSION$ac_delim OPENVASCLIENT_MAJOR!$OPENVASCLIENT_MAJOR$ac_delim OPENVASCLIENT_MINOR!$OPENVASCLIENT_MINOR$ac_delim OPENVASCLIENT_PATCH!$OPENVASCLIENT_PATCH$ac_delim OPENVASCLIENT_RC!$OPENVASCLIENT_RC$ac_delim NESSUS_DATE!$NESSUS_DATE$ac_delim NESS_COMPILER!$NESS_COMPILER$ac_delim NESS_OS_NAME!$NESS_OS_NAME$ac_delim NESS_OS_VERSION!$NESS_OS_VERSION$ac_delim INSTALL_DIR!$INSTALL_DIR$ac_delim INSTALL!$INSTALL$ac_delim RUN_LIBS!$RUN_LIBS$ac_delim resolv_lib!$resolv_lib$ac_delim socket_lib!$socket_lib$ac_delim nsl_lib!$nsl_lib$ac_delim ssl_lib!$ssl_lib$ac_delim gtk_flags!$gtk_flags$ac_delim debug_flags!$debug_flags$ac_delim nessus_lib!$nessus_lib$ac_delim man_nessus_1!$man_nessus_1$ac_delim dl_lib!$dl_lib$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF gdc_lib!$gdc_lib$ac_delim client!$client$ac_delim client_install!$client_install$ac_delim LIBOPENVAS_CFLAGS!$LIBOPENVAS_CFLAGS$ac_delim LIBOPENVAS_LIBS!$LIBOPENVAS_LIBS$ac_delim ac_configure_args!$ac_configure_args$ac_delim ssl!$ssl$ac_delim sslcflags!$sslcflags$ac_delim installuser!$installuser$ac_delim gettext_flags!$gettext_flags$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi chmod +x openvasclient-mkcert exit 0 openvas-client-2.0.5/configure.in0000664002347300234730000004025511237000207015772 0ustar felixfelixdnl dnl autoconf script for OpenVAS dnl dnl dnl Supported options : dnl dnl --enable-release dnl --enable-debug dnl --enable-pthreads (experimental dont use dont use dont use!) dnl --enable-syslog dnl --enable-gtk dnl --enable-unix-socket AC_INIT(.root-dir) AC_REVISION($Revision: 1.9 $)dnl AC_PREREQ(2.50) dnl version stuff -- jordan save_IFS="${IFS}" IFS=. read OPENVASCLIENT_MAJOR OPENVASCLIENT_MINOR OPENVASCLIENT_PATCH OPENVASCLIENT_RC /dev/null || AC_MSG_ERROR([ *** Panic: Corrupt version file]) test "x$prefix" != "xNONE" || prefix=/usr/local dnl Set up the main lines of the config script AC_CONFIG_HEADER(include/config.h) AC_PREFIX_DEFAULT("/usr/local") AC_CANONICAL_HOST AC_LANG_C dnl Check for several programs AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_INSTALL AC_PROG_RANLIB INSTALL_DIR="$INSTALL -d" test -n "$GCC" && CWALL="-Wall" test "x$enable_language" = x && enable_language="english" test "x$enable_gtk" = "x" && enable_gtk="yes" test "x$enable_client" = "x" && enable_client="yes" case "${host}" in *-mingw32*) CFLAGS="$CFLAGS -mms-bitfields" LDFLAGS="$LDFLAGS -mwindows" ;; esac dnl extending the search path for AC_PATH_PROG when searching for config scripts XPATH="$DESTDIR$prefix/bin:$PATH" dnl User options AC_ARG_ENABLE(release,[ --enable-release set the compiler flags to -O6], CFLAGS="-O6") AC_ARG_ENABLE(debug,[ --enable-debug set the compiler flags to -g],[ CFLAGS="-g"; debug_flags="-DDEBUG"]) AC_ARG_ENABLE(gtk,[ --enable-gtk build with GTK], test "$enable_gtk" = "yes" && gtk_flags="-DUSE_GTK" && AC_DEFINE(USE_GTK)) ### use option --with-ssl to compile in the SSL support ssl="" sslcflags="" AC_ARG_WITH(ssl, [ --with-ssl=[DIR] enable SSL support using libraries in DIR], [with_ssl=$withval]) dnl GDChart AC_CHECK_HEADERS([gdc.h gd.h png.h]) if test "$ac_cv_header_gdc_h" = "yes" && test "$ac_cv_header_gd_h" = "yes" && test "$ac_cv_header_png_h" = "yes"; then gdc_lib="-lgd -lpng -lgdc" AC_DEFINE(HAVE_LIBFREETYPE) else AC_DEFINE(NO_GDCHART) fi dnl GLIB needs to be quoted in the next line otherwise m4 tries to expand it# PKG_CHECK_MODULES([GLIB], glib-2.0 >= 2.6.0, HAVE_GLIB="yes", AC_MSG_ERROR("glib >= 2.6.0 not found")) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) NEED_OPENVASLIBS_VERSION=2.0.3 dnl Testing for presence and correct version of openvas-libraries: dnl -------------------------------------------------------------- AC_PATH_PROG(LIBOPENVASCONFIG, libopenvas-config) if test "x$LIBOPENVASCONFIG" = "x"; then AC_MSG_WARN("Could not find $LIBOPENVASCONFIG!, you will not be able to compile the OMP cli.") else OPENVASLIBS_VERSION=`$LIBOPENVASCONFIG --version` OPENVASLIBS_MAJOR=`echo $OPENVASLIBS_VERSION | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` OPENVASLIBS_MINOR=`echo $OPENVASLIBS_VERSION | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` OPENVASLIBS_PATCH=`echo $OPENVASLIBS_VERSION | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` REQ_OPENVASLIBS_MAJOR=`echo $NEED_OPENVASLIBS_VERSION | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` REQ_OPENVASLIBS_MINOR=`echo $NEED_OPENVASLIBS_VERSION | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` REQ_OPENVASLIBS_PATCH=`echo $NEED_OPENVASLIBS_VERSION | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` ok=no if test "$OPENVASLIBS_MAJOR" -gt "$REQ_OPENVASLIBS_MAJOR"; then ok=yes else if test "$OPENVASLIBS_MAJOR" -eq "$REQ_OPENVASLIBS_MAJOR"; then if test "$OPENVASLIBS_MINOR" -gt "$REQ_OPENVASLIBS_MINOR"; then ok=yes else if test "$OPENVASLIBS_MINOR" -eq "$REQ_OPENVASLIBS_MINOR"; then if test "$OPENVASLIBS_PATCH" -ge "$REQ_OPENVASLIBS_PATCH"; then ok=yes fi fi fi fi fi if test $ok = no; then AC_MSG_WARN( "openvas-libraries $OPENVASLIBS_VERSION too old." "Minimum required is $NEED_OPENVASLIBS_VERSION ." "You will not be able to compile the OMP cli." ) else LIBOPENVAS_LIBS=`$LIBOPENVASCONFIG --libs` LIBOPENVAS_CFLAGS=`$LIBOPENVASCONFIG --cflags` fi fi dnl only vanilla sed can handle long substitution lines saveCFLAGS="$CFLAGS" dnl Check for several headers AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_HEADER_TIME AC_HEADER_DIRENT AC_CHECK_HEADERS(unistd.h string.h strings.h sys/sockio.h sys/socketio.h) AC_CHECK_HEADERS(sys/param.h netinet/tcpip.h netinet/in_systm.h) AC_CHECK_HEADERS(netinet/ip_udp.h netinet/protocols.h sys/ioctl.h netinet/ip_icmp.h) AC_CHECK_HEADERS(rpc/rpc.h netinet/udp.h dlfcn.h sys/un.h memory.h ctype.h errno.h) AC_CHECK_HEADERS(sys/types.h stdlib.h stdio.h sys/filio.h pwd.h) AC_CHECK_HEADERS(assert.h netdb.h netinet/in.h arpa/inet.h) AC_CHECK_HEADERS(poll.h sys/poll.h netinet/ip_tcp.h fcntl.h signal.h limits.h) AC_CHECK_HEADERS(sys/stat.h stat.h net/if.h sys/mman.h sys/resource.h dl.h) AC_CHECK_HEADERS(pty.h termio.h termios.h sgtty.h libutil.h setjmp.h values.h) AC_CHECK_HEADERS(locale.h) dnl ./configure fails to determine the existence of some dnl headers under IRIX case "$host" in *-irix*) AC_DEFINE(HAVE_SYS_SOCKET_H) AC_DEFINE(HAVE_NETINET_IP_H) AC_DEFINE(HAVE_NETINET_TCP_H) ;; *) AC_CHECK_HEADERS(sys/socket.h netinet/ip.h netinet/tcp.h) ;; esac dnl Check for several functions AC_FUNC_ALLOCA AC_FUNC_WAIT3 dnl wait4 is tested below AC_CHECK_FUNCS(waitpid wait4 mmap atexit) AC_CHECK_FUNCS(lstat memmove gettimeofday gethrtime getrusage rand) AC_CHECK_FUNCS(strchr memcpy select poll) AC_CHECK_FUNC(vsnprintf,AC_DEFINE(HAVE_VSNPRINTF)) AC_CHECK_FUNCS(bzero bcopy setsid rint mkstemp) AC_CHECK_FUNCS(addr2ascii inet_neta setproctitle _exit) dnl Check for sevral types and guess our byte ordering AC_CHECK_SIZEOF(unsigned int) AC_CHECK_SIZEOF(unsigned long) AC_C_BIGENDIAN AC_CHECK_TYPE(time_t,int) AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_UID_T test "$with_ssl" = "yes" && forcessl="yes" if test "$with_ssl" = "yes" -o -z "$with_ssl" then # He didn't specify an SSL location. Let's look at some common # directories where SSL has been found in the past and try and auto # configure for SSL. OpenSSL determination will be made later. # This will screw up if an OpenSSL install is located in a later # directory than an older SSLeay install, but the user should fix that # anyways and he can override on the configure line. with_ssl="" for ac_dir in \ /usr/local/ssl \ /usr/ssl \ /local/ssl \ /opt/ssl \ /usr/freeware \ ; \ do if test -d "$ac_dir" ; then with_ssl=$ac_dir break; fi done test -z "$with_ssl" && { for ac_dir in \ /usr \ /usr/local \ /sw \ ; \ do if test -r "$ac_dir/include/openssl/ssl.h" ; then with_ssl=$ac_dir break; fi done } fi if test -n "$with_ssl" -a "$with_ssl" != "no" then AC_CHECK_LIB(dl, dlopen, withdl="-ldl") # With the autoconfigure above, the only time this is going to be # true is going to be when we could not find the headers. If they # are not in system standard locations, we are going to be broken. if test "$with_ssl" = "yes" then # Let's just define the standard location for the SSLeay root with_ssl="/usr/local/ssl" fi if test -r $with_ssl/include/openssl/ssl.h then ### ssl.h found under openssl. Use openssl configuration preferentially echo "Enabling OpenSSL support in $with_ssl" if test "$with_ssl" = "/usr"; then CEFLAGS="$CEFLAGS -I$with_ssl/include/openssl" sslcflags="-I$with_ssl/include/openssl" else CEFLAGS="$CEFLAGS -I$with_ssl/include -I$with_ssl/include/openssl" sslcflags="-I$with_ssl/include -I$with_ssl/include/openssl" fi ### OpenBSD comes with ssl headers elif test -r /usr/include/ssl/ssl.h then echo "Enabling SSLeay support in $with_ssl" sslcflags="-I/usr/include/ssl" else echo "Enabling SSLeay support in $with_ssl" sslcflags="-I$with_ssl/include" fi if test `uname` = "IRIX" -a "$with_ssl" = "/usr/freeware" ; then ssl="-L$with_ssl/lib32 -lssl -lcrypto $withdl" else ssl="-L$with_ssl/lib -lssl -lcrypto $withdl" fi else with_ssl="" AC_ERROR(Could not find OpenSSL and OpenSSL headers on your system) fi test -n "$with_ssl" && { test "x$use_cipher" = "xyes" -o -z "$use_cipher" } test -n "$forcessl" -a -z "$with_ssl" && AC_ERROR("OpenSSL not found") dnl this routine has been adopted from the GNU emacs20 distrubution AC_MSG_CHECKING(for struct timeval) AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME #include #include #else #ifdef HAVE_SYS_TIME_H #include #else #include #endif #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], [AC_MSG_RESULT(yes) HAVE_TIMEVAL=yes AC_DEFINE(HAVE_TIMEVAL)], [AC_MSG_RESULT(no) HAVE_TIMEVAL=no]) dnl Check for the number of arguments for gettimeofday (), this routine dnl has been adopted from the GNU emacs20 distrubution if test "x$HAVE_TIMEVAL" = xyes; then AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) AC_TRY_LINK([ #ifdef TIME_WITH_SYS_TIME #include #include #else #ifdef HAVE_SYS_TIME_H #include #else #include #endif #endif ], [ struct timeval time; struct timezone dummy; gettimeofday (&time, &dummy); ], [AC_MSG_RESULT(no)], [AC_MSG_RESULT(yes) AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) fi USE_INTERNAL_REGEX=maybe AC_ARG_ENABLE([internal-regex], [ --enable-internal-regex use internal regex], USE_INTERNAL_REGEX=yes) test -z "$BROKEN_REGEXP" -a "x$USE_INTERNAL_REGEX" = "xmaybe" && { BROKEN_REGEXP="" # # RedHat 8.0 ships with a broken regexp library (Nessus bug#90) # test -f /etc/redhat-release && { cat /etc/redhat-release | egrep "(8\.0|9)" >/dev/null && BROKEN_REGEXP=y } test -z "$BROKEN_REGEXP" && { AC_MSG_CHECKING([for a working regexp implementation]) AC_TRY_RUN([ #include #include #include #include int main() { char fastmap[1 << 8]; struct re_pattern_buffer pb; struct re_registers regs; pb.allocated = 8; pb.buffer = malloc(8); pb.fastmap = fastmap; pb.translate = 0; re_set_syntax(RE_SYNTAX_POSIX_EGREP); re_compile_pattern(".*nessus.*", strlen(".*nessus.*"), &pb); re_compile_fastmap(&pb); return re_search(&pb, "i use nessus everyday", strlen("i use nessus everyday"), 0, strlen("i use nessus everyday"), ®s); } ], [AC_MSG_RESULT([yes]);USE_INTERNAL_REGEX=no],[AC_MSG_RESULT([no]);USE_INTERNAL_REGEX=yes]) } } test "x$USE_INTERNAL_REGEX" = "xno" && { AC_DEFINE(HAVE_REGEX_SUPPORT) } dnl I18N Test (GNU gettext) AC_MSG_CHECKING([GNU gettext available]) AC_TRY_COMPILE([#include ], [extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings; }], [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_GNU_GETTEXT) gettext_flags="-DHAVE_GNU_GETTEXT"], [AC_MSG_RESULT(no)]) dnl Define several paths AC_PATH_X AC_PATH_XTRA PWDD=`pwd` AC_SYS_LONG_FILE_NAMES if test "`uname`" != "IRIX" ; then AC_HAVE_LIBRARY(socket, [socket_lib="-lsocket";LIBS="-lsocket $LIBS";]) AC_HAVE_LIBRARY(nsl, [nsl_lib="-lnsl";LIBS="-lnsl $LIBS";]) AC_HAVE_LIBRARY(resolv, [resolv_lib="-lresolv";LIBS="-lresolv $LIBS";]) fi AC_CHECK_LIB(c, inet_aton, AC_DEFINE(HAVE_INET_ATON)) AC_CHECK_LIB(resolv, inet_aton, AC_DEFINE(HAVE_INET_ATON)) AC_CHECK_LIB(z, compress, , AC_ERROR("libz is needed")) dnl Check for the libraries we may want to use AC_CHECK_LIB(dl, dlopen, [dl_lib="-ldl" ; AC_DEFINE(HAVE_DL_LIB)]) AC_CHECK_FUNCS(snprintf) dnl version defines have been extracted to a separate file NESS_COMPILER="`$CC -v 2>&1 | tail -1 2>/dev/null`" NESS_OS_NAME="`uname -s`" NESS_OS_VERSION="`uname -r`" dnl I prefer to compile a C program rather than trusting the env. variables... dnl This test is from the configure.in of Unix Network Programming second dnl edition example code by W. Richard Stevens dnl ################################################################## dnl Check if sockaddr{} has sa_len member. dnl AC_CACHE_CHECK(if sockaddr{} has sa_len member, ac_cv_sockaddr_has_sa_len, AC_TRY_COMPILE([ # include # include ], [unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)], ac_cv_sockaddr_has_sa_len=yes, ac_cv_sockaddr_has_sa_len=no)) if test $ac_cv_sockaddr_has_sa_len = yes ; then AC_DEFINE(HAVE_SOCKADDR_SA_LEN) fi case "$host" in *-freebsd*|*-bsdi*|*-netbsd*) AC_DEFINE(BSD_BYTE_ORDERING) esac case "$host" in *-netbsd*) AC_DEFINE(NETBSD) ;; *-openbsd*) AC_DEFINE(OPENBSD) ;; *-sgi-irix5*) AC_DEFINE(IRIX) no_libsocket=yes no_libnsl=yes if test -z "$GCC"; then sgi_cc=yes fi ;; *-sgi-irix6*) AC_DEFINE(IRIX) no_libsocket=yes no_libnsl=yes if test -z "$GCC"; then sgi_cc=yes fi ;; *-solaris2.0*) AC_DEFINE(STUPID_SOLARIS_CHECKSUM_BUG) AC_DEFINE(SOLARIS) ;; *-solaris2.1*) AC_DEFINE(STUPID_SOLARIS_CHECKSUM_BUG) AC_DEFINE(SOLARIS) ;; *-solaris2.2*) AC_DEFINE(STUPID_SOLARIS_CHECKSUM_BUG) AC_DEFINE(SOLARIS) ;; *-solaris2.3*) AC_DEFINE(STUPID_SOLARIS_CHECKSUM_BUG) AC_DEFINE(SOLARIS) ;; *-solaris2.4*) AC_DEFINE(STUPID_SOLARIS_CHECKSUM_BUG) AC_DEFINE(SOLARIS) ;; *-solaris2.5.1) AC_DEFINE(STUPID_SOLARIS_CHECKSUM_BUG) AC_DEFINE(SOLARIS) ;; *-solaris*) AC_DEFINE(SOLARIS) ;; *-sunos4*) AC_DEFINE(SUNOS) AC_DEFINE(SPRINTF_RETURNS_STRING) no_libnsl=yes no_libsocket=yes ;; *-linux*) linux=yes AC_DEFINE(LINUX) ;; *-freebsd*) AC_DEFINE(FREEBSD) ;; *-bsdi*) AC_DEFINE(BSDI) ;; *-cygwin*) AC_DEFINE(CYGWIN) ;; esac AC_MSG_CHECKING([whether struct sigaction has sa_restorer]) AC_TRY_COMPILE([ #include ], [ struct sigaction sa; sa.sa_restorer = 0; ] , signal_sa_restorer=yes) test "x$signal_sa_restorer" = "x" && AC_MSG_RESULT([no]) test "x$signal_sa_restorer" = "x" || AC_MSG_RESULT([yes]) test "x$signal_sa_restorer" = "xyes" && AC_DEFINE(HAVE_SIGNAL_SA_RESTORER) if test "x$enable_client" = "xyes"; then client=client client_install=client-install else unset client unset client_install enable_gtk=no fi test "x$enable_gtk" = "xno" || { pkg_modules="gtk+-2.0 >= 2.6.0" PKG_CHECK_MODULES(GTKCONFIG, [$pkg_modules]) AC_SUBST(GTKCONFIG_CFLAGS) AC_SUBST(GTKCONFIG_LIBS) } dnl only vanilla sed can handle long substitution lines CFLAGS="$saveCFLAGS" test -n "$ssl" -a -d /usr/kerberos && { sslcflags="-I/usr/kerberos/include $sslcflags" ssl="-L/usr/kerberos/lib $ssl" } man_nessus_1=doc/OpenVAS-Client.1 AC_PATH_PROG(AR, ar) AC_SUBST(AR) AC_SUBST(PWD) AC_SUBST(PWDD) AC_SUBST(CFLAGS) AC_SUBST(CWALL) AC_SUBST(GTK_VERSION) AC_SUBST(OPENVASCLIENT_MAJOR) AC_SUBST(OPENVASCLIENT_MINOR) AC_SUBST(OPENVASCLIENT_PATCH) AC_SUBST(OPENVASCLIENT_RC) AC_SUBST(NESSUS_DATE) AC_SUBST(NESS_COMPILER) AC_SUBST(NESS_OS_NAME) AC_SUBST(NESS_OS_VERSION) AC_SUBST(CWALL) AC_SUBST(INSTALL_DIR) AC_SUBST(INSTALL) AC_SUBST(RUN_LIBS) AC_SUBST(resolv_lib) AC_SUBST(socket_lib) AC_SUBST(nsl_lib) AC_SUBST(resolv_lib) AC_SUBST(ssl_lib) AC_SUBST(gtk_flags) AC_SUBST(debug_flags) AC_SUBST(nessus_lib) AC_SUBST(man_nessus_1) AC_SUBST(dl_lib) AC_SUBST(gdc_lib) AC_SUBST(client) AC_SUBST(client_install) AC_SUBST(datadir) AC_SUBST(GTKCONFIG_CFLAGS) AC_SUBST(GTKCONFIG_LIBS) AC_SUBST(LIBOPENVAS_CFLAGS) AC_SUBST(LIBOPENVAS_LIBS) AC_SUBST(ac_configure_args) AC_SUBST(ssl) AC_SUBST(sslcflags) AC_SUBST(installuser) AC_SUBST(gettext_flags) dnl And we put everything in the appropriate files AC_OUTPUT(nessus.tmpl include/corevers.h openvasclient-mkcert) chmod +x openvasclient-mkcert exit 0 openvas-client-2.0.5/COPYING0000664002347300234730000004312211237000207014510 0ustar felixfelix GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. openvas-client-2.0.5/COPYING.OpenSSL0000664002347300234730000000127611237000207015776 0ustar felixfelixIn addition, as a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file, and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. If you delete this exception statement from all source files in the program, then also delete it here. openvas-client-2.0.5/COPYING.README0000664002347300234730000001213411237000207015443 0ustar felixfelixMost parts of OpenVAS-Client are released under the "GNU GPLv2" or "GNU GPLv2 or any later version" license (see COPYING). The files under libnessus/ are a partial copy of nessus-libraries which is licensed under "LGPL or any later version" (see libnessus/COPYING). OpenVAS-Client may be linked with OpenSSL (see COPYING.OpenSSL). The source code copyright is hold by various persons and organizations. See the respective files for details which are the master information. However, here is a summary copy of all the copyright information assembled by the Debian Package maintainers. This summary dates 2007-12-27. - OpenVAS GUI and documentation: * Copyright (C) 2004, 2005, 2007 Intevation GmbH * Copyright (C) 2005 by DN-Systems GmbH * Copyright (C) 1998-2006 Renaud Deraison * Copyright (C) 1993 Free Software Foundation, Inc [regex library] * Copyright (C) 2001 Michael Arboi [ssl] - Include files: [nessus] Copyright (C) 1998-2006 Renaud Deraison Copyright (c) Nessus Consulting S.A.R.L., 2000 - 2001 - Translations: * Copyright (C) 2007 Intevation GmbH [he, * Copyright (C) 2007 Javier Fernandez-Sanguino [es] * Copyright (C) 1995-1997, 2000-2003 by Ulrich Drepper [makefile] Other copyrights: - Libnessus library: Copyright (C) 1998-2002 Renaud Deraison Copyright (C) 2001 Michael Arboi Copyright (c) Nessus Consulting S.A.R.L., 2000 - 2001 Copyright (c) mjh-EDV Beratung, 1996-1999 - Autoconf: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. - GD chart: * Copyright. Bruce Verderaime. 1998, 1999, 2000 * Copyright 1994, Cold Spring Harbor Labs. * Copyright 1998, Libor Skarvada, libor@informatics.muni.cz * Copyright (C) 1989 by Jef Poskanzer. * Copyright (C) 1998 Hutchison Avenue Software Corporation * Copyright 1990, 1991, 1993, David Koblas Authors: - OpenVAS GUI: * Renaud Deraison * Thomas Arendsen Hein * Dirk Jagdmann * Jan-Oliver Wagner * Thomas Arendsen Hein * Bernhard Herzog * Michael Arboi [ssl] License: This package holds software with three four different licenses: - GNU General Public License version 2 or later: the GUI itself (the frontend) - GNU General Public License version 2: the nessus backend - GNU Library General Public License version 2 or later: the nessus library, its includes, and some files of the nessus backend - A BSD/MIT license: the GD chart library and some of the contents of the nessus library The following text explains which licenses apply to which parts of the code. In case of doubt the interested party should review the copyright headers of the affected files. The license for most of the software in this package is the following: This software is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Notice that some parts of the software (source code files) are available at a GPL version 2 or (at your choice) a later version, as described above. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. In addition, as a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file, and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. If you delete this exception statement from all source files in the program, then also delete it here. Also, OpenVAS sources include (parts of) the libnessus library under the libnessus/ directory, this library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE version 2 (or later). On Debian systems, the complete text of the GNU Library General Public License can be found in `/usr/share/common-licenses/LGPL'. The Debian packaging is (C) 2007, Tim Brown and is licensed under the GPL, see above. openvas-client-2.0.5/doc/0000775002347300234730000000000011240741171014226 5ustar felixfelixopenvas-client-2.0.5/doc/Doxyfile0000664002347300234730000014531411240462041015740 0ustar felixfelix# Doxyfile 1.5.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = "OpenVAS Client" # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = 2.0.5 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = doc/generated # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of # source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, # Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hungarian, # Italian, Japanese, Japanese-en (Japanese with English messages), Korean, # Korean-en, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian, # Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian. OUTPUT_LANGUAGE = English # This tag can be used to specify the encoding used in the generated output. # The encoding is not always determined by the language that is chosen, # but also whether or not the output is meant for Windows or non-Windows users. # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES # forces the Windows encoding (this is the default for the Windows binary), # whereas setting the tag to NO uses a Unix-style encoding (the default for # all platforms other than Windows). USE_WINDOWS_ENCODING = NO # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is # used as the annotated text. Otherwise, the brief description is used as-is. # If left blank, the following values are used ("$name" is automatically # replaced with the name of the entity): "The $name class" "The $name widget" # "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explicit @brief command for a brief description. JAVADOC_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the DETAILS_AT_TOP tag is set to YES then Doxygen # will output the detailed description near the top, like JavaDoc. # If set to NO, the detailed description appears after the member # documentation. DETAILS_AT_TOP = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce # a new page for each member. If set to NO, the documentation of a member will # be part of the file/class/namespace that contains it. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 2 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = YES # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java # sources only. Doxygen will then generate output that is more tailored for Java. # For instance, namespaces will be presented as packages, qualified scopes # will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want to # include (a tag file for) the STL sources as input, then you should # set this tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); v.s. # func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. BUILTIN_STL_SUPPORT = NO # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = NO # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES # If the sources in your project are distributed over multiple directories # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy # in the documentation. The default is NO. SHOW_DIRECTORIES = NO # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from the # version control system). Doxygen will invoke the program by executing (via # popen()) the command , where is the value of # the FILE_VERSION_FILTER tag, and is the name of an input file # provided by doxygen. Whatever the program writes to standard output # is used as the file version. See the manual for examples. FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # This WARN_NO_PARAMDOC option can be abled to get warnings for # functions that are documented, but have no documentation for their parameters # or return value. If set to NO (the default) doxygen will only warn about # wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = YES # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. Optionally the format may contain # $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = nessus libnessus src include # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = src/README # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. Note that the wildcards are matched # against the file with absolute path, so to exclude all test directories # for example use the pattern */test/* EXCLUDE_PATTERNS = src/README # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = . # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER # is applied to all files. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES (the default) # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = NO # If the REFERENCES_RELATION tag is set to YES (the default) # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = NO # If the REFERENCES_LINK_SOURCE tag is set to YES (the default) # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will # link to the source code. Otherwise they will link to the documentstion. REFERENCES_LINK_SOURCE = YES # If the USE_HTAGS tag is set to YES then the references to source code # will point to the HTML generated by the htags(1) tool instead of doxygen # built-in source browser. The htags tool is part of GNU's global source # tagging system (see http://www.gnu.org/software/global/global.html). You # will need version 4.8.6 or higher. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = YES # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet. Note that doxygen will try to copy # the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. GENERATE_TREEVIEW = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = YES # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = YES # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = YES # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_DEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = USE_GTK:=1 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and will confuse # the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base # or super classes. Setting the tag to NO turns the diagrams off. Note that # this option is superseded by the HAVE_DOT option below. This is only a # fallback. It is recommended to install and use dot, since it yields more # powerful graphs. CLASS_DIAGRAMS = NO # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = NO # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = NO # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = NO # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = NO # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a call dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable call graphs for selected # functions only using the \callgraph command. CALL_GRAPH = NO # If the CALLER_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a caller dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable caller graphs for selected # functions only using the \callergraph command. CALLER_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = NO # If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES # then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = NO # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_HEIGHT = 1024 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes # that lay further from the root node will be omitted. Note that setting this # option to 1 or 2 may greatly reduce the computation time needed for large # code bases. Also note that a graph may be further truncated if the graph's # image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH # and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default), # the graph is not depth-constrained. MAX_DOT_GRAPH_DEPTH = 0 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent # background. This is disabled by default, which results in a white background. # Warning: Depending on the platform used, enabling this option may lead to # badly anti-aliased labels on the edges of a graph (i.e. they become hard to # read). DOT_TRANSPARENT = NO # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output # files in one run (i.e. multiple -o and -T options on the command line). This # makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = NO # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO openvas-client-2.0.5/doc/Doxyfile_full0000664002347300234730000014531311240462046016766 0ustar felixfelix# Doxyfile 1.5.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = "OpenVAS Client" # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = 2.0.5 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = doc/generated # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of # source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, # Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hungarian, # Italian, Japanese, Japanese-en (Japanese with English messages), Korean, # Korean-en, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian, # Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian. OUTPUT_LANGUAGE = English # This tag can be used to specify the encoding used in the generated output. # The encoding is not always determined by the language that is chosen, # but also whether or not the output is meant for Windows or non-Windows users. # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES # forces the Windows encoding (this is the default for the Windows binary), # whereas setting the tag to NO uses a Unix-style encoding (the default for # all platforms other than Windows). USE_WINDOWS_ENCODING = NO # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is # used as the annotated text. Otherwise, the brief description is used as-is. # If left blank, the following values are used ("$name" is automatically # replaced with the name of the entity): "The $name class" "The $name widget" # "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explicit @brief command for a brief description. JAVADOC_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the DETAILS_AT_TOP tag is set to YES then Doxygen # will output the detailed description near the top, like JavaDoc. # If set to NO, the detailed description appears after the member # documentation. DETAILS_AT_TOP = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce # a new page for each member. If set to NO, the documentation of a member will # be part of the file/class/namespace that contains it. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 2 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = YES # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java # sources only. Doxygen will then generate output that is more tailored for Java. # For instance, namespaces will be presented as packages, qualified scopes # will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want to # include (a tag file for) the STL sources as input, then you should # set this tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); v.s. # func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. BUILTIN_STL_SUPPORT = NO # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES # If the sources in your project are distributed over multiple directories # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy # in the documentation. The default is NO. SHOW_DIRECTORIES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from the # version control system). Doxygen will invoke the program by executing (via # popen()) the command , where is the value of # the FILE_VERSION_FILTER tag, and is the name of an input file # provided by doxygen. Whatever the program writes to standard output # is used as the file version. See the manual for examples. FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # This WARN_NO_PARAMDOC option can be abled to get warnings for # functions that are documented, but have no documentation for their parameters # or return value. If set to NO (the default) doxygen will only warn about # wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = YES # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. Optionally the format may contain # $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = nessus libnessus src include # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. Note that the wildcards are matched # against the file with absolute path, so to exclude all test directories # for example use the pattern */test/* EXCLUDE_PATTERNS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = . # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER # is applied to all files. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = YES # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = YES # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES (the default) # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES (the default) # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES # If the REFERENCES_LINK_SOURCE tag is set to YES (the default) # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will # link to the source code. Otherwise they will link to the documentstion. REFERENCES_LINK_SOURCE = YES # If the USE_HTAGS tag is set to YES then the references to source code # will point to the HTML generated by the htags(1) tool instead of doxygen # built-in source browser. The htags tool is part of GNU's global source # tagging system (see http://www.gnu.org/software/global/global.html). You # will need version 4.8.6 or higher. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = NO #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = YES # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet. Note that doxygen will try to copy # the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. GENERATE_TREEVIEW = YES # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = YES # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = YES # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_DEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = USE_GTK:=1 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and will confuse # the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base # or super classes. Setting the tag to NO turns the diagrams off. Note that # this option is superseded by the HAVE_DOT option below. This is only a # fallback. It is recommended to install and use dot, since it yields more # powerful graphs. CLASS_DIAGRAMS = YES # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = YES # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = YES # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a call dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable call graphs for selected # functions only using the \callgraph command. CALL_GRAPH = YES # If the CALLER_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a caller dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable caller graphs for selected # functions only using the \callergraph command. CALLER_GRAPH = YES # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES # then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_HEIGHT = 1024 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes # that lay further from the root node will be omitted. Note that setting this # option to 1 or 2 may greatly reduce the computation time needed for large # code bases. Also note that a graph may be further truncated if the graph's # image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH # and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default), # the graph is not depth-constrained. MAX_DOT_GRAPH_DEPTH = 0 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent # background. This is disabled by default, which results in a white background. # Warning: Depending on the platform used, enabling this option may lead to # badly anti-aliased labels on the edges of a graph (i.e. they become hard to # read). DOT_TRANSPARENT = YES # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output # files in one run (i.e. multiple -o and -T options on the command line). This # makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = NO # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO openvas-client-2.0.5/doc/nbe_file_format.txt0000664002347300234730000000146411237000206020100 0ustar felixfelix# # XXX to be completed # DESCRIPTION OF THE NBE FILE FORMAT The .nbe file format was designed to facilitate the export of Nessusd reports to other tools. The format is the following for each line : |||[Info] Where : is either "timestamps" or "results". If is timestamps, then the format of [info] is : |