#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : check # Auteur : Nicolas "DarkHack" Chapuis (c) 2026 # ================== DARKHACK ================== # [ darkweb.fr - system online ] # Powered by Perplexity, your AI assistant # [https://www.perplexity.ai](https://www.perplexity.ai) # ============================================== # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ===================================================================== rootDarkMake="${rootDarkMake:-/etc/darkmake}" if ! type "shInclude" > /dev/null 2>&1; then . /etc/darksh/lib/shTools fi . ${rootDarkMake}/lib/autotools/autoconf/global/install_vars cmdAutoupdate="${cmdAutoupdate:-$(which autoupdate)}" cmdAutoupdate="${cmdAutoupdate:-$(PATH="$PATH:/usr/sbin" which autoupdate)}" cmdAutom4te="${cmdAutom4te:-$(which autom4te)}" cmdAutom4te="${cmdAutom4te:-$(PATH="$PATH:/usr/sbin" which autom4te)}" cmdAutom4te="${cmdAutom4te:-$(which autom4te)}" cmdAutom4te="${cmdAutom4te:-$(PATH="$PATH:/usr/sbin" which autom4te)}" cmdAutoheader="${cmdAutoheader:-$(which autoheader)}" cmdAutoheader="${cmdAutoheader:-$(PATH="$PATH:/usr/sbin" which autoheader)}" cmdAutoconf="${cmdAutoconf:-$(which autoconf)}" cmdAutoconf="${cmdAutoconf:-$(PATH="$PATH:/usr/sbin" which autoconf)}" cmdAutoscan="${cmdAutoscan:-$(which autoscan)}" cmdAutoscan="${cmdAutoscan:-$(PATH="$PATH:/usr/sbin" which autoscan)}" cmdAutoreconf="${cmdAutoreconf:-$(which autoreconf)}" cmdAutoreconf="${cmdAutoreconf:-$(PATH="$PATH:/usr/sbin" which autoreconf)}" if [ -z "$cmdAutoupdate" ] || [ -z "$cmdAutoheader" ] || [ -z "$cmdAutoconf" ] || [ -z "$cmdAutoscan" ] || [ -z "$cmdAutoreconf" ];then echo "[lib/autotools/autoconf/install/check] stop check no autoupdate/autohead/autoconf/autoscan/autoreconf missing" exit 0 # ${rootDarkMake}/pkg/bin/aptCheck autoconf # cmdAutoupdate="$(which autoupdate)" # cmdAutom4te="$(which autom4te)" # cmdAutoheader="$(which autoheader)" # cmdAutoconf="$(which autoconf)" # cmdAutoscan="$(which autoscan)" # cmdAutoreconf="$(which autoreconf)" fi #LIBS:-l PKG_LIBS="" #CFLAGS: PKG_CFLAGS="" #CPPFLAGS:-I PKG_CPPFLAGS="" #LDFLAGS:-L PKG_LDFLAGS="" #LD_RUN_PATH:"path1:path2:path3" PKG_LD_RUN_PATH="" #LD_LIBRARY_PATH:"path1:path2:path3" PKG_LD_LIBRARY_PATH="" #PATH: "dir1:dir2" PKG_PATH="$(echo $cmdAutoconf | rev | cut -f2- -d/ | rev)" #LIBRARY_PATH:"path1:path2:path3" PKG_LIBRARY_PATH="" #M4DIR: #PKG_M4DIR="" AUTOCONF_SHARE="" #if [ -d "/usr/share/autoconf" ];then # AUTOCONF_SHARE="/usr/share/autoconf" #elif [ -d "/usr/local/share/autoconf" ];then # AUTOCONF_SHARE="/usr/local/share/autoconf" #fi if [ -n "${AUTOCONF_SHARE}" ] && [ -d "${AUTOCONF_SHARE}" ];then found="y" # PKG_M4DIR="$PKG_M4DIR -I${AUTOCONF_SHARE}" # for m4Folder in $(find "${AUTOCONF_SHARE}" | grep \.m4$ | rev | cut -d'/' -f 2- | rev | uniq);do ## echo "$(echo ${m4Folder} | rev | cut -d'/' -f 1 | rev | tr -d '[:space:]') *************************************************" ## if [ "autotest" != "$(echo ${m4Folder} | rev | cut -d'/' -f 1 | rev | tr -d '[:space:]')" ];then # PKG_M4DIR="$PKG_M4DIR -I${m4Folder}" ## fi # done fi #if [ -n "$found" ];then #fi #pkgConfName="autoconf" #pkgInstallPath="lib/autotools/autoconf"