+# Check whether --enable-doxygen-search was given.
+if test "${enable_doxygen_search+set}" = set; then
+ enableval=$enable_doxygen_search;
+else
+ enableval=default
+fi
+
+ENABLE_DOXYGEN_SEARCH="$enableval"
+
+case "$enableval" in
+ yes|no|default) ;;
+ *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+
+# Check whether --enable-doxygen-external-search was given.
+if test "${enable_doxygen_external_search+set}" = set; then
+ enableval=$enable_doxygen_external_search;
+else
+ enableval=default
+fi
+
+ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
+
+case "$enableval" in
+ yes)
+ case "$ENABLE_DOXYGEN_SEARCH" in
+ yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
+ no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
+echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
+ { (exit 1); exit 1; }; } ;;
+ esac
+ ;;
+ no|default) ;;
+ *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+
+
+# Check whether --with-doxygen-search-engine-url was given.
+if test "${with_doxygen_search_engine_url+set}" = set; then
+ withval=$with_doxygen_search_engine_url;
+fi
+
+WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
+
+
+# Check whether --with-doxygen-search-mappings was given.
+if test "${with_doxygen_search_mappings+set}" = set; then
+ withval=$with_doxygen_search_mappings;
+fi
+
+WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
+
+case "$ENABLE_DOXYGEN_SEARCH" in
+ yes)
+ if test "$ENABLE_DOXYGEN" = "0" ; then
+ { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
+echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+ enable_searchengine=YES
+
+
+ case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
+ yes)
+ enable_external_search=YES
+
+ enable_server_based_search=YES
+
+ searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
+
+ extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
+
+ ;;
+
+ no|default)
+ enable_external_search=NO
+
+ enable_server_based_search=NO
+
+
+
+ ;;
+ esac
+ ;;
+
+ no|default)
+ enable_searchengine=NO
+
+
+ enable_server_based_search=NO
+
+ enable_external_search=NO
+
+
+ ;;
+
+ *)
+ { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+esac
+
+# Check whether --enable-doxygen-qt-help was given.
+if test "${enable_doxygen_qt_help+set}" = set; then
+ enableval=$enable_doxygen_qt_help;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes)
+ if test "$ENABLE_DOXYGEN" = "0" ; then
+ { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
+echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+ # Extract the first word of "qhelpgenerator", so it can be a program name with args.
+set dummy qhelpgenerator; 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_QHELPGENERATOR+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $QHELPGENERATOR in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_QHELPGENERATOR="$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
+
+ test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
+ ;;
+esac
+fi
+QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
+if test -n "$QHELPGENERATOR"; then
+ { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
+echo "${ECHO_T}$QHELPGENERATOR" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+
+ llvm_doxygen_generate_qhp=YES
+
+ llvm_doxygen_qch_filename=org.llvm.qch
+
+ llvm_doxygen_qhp_namespace=org.llvm
+
+ llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
+
+ llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
+
+ llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
+
+
+ clang_doxygen_generate_qhp=YES
+
+ clang_doxygen_qch_filename=org.llvm.clang.qch
+
+ clang_doxygen_qhp_namespace=org.llvm.clang
+
+ clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
+
+ clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
+
+ clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
+
+ ;;
+
+ no|default)
+ llvm_doxygen_generate_qhp=NO
+
+
+
+
+
+
+
+ clang_doxygen_generate_qhp=NO
+
+
+
+
+ clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
+
+ clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
+
+ ;;
+
+ *)
+ { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+