My book, W.E. Gettys's Physics, starts from the Biot-Savart law $d\mathbf{B}=\frac{\mu_0}{4\pi}\frac{Id\boldsymbol{\ell}\times\hat{\mathbf{r}}}{r^2}$, i.e.$$\mathbf{B}(\mathbf{x})=\frac{\mu_0}{4\pi}\int_a^b I\boldsymbol{\ell}'(t)\times\frac{\mathbf{x}-\boldsymbol{\ell}(t)}{\|\mathbf{x}-\boldsymbol{\ell}(t)\|^3}dt$$where $\boldsymbol{\ell}:[a,b]\to\mathbb{R}^3$ is a parametrisation of the current's path, to show that the magnetic field $\mathbf{B}$ at a distance $R$ from an infinite straight electric wire carrying a current $I$ has norm $B=\frac{\mu_0 I}{2\pi R}$ and direction and orientation as shown in the figure
$\hskip2in$
Then the book derives, from such an expression of the magnetic field produced by an infinite straight wire carrying current $I_{\text{linked}}$, that, for a closed path $\gamma$, Ampère's circuital law holds in the form $$\oint_{\gamma}\mathbf{B}\cdot d\mathbf{x}=\mu_0 I_{\text{linked}}$$ and then states, without proving it, that such a formula is valid for any current, not only flowing in an infinite straight line.
I have searched very much in the web and in this site in particular, but I only find derivations of Ampère's from the Biot-Savart law using integrations of the Dirac $\delta$, which I only knew in the context of functional analysis in the monodimensional case where $\int_{-\infty}^{\infty}\delta(x-a)\varphi(x)dx=\varphi(a)$. Is it possible, for the particular case of linear, monodimensional, current flows (as the current flow parametrised by $\boldsymbol{\ell}$ in the expression of $\mathbf{B}$ above), to prove Ampère's law, in the form $\oint_{\gamma}\mathbf{B}\cdot d\mathbf{x}=\mu_0 I_{\text{linked}}$, or in the form $\nabla\times\mathbf{B}=\mu_0\mathbf{J}$ where $\mathbf{J}$ is the current density from which I would derive the first expression by using Stokes' theorem, without using the Dirac $\delta$, only by using, say, the tools of multivariate calculus and elementary differential geometry? I heartily thank anybody posting or linking such a proof.